import{b as U,c as W}from"./chunk-IEDTWYT7.js";import{A,a as q,g as L,l as z}from"./chunk-RYV2RH4B.js";import{ia as D}from"./chunk-R2UR7BVM.js";import{b as F,j as O}from"./chunk-HKLJ6VPZ.js";import{b as B,c as N}from"./chunk-PQ5Q7HJL.js";import{Eb as l,Fb as p,Gb as _,Pb as T,Qb as u,R as x,Ra as f,Ua as o,ac as s,bc as h,cc as C,ec as w,fc as I,gb as y,gc as V,kc as E,lc as P,mb as r,na as b,tb as a,vb as S,vc as m,wb as v,wc as c,xb as M,zb as g}from"./chunk-56X5LYJH.js";var k=()=>({width:"100%"});function G(e,t){e&1&&(l(0,"span",4),s(1),m(2,"translate"),p()),e&2&&(a("ngClass","text-error"),o(),C(" (",c(2,2,"auth.required"),") "))}function j(e,t){e&1&&(l(0,"span",4),s(1),m(2,"translate"),p()),e&2&&(a("ngClass","text-optinal"),o(),C(" (",c(2,2,"auth.optional"),") "))}function H(e,t){if(e&1&&(l(0,"label",0),s(1),r(2,G,3,4,"span",4)(3,j,3,4,"span",4),p()),e&2){let i=u();a("for",i.label),o(),C(" ",i.label," "),o(),g(i.required?2:3)}}function J(e,t){if(e&1&&_(0,"img",6),e&2){let i=u().$implicit;a("src",i.image,f)}}function K(e,t){if(e&1&&(l(0,"div",5),r(1,J,1,1,"img",6),l(2,"span"),s(3),m(4,"translate"),p()()),e&2){let i=t.$implicit;o(),g(i.image?1:-1),o(2),h(c(4,2,i.label))}}function Q(e,t){if(e&1&&_(0,"img",6),e&2){let i=u().$implicit;a("src",i.image,f)}}function X(e,t){if(e&1&&(l(0,"div",5),r(1,Q,1,1,"img",6),l(2,"span",7),s(3),m(4,"translate"),p()()),e&2){let i=t.$implicit;o(),g(i.image?1:-1),o(2),h(c(4,2,i.label))}}var R=class e{items;selectedValue;placeholder="";label="";optionLabel="";optionValue="";showClear=!1;placeholderImage;placeholderIcon;Class="";exported=!1;required=!1;selectedValueChange=new b;value;onChangeFn=t=>{};onTouchedFn=()=>{};writeValue(t){this.value=t}registerOnChange(t){this.onChangeFn=t}registerOnTouched(t){this.onTouchedFn=t}onChange(t){this.value=t,this.onChangeFn(t),this.selectedValueChange.emit(t)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=y({type:e,selectors:[["app-select"]],inputs:{items:"items",selectedValue:"selectedValue",placeholder:"placeholder",label:"label",optionLabel:"optionLabel",optionValue:"optionValue",showClear:"showClear",placeholderImage:"placeholderImage",placeholderIcon:"placeholderIcon",Class:"Class",exported:"exported",required:"required"},outputs:{selectedValueChange:"selectedValueChange"},features:[E([{provide:q,useExisting:x(()=>e),multi:!0}])],decls:5,vars:15,consts:[[1,"form-label","my-3","fw-bold",3,"for"],[3,"ngModelChange","onChange","options","ngModel","placeholder","optionValue","showClear"],["pTemplate","item"],["pTemplate","selectedItem"],[3,"ngClass"],[1,"d-flex","align-items-center","gap-2"],["alt","icon",1,"small-icon",3,"src"],[1,"selected-item"]],template:function(i,n){i&1&&(r(0,H,4,3,"label",0),l(1,"p-select",1),m(2,"translate"),V("ngModelChange",function(d){return I(n.value,d)||(n.value=d),d}),T("onChange",function(d){return n.onChange(d.value)}),r(3,K,5,4,"ng-template",2)(4,X,5,4,"ng-template",3),p()),i&2&&(g(n.label?0:-1),o(),v(P(14,k)),M(n.Class),S("exported",n.exported),a("options",n.items),w("ngModel",n.value),a("placeholder",c(2,12,n.placeholder))("optionValue",n.optionValue)("showClear",n.showClear))},dependencies:[W,U,D,A,L,z,N,B,O,F],styles:['[_nghost-%COMP%]     p-select{box-shadow:0 4px 8px #0000000d!important;border:1px solid #eeeeee!important}[_nghost-%COMP%]     .p-select .p-select-label{color:#fff}[_nghost-%COMP%]     .exported .p-select-label.p-placeholder{display:flex;align-items:center;gap:8px}[_nghost-%COMP%]     .exported .p-select-label.p-placeholder:before{content:"\\f30a";display:inline-block;font-family:bootstrap-icons;font-size:1rem}.text-optinal[_ngcontent-%COMP%]{font-size:12px;color:#979797;font-weight:400}']})};export{R as a};
