PageSourceSearch

https://tunemysoft.web.app/chunk-M27FPG5J.js

js tunemysoft.web.app collected 2026-10-03 12:39:06 UTC 64,285 bytes, 1 lines download raw bytes

1import{c as ot,d as Yt,e as qt,f as Wt,g as zt,h as $t,i as Qt,j as Gt,s as tn}from"./chunk-Y63ADKSJ.js";import{a as Ut}from"./chunk-V65PQ6OV.js";import{$ as ue,$b as s,$f as Nt,Ab as Le,Ac as We,Ae as ge,Ag as Xt,Ba as _t,Bb as Pe,Bg as Jt,Ca as I,Cb as wt,Cf as $e,Cg as Kt,Da as W,Db as St,Df as At,Dg as Zt,Eb as Ue,Ef as N,Eg as en,Gb as y,Hb as Ve,Ja as fe,Jb as nt,Jf as It,Ka as v,Ma as w,Oa as S,Ob as te,P as x,Pa as et,Pb as ne,Pf as Bt,Q as Ae,Qa as tt,Ra as oe,S as G,Sa as se,Ta as h,Tb as Me,U as d,Ua as l,Ub as je,Va as c,Vb as at,Wa as F,Wb as m,Xa as Fe,Xb as le,Y as O,Ya as Oe,Yb as B,Z as H,_b as P,aa as Ie,ab as z,ac as ae,ag as be,ba as me,bb as E,bc as it,bg as U,ca as A,cb as de,cc as rt,cg as Qe,db as _,dc as M,ea as Be,eb as He,eg as Ft,fa as K,fb as p,fc as j,fg as Ot,ga as Ne,gb as $,gc as f,gg as Ht,hb as Q,hc as ce,hg as X,ib as Dt,ic as Ye,ig as Ge,jg as _e,kb as Ct,kc as pe,kg as De,lb as vt,lf as ze,lg as Et,mb as Se,mg as Rt,na as u,nb as Z,nf as Tt,ng as Lt,ob as V,og as Pt,pa as q,pb as ee,qb as yt,ra as Ke,rb as kt,sa as we,sb as Ee,sc as qe,tb as T,tf as xt,ua as he,ub as C,vb as R,wa as Ze,wb as L,xa as D,yg as Vt,za as b,zb as Re,ze as Mt,zg as jt}from"./chunk-3WN6U4CZ.js";import{a as ke}from"./chunk-YAHGIH44.js";var Nn=["checkBox"],Fn=()=>({display:"contents"}),On=["*"],Hn={provide:N,useExisting:x(()=>Te),multi:!0},En=0,st="-checkbox",Te=(()=>{class n{_destroyRef=d(me);_renderer=d(he);_elementRef=d(K);_focusMonitor=d(ze);_cdr=d(j);_fieldControl=d(U,{optional:!0});_document=d(Ie);_isBrowser=We(d(Ne));_focusVisible=A(!1);_focused=A(!1);checked=M(!1);checkedChange=P();isChecked=this.checked.asReadonly();indeterminate=M(!1);_dataState=m(()=>this.indeterminate()?"indeterminate":this.checked()?"checked":"unchecked");_ariaChecked=m(()=>this.indeterminate()?"mixed":this.checked()?"true":"false");id=s(++En+"");name=s(null);class=s(null);ariaLabel=s(null,{alias:"aria-label"});ariaLabelledby=s(null,{alias:"aria-labelledby"});mutableAriaLabelledby=B(()=>this.ariaLabelledby());ariaDescribedby=s(null,{alias:"aria-describedby"});required=s(!1,{transform:f});disabled=s(!1,{transform:f});forceInvalid=s(!1,{transform:f});_state=m(()=>{let e=this.name(),a=this.id();return{disabled:A(this.disabled()),name:e?e+st:null,id:a?a+st:null}});_buttonId=m(()=>this._getCheckboxButtonId(this._state().id));_buttonName=m(()=>this._getCheckboxButtonId(this._state().name));labelableId=this._buttonId;_dirty=this._fieldControl?.dirty;_invalid=m(()=>this.forceInvalid()||(this._fieldControl?.invalid?.()??null));spartanInvalid=m(()=>this.forceInvalid()||(this._fieldControl?.spartanInvalid?.()??null));_controlTouched=this._fieldControl?.touched;_onChange=()=>{};_onTouched=()=>{};checkbox=ae.required("checkBox");touched=P();constructor(){Ye(()=>{let e=this._state(),a=e.disabled();if(!this._elementRef.nativeElement||!this._isBrowser)return;let t=e.id+"-label",r=this._getCheckboxButtonId(e.id),o=this._elementRef.nativeElement.closest("label")??this._document.querySelector(`label[for="${r}"]`);if(!o)return;let g=o.id;this._renderer.setAttribute(o,"data-disabled",a?"true":"false"),this.mutableAriaLabelledby.set(g||t),(!g||g.length===0)&&this._renderer.setAttribute(o,"id",t)})}toggle(){if(this._state().disabled())return;this._onTouched(),this.touched.emit();let e=this.indeterminate()?!0:!this.checked();this.indeterminate.set(!1),this.checkedChange.emit(e),this.checked.set(e),this._onChange(e)}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).pipe(pe(this._destroyRef)).subscribe(e=>{e&&this._focused.set(!0),(e==="keyboard"||e==="program")&&(this._focusVisible.set(!0),this._cdr.markForCheck()),e||Promise.resolve().then(()=>{this._focusVisible.set(!1),this._focused.set(!1),this._onTouched(),this.touched.emit(),this._cdr.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_getCheckboxButtonId(e){return e?e.replace(new RegExp(st+"$"),""):null}writeValue(e){this.checked.set(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._state().disabled.set(e),this._cdr.markForCheck()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["brn-checkbox"]],viewQuery:function(a,t){a&1&&Z(t.checkbox,Nn,5),a&2&&V()},hostVars:17,hostBindings:function(a,t){a&2&&(v("id",t._state().id)("name",t._state().name)("aria-labelledby",null)("aria-label",null)("aria-describedby",null)("aria-invalid",t._invalid!=null&&t._invalid()?"true":null)("data-invalid",t._invalid!=null&&t._invalid()?"true":null)("data-matches-spartan-invalid",t.spartanInvalid!=null&&t.spartanInvalid()?"true":null)("data-touched",t._controlTouched!=null&&t._controlTouched()?"true":null)("data-dirty",t._dirty!=null&&t._dirty()?"true":null)("data-state",t._dataState())("data-focus-visible",t._focusVisible())("data-focus",t._focused())("data-disabled",t._state().disabled()),Ee(Ve(16,Fn)))},inputs:{checked:[1,"checked"],indeterminate:[1,"indeterminate"],id:[1,"id"],name:[1,"name"],class:[1,"class"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledby:[1,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[1,"aria-describedby","ariaDescribedby"],required:[1,"required"],disabled:[1,"disabled"],forceInvalid:[1,"forceInvalid"]},outputs:{checked:"checkedChange",checkedChange:"checkedChange",indeterminate:"indeterminateChange",touched:"touched"},features:[y([Hn,be(n)]),I([U])],ngContentSelectors:On,decls:3,vars:14,consts:[["checkBox",""],["role","checkbox","type","button",3,"click","disabled","tabIndex"]],template:function(a,t){if(a&1){let r=E();$(),Fe(0,"button",1,0),He("click",function(g){return O(r),g.preventDefault(),H(t.toggle(
1))}),Q(2),Oe()}a&2&&(T(t.class()),de("disabled",t._state().disabled())("tabIndex",t._state().disabled()?-1:0),v("id",t._buttonId())("name",t._buttonName())("aria-checked",t._ariaChecked())("aria-label",t.ariaLabel()||null)("aria-labelledby",t.mutableAriaLabelledby()||null)("aria-describedby",t.ariaDescribedby()||null)("data-state",t._dataState())("data-focus-visible",t._focusVisible())("data-focus",t._focused())("data-disabled",t._state().disabled()))},encapsulation:2,changeDetection:0})}return n})();var Rn={size:"base"},Ln=new G("HlmIconConfig");function nn(){return d(Ln,{optional:!0})??Rn}var Ce=(()=>{class n{_config=nn();size=s(this._config.size);_computedSize=m(()=>{let e=this.size();switch(e){case"xs":return"12px";case"sm":return"16px";case"base":return"24px";case"lg":return"32px";case"xl":return"48px";default:return e}});static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["ng-icon","hlmIcon",""],["ng-icon","hlm",""]],hostVars:2,hostBindings:function(a,t){a&2&&yt("--ng-icon__size",t._computedSize())},inputs:{size:[1,"size"]}})}return n})();function Pn(n,i){n&1&&(l(0,"span",1),F(1,"ng-icon",2),c())}var Un={provide:N,useExisting:x(()=>lt),multi:!0},lt=(()=>{class n{userClass=s("",{alias:"class"});_computedClass=m(()=>X("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 peer size-4 shrink-0 cursor-default rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",this.userClass(),this._disabled()?"cursor-not-allowed opacity-50":"",this._errorStateClass()));inputId=s(null);ariaLabel=s(null,{alias:"aria-label"});ariaLabelledby=s(null,{alias:"aria-labelledby"});ariaDescribedby=s(null,{alias:"aria-describedby"});checked=M(!1);checkedChange=P();indeterminate=M(!1);name=s(null);required=s(!1,{transform:f});disabled=s(!1,{transform:f});forceInvalid=s(!1,{transform:f});_disabled=B(this.disabled);_brnCheckbox=ae.required(Te);_spartanInvalid=m(()=>this.forceInvalid()||this._brnCheckbox().spartanInvalid?.());_errorStateClass=m(()=>this._spartanInvalid()?"border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40":"");_onChange;_onTouched;_handleChange(e){this._disabled()||(this.checked.set(e),this.checkedChange.emit(e),this._onChange?.(e))}writeValue(e){this.checked.set(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled.set(e)}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["hlm-checkbox"]],viewQuery:function(a,t){a&1&&Z(t._brnCheckbox,Te,5),a&2&&V()},hostAttrs:["data-slot","checkbox",1,"contents","peer"],hostVars:3,hostBindings:function(a,t){a&2&&v("aria-label",null)("aria-labelledby",null)("data-disabled",t._disabled()?"":null)},inputs:{userClass:[1,"class","userClass"],inputId:[1,"inputId"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledby:[1,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[1,"aria-describedby","ariaDescribedby"],checked:[1,"checked"],indeterminate:[1,"indeterminate"],name:[1,"name"],required:[1,"required"],disabled:[1,"disabled"],forceInvalid:[1,"forceInvalid"]},outputs:{checked:"checkedChange",checkedChange:"checkedChange",indeterminate:"indeterminateChange"},features:[y([Un],[_e({lucideCheck:Et})]),I([Qe])],decls:2,vars:13,consts:[[3,"indeterminateChange","checkedChange","touched","id","name","checked","indeterminate","disabled","required","aria-label","aria-labelledby","aria-describedby","forceInvalid"],[1,"flex","items-center","justify-center","text-current","transition-none"],["hlm","","size","14px","name","lucideCheck"]],template:function(a,t){a&1&&(l(0,"brn-checkbox",0),Pe("indeterminateChange",function(o){return Le(t.indeterminate,o)||(t.indeterminate=o),o}),_("checkedChange",function(o){return t._handleChange(o)})("touched",function(){return t._onTouched==null?null:t._onTouched()}),w(1,Pn,2,0,"span",1),c()),a&2&&(T(t._computedClass()),h("id",t.inputId())("name",t.name())("checked",t.checked()),Re("indeterminate",t.indeterminate),h("disabled",t._disabled())("required",t.required()),fe("aria-label",t.ariaLabel())("aria-labelledby",t.ariaLabelledby())("aria-describedby",t.ariaDescribedby()),h("forceInvalid",t.forceInvalid()),u(
1),S(t.checked()||t.indeterminate()?1:-1))},dependencies:[Te,De,Ce],encapsulation:2,changeDetection:0})}return n})();var Vn=["*"],yi=(()=>{class n{checked=!1;disabled=!1;indeterminate=!1;color="primary";change=new q;cvaOnChange=()=>{};onTouched=()=>{};onCheckedChange(e){this.checked=e,this.indeterminate=!1,this.cvaOnChange(e),this.change.emit({source:this,checked:e})}writeValue(e){this.checked=!!e}registerOnChange(e){this.cvaOnChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["factory-checkbox"]],inputs:{checked:[2,"checked","checked",f],disabled:[2,"disabled","disabled",f],indeterminate:[2,"indeterminate","indeterminate",f],color:"color"},outputs:{change:"change"},features:[y([{provide:N,useExisting:x(()=>n),multi:!0}])],ngContentSelectors:Vn,decls:4,vars:3,consts:[[1,"factory-checkbox__wrap"],[3,"checkedChange","touched","checked","disabled","indeterminate"],[1,"factory-checkbox__label"]],template:function(a,t){a&1&&($(),l(0,"label",0)(1,"hlm-checkbox",1),_("checkedChange",function(o){return t.onCheckedChange(o)})("touched",function(){return t.onTouched()}),c(),l(2,"span",2),Q(3),c()()),a&2&&(u(),h("checked",t.checked)("disabled",t.disabled)("indeterminate",t.indeterminate))},dependencies:[lt],styles:["[_nghost-%COMP%]{display:inline-flex}.factory-checkbox__wrap[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--df-space-xs);cursor:pointer;font-size:var(--df-font-size-sm);line-height:var(--df-line-height-sm)}[_nghost-%COMP%]:has([data-disabled=true])   .factory-checkbox__wrap[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}"]})}return n})();var Xe=class{create({day:i,hour:e,minute:a,month:t,second:r,year:o,millisecond:g}){let J=new Date;return new Date(o??J.getFullYear(),t??J.getMonth(),i??J.getDate(),e??J.getHours(),a??J.getMinutes(),r??J.getSeconds(),g??J.getMilliseconds())}now(){return new Date}set(i,e){return new Date(e.year??i.getFullYear(),e.month??i.getMonth(),e.day??i.getDate(),e.hour??i.getHours(),e.minute??i.getMinutes(),e.second??i.getSeconds(),e.millisecond??i.getMilliseconds())}add(i,e){return new Date(i.getFullYear()+(e.years??0),i.getMonth()+(e.months??0),i.getDate()+(e.days??0),i.getHours()+(e.hours??0),i.getMinutes()+(e.minutes??0),i.getSeconds()+(e.seconds??0),i.getMilliseconds()+(e.milliseconds??0))}subtract(i,e){return new Date(i.getFullYear()-(e.years??0),i.getMonth()-(e.months??0),i.getDate()-(e.days??0),i.getHours()-(e.hours??0),i.getMinutes()-(e.minutes??0),i.getSeconds()-(e.seconds??0),i.getMilliseconds()-(e.milliseconds??0))}compare(i,e){let a=i.getTime()-e.getTime();return a===0?0:a>0?1:-1}isEqual(i,e){return i.getTime()===e.getTime()}isBefore(i,e){return i.getTime()<e.getTime()}isAfter(i,e){return i.getTime()>e.getTime()}isSameDay(i,e){return this.isSameYear(i,e)&&this.isSameMonth(i,e)&&i.getDate()===e.getDate()}isSameMonth(i,e){return this.isSameYear(i,e)&&i.getMonth()===e.getMonth()}isSameYear(i,e){return i.getFullYear()===e.getFullYear()}getYear(i){return i.getFullYear()}getMonth(i){return i.getMonth()}getDay(i){return i.getDay()}getDate(i){return i.getDate()}getHours(i){return i.getHours()}getMinutes(i){return i.getMinutes()}getSeconds(i){return i.getSeconds()}getMilliseconds(i){return i.getMilliseconds()}startOfMonth(i){return new Date(i.getFullYear(),i.getMonth(),1)}endOfMonth(i){return new Date(i.getFullYear(),i.getMonth()+1,0)}startOfDay(i){return new Date(i.getFullYear(),i.getMonth(),i.getDate())}endOfDay(i){return new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,59,59,999)}getTime(i){return i.getTime()}};var an=new G("BrnDateAdapterToken");function Y(){return d(an,{optional:!0})??new Xe}function jn(n){return{provide:an,useClass:n}}function rn(){return jn(Xe)}var on=new G("BrnCalendarToken");function sn(n){return{provide:on,useExisting:n}}function ie(){return d(on)}var ve=(()=>{class n{_dateAdapter=Y();_calendar=ie();_elementRef=d(K);date=s.required();selected=m(()=>this._calendar.isSelected(this.date()));start=m(()=>this._calendar.isStartOfRange(this.date()));end=m(()=>this._calendar.isEndOfRange(this.date()));betweenRange=m(()=>this._calendar.isBetweenRange(this.date()));highlighted=m(()=>this._calendar.highlightDays().some(e=>this._dateAdapter.isSameDay(this.date(),e)));
1focusable=m(()=>this._dateAdapter.isSameDay(this._calendar.focusedDate(),this.date()));outside=m(()=>{let e=this._calendar.focusedDate();return!this._dateAdapter.isSameMonth(this.date(),e)});today=m(()=>this._dateAdapter.isSameDay(this.date(),this._dateAdapter.now()));disabled=m(()=>this._calendar.isDateDisabled(this.date())||this._calendar.disabled());focusPrevious(e){e.preventDefault(),e.stopPropagation();let a=this._dateAdapter.add(this._calendar.focusedDate(),{days:this.getDirection()==="rtl"?1:-1});this._calendar.setFocusedDate(a)}focusNext(e){e.preventDefault(),e.stopPropagation();let a=this._dateAdapter.add(this._calendar.focusedDate(),{days:this.getDirection()==="rtl"?-1:1});this._calendar.setFocusedDate(a)}focusAbove(e){e.preventDefault(),e.stopPropagation(),this._calendar.setFocusedDate(this._dateAdapter.subtract(this._calendar.focusedDate(),{days:7}))}focusBelow(e){e.preventDefault(),e.stopPropagation(),this._calendar.setFocusedDate(this._dateAdapter.add(this._calendar.focusedDate(),{days:7}))}focusFirst(e){e.preventDefault(),e.stopPropagation(),this._calendar.setFocusedDate(this._dateAdapter.startOfMonth(this._calendar.focusedDate()))}focusLast(e){e.preventDefault(),e.stopPropagation(),this._calendar.setFocusedDate(this._dateAdapter.endOfMonth(this._calendar.focusedDate()))}focusPreviousMonth(e){e.preventDefault(),e.stopPropagation();let a=this._dateAdapter.getDate(this._calendar.focusedDate()),t=this._dateAdapter.startOfMonth(this._calendar.focusedDate());t=this._dateAdapter.subtract(t,{months:1});let r=this._dateAdapter.endOfMonth(t);a>this._dateAdapter.getDate(r)?this._calendar.setFocusedDate(r):this._calendar.setFocusedDate(this._dateAdapter.set(t,{day:a}))}focusNextMonth(e){e.preventDefault(),e.stopPropagation();let a=this._dateAdapter.getDate(this._calendar.focusedDate()),t=this._dateAdapter.startOfMonth(this._calendar.focusedDate());t=this._dateAdapter.add(t,{months:1});let r=this._dateAdapter.endOfMonth(t);a>this._dateAdapter.getDate(r)?this._calendar.setFocusedDate(r):this._calendar.setFocusedDate(this._dateAdapter.set(t,{day:a}))}getDirection(){return getComputedStyle(this._elementRef.nativeElement).direction==="rtl"?"rtl":"ltr"}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["button","brnCalendarCellButton",""]],hostAttrs:["role","gridcell","type","button"],hostVars:12,hostBindings:function(a,t){a&1&&_("click",function(){return t._calendar.selectDate(t.date())})("keydown.arrowLeft",function(o){return t.focusPrevious(o)})("keydown.arrowRight",function(o){return t.focusNext(o)})("keydown.arrowUp",function(o){return t.focusAbove(o)})("keydown.arrowDown",function(o){return t.focusBelow(o)})("keydown.home",function(o){return t.focusFirst(o)})("keydown.end",function(o){return t.focusLast(o)})("keydown.pageUp",function(o){return t.focusPreviousMonth(o)})("keydown.pageDown",function(o){return t.focusNextMonth(o)}),a&2&&(de("tabIndex",t.focusable()?0:-1)("disabled",t.disabled()),v("data-outside",!t.selected()&&t.outside()&&!t.end()&&!t.start()?"":null)("data-today",t.today()&&!t.selected()?"":null)("data-selected",t.selected()?"":null)("data-disabled",t.disabled()?"":null)("aria-selected",t.selected()?"true":null)("aria-disabled",t.disabled()?"true":null)("data-range-start",t.start()?"":null)("data-range-end",t.end()?"":null)("data-highlighted",t.highlighted()?"":null)("data-range-between",t.betweenRange()?"":null))},inputs:{date:[1,"date"]}})}return n})(),Yn=0,ye=(()=>{class n{id=s(`brn-calendar-header-${++Yn}`);static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarHeader",""]],hostAttrs:["aria-live","polite","role","presentation"],hostVars:1,hostBindings:function(a,t){a&2&&de("id",t.id())},inputs:{id:[1,"id"]}})}return n})(),ct=new G("BrnCalendarI18nToken");var qn={formatWeekdayName:n=>["Su","Mo","Tu","We","Th","Fr","Sa"][n],months:()=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],years:(n=1925,i=new Date().getFullYear()+1)=>Array.from({length:i-n+1},(e,a)=>n+a),formatHeader:(n,i)=>new Date(i,n).toLocaleDateString(void 0,{month:"long",year:"numeric"}),formatMonth:n=>new Date(2e3,n).toLocaleDateString(void 0,{month:"short"}),formatYear:n=>new Date(n,0).toLocaleDateString(void 0,{year:"numeric"}),labelPrevious:()=>"Go to the previous month",labelNext:()=>"Go to the next month",labelWeekday:n=>
1["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][n],firstDayOfWeek:()=>0};function re(){return d(ct,{optional:!0})??d(ut)}var ut=(()=>{class n{_config=A(qn);config=this._config.asReadonly();use(e){this._config.set(ke(ke({},this.config()),e))}static \u0275fac=function(a){return new(a||n)};static \u0275prov=Ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),xe=(()=>{class n{_i18n=re();_dateAdapter=Y();_changeDetector=d(j);_injector=d(ue);highlightDays=s([]);min=s();max=s();disabled=s(!1,{transform:f});date=M();dateDisabled=s(()=>!1);weekStartsOn=s(void 0,{transform:e=>e==null?void 0:ce(e)});_weekStartsOn=m(()=>this.weekStartsOn()??this._i18n.config().firstDayOfWeek());defaultFocusedDate=s();header=it(ye);_cells=rt(ve,{descendants:!0});focusedDate=B(()=>this.constrainDate(this.defaultFocusedDate()??this.date()??this._dateAdapter.now()));days=m(()=>{let e=this._weekStartsOn(),a=this.focusedDate(),t=[],r=this._dateAdapter.startOfMonth(a),o=this._dateAdapter.endOfMonth(a);for(;this._dateAdapter.getDay(r)!==e;)r=this._dateAdapter.subtract(r,{days:1});let g=(e+6)%7;for(;this._dateAdapter.getDay(o)!==g;)o=this._dateAdapter.add(o,{days:1});for(;r<=o;)t.push(r),r=this._dateAdapter.add(r,{days:1});return t});constrainDate(e){let a=this.min(),t=this.max();return!a&&!t?e:a&&this._dateAdapter.isBefore(e,this._dateAdapter.startOfDay(a))?a:t&&this._dateAdapter.isAfter(e,this._dateAdapter.endOfDay(t))?t:e}isDateDisabled(e){if(this.disabled())return!0;let a=this.min(),t=this.max();return!!(a&&this._dateAdapter.isBefore(e,this._dateAdapter.startOfDay(a))||t&&this._dateAdapter.isAfter(e,this._dateAdapter.endOfDay(t))||this.dateDisabled()(e))}isSelected(e){let a=this.date();return a!==void 0&&this._dateAdapter.isSameDay(e,a)}selectDate(e){this.isSelected(e)?this.date.set(void 0):this.date.set(e),this.focusedDate.set(e)}setFocusedDate(e){this.isDateDisabled(e)||(this.focusedDate.set(e),Ke({write:()=>{let a=this._cells().find(t=>this._dateAdapter.isSameDay(t.date(),e));a&&a.focus()}},{injector:this._injector}),this._changeDetector.detectChanges())}isStartOfRange(e){return!1}isEndOfRange(e){return!1}isBetweenRange(e){return!1}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendar",""]],contentQueries:function(a,t,r){a&1&&(Se(r,t.header,ye,5),Se(r,t._cells,ve,5)),a&2&&V(2)},inputs:{highlightDays:[1,"highlightDays"],min:[1,"min"],max:[1,"max"],disabled:[1,"disabled"],date:[1,"date"],dateDisabled:[1,"dateDisabled"],weekStartsOn:[1,"weekStartsOn"],defaultFocusedDate:[1,"defaultFocusedDate"]},outputs:{date:"dateChange"},features:[y([sn(n)])]})}return n})(),dn=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarCell",""]],hostAttrs:["role","presentation"]})}return n})(),ln=(()=>{class n{_calendar=ie();static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarGrid",""]],hostAttrs:["role","grid"],hostVars:1,hostBindings:function(a,t){if(a&2){let r;v("aria-labelledby",(r=t._calendar.header())==null?null:r.id())}}})}return n})(),cn=(()=>{class n{_select=d(ot);_calendar=ie();_dateAdapter=Y();_i18n=re();_selectedMonth=m(()=>this._i18n.config().months()[this._dateAdapter.getMonth(this._calendar.focusedDate())]);constructor(){le(()=>{this._select.writeValue(this._selectedMonth())})}monthSelected(e){let a=this._i18n.config().months().findIndex(r=>r===e),t=this._dateAdapter.set(this._calendar.focusedDate(),{month:a});this._calendar.focusedDate.set(t)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["brnSelect","brnCalendarMonthSelect",""],["hlm-select","brnCalendarMonthSelect",""]],hostBindings:function(a,t){a&1&&_("valueChange",function(o){return t.monthSelected(o)})}})}return n})(),un=(()=>{class n{_calendar=ie();_dateAdapter=Y();_i18n=re();focusNextMonth(){let e=this._calendar.focusedDate(),a=this._dateAdapter.getDate(e),t=this._dateAdapter.startOfMonth(e);t=this._dateAdapter.add(t,{months:1});let r=this._dateAdapter.endOfMonth(t),o;a>this._dateAdapter.getDate(r)?o=r:o=this._dateAdapter.set(t,{day:a});let g=this._calendar.constrainDate(o);if(this._dateAdapter.isSameMonth(g,o)){this._calendar.focusedDate.set(g);return}this._calendar.focusedDate.set(o)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarNextButton",""]],hostAttrs:["type","button","data-slot","calendar-next-button"],hostVars:1,hostBindings:function(a,t){a&1&&_("click",function(){return t.focusNextMonth()}),a&2&&v("aria-label",t._i18n.config().labelNext())}})}return n})(),mn=(()=>{class n{_calendar=ie();_dateAdapter=Y();_i18n=re();focusPreviousMonth(){let e=this._calendar.focusedDate(),a=this._dateAdapter.getDate(e),t=this._dateAdapter.startOfMonth(e);t=this._dateAdapter.subtract(t,{months:1});let r=this._dateAdapter.endOfMonth(t),o;a>this._dateAdapter.getDate(r)?o=r:o=this._dateAdapter.set(t,{day:a});let g=this._calendar.constrainDate(o);if(this._dateAdapter.isSameMonth(g,o)){this._calendar.focusedDate.set(g);return}this._calendar.focusedDate.set(o)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarPreviousButton",""]],hostAttrs:["type","button","data-slot","calendar-previous-button"],hostVars:1,hostBindings:function(a,t){a&1&&_("click",function(){return t.focusPreviousMonth()}),a&2&&v("aria-label",t._i18n.config().labelPrevious())}})}return n})(),hn=(()=>{class n{_calendar=ie();
1_viewContainerRef=d(Ze);_changeDetector=d(j);_templateRef=d(we);_weeks=m(()=>{let e=this._calendar.days(),a=[];for(let t=0;t<e.length;t+=7)a.push(e.slice(t,t+7));return a});_viewRefs=[];static ngTemplateContextGuard(e,a){return!0}constructor(){le(()=>{let e=this._weeks();at(()=>this._renderWeeks(e))})}_renderWeeks(e){for(let a of this._viewRefs)a.destroy();this._viewRefs=[];for(let a of e){let t=this._viewContainerRef.createEmbeddedView(this._templateRef,{$implicit:a});this._viewRefs.push(t)}this._changeDetector.detectChanges()}ngOnDestroy(){for(let e of this._viewRefs)e.destroy()}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarWeek",""]]})}return n})(),fn=(()=>{class n{_calendar=ie();_dateAdapter=Y();_viewContainerRef=d(Ze);_changeDetector=d(j);_templateRef=d(we);_weekdays=m(()=>this._calendar.days().slice(0,7));_viewRefs=[];static ngTemplateContextGuard(e,a){return!0}constructor(){le(()=>{let e=this._weekdays();at(()=>this._renderWeekdays(e))})}_renderWeekdays(e){for(let a of this._viewRefs)a.destroy();this._viewRefs=[];for(let a of e){let t=this._viewContainerRef.createEmbeddedView(this._templateRef,{$implicit:this._dateAdapter.getDay(a)});this._viewRefs.push(t)}this._changeDetector.detectChanges()}ngOnDestroy(){for(let e of this._viewRefs)e.destroy()}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarWeekday",""]]})}return n})(),pn=(()=>{class n{_select=d(ot);_calendar=ie();_dateAdapter=Y();_i18n=re();constructor(){le(()=>{this._select.writeValue(this._dateAdapter.getYear(this._calendar.focusedDate()))})}yearSelected(e){let a=this._dateAdapter.set(this._calendar.focusedDate(),{year:e});this._calendar.focusedDate.set(a)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["brnSelect","brnCalendarYearSelect",""],["hlm-select","brnCalendarYearSelect",""]],hostBindings:function(a,t){a&1&&_("valueChange",function(o){return t.yearSelected(o)})}})}return n})();var Bi=(()=>{class n{_i18n=re();_dateAdapter=Y();_changeDetector=d(j);_injector=d(ue);highlightDays=s([]);min=s();max=s();disabled=s(!1,{transform:f});dateDisabled=s(()=>!1);weekStartsOn=s(void 0,{transform:e=>e==null?void 0:ce(e)});_weekStartsOn=m(()=>this.weekStartsOn()??this._i18n.config().firstDayOfWeek());defaultFocusedDate=s();header=it(ye);_cells=rt(ve,{descendants:!0});focusedDate=B(()=>this.constrainDate(this.defaultFocusedDate()??this.startDate()??this._dateAdapter.now()));startDate=M();endDate=M();days=m(()=>{let e=this._weekStartsOn(),a=this.focusedDate(),t=[],r=this._dateAdapter.startOfMonth(a),o=this._dateAdapter.endOfMonth(a);for(;this._dateAdapter.getDay(r)!==e;)r=this._dateAdapter.subtract(r,{days:1});let g=(e+6)%7;for(;this._dateAdapter.getDay(o)!==g;)o=this._dateAdapter.add(o,{days:1});for(;r<=o;)t.push(r),r=this._dateAdapter.add(r,{days:1});return t});isSelected(e){let a=this.startDate(),t=this.endDate();if(!a&&!t)return!1;let r=a?this._dateAdapter.isSameDay(e,a):!1,o=t?this._dateAdapter.isSameDay(e,t):!1;return r||o}selectDate(e){let a=this.startDate(),t=this.endDate();if(!a&&!t){this.startDate.set(e);return}if(a&&!t){this._dateAdapter.isAfter(e,a)?this.endDate.set(e):this._dateAdapter.isBefore(e,a)?(this.startDate.set(e),this.endDate.set(a)):this._dateAdapter.isSameDay(e,a)&&this.endDate.set(e);return}this.startDate.set(e),this.endDate.set(void 0)}constrainDate(e){let a=this.min(),t=this.max();return!a&&!t?e:a&&this._dateAdapter.isBefore(e,this._dateAdapter.startOfDay(a))?a:t&&this._dateAdapter.isAfter(e,this._dateAdapter.endOfDay(t))?t:e}isDateDisabled(e){if(this.disabled())return!0;let a=this.min(),t=this.max();return!!(a&&this._dateAdapter.isBefore(e,this._dateAdapter.startOfDay(a))||t&&this._dateAdapter.isAfter(e,this._dateAdapter.endOfDay(t))||this.dateDisabled()(e))}setFocusedDate(e){this.isDateDisabled(e)||(this.focusedDate.set(e),Ke({write:()=>{let a=this._cells().find(t=>this._dateAdapter.isSameDay(t.date(),e));a&&a.focus()}},{injector:this._injector}),this._changeDetector.detectChanges())}isStartOfRange(e){let a=this.startDate();return a?this._dateAdapter.isSameDay(e,a):!1}isEndOfRange(e){let a=this.endDate();return a?this._dateAdapter.isSameDay(e,a):!1}isBetweenRange(e){let a=this.startDate(),t=this.endDate();return!a||!t?!1:this._dateAdapter.isAfter(e,a)&&this._dateAdapter.isBefore(e,t)&&!this._dateAdapter.isSameDay(e,a)&&!this._dateAdapter.isSameDay(e,t)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","brnCalendarRange",""]],contentQueries:function(a,t,r){a&1&&(Se(r,t.header,ye,5),Se(r,t._cells,ve,5)),a&2&&V(2)},inputs:{highlightDays:[1,"highlightDays"],min:[1,"min"],max:[1,"max"],disabled:[1,"disabled"],dateDisabled:[1,"dateDisabled"],weekStartsOn:[1,"weekStartsOn"],defaultFocusedDate:[1,"defaultFocusedDate"],startDate:[1,"startDate"],endDate:[1,"endDate"]},outputs:{startDate:"startDateChange",endDate:"endDateChange"},features:[y([sn(n)])]})}return n})();var bn=2021,gn=new Date(bn,0,4);function mt(n,i){let e=new Intl.DateTimeFormat(n,{month:i});return Array.from({length:12},(a,t)=>_n(e.format(new Date(bn,t,1))))}function zn(n){let i=new Intl.DateTimeFormat(n,{weekday:"long"});return Array.from({length:7},(e,a)=>{let t=new Date(gn);return t.setDate(gn.getDate()+a),_n(i.format(t))})}function _n(n){return n&&n.charAt(0).toUpperCase()+n.slice(1)}function Ei(n,i="long"){return mt(n,i)}function $n(n,i,e){let a=mt(n,"long"),t=mt(n,"short"),r=zn(n);return{years:(o=new Date().getFullYear()-100,g=new Date().getFullYear()+1)=>Array.from({length:g-o+1},(J,Bn)=>o+Bn),formatHeader:(o,g)=>`${a[o]??""} ${g}`,formatMonth:o=>t[o]??"",formatYear:o=>`${o}`,labelPrevious:()=>i,labelNext:()=>e,labelWeekday:o=>r[o]??"",formatWeekdayName:o=>(r[o]??"").charAt(0),months:()=>t,firstDayOfWeek:()=>1}}function Dn(){return{provide:ct,useFactory:()=>{let n=d(Mt),i=new ut;return i.use($n(d(je),n.translate("ui.calendar.previousMonth"),n.translate("ui.calendar.nextMonth"))),i}}}function Je(n,i){return n instanceof Date?n.toLocaleDateString(i):`${n}`}function Ri(n,i){let[e,a]=n??[],t=e?Je(e,i):"",r=a?Je(a,i):"";return t&&r?`${t} \u2013 ${r}`:t||r}function Qn(n,i){return this._dateAdapter.getTime(i)}
1function Gn(n,i){if(n&1&&(l(0,"hlm-select-item",22),C(1),c()),n&2){let e=i.$implicit;h("value",e),u(),R(e)}}function Xn(n,i){if(n&1&&(l(0,"hlm-select-content",21)(1,"hlm-select-group"),oe(2,Gn,2,2,"hlm-select-item",22,tt),c()()),n&2){let e=p(2);u(2),se(e._i18n.config().months())}}function Jn(n,i){if(n&1&&(l(0,"hlm-select",18)(1,"hlm-select-trigger",19),F(2,"hlm-select-value"),c(),W(3,Xn,4,0,"hlm-select-content",20),c()),n&2){let e=p();u(),T(e._selectClass)}}function Kn(n,i){if(n&1&&(l(0,"hlm-select-item",22),C(1),c()),n&2){let e=i.$implicit;h("value",e),u(),R(e)}}function Zn(n,i){if(n&1&&(l(0,"hlm-select-content",21)(1,"hlm-select-group"),oe(2,Kn,2,2,"hlm-select-item",22,tt),c()()),n&2){let e=p(2);u(2),se(e._i18n.config().years())}}function ea(n,i){if(n&1&&(l(0,"hlm-select",23)(1,"hlm-select-trigger",19),F(2,"hlm-select-value"),c(),W(3,Zn,4,0,"hlm-select-content",20),c()),n&2){let e=p();u(),T(e._selectClass)}}function ta(n,i){if(n&1&&z(0,24)(1,24),n&2){p();let e=ee(6),a=ee(8);h("ngTemplateOutlet",e),u(),h("ngTemplateOutlet",a)}}function na(n,i){if(n&1&&(z(0,24),l(1,"div",7),C(2),c()),n&2){p();let e=ee(6),a=Ue(9);h("ngTemplateOutlet",e),u(2),R(a.year)}}function aa(n,i){if(n&1&&(l(0,"div",7),C(1),c(),z(2,24)),n&2){p();let e=ee(8),a=Ue(9);u(),R(a.month),u(),h("ngTemplateOutlet",e)}}function ia(n,i){if(n&1&&(l(0,"div",7),C(1),c()),n&2){p();let e=Ue(9);u(),R(e.header)}}function ra(n,i){if(n&1&&(l(0,"th",25),C(1),c()),n&2){let e=i.$implicit,a=p();v("aria-label",a._i18n.config().labelWeekday(e)),u(),L(" ",a._i18n.config().formatWeekdayName(e)," ")}}function oa(n,i){if(n&1&&(l(0,"td",27)(1,"button",28),C(2),c()()),n&2){let e=i.$implicit,a=p(2);u(),T(a._btnClass),h("date",e),u(),L(" ",a._dateAdapter.getDate(e)," ")}}function sa(n,i){if(n&1&&(l(0,"tr",26),oe(1,oa,3,4,"td",27,Qn,!0),c()),n&2){let e=i.$implicit;u(),se(e)}}var Cn=(()=>{class n{calendarClass=s("");_computedCalenderClass=m(()=>X("spartan-calendar rounded-md border p-3",this.calendarClass()));_i18n=re();_dateAdapter=Y();highlightDays=s([]);min=s();max=s();captionLayout=s("label");disabled=s(!1,{transform:f});date=M();dateDisabled=s(()=>!1);weekStartsOn=s(void 0,{transform:e=>ce(e)});defaultFocusedDate=s();_calendar=ae.required(xe);_heading=m(()=>{let e=this._i18n.config(),a=this._calendar().focusedDate();return{header:e.formatHeader(this._dateAdapter.getMonth(a),this._dateAdapter.getYear(a)),month:e.formatMonth(this._dateAdapter.getMonth(a)),year:e.formatYear(this._dateAdapter.getYear(a))}});_btnClass=X(Ut({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100","data-[outside]:text-muted-foreground data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:opacity-30","data-[today]:bg-accent data-[today]:text-accent-foreground","data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary dark:hover:text-accent-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground","data-[disabled]:text-muted-foreground data-[disabled]:opacity-50","dark:hover:text-accent-foreground","data-[highlighted]:before:content-['']","data-[highlighted]:before:absolute","data-[highlighted]:before:bottom-1","data-[highlighted]:before:left-1/2","data-[highlighted]:before:h-1","data-[highlighted]:before:w-1","data-[highlighted]:before:-translate-x-1/2","data-[highlighted]:before:rounded-full","data-[highlighted]:before:bg-destructive");_selectClass="gap-0 px-1.5 py-2 [&>ng-icon]:ml-1";static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["hlm-calendar"]],viewQuery:function(a,t){a&1&&Z(t._calendar,xe,5),a&2&&V()},inputs:{calendarClass:[1,"calendarClass"],highlightDays:[1,"highlightDays"],min:[1,"min"],max:[1,"max"],captionLayout:[1,"captionLayout"],disabled:[1,"disabled"],date:[1,"date"],dateDisabled:[1,"dateDisabled"],weekStartsOn:[1,"weekStartsOn"],defaultFocusedDate:[1,"defaultFocusedDate"]},outputs:{date:"dateChange"},features:[y([],[_e({lucideChevronLeft:Lt,lucideChevronRight:Pt})])],decls:25,vars:12,consts:[["month",""],["year",""],["brnCalendar","",3,"dateChange","min","max","disabled","date","dateDisabled","weekStartsOn","highlightDays","defaultFocusedDate"],[1,"inline-flex","flex-col","space-y-4"],[1,"space-y-4"],[1,"relative","flex","items-center","justify-center","pt-1"],[1,"flex","w-full","items-center","justify-center","gap-1.5"],["brnCalendarHeader","",1,"spartan-calendar-caption-label","text-sm","font-medium"],[1,"flex","items-center","space-x-1"],["brnCalendarPreviousButton","",1,"focus-visible:ring-ring","hover:bg-accent","hover:text-accent-foreground","text-popover-foreground","absolute","left-1","inline-flex","
1size-8","items-center","justify-center","rounded-md","bg-transparent","p-0","text-sm","font-medium","whitespace-nowrap","transition-colors","hover:opacity-100","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:outline-none","disabled:pointer-events-none","disabled:opacity-50"],["hlm","","name","lucideChevronLeft","size","sm"],["brnCalendarNextButton","",1,"focus-visible:ring-ring","hover:bg-accent","hover:text-accent-foreground","text-popover-foreground","absolute","right-1","inline-flex","size-8","items-center","justify-center","rounded-md","bg-transparent","p-0","text-sm","font-medium","whitespace-nowrap","transition-colors","hover:opacity-100","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:outline-none","disabled:pointer-events-none","disabled:opacity-50"],["hlm","","name","lucideChevronRight","size","sm"],["brnCalendarGrid","",1,"w-full","border-collapse","space-y-1"],[1,"flex"],["scope","col","class","text-muted-foreground w-8 rounded-md text-[0.8rem] font-normal",4,"brnCalendarWeekday"],["role","rowgroup"],["class","mt-2 flex w-full",4,"brnCalendarWeek"],["brnCalendarMonthSelect",""],["size","sm"],["class","max-h-80",4,"hlmSelectPortal"],[1,"max-h-80"],[3,"value"],["brnCalendarYearSelect",""],[3,"ngTemplateOutlet"],["scope","col",1,"text-muted-foreground","w-8","rounded-md","text-[0.8rem]","font-normal"],[1,"mt-2","flex","w-full"],["brnCalendarCell","",1,"data-[selected]:data-[outside]:bg-accent/50","data-[selected]:bg-accent","relative","size-8","p-0","text-center","text-sm","focus-within:relative","focus-within:z-20","first:data-[selected]:rounded-l-md","last:data-[selected]:rounded-r-md","[&:has([aria-selected].day-range-end)]:rounded-r-md"],["brnCalendarCellButton","",3,"date"]],template:function(a,t){if(a&1){let r=E();l(0,"div",2),Pe("dateChange",function(g){return O(r),Le(t.date,g)||(t.date=g),H(g)}),l(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6),W(5,Jn,4,2,"ng-template",null,0,Me)(7,ea,4,2,"ng-template",null,1,Me),wt(9),w(10,ta,2,2)(11,na,3,2)(12,aa,3,2)(13,ia,2,1,"div",7),c(),l(14,"div",8)(15,"button",9),F(16,"ng-icon",10),c(),l(17,"button",11),F(18,"ng-icon",12),c()()()(),l(19,"table",13)(20,"thead")(21,"tr",14),W(22,ra,2,2,"th",15),c()(),l(23,"tbody",16),W(24,sa,3,0,"tr",17),c()()()()}if(a&2){let r;T(t._computedCalenderClass()),h("min",t.min())("max",t.max())("disabled",t.disabled()),Re("date",t.date),h("dateDisabled",t.dateDisabled())("weekStartsOn",t.weekStartsOn())("highlightDays",t.highlightDays())("defaultFocusedDate",t.defaultFocusedDate()),u(9),St(t._heading()),u(),S((r=t.captionLayout())==="dropdown"?10:r==="dropdown-months"?11:r==="dropdown-years"?12:r==="label"?13:-1)}},dependencies:[ve,ln,ye,un,mn,hn,fn,xe,dn,cn,pn,De,Ce,Yt,qt,Wt,zt,$t,Qt,Gt,qe],encapsulation:2,changeDetection:0})}return n})();var yn=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","hlmPopover",""],["hlm-popover"]],features:[I([{directive:Ft,inputs:["align","align","autoFocus","autoFocus","attachTo","attachTo","closeDelay","closeDelay","closeOnOutsidePointerEvents","closeOnOutsidePointerEvents","offsetX","offsetX","restoreFocus","restoreFocus","sideOffset","sideOffset","state","state"],outputs:["stateChanged","stateChanged","closed","closed"]}])]})}return n})();var kn=(()=>{class n{_stateProvider=Tt({host:!0});state=this._stateProvider.state??A("closed");_renderer=d(he);_element=d(K);constructor(){le(()=>{this._renderer.setAttribute(this._element.nativeElement,"data-state",this.state())}),Ge(()=>"border-border bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative flex w-72 flex-col rounded-md border p-4 shadow-md outline-none")}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","hlmPopoverContent",""],["hlm-popover-content"]]})}return n})();var wn=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","hlmPopoverPortal",""]],features:[I([{directive:Ot,inputs:["context","context","class","class"]}])]})}return n})();var Sn=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["button","hlmPopoverTrigger",""],["button","hlmPopoverTriggerFor",""]],hostAttrs:["data-slot","popover-trigger"],features:[I([{directive:Ht,inputs:["id","id","brnPopoverTriggerFor","hlmPopoverTriggerFor","type","type"]}])]})}return n})();function ma(){return{formatDate:n=>n instanceof Date?n.toDateString():`${n}`,transformDate:n=>n,autoCloseOnSelect:!1}}var ha=new G("HlmDatePickerConfig");function Mn(){let n=d(ha,{optional:!0});return n||ma()}var fa=["*"];function pa(n,i){n&1&&C(0),n&2&&L(" ",i," ")}function ga(n,i){n&1&&Q(0)}
1function ba(n,i){if(n&1){let e=E();l(0,"hlm-popover-content",5)(1,"hlm-calendar",6),_("dateChange",function(t){O(e);let r=p();return H(r._handleChange(t))}),c()()}if(n&2){let e=p();u(),h("captionLayout",e.captionLayout())("date",e._mutableDate())("min",e.min())("max",e.max())("disabled",e._mutableDisabled())}}var _a={provide:N,useExisting:x(()=>ht),multi:!0},Da=0,ht=(()=>{class n{_config=Mn();_fieldControl=d(U,{optional:!0});_invalid=this._fieldControl?.invalid;_spartanInvalid=this._fieldControl?.spartanInvalid;_dirty=this._fieldControl?.dirty;_touched=this._fieldControl?.touched;_errorStateClass=m(()=>this._spartanInvalid?.()?"border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40":"");_ariaInvalid=m(()=>this._invalid?.()?"true":null);userClass=s("",{alias:"class"});_computedClass=m(()=>X("spartan-date-picker-trigger ring-offset-background border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 inline-flex h-9 w-[280px] cursor-default items-center justify-between gap-2 rounded-md border px-3 py-2 text-left text-sm font-normal whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50","focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0",this._errorStateClass(),this.userClass()));buttonId=s(`hlm-date-picker-${++Da}`);captionLayout=s("label");min=s();max=s();disabled=s(!1,{transform:f});date=s();_mutableDate=B(this.date);autoCloseOnSelect=s(this._config.autoCloseOnSelect,{transform:f});formatDate=s(this._config.formatDate);transformDate=s(this._config.transformDate);_popoverState=A(null);_mutableDisabled=B(this.disabled);_formattedDate=m(()=>{let e=this._mutableDate();return e?this.formatDate()(e):void 0});dateChange=P();labelableId=this.buttonId;_onChange;_onTouched;_handleChange(e){if(this._mutableDisabled())return;let a=e!==void 0?this.transformDate()(e):e;this._mutableDate.set(a),this._onChange?.(a),this.dateChange.emit(a),this.autoCloseOnSelect()&&this._popoverState.set("closed")}writeValue(e){this._mutableDate.set(e?this.transformDate()(e):void 0)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._mutableDisabled.set(e)}open(){this._popoverState.set("open")}close(){this._popoverState.set("closed")}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["hlm-date-picker"]],hostAttrs:[1,"block"],inputs:{userClass:[1,"class","userClass"],buttonId:[1,"buttonId"],captionLayout:[1,"captionLayout"],min:[1,"min"],max:[1,"max"],disabled:[1,"disabled"],date:[1,"date"],autoCloseOnSelect:[1,"autoCloseOnSelect"],formatDate:[1,"formatDate"],transformDate:[1,"transformDate"]},outputs:{dateChange:"dateChange"},features:[y([_a,_e({lucideChevronDown:Rt}),be(n)]),I([U])],ngContentSelectors:fa,decls:7,vars:11,consts:[["sideOffset","5",3,"stateChanged","closed","state"],["type","button","hlmPopoverTrigger","","brnFieldControlDescribedBy","",3,"id","disabled"],[1,"truncate"],["hlm","","size","sm","name","lucideChevronDown"],["class","w-fit p-0",4,"hlmPopoverPortal"],[1,"w-fit","p-0"],["calendarClass","border-0 rounded-none",3,"dateChange","captionLayout","date","min","max","disabled"]],template:function(a,t){if(a&1&&($(),l(0,"hlm-popover",0),_("stateChanged",function(o){return t._popoverState.set(o)})("closed",function(){return t._onTouched==null?null:t._onTouched()}),l(1,"button",1)(2,"span",2),w(3,pa,1,1)(4,ga,1,0),c(),F(5,"ng-icon",3),c(),W(6,ba,2,5,"hlm-popover-content",4),c()),a&2){let r;h("state",t._popoverState()),u(),T(t._computedClass()),h("id",t.buttonId())("disabled",t._mutableDisabled()),v("aria-invalid",t._ariaInvalid())("data-invalid",t._ariaInvalid())("data-touched",t._touched!=null&&t._touched()?"true":null)("data-dirty",t._dirty!=null&&t._dirty()?"true":null)("data-matches-spartan-invalid",t._spartanInvalid!=null&&t._spartanInvalid()?"true":null),u(2),S((r=t._formattedDate())?3:4,r)}},dependencies:[De,Ce,Qe,yn,kn,wn,Sn,Cn],encapsulation:2,changeDetection:0})}return n})();
1function Ca(n,i){if(n&1){let e=E();l(0,"factory-icon-button",4),te(1,"transloco"),_("click",function(){O(e);let t=p();return H(t.clear())}),l(2,"factory-icon"),C(3,"close"),c()()}n&2&&fe("aria-label",ne(1,1,"ui.datepicker.effacerLaDate"))}var Lr=(()=>{class n extends Vt{locale=d(je);static idSequence=0;fieldId=`factory-datepicker-${n.idSequence++}`;formatDate=e=>Je(e,this.locale);placeholder="";min;max;startView="month";touchUi=!1;dateChange=new q;clearable=!1;cleared=new q;clear(){this.resolvedControl.setValue(null),this.cleared.emit()}onHlmDateChange(e){this.dateChange.emit({source:this,value:e??null})}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Be(n)))(t||n)}})();static \u0275cmp=D({type:n,selectors:[["factory-datepicker"]],inputs:{placeholder:"placeholder",min:"min",max:"max",startView:"startView",touchUi:[2,"touchUi","touchUi",f],clearable:[2,"clearable","clearable",f]},outputs:{dateChange:"dateChange",cleared:"cleared"},features:[y([rn(),Dn()]),_t],decls:5,vars:16,consts:[[3,"bare","label","controlId","hint","errorText","invalid","disabled","required"],["captionLayout","dropdown",1,"factory-datepicker__control","w-full",3,"dateChange","buttonId","formControl","min","max","autoCloseOnSelect","formatDate"],[1,"factory-datepicker__placeholder"],["factoryFieldSuffix","","type","button",3,"aria-label"],["factoryFieldSuffix","","type","button",3,"click","aria-label"]],template:function(a,t){a&1&&(l(0,"factory-field-shell",0)(1,"hlm-date-picker",1),_("dateChange",function(o){return t.onHlmDateChange(o)}),l(2,"span",2),C(3),c()(),w(4,Ca,4,3,"factory-icon-button",3),c()),a&2&&(h("bare",!0)("label",t.label)("controlId",t.fieldId)("hint",t.hint)("errorText",t.errorMessage)("invalid",t.showInvalid)("disabled",t.resolvedControl.disabled)("required",t.required),u(),h("buttonId",t.fieldId)("formControl",t.resolvedControl)("min",t.min??void 0)("max",t.max??void 0)("autoCloseOnSelect",!0)("formatDate",t.formatDate),u(2),R(t.placeholder),u(),S(t.clearable&&t.resolvedControl.value?4:-1))},dependencies:[Nt,It,Bt,ht,jt,Xt,$e,ge],styles:["[_nghost-%COMP%]{display:block;width:100%}"]})}return n})();var Tn=(()=>{class n{factoryStep="";factoryStepControl;factoryStepLabel;factoryStepOptional=!1;factoryStepEditable=!0;template=d(we);static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["","factoryStep",""]],inputs:{factoryStep:"factoryStep",factoryStepControl:"factoryStepControl",factoryStepLabel:"factoryStepLabel",factoryStepOptional:[2,"factoryStepOptional","factoryStepOptional",f],factoryStepEditable:[2,"factoryStepEditable","factoryStepEditable",f]}})}return n})();var xn=(n,i)=>({$implicit:n,index:i});function va(n,i){n&1&&F(0,"span",4)}function ya(n,i){if(n&1&&(w(0,va,1,0,"span",4),z(1,5)),n&2){let e=i.$implicit,a=i.$index;p(2);let t=ee(3);S(a>0?0:-1),u(),h("ngTemplateOutlet",t)("ngTemplateOutletContext",nt(3,xn,e,a))}}function ka(n,i){if(n&1&&z(0,3),n&2){let e=p(2);h("ngTemplateOutlet",i.template)("ngTemplateOutletInjector",e.stepInjector)}}function wa(n,i){if(n&1&&(l(0,"div",1),oe(1,ya,2,6,null,null,et),c(),l(3,"div",2),w(4,ka,1,2,"ng-container",3),c()),n&2){let e,a=p();u(),se(a.steps),u(3),S((e=a.steps[a.selectedIndex])?4:-1,e)}}function Sa(n,i){if(n&1&&z(0,3),n&2){let e=p().$implicit,a=p(2);h("ngTemplateOutlet",e.template)("ngTemplateOutletInjector",a.stepInjector)}}function Ma(n,i){if(n&1&&(l(0,"div",6),z(1,5),l(2,"div",7),w(3,Sa,1,2,"ng-container",3),c()()),n&2){let e=i.$implicit,a=i.$index,t=p(2),r=ee(3);u(),h("ngTemplateOutlet",r)("ngTemplateOutletContext",nt(5,xn,e,a)),u(),kt("factory-stepper__vertical-body--last",a===t.steps.length-1),u(),S(a===t.selectedIndex?3:-1)}}function Ta(n,i){if(n&1&&oe(0,Ma,4,8,"div",6,et),n&2){let e=p();se(e.steps)}}function xa(n,i){n&1&&(l(0,"factory-icon",10),C(1,"check"),c())}function Aa(n,i){if(n&1&&C(0),n&2){let e=p().index;L(" ",e+1," ")}}function Ia(n,i){if(n&1&&z(0,12),n&2){let e=p().$implicit;h("ngTemplateOutlet",e.factoryStepLabel)}}function Ba(n,i){if(n&1&&C(0),n&2){let e=p().$implicit;L(" ",e.factoryStep," ")}}function Na(n,i){n&1&&(l(0,"span",13),C(1),te(2,"transloco"),c()),n&2&&(u(),R(ne(2,1,"ui.stepper.optional")))}
1function Fa(n,i){if(n&1){let e=E();l(0,"button",8),_("click",function(){let t=O(e).index,r=p();return H(r.goTo(t))}),l(1,"span",9),w(2,xa,2,0,"factory-icon",10)(3,Aa,1,1),c(),l(4,"span",11),w(5,Ia,1,1,"ng-container",12)(6,Ba,1,1),w(7,Na,3,3,"span",13),c()()}if(n&2){let e=i.$implicit,a=i.index,t=p();v("aria-selected",a===t.selectedIndex)("data-active",a===t.selectedIndex?"":null)("data-completed",t.isCompleted(a)?"":null),u(2),S(t.isCompleted(a)&&a!==t.selectedIndex?2:3),u(3),S(e.factoryStepLabel?5:6),u(2),S(e.factoryStepOptional?7:-1)}}var ft=(()=>{class n{cdr=d(j);destroyRef=d(me);injector=d(ue);constructor(){this.stepInjector=ue.create({providers:[{provide:n,useValue:this}],parent:this.injector})}stepDirectives;linear=!1;orientation="vertical";selectedIndex=0;selectedIndexChange=new q;selectionChange=new q;steps=[];maxVisitedIndex=0;stepInjector;ngAfterContentInit(){this.steps=this.stepDirectives.toArray(),this.stepDirectives.changes.pipe(pe(this.destroyRef)).subscribe(()=>{this.steps=this.stepDirectives.toArray(),this.cdr.markForCheck()})}isCompleted(e){if(e>=this.selectedIndex&&e>this.maxVisitedIndex)return!1;let a=this.steps[e]?.factoryStepControl;return e<Math.max(this.selectedIndex,this.maxVisitedIndex)&&(!a||a.valid)}goTo(e){if(e===this.selectedIndex||e<0||e>=this.steps.length)return;if(e>this.selectedIndex&&this.linear)for(let t=this.selectedIndex;t<e;t++){let r=this.steps[t].factoryStepControl;if(r&&r.invalid){r.markAllAsTouched(),this.cdr.markForCheck();return}}if(e<this.selectedIndex&&this.steps[e]&&!this.steps[e].factoryStepEditable)return;let a=this.selectedIndex;this.selectedIndex=e,this.maxVisitedIndex=Math.max(this.maxVisitedIndex,e),this.selectedIndexChange.emit(e),this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:a}),this.cdr.markForCheck()}reset(){let e=this.selectedIndex;this.selectedIndex=0,this.maxVisitedIndex=0;for(let a of this.steps)a.factoryStepControl?.reset();this.selectedIndexChange.emit(0),this.selectionChange.emit({selectedIndex:0,previouslySelectedIndex:e}),this.cdr.markForCheck()}next(){this.goTo(this.selectedIndex+1)}previous(){this.goTo(this.selectedIndex-1)}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["factory-stepper"]],contentQueries:function(a,t,r){if(a&1&&Dt(r,Tn,4),a&2){let o;Ct(o=vt())&&(t.stepDirectives=o)}},hostAttrs:[1,"factory-stepper","block"],inputs:{linear:[2,"linear","linear",f],orientation:"orientation",selectedIndex:"selectedIndex"},outputs:{selectedIndexChange:"selectedIndexChange",selectionChange:"selectionChange"},exportAs:["factoryStepper"],decls:4,vars:1,consts:[["headerTemplate",""],["role","tablist",1,"factory-stepper__headers"],[1,"factory-stepper__body"],[3,"ngTemplateOutlet","ngTemplateOutletInjector"],["aria-hidden","true",1,"factory-stepper__connector"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"factory-stepper__vertical-step"],[1,"factory-stepper__vertical-body"],["type","button","role","tab",1,"factory-stepper__step-button",3,"click"],["aria-hidden","true",1,"factory-stepper__indicator"],[1,"factory-stepper__check"],[1,"factory-stepper__label"],[3,"ngTemplateOutlet"],[1,"factory-stepper__optional"]],template:function(a,t){a&1&&(w(0,wa,5,1)(1,Ta,2,0),W(2,Fa,8,6,"ng-template",null,0,Me)),a&2&&S(t.orientation==="horizontal"?0:1)},dependencies:[qe,$e,ge],encapsulation:2})}return n})();var ro=(()=>{class n{factoryStepper=d(ft,{optional:!0});onClick(){this.factoryStepper?.next()}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["factory-button","factoryStepperNext",""],["factory-icon-button","factoryStepperNext",""]],hostBindings:function(a,t){a&1&&_("click",function(){return t.onClick()})}})}return n})(),oo=(()=>{class n{factoryStepper=d(ft,{optional:!0});onClick(){this.factoryStepper?.previous()}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["factory-button","factoryStepperPrevious",""],["factory-icon-button","factoryStepperPrevious",""]],hostBindings:function(a,t){a&1&&_("click",function(){return t.onClick()})}})}return n})();var Oa=["switch"],Ha=()=>({display:"contents"}),Ea=[[["brn-switch-thumb"]]],Ra=["brn-switch-thumb"],La={provide:N,useExisting:x(()=>gt),multi:!0},pt="-switch",Pa=0,gt=(()=>{class n{_destroyRef=d(me);_renderer=d(he);_isBrowser=We(d(Ne));_elementRef=d(K);_focusMonitor=d(ze);_cdr=d(j);_document=d(Ie);
1_fieldControl=d(U,{optional:!0});_focusVisible=A(!1);_focused=A(!1);checked=M(!1);checkedChange=P();id=s(++Pa+"");name=s(null);class=s(null);ariaLabel=s(null,{alias:"aria-label"});ariaLabelledby=s(null,{alias:"aria-labelledby"});mutableAriaLabelledby=B(()=>this.ariaLabelledby());ariaDescribedby=s(null,{alias:"aria-describedby"});required=s(!1,{transform:f});disabled=s(!1,{transform:f});tabIndex=s(0,{transform:ce});touched=P();_onChange=()=>{};_onTouched=()=>{};switch=ae.required("switch");_state=m(()=>{let e=this.name(),a=this.id();return{disabled:A(this.disabled()),name:e?e+pt:null,id:a?a+pt:null}});controlState=this._fieldControl?.controlState;_invalid=this._fieldControl?.invalid;_touched=this._fieldControl?.touched;_dirty=this._fieldControl?.dirty;_spartanInvalid=this._fieldControl?.spartanInvalid;labelableId=m(()=>this.getSwitchButtonId(this._state().id));constructor(){Ye(()=>{let e=this._state(),a=e.disabled();if(!this._elementRef.nativeElement||!this._isBrowser)return;let t=e.id+"-label",r=this.getSwitchButtonId(e.id),o=this._elementRef.nativeElement.closest("label")??this._document.querySelector(`label[for="${r}"]`);if(!o)return;let g=o.id;this._renderer.setAttribute(o,"data-disabled",a?"true":"false"),this.mutableAriaLabelledby.set(g||t),(!g||g.length===0)&&this._renderer.setAttribute(o,"id",t)})}toggle(){this._state().disabled()||(this._onTouched(),this.touched.emit(),this.checked.update(e=>!e),this._onChange(this.checked()),this.checkedChange.emit(this.checked()))}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).pipe(pe(this._destroyRef)).subscribe(e=>{e&&this._focused.set(!0),(e==="keyboard"||e==="program")&&(this._focusVisible.set(!0),this._cdr.markForCheck()),e||Promise.resolve().then(()=>{this._focusVisible.set(!1),this._focused.set(!1),this._onTouched(),this.touched.emit(),this._cdr.markForCheck()})}),this.switch()&&(this.switch().nativeElement.value=this.checked()?"on":"off",this.switch().nativeElement.dispatchEvent(new Event("change")))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}getSwitchButtonId(e){return e?e.replace(new RegExp(pt+"$"),""):null}writeValue(e){this.checked.set(!!e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._state().disabled.set(e),this._cdr.markForCheck()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["brn-switch"]],viewQuery:function(a,t){a&1&&Z(t.switch,Oa,5),a&2&&V()},hostVars:16,hostBindings:function(a,t){a&2&&(v("id",t._state().id)("name",t._state().name)("aria-labelledby",null)("aria-label",null)("aria-describedby",null)("aria-invalid",t._invalid!=null&&t._invalid()?"true":null)("data-dirty",t._dirty!=null&&t._dirty()?"true":null)("data-touched",t._touched!=null&&t._touched()?"true":null)("data-matches-spartan-invalid",t._spartanInvalid!=null&&t._spartanInvalid()?"true":null)("data-state",t.checked()?"checked":"unchecked")("data-focus-visible",t._focusVisible())("data-focus",t._focused())("data-disabled",t._state().disabled()),Ee(Ve(15,Ha)))},inputs:{checked:[1,"checked"],id:[1,"id"],name:[1,"name"],class:[1,"class"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledby:[1,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[1,"aria-describedby","ariaDescribedby"],required:[1,"required"],disabled:[1,"disabled"],tabIndex:[1,"tabIndex"]},outputs:{checked:"checkedChange",checkedChange:"checkedChange",touched:"touched"},features:[y([La,be(n)]),I([U])],ngContentSelectors:Ra,decls:3,vars:19,consts:[["switch",""],["role","switch","type","button",3,"click","id","name","value","disabled","tabIndex"]],template:function(a,t){if(a&1){let r=E();$(Ea),Fe(0,"button",1,0),He("click",function(g){return O(r),g.preventDefault(),H(t.toggle())}),Q(2),Oe()}a&2&&(T(t.class()),de("id",t.getSwitchButtonId(t._state().id)??"")("name",t.getSwitchButtonId(t._state().name)??"")("value",t.checked()?"on":"off")("disabled",t._state().disabled())("tabIndex",t.tabIndex()),v("aria-checked",t.checked())("aria-label",t.ariaLabel()||null)("aria-labelledby",t.mutableAriaLabelledby()||null)("aria-describedby",t.ariaDescribedby()||null)("aria-invalid",t._invalid!=null&&t._invalid()?"true":null)("data-dirty",t._dirty!=null&&t._dirty()?"true":null)("data-touched",t._touched!=null&&t._touched()?"true":null)("data-matches-spartan-invalid",t._spartanInvalid!=null&&t._spartanInvalid()?"true":null)("data-state",t.checked()?"checked":"unchecked")("data-focus-visible",t._focusVisible())("data-focus",t._focused())("data-disabled",t._state().disabled()))},encapsulation:2,changeDetection:0})}return n})(),An=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["brn-switch-thumb"]],hostAttrs:["role","presentation"],hostBindings:function(a,t){a&1&&_("click",function(o){return o.preventDefault()})},decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0})}return n})();var In=(()=>{class n{constructor(){Ge(()=>"bg-background dark:group-data-[state=unchecked]:bg-foreground dark:group-data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform group-data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}static \u0275fac=function(a){return new(a||n)};static \u0275dir=b({type:n,selectors:[["brn-switch-thumb","hlm",""],["","hlmSwitchThumb",""]]})}return n})();var Ua={provide:N,useExisting:x(()=>bt),multi:!0},bt=(()=>{class n{userClass=s("",{alias:"class"});_computedClass=m(()=>X("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",this.userClass()));checked=M(!1);checkedChange=P();disabled=s(!1,{transform:f});inputId=s(null);ariaLabel=s(null,{alias:"aria-label"});ariaLabelledby=s(null,{alias:"aria-labelledby"});ariaDescribedby=s(null,{alias:"aria-describedby"});_disabled=B(this.disabled);_onChange;_onTouched;handleChange(e){this.checked.set(e),this._onChange?.(e),this.checkedChange.emit(e)}writeValue(e){this.checked.set(!!e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled.set(e)}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["hlm-switch"]],hostAttrs:[1,"contents"],hostVars:3,hostBindings:function(a,t){a&2&&v("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{userClass:[1,"class","userClass"],checked:[1,"checked"],disabled:[1,"disabled"],inputId:[1,"inputId"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledby:[1,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[1,"aria-describedby","ariaDescribedby"]},outputs:{checked:"checkedChange",checkedChange:"checkedChange"},features:[y([Ua])],decls:2,vars:8,consts:[[3,"checkedChange","touched","checked","disabled","id","aria-label","aria-labelledby","aria-describedby"],["hlm",""]],template:function(a,t){a&1&&(l(0,"brn-switch",0),_("checkedChange",function(o){return t.handleChange(o)})("touched",function(){return t._onTouched==null?null:t._onTouched()}),F(1,"brn-switch-thumb",1),c()),a&2&&(T(t._computedClass()),h("checked",t.checked())("disabled",t._disabled())("id",t.inputId()),fe("aria-label",t.ariaLabel())("aria-labelledby",t.ariaLabelledby())("aria-describedby",t.ariaDescribedby()))},dependencies:[An,gt,In],encapsulation:2,changeDetection:0})}return n})();var Va=["*"],Oo=(()=>{class n{checked=!1;disabled=!1;color="primary";id;name;change=new q;cvaOnChange=()=>{};onTouched=()=>{};onCheckedChange(e){this.checked=e,this.cvaOnChange(e),this.onTouched(),this.change.emit({source:this,checked:e})}writeValue(e){this.checked=!!e}registerOnChange(e){this.cvaOnChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["factory-slide-toggle"]],inputs:{checked:[2,"checked","checked",f],disabled:[2,"disabled","disabled",f],color:"color",id:"id",name:"name"},outputs:{change:"change"},features:[y([{provide:N,useExisting:x(()=>n),multi:!0}])],ngContentSelectors:Va,decls:4,vars:3,consts:[[1,"factory-slide-toggle__wrap"],[3,"checkedChange","checked","disabled","inputId"],[1,"factory-slide-toggle__label"]],template:function(a,t){a&1&&($(),l(0,"label",0)(1,"hlm-switch",1),_("checkedChange",function(o){return t.onCheckedChange(o)}),c(),l(2,"span",2),Q(3),c()()),a&2&&(u(),h("checked",t.checked)("disabled",t.disabled)("inputId",t.id??null))},dependencies:[bt],styles:["[_nghost-%COMP%]{display:inline-flex}.factory-slide-toggle__wrap[_ngcontent-%COMP%]{display:inline-flex;gap:var(--df-space-xs);cursor:pointer;font-size:var(--df-font-size-sm);line-height:var(--df-line-height-sm)}[_nghost-%COMP%]:has([data-disabled=true])   .factory-slide-toggle__wrap[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}"]})}return n})();
1function ja(n,i){if(n&1&&(l(0,"factory-button",4),C(1),te(2,"transloco"),c()),n&2){let e=p();h("factoryDialogClose",!1),u(),L(" ",e.data.textCancel?e.data.textCancel:ne(2,2,"common.cancel")," ")}}function Ya(n,i){if(n&1&&(l(0,"factory-button",5),C(1),te(2,"transloco"),c()),n&2){let e=p();h("color",e.data.action==="delete"?"warn":"accent")("factoryDialogClose",!0),u(),L(" ",e.data.textConfirm?e.data.textConfirm:ne(2,3,"common.confirm")," ")}}var jo=(()=>{class n{data=d(xt);showConfirmButton=!0;showCancel=!0;constructor(){let e=this.data;e.showConfirmButton!==void 0&&(this.showConfirmButton=e.showConfirmButton),e.showCancel!==void 0&&(this.showCancel=e.showCancel)}ngOnInit(){}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=D({type:n,selectors:[["ng-component"]],decls:9,vars:6,consts:[["factoryDialogTitle",""],["factoryDialogContent",""],[2,"white-space","break-spaces"],["factoryDialogActions",""],[3,"factoryDialogClose"],[3,"color","factoryDialogClose"]],template:function(a,t){a&1&&(l(0,"h2",0),C(1),te(2,"transloco"),c(),l(3,"div",1)(4,"p",2),C(5),c()(),l(6,"div",3),w(7,ja,3,4,"factory-button",4),w(8,Ya,3,5,"factory-button",5),c()),a&2&&(u(),R(t.data.title?t.data.title:ne(2,4,"ui.dialog.confirm.defaultTitle")),u(4),L(" ",t.data.message," "),u(2),S(t.showCancel?7:-1),u(),S(t.showConfirmButton?8:-1))},dependencies:[At,Jt,Kt,Zt,en,ge],encapsulation:2})}return n})();var Wo=(()=>{class n extends tn{collectionName="chats";static \u0275fac=(()=>{let e;return function(t){return(e||(e=Be(n)))(t||n)}})();static \u0275prov=Ae({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{Ce as a,yi as b,Y as c,rn as d,ve as e,ye as f,re as g,dn as h,ln as i,cn as j,un as k,mn as l,hn as m,fn as n,pn as o,Bi as p,yn as q,kn as r,wn as s,Sn as t,Ei as u,Dn as v,Ri as w,Lr as x,Tn as y,ft as z,ro as A,oo as B,Oo as C,jo as D,Wo as E};

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.