1import{$n as nb,Ct as T0,D as Fi,En as gh,H as KD,Hr as wb,Jt as _0,Mr as tg,Nt as Vh,Rt as XD,Ut as Xu,V as Ju,Wt as YD,Yt as _E,Z as Lo,b as Dw,bn as fb,c as Ah,ct as QD,fr as pw,gt as Rh,jn as hb,jr as tb,jt as Uw,kr as sw,pn as dI,qr as yb,sr as pI,ut as Qh,xn as fl,yn as ew,zt as XI}from"./chunk-mbnDHcR5.js";import{b as lt}from"./chunk-BL5u0M8g.js";import{E as Nv,V as Vf,c as Ag,ft as nx,g as Ee,i as $f,l as Ay,lt as mf,vt as sd,w as My,wt as vo,xt as uf}from"./main-VV467TBP.js";import{t as Ge}from"./chunk-BbvOYWEt.js";var ie=()=>({size:`auto`,style:`--width: auto`});function ne(i,b){if(i&1&&(Fi(0,`ion-label`,4),Uw(1),fb(2,`translate`),fl()),i&2){let e=pw(2);Ah(`color`,e.color()),_E(),tg(hb(2,2,e.label()))}}function ae(i,b){if(i&1){let e=sw();Fi(0,`app-selectable`,3),fb(1,`translate`),Vh(`itemSelected`,function(n){Ju(e);let o=pw();return Xu(o.changeSelectableValue(n.item))}),gh(2,ne,3,4,`ng-template`,null,0,yb),fl()}if(i&2){let e=Dw(3),t=pw();Ah(`header`,hb(1,12,t.label()))(`displayMode`,t.isClearableTextareaVariant()?`clearableTextarea`:`default`)(`itemsId`,t.itemValueKey())(`itemsName`,t.itemLabelKey())(`items`,t.items())(`key`,t.itemValueKey())(`model`,t.value())(`isMultiple`,t.multiple())(`readonly`,t.readonly())(`showRemoveValueButton`,t.showRemoveValueButton())(`required`,!0)(`labelOutlet`,e)}}function le(i,b){if(i&1&&(Fi(0,`ion-select-option`,11),Uw(1),fb(2,`translate`),fl()),i&2){let e=b.$implicit,t=pw(3);Ah(`value`,t.itemValue(e)),_E(),tg(hb(2,2,e[t.itemLabelKey()]??e))}}function oe(i,b){if(i&1){let e=sw();Fi(0,`ion-select`,8),fb(1,`translate`),fb(2,`translate`),dI(),Vh(`ionChange`,function(n){Ju(e);let o=pw(2);return Xu(o.changeValue(n))})(`ngModelChange`,function(n){Ju(e);let o=pw(2);return Xu(o.changeModel(n))}),Fi(3,`div`,9)(4,`ion-text`,10),Uw(5),fb(6,`translate`),fl()(),XD(7,le,3,4,`ion-select-option`,11,KD),fl()}if(i&2){let e=pw(2);Ah(`labelPlacement`,e.labelPlacement()?e.labelPlacement():`start`)(`compareWith`,e.compareWith())(`placeholder`,e.isClearableTextareaVariant()?e.currentLabel():e.currentLabel()||hb(1,11,`Nothing selected`))(`helperText`,e.requiredFields()?e.requiredFields():e.helperText()?hb(2,13,e.helperText()):void 0)(`multiple`,e.multiple())(`required`,e.required())(`ngModel`,e.value())(`value`,e.value())(`interfaceOptions`,nb(17,ie)),pI(),_E(4),Ah(`color`,e.color()),_E(),tg(hb(6,15,e.label())),_E(2),ew(e.items())}}function re(i,b){if(i&1&&(Rh(0,`ion-input`,7),fb(1,`translate`),fb(2,`translate`),fb(3,`translate`)),i&2){let e=pw(2);Ah(`helperText`,e.requiredFields()?e.requiredFields():e.helperText()?hb(1,6,e.helperText()):void 0)(`label`,hb(2,8,e.label()))(`labelPlacement`,e.labelPlacement()?e.labelPlacement():`start`)(`readonly`,!0)(`color`,e.color())(`value`,hb(3,10,e.itemLabel(e.value())))}}function se(i,b){if(i&1&&(Fi(0,`ion-item`,5),QD(1,oe,9,18,`ion-select`,6)(2,re,4,12,`ion-input`,7),fl()),i&2){let e=pw();Qh(`clearable-textarea-variant`,e.isClearableTextareaVariant()),Ah(`lines`,e.isClearableTextareaVariant()?`none`:`full`)(`button`,e.isClearableTextareaVariant()),_E(),YD(e.readonly()?2:1)}}var fe=(()=>{class i{constructor(){this.visualVariant=T0(`default`),this.isClearableTextareaVariant=wb(()=>this.visualVariant()===`clearableTextarea`),this.label=T0(``),this.labelPlacement=T0(void 0),this.name=T0(``),this.value=_0(void 0),this.readonly=T0(!1),this.required=T0(!1),this.items=T0([]),this.itemLabelKey=T0(``),this.itemValueKey=T0(``),this.useRawObject=T0(!1),this.useRawObjectKeys=T0([]),this.multiple=T0(!1),this.type=T0(`select`),this.showRemoveValueButton=T0(!1),this.color=T0(`primary`),this.helperText=T0(``),this.requiredFields=T0(``)}registerOnChange(e){this.changedFn=e}registerOnTouched(e){}setDisabledState(e){}writeValue(e){this.value.set(e)}currentLabel(){return this.getSelectedItems(this.value()).map(e=>e[this.itemLabelKey()]).join(`, `)}changeSelectableValue(e){this.value.set(e),this.changedFn&&this.changedFn(e)}changeValue(e){let t=e.detail.value;this.value.set(t),this.changedFn&&this.changedFn(t)}changeModel(e){this.value.set(e),this.changedFn&&this.changedFn(e)}itemValue(e){if(this.useRawObject()){let t={};for(let n of this.useRawObjectKeys())typeof e[n]<`u`&&(t[n]=e[n]);return t}else return e[this.itemValueKey()]??e}compareWith(){let e=this.useRawObject(),t=this.itemValueKey(),n=this.useRawObjectKeys(),o=l=>{if(e){let d={};for(let g of n)typeof l[g]<`u`&&(d[g]=l[g]);return d}else return l?l[t]??l:void 0};return(l,d)=>{return o(l)===o(d)}}getSelectedItems(e){let t=this.items(),n=this.itemValueKey();return t&&e!==null&&typeof e<`u`?t.filter(o=>{let l=o[n];return Array.isArray(e)?e.findIndex(d=>l===d||l===d[n])>=0:l===e||l===e[n]}):[]}
1itemLabel(e){if(Array.isArray(e))return this.getSelectedItems(e).map(l=>l[this.itemLabelKey()]).join(`, `);let t=this.items(),n=this.itemLabelKey(),o=t.findIndex(l=>this.itemValue(l)===e);if(o>=0)return t[o][n]}static{this.ɵfac=function(t){return new(t||i)}}static{this.ɵcmp=XI({type:i,selectors:[[`app-form-select`]],inputs:{visualVariant:[1,`visualVariant`],label:[1,`label`],labelPlacement:[1,`labelPlacement`],name:[1,`name`],value:[1,`value`],readonly:[1,`readonly`],required:[1,`required`],items:[1,`items`],itemLabelKey:[1,`itemLabelKey`],itemValueKey:[1,`itemValueKey`],useRawObject:[1,`useRawObject`],useRawObjectKeys:[1,`useRawObjectKeys`],multiple:[1,`multiple`],type:[1,`type`],showRemoveValueButton:[1,`showRemoveValueButton`],color:[1,`color`],helperText:[1,`helperText`],requiredFields:[1,`requiredFields`]},outputs:{value:`valueChange`},features:[tb([{provide:Ee,multi:!0,useExisting:Lo(()=>i)}],[{provide:vo,useValue:null}])],decls:2,vars:1,consts:[[`labelTemplate`,``],[3,`header`,`displayMode`,`itemsId`,`itemsName`,`items`,`key`,`model`,`isMultiple`,`readonly`,`showRemoveValueButton`,`required`,`labelOutlet`],[3,`clearable-textarea-variant`,`lines`,`button`],[3,`itemSelected`,`header`,`displayMode`,`itemsId`,`itemsName`,`items`,`key`,`model`,`isMultiple`,`readonly`,`showRemoveValueButton`,`required`,`labelOutlet`],[`slot`,`start`,3,`color`],[3,`lines`,`button`],[`justify`,`space-between`,`color`,`primary`,`interface`,`popover`,3,`labelPlacement`,`compareWith`,`placeholder`,`helperText`,`multiple`,`required`,`ngModel`,`value`,`interfaceOptions`],[3,`helperText`,`label`,`labelPlacement`,`readonly`,`color`,`value`],[`justify`,`space-between`,`color`,`primary`,`interface`,`popover`,3,`ionChange`,`ngModelChange`,`labelPlacement`,`compareWith`,`placeholder`,`helperText`,`multiple`,`required`,`ngModel`,`value`,`interfaceOptions`],[`slot`,`label`],[3,`color`],[3,`value`]],template:function(t,n){t&1&&QD(0,ae,4,14,`app-selectable`,1)(1,se,3,5,`ion-item`,2),t&2&&YD(n.type()===`selectable`?0:1)},dependencies:[Ge,My,Ay,sd,Ag,uf,mf,nx,$f,Vf,Nv,lt],styles:[`.item-interactive-disabled.sc-ion-label-md-h[_ngcontent-%COMP%]:not(.item-multiple-inputs), .item-interactive-disabled[_ngcontent-%COMP%]:not(.item-multiple-inputs) .sc-ion-label-md-h[_ngcontent-%COMP%], .item-interactive-disabled.sc-ion-label-ios-h[_ngcontent-%COMP%]:not(.item-multiple-inputs), .item-interactive-disabled[_ngcontent-%COMP%]:not(.item-multiple-inputs) .sc-ion-label-ios-h[_ngcontent-%COMP%]{opacity:1}ion-item[_ngcontent-%COMP%]{--%NS%min-height: 56px}ion-item.clearable-textarea-variant[_ngcontent-%COMP%]{--%NS%padding-start: 10px}ion-input[_ngcontent-%COMP%]{--%NS%padding-start: 0 !important;--%NS%min-height: 56px !important}`]})}}return i})();export{fe as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.