import{b as E}from"./chunk-JHF7CRPK.js";import"./chunk-AJVKZJ62.js";import"./chunk-A6JYFJIV.js";import"./chunk-DMKKQOTX.js";import"./chunk-5OVXWUHD.js";import"./chunk-6DMSCLHW.js";import"./chunk-5KBO3I44.js";import"./chunk-LPD7J4JW.js";import{a as d}from"./chunk-IQVEYGHC.js";import"./chunk-HDQXASVT.js";import"./chunk-CQICYL3N.js";import"./chunk-W6VI2ZDA.js";import{Ab as k,Ec as g,Ed as A,Fc as h,Gc as C,Hc as S,Ia as L,Ic as f,Jc as w,Sc as T,Tb as _,Tc as K,Ub as V,Vb as b,Wb as s,Xb as n,a as c,b as D,gc as y,jb as o,kc as v,va as p,wa as m,yc as r,zc as x}from"./chunk-UNHECMG2.js";var I=(a,l)=>l.Id;function B(a,l){if(a&1){let e=y();S(0),s(1,"div",1)(2,"div")(3,"bkd-subscription-detail-field",3),C("valueChange",function(t){p(e);let u=w(0);return h(u,t),m(t)}),n()(),s(4,"pre"),r(5),T(6,"json"),n(),s(7,"pre"),r(8),T(9,"json"),n()()}if(a&2){let e=l.$implicit,i=v(),t=f(i.subscriptionDetailsValues[e.Id||""]);o(3),b("detail",i.build(e)),g("value",t),o(2),x(K(6,5,t())),o(3),x(K(9,7,e))}}function F(a,l){if(a&1){let e=y();S(0),s(1,"div",1)(2,"div")(3,"bkd-subscription-detail-field",4),C("valueChange",function(t){p(e);let u=w(0);return h(u,t),m(t)}),n()()()}if(a&2){let e=l.$implicit,i=v(),t=f(i.subscriptionDetailsValues[e.Id||""]);o(3),b("detail",i.build(e))("hideLabel",!0),g("value",t)}}function M(a,l){if(a&1){let e=y();S(0),s(1,"div",1)(2,"div")(3,"bkd-subscription-detail-field",3),C("valueChange",function(t){p(e);let u=w(0);return h(u,t),m(t)}),n()()()}if(a&2){let e=l.$implicit,i=v(),t=f(i.subscriptionDetailsValues[e.Id||""]);o(3),b("detail",i.build(e)),g("value",t)}}function W(a,l){if(a&1){let e=y();S(0),s(1,"div",1)(2,"div")(3,"bkd-subscription-detail-field",3),C("valueChange",function(t){p(e);let u=w(0);return h(u,t),m(t)}),n()()()}if(a&2){let e=l.$implicit,i=v(),t=f(i.subscriptionDetailsValues[e.Id||""]);o(3),b("detail",i.build(e)),g("value",t)}}function O(a,l){if(a&1){let e=y();S(0),s(1,"div",1)(2,"div")(3,"bkd-subscription-detail-field",5),C("valueChange",function(t){p(e);let u=w(0);return h(u,t),m(t)}),n()()()}if(a&2){let e=l.$implicit,i=v(),t=f(i.subscriptionDetailsValues[e.Id||""]);o(3),b("detail",i.build(e))("layout","horizontal"),g("value",t)}}var P=(()=>{class a{constructor(){this.subscriptionDetails=[{VssDesignation:"Heading",VssStyle:"HE"},{VssDesignation:"Description",VssStyle:"BE",Value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},{VssDesignation:"Text field",VssTypeId:d.ShortText,VssStyle:"TX",Value:"Lorem ipsum"},{VssDesignation:"Integer field",VssTypeId:d.Int,VssStyle:"TX",Value:42},{VssDesignation:"Currency field",VssStyle:"TX",VssTypeId:d.Currency,Value:"12.30"},{VssDesignation:"Textarea",VssTypeId:d.Text,VssStyle:"TX",Value:`Lorem ipsum
dolor sit amet`},{VssDesignation:"Date field",VssStyle:"TX",VssTypeId:d.Date,Value:"23.01.2000"},{VssDesignation:"Yes/no checkbox",VssStyle:"TX",VssTypeId:d.YesNo,ShowAsRadioButtons:!1,Value:"Nein"},{VssDesignation:"Yes/no radios",VssStyle:"TX",VssTypeId:d.YesNo,ShowAsRadioButtons:!0,Value:"Nein"},{VssDesignation:"Yes checkbox",VssStyle:"TX",VssTypeId:d.Yes,Value:"Ja"},{VssDesignation:"Listbox select",VssStyle:"LB",DropdownItems:[{Key:1,Value:"Apple",IsActive:!0},{Key:2,Value:"Pear",IsActive:!0},{Key:3,Value:"Banana",IsActive:!1}],ShowAsRadioButtons:!1,Value:"2"},{VssDesignation:"Listbox radios",VssStyle:"LB",DropdownItems:[{Key:1,Value:"Apple",IsActive:!0},{Key:2,Value:"Pear",IsActive:!0},{Key:3,Value:"Banana",IsActive:!1}],ShowAsRadioButtons:!0,Value:"2"},{VssDesignation:"Listbox many radios",VssStyle:"LB",DropdownItems:[{Key:1,Value:"Apple",IsActive:!0},{Key:2,Value:"Cherry",IsActive:!0},{Key:3,Value:"Grape",IsActive:!0},{Key:4,Value:"Mango",IsActive:!0},{Key:5,Value:"Pear",IsActive:!0},{Key:6,Value:"Strawberry",IsActive:!0}],ShowAsRadioButtons:!0,Value:"2"},{VssDesignation:"Combobox",VssStyle:"CB",DropdownItems:[{Key:"Apple",Value:"Apple",IsActive:!0},{Key:"Banana",Value:"Banana",IsActive:!1},{Key:"Grape",Value:"Grape",IsActive:!0},{Key:"Grapefruit",Value:"Grapefruit",IsActive:!0},{Key:"Pear",Value:"Pear",IsActive:!0}],Value:"Strawberry"}].map((e,i)=>D(c({},e),{Id:String(i+1)})),this.subscriptionDetailsValues=this.getSubscriptionDetailValueSignals(),this.subscriptionDetailsReadonly=this.subscriptionDetails.map(e=>D(c({},e),{VssInternet:"R"})),this.subscriptionDetailsRequired=this.subscriptionDetails.map(e=>D(c({},e),{VssInternet:"M"}))}build(e){return c({Id:"1",SubscriptionId:1,VssId:1,EventId:1,IdPerson:1,DropdownItems:[],ShowAsRadioButtons:!1,VssType:"",VssTypeId:d.ShortText,VssStyle:"TX",VssInternet:"E",VssDesignation:"",Tooltip:e.VssDesignation?`${e.VssDesignation} Tooltip`:"",Value:null,Sort:""},e)}getSubscriptionDetailValueSignals(){return this.subscriptionDetails.reduce((e,i)=>D(c({},e),{[i.Id??""]:L(i.Value??null)}),{})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=k({type:a,selectors:[["bkd-kitchensink"]],decls:34,vars:0,consts:[[1,"subscription-details","with-border"],[1,"subscription-details-row"],[1,"subscription-details"],[3,"valueChange","detail","value"],[3,"valueChange","detail","hideLabel","value"],[3,"valueChange","detail","layout","value"]],template:function(i,t){i&1&&(s(0,"h1"),r(1,"Kitchensink"),n(),s(2,"h2"),r(3,"Subscription Detail Fields: With Labels"),n(),s(4,"div",0)(5,"div",1)(6,"div"),r(7,"Field"),n(),s(8,"div"),r(9,"Value"),n(),s(10,"div"),r(11,"Properties"),n()(),_(12,B,10,9,"div",1,I),n(),s(14,"h2"),r(15,"Subscription Detail Fields: Without labels"),n(),s(16,"div",2),_(17,F,4,4,"div",1,I),n(),s(19,"h2"),r(20,"Subscription Detail Fields: Readonly"),n(),s(21,"div",2),_(22,M,4,3,"div",1,I),n(),s(24,"h2"),r(25,"Subscription Detail Fields: Required"),n(),s(26,"div",2),_(27,W,4,3,"div",1,I),n(),s(29,"h2"),r(30,"Subscription Detail Fields: Horizontal Layout"),n(),s(31,"div",2),_(32,O,4,4,"div",1,I),n()),i&2&&(o(12),V(t.subscriptionDetails),o(5),V(t.subscriptionDetails),o(5),V(t.subscriptionDetailsReadonly),o(5),V(t.subscriptionDetailsRequired),o(5),V(t.subscriptionDetails))},dependencies:[E,A],styles:["[_nghost-%COMP%]{display:block;margin:1rem}.subscription-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;column-gap:1rem;margin-bottom:3rem}.subscription-details-row[_ngcontent-%COMP%]{display:flex;align-items:start;gap:1rem;margin-bottom:1.25rem}.subscription-details-row[_ngcontent-%COMP%]:first-child > *[_ngcontent-%COMP%]{font-weight:700}.with-border[_ngcontent-%COMP%]   .subscription-details-row[_ngcontent-%COMP%]{margin-bottom:0;padding-top:1rem;padding-bottom:1rem}.with-border[_ngcontent-%COMP%]   .subscription-details-row[_ngcontent-%COMP%] + .subscription-details-row[_ngcontent-%COMP%]{border-top:1px solid #e9ecef}.subscription-details-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}.subscription-details-row[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]{background-color:#e9ecef;padding:1rem;margin:0}"],changeDetection:0})}}return a})();var U=[{path:"",component:P}];export{U as KITCHENSINK_ROUTES};
