import{c as b}from"./chunk-IRASDP7D.js";import{t as le}from"./chunk-RB4ISITT.js";import{$ as te,E as Y,Z,_ as ee,ba as ne,ca as oe,d as v,da as ie,e as J,j as K,o as X}from"./chunk-HVWG6H27.js";import{Bb as j,Cb as B,Da as i,Db as Q,Fa as g,Fb as y,Gb as k,Ic as H,Jb as p,Kb as I,Lb as D,Oc as m,Pa as c,Qb as W,Rb as G,Sb as U,Va as _,Wb as M,X as C,_a as L,bc as S,c as z,dc as F,ea as E,fa as T,fb as l,gb as a,hb as r,ib as s,mb as P,na as N,nb as x,qb as V,vb as w,xb as f,yb as A,yc as $,zb as R,zc as q}from"./chunk-2SSKXWW5.js";import{f as ae}from"./chunk-TSRGIXR5.js";var de=["calendarContainer"],we=(()=>{class n{constructor(){this.size=65,this.color=""}ngAfterViewInit(){this.applyCalendarSize()}applyCalendarSize(){this.calendarContainer&&this.size&&this.calendarContainer.nativeElement.style.setProperty("--calendar-size",`${this.size}px`)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=c({type:n,selectors:[["app-calendar-day-month"]],viewQuery:function(t,o){if(t&1&&j(de,7),t&2){let d;B(d=Q())&&(o.calendarContainer=d.first)}},inputs:{date:"date",size:"size",color:"color"},decls:10,vars:16,consts:[["calendarContainer",""],[1,"calendar"],["name","calendar-empty",3,"width","height"],[1,"date-text"],[1,"month","uppercase"],[1,"day"]],template:function(t,o){t&1&&(a(0,"div",1,0),s(2,"app-svg-icon",2),a(3,"div",3)(4,"span",4),p(5),S(6,"date"),r(),a(7,"span",5),p(8),S(9,"date"),r()()()),t&2&&(y("width",o.size,"px")("height",o.size,"px"),i(2),y("color",o.color),l("width",o.size)("height",o.size),i(3),I(F(6,10,o.date,"MMM")),i(3),I(F(9,13,o.date,"d")))},dependencies:[m,b,H],styles:[".calendar[_ngcontent-%COMP%]{width:var(--calendar-size, 65px);height:var(--calendar-size, 65px);position:relative}.calendar[_ngcontent-%COMP%]   app-svg-icon[_ngcontent-%COMP%]{color:var(--branding-main-color, #E44A98);margin-top:-2px}.calendar[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]{position:absolute;top:0}.calendar[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%], .calendar[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{display:block;width:var(--calendar-size, 65px);text-align:center;padding:0;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.calendar[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{font-size:calc(var(--calendar-size, 65px) * .22);font-weight:600;height:calc(var(--calendar-size, 65px) * .23)}.calendar[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{font-size:calc(var(--calendar-size, 65px) * .46);font-weight:bolder;height:calc(var(--calendar-size, 65px) * .72)}"]})}}return n})();var Ie=(()=>{class n{constructor(){this._value=!1,this.valueChange=new g,this.isDisabled=!1,this.errorMessage="",this.destroy$=new z,this.onChange=e=>{},this.onTouched=()=>{}}set value(e){this._value=e??!1}get value(){return this._value}updateValue(){this.valueChange.emit(this.value)}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.isDisabled=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=c({type:n,selectors:[["app-checkbox"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[M([{provide:v,useExisting:C(()=>n),multi:!0}])],decls:3,vars:1,consts:[[1,"custom-checkbox"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"checkmark"]],template:function(t,o){t&1&&(a(0,"label",0)(1,"input",1),U("ngModelChange",function(O){return G(o.value,O)||(o.value=O),O}),w("change",function(){return o.updateValue()}),r(),s(2,"span",2),r()),t&2&&(i(),W("ngModel",o.value))},dependencies:[m,Y,J,K,X],styles:['[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]{display:inline-flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{width:20px;height:20px;border:2px solid var(--form-control-border-color, #141414);border-radius:4px;margin-right:8px;position:relative;transition:all .2s}[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid transparent;border-width:0 2px 2px 0;transform:rotate(45deg);opacity:0;transition:all .2s}[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .checkmark[_ngcontent-%COMP%]{background-color:#fff;border:2px solid var(--branding-main-color, var(--form-control-border-color, #141414))}[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .checkmark[_ngcontent-%COMP%]:after{border-color:var(--branding-main-color, var(--form-control-border-color, #141414));opacity:1}']})}}return n})();var h=ae(le());var ce=[[["","custom-selected-label",""]]],pe=["[custom-selected-label]"];function me(n,u){n&1&&(P(0),R(1,0,[1,"simple-dropdown-label-custom"]),x())}function ge(n,u){if(n&1&&(P(0),a(1,"div",6)(2,"span",7),p(3),r(),s(4,"app-svg-icon",8),r(),x()),n&2){let e=f();i(3),D(" ",e.selectedItem&&e.selectedItem[e.textField]?e.selectedItem[e.textField]:e.placeholder," "),i(),l("size","16px")}}function he(n,u){n&1&&s(0,"app-svg-icon",12)}function ue(n,u){if(n&1){let e=V();a(0,"button",9),w("click",function(){let o=E(e).$implicit,d=f();return T(d.select(o))}),a(1,"span",10),p(2),r(),_(3,he,1,0,"app-svg-icon",11),r()}if(n&2){let e=u.$implicit,t=f();k("selected",t.hasSelectedItem&&e[t.valueField]==t.selectedItem[t.valueField]),L("data-item-id",e[t.valueField]),i(2),D(" ",e?e[t.textField]:""," "),i(),l("ngIf",t.hasSelectedItem&&e[t.valueField]==t.selectedItem[t.valueField])}}var Re=(()=>{class n{constructor(){this.items=[],this.valueField="value",this.textField="text",this.placeholder="Select an option",this.useCustomSelectedLabel=!1,this.valueChange=new g,this.change=new g,this.onChange=e=>{},this.onTouched=()=>{},this.selectedItem=null,this.isDisabled=!1,this.itemsList=[]}get hasSelectedItem(){return!(0,h.isNil)(this.selectedItem)&&this.selectedItem!==""}ngOnChanges(e){e.value&&(this.selectedItem||(this.selectedItem={}),this.selectedItem[this.valueField]=this.value,this.itemsList=(0,h.cloneDeep)(this.items)),e.items&&(this.itemsList=(0,h.cloneDeep)(this.items))}select(e){this.selectedItem=e,this.onChange(e),this.onTouched(),this.change.emit(e),this.valueChange.emit(e[this.valueField])}writeValue(e){this.selectedItem=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.isDisabled=e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=c({type:n,selectors:[["app-dropdown"]],inputs:{items:"items",valueField:"valueField",textField:"textField",placeholder:"placeholder",value:"value",useCustomSelectedLabel:"useCustomSelectedLabel"},outputs:{valueChange:"valueChange",change:"change"},features:[M([{provide:v,useExisting:C(()=>n),multi:!0}]),N],ngContentSelectors:pe,decls:7,vars:8,consts:[["dropdown","ngbDropdown"],["ngbDropdown","",1,"simple-dropdown",3,"autoClose"],["ngbDropdownToggle","",1,"simple-dropdown-label-wrapper"],[4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","simple-dropdown-label",1,"simple-dropdown-items","w-100","mt-0"],["ngbDropdownItem","","class","simple-dropdown-item",3,"selected","click",4,"ngFor","ngForOf"],[1,"simple-dropdown-label","d-flex","justify-content-between","align-items-center"],[1,"simple-dropdown-label-text"],["name","chevron-down",1,"caret_icon",3,"size"],["ngbDropdownItem","",1,"simple-dropdown-item",3,"click"],[1,"simple-dropdown-item-text"],["class","checkicon","name","check",4,"ngIf"],["name","check",1,"checkicon"]],template:function(t,o){t&1&&(A(ce),a(0,"div",1,0)(2,"div",2),_(3,me,2,0,"ng-container",3)(4,ge,5,2,"ng-container",3),r(),a(5,"div",4),_(6,ue,4,5,"button",5),r()()),t&2&&(l("autoClose",!0),i(2),k("selected",o.hasSelectedItem)("dropdown-no-caret",o.useCustomSelectedLabel),i(),l("ngIf",o.useCustomSelectedLabel),i(),l("ngIf",!o.useCustomSelectedLabel),i(2),l("ngForOf",o.itemsList))},dependencies:[m,$,q,ie,oe,ne,te,Z,ee,b],styles:["[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-label-wrapper[_ngcontent-%COMP%]   .simple-dropdown-label[_ngcontent-%COMP%]{color:#8f8fa0;padding-right:10px;display:flex;align-items:center;border-radius:4px;border:1px solid var(--form-control-border-color, #141414);cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-label-wrapper[_ngcontent-%COMP%]   .simple-dropdown-label[_ngcontent-%COMP%]   .simple-dropdown-label-text[_ngcontent-%COMP%]{max-width:calc(100% - 23px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px;flex:1}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-label-wrapper[_ngcontent-%COMP%]   .simple-dropdown-label.selected[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-label-wrapper[_ngcontent-%COMP%]:after{display:none!important}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]{z-index:1000;max-height:216px;white-space:nowrap;overflow:hidden;overflow-y:auto}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]   .simple-dropdown-item[_ngcontent-%COMP%]{padding:unset!important;padding:4px 8px!important;display:flex}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]   .simple-dropdown-item.selected[_ngcontent-%COMP%]{color:var(--branding-main-color, #E44A98);font-weight:600}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]   .simple-dropdown-item[_ngcontent-%COMP%]   .simple-dropdown-item-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;flex:1}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]   .simple-dropdown-item[_ngcontent-%COMP%]   .checkicon[_ngcontent-%COMP%]{width:18px;height:18px;color:var(--branding-main-color, #E44A98)}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}[_nghost-%COMP%]   .simple-dropdown[_ngcontent-%COMP%]   .simple-dropdown-items[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#64646480;border-radius:4px}"]})}}return n})();export{we as a,Ie as b,Re as c};