marketplacepos 5.33.7 → 5.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +134 -8
- package/Marketplace/chunk-23MIIDCT.js +2 -0
- package/Marketplace/chunk-2J4TQ5S7.js +1 -0
- package/Marketplace/chunk-2NECQ3RY.js +2 -0
- package/Marketplace/chunk-2NNAGGBO.js +1 -0
- package/Marketplace/chunk-2TAZ7EVF.js +1 -0
- package/Marketplace/chunk-37YRCS7N.js +1 -0
- package/Marketplace/chunk-3NMGN7IE.js +2 -0
- package/Marketplace/chunk-3RK6DDJD.js +0 -0
- package/Marketplace/chunk-45NCWWK5.js +2 -0
- package/Marketplace/chunk-4JRXTPAH.js +1 -0
- package/Marketplace/chunk-4RAOUTR2.js +5 -0
- package/Marketplace/chunk-4W7MIJDZ.js +1 -0
- package/Marketplace/chunk-52GRE6TF.js +2 -0
- package/Marketplace/chunk-5BTJTFLF.js +1 -0
- package/Marketplace/chunk-5UHZLNDT.js +1 -0
- package/Marketplace/chunk-5WNSX64O.js +1 -0
- package/Marketplace/chunk-5Z63CRGG.js +2 -0
- package/Marketplace/chunk-67USXWWF.js +1 -0
- package/Marketplace/chunk-6A4PYMCJ.js +1 -0
- package/Marketplace/chunk-6HVHZ3HN.js +1 -0
- package/Marketplace/chunk-72WUBVEI.js +5 -0
- package/Marketplace/chunk-77IUCPIQ.js +1 -0
- package/Marketplace/chunk-7M4RYU7S.js +1 -0
- package/Marketplace/chunk-7UTZLQI6.js +5 -0
- package/Marketplace/chunk-A46FZGKG.js +5 -0
- package/Marketplace/chunk-AFMNWVBL.js +1 -0
- package/Marketplace/chunk-AI4XRCAL.js +1 -0
- package/Marketplace/chunk-AKJ4I7KF.js +3 -0
- package/Marketplace/chunk-ARIW575T.js +1 -0
- package/Marketplace/chunk-AUGXMJYD.js +1 -0
- package/Marketplace/chunk-B5JAZPVU.js +153 -0
- package/Marketplace/chunk-B6POIFQM.js +2 -0
- package/Marketplace/chunk-BSATGCWC.js +2 -0
- package/Marketplace/chunk-CGGZVOPZ.js +1 -0
- package/Marketplace/chunk-D2R7H4PZ.js +3 -0
- package/Marketplace/chunk-DAM3G2L2.js +1 -0
- package/Marketplace/chunk-DG3PIXFJ.js +1 -0
- package/Marketplace/chunk-E24BKGBJ.js +2 -0
- package/Marketplace/chunk-EIQCOZF5.js +7 -0
- package/Marketplace/chunk-EPPD6RR3.js +1 -0
- package/Marketplace/chunk-EQ2ZKEVE.js +2 -0
- package/Marketplace/chunk-EQD3IUMF.js +1 -0
- package/Marketplace/chunk-EXFL3GUX.js +7 -0
- package/Marketplace/chunk-FDTJZH7Y.js +1 -0
- package/Marketplace/chunk-GUDSPIQ4.js +1 -0
- package/Marketplace/chunk-HA5WIDED.js +1 -0
- package/Marketplace/chunk-HPS3WVU5.js +2 -0
- package/Marketplace/chunk-IIJMZKPL.js +1 -0
- package/Marketplace/chunk-IIUCEXII.js +1 -0
- package/Marketplace/chunk-ITXEWTPA.js +1 -0
- package/Marketplace/chunk-IVX7QWP7.js +1 -0
- package/Marketplace/chunk-IY224QZQ.js +1 -0
- package/Marketplace/chunk-IZARECBC.js +1 -0
- package/Marketplace/chunk-JLKZR2QZ.js +1 -0
- package/Marketplace/chunk-JSPVOV7M.js +1 -0
- package/Marketplace/chunk-K2H6WANG.js +1 -0
- package/Marketplace/chunk-K5CKXDIJ.js +2 -0
- package/Marketplace/chunk-K5XRGNWG.js +1 -0
- package/Marketplace/chunk-K64ATXFK.js +93 -0
- package/Marketplace/chunk-KII7SEQ6.js +316 -0
- package/Marketplace/chunk-L6W6BJ3T.js +1 -0
- package/Marketplace/chunk-LIEUAEW7.js +1525 -0
- package/Marketplace/chunk-MS4AQ6UA.js +0 -0
- package/Marketplace/chunk-OBN6RKRH.js +2 -0
- package/Marketplace/chunk-OCQD6PMZ.js +1 -0
- package/Marketplace/chunk-OM7KOQLP.js +2 -0
- package/Marketplace/chunk-ONK4P7TL.js +1 -0
- package/Marketplace/chunk-ORPJLSXE.js +2 -0
- package/Marketplace/chunk-OS53H77X.js +193 -0
- package/Marketplace/chunk-OVYL7SOO.js +4 -0
- package/Marketplace/chunk-PF4F4EAR.js +1 -0
- package/Marketplace/chunk-QZDIKVMC.js +1 -0
- package/Marketplace/chunk-R5IDWUP6.js +1 -0
- package/Marketplace/chunk-R6B6DIG3.js +1 -0
- package/Marketplace/chunk-RNWWVG3M.js +2 -0
- package/Marketplace/chunk-RO6HPA6M.js +1 -0
- package/Marketplace/chunk-S6AGBBNT.js +1 -0
- package/Marketplace/chunk-SD7UKXTX.js +1 -0
- package/Marketplace/chunk-SDUUFQUI.js +1 -0
- package/Marketplace/chunk-SZDSHN77.js +1 -0
- package/Marketplace/chunk-T2C2QH7B.js +8 -0
- package/Marketplace/chunk-T7KM2WP6.js +1 -0
- package/Marketplace/chunk-TESIDZXV.js +1 -0
- package/Marketplace/chunk-TF4BI2XD.js +1 -0
- package/Marketplace/chunk-TTAS23MO.js +2 -0
- package/Marketplace/chunk-TY4H2W6F.js +2 -0
- package/Marketplace/chunk-UHQVAZB3.js +1 -0
- package/Marketplace/chunk-UOAYF4SW.js +5 -0
- package/Marketplace/chunk-UX5Q3IK5.js +15 -0
- package/Marketplace/chunk-V5WYSCVT.js +21 -0
- package/Marketplace/chunk-VAPIXIJ3.js +3 -0
- package/Marketplace/chunk-VGXNA5KN.js +447 -0
- package/Marketplace/chunk-VKJAFLQ6.js +5 -0
- package/Marketplace/chunk-VOISFPEM.js +10 -0
- package/Marketplace/{chunk-LUY3WZJE.js → chunk-VYKDVKG3.js} +3 -3
- package/Marketplace/chunk-VZBQMPS6.js +2 -0
- package/Marketplace/chunk-W6T7TOHE.js +1 -0
- package/Marketplace/chunk-WBVTRQFG.js +1181 -0
- package/Marketplace/chunk-WHFC7TE4.js +2 -0
- package/Marketplace/chunk-WMO2ROK4.js +1 -0
- package/Marketplace/{chunk-DVSSWF73.js → chunk-WNAVUGZ4.js} +3 -3
- package/Marketplace/{chunk-MEZONX3R.js → chunk-WQ6TZ4KW.js} +2 -2
- package/Marketplace/chunk-WYOXUN3H.js +2 -0
- package/Marketplace/chunk-XCM5Z3ZO.js +1 -0
- package/Marketplace/chunk-XOT2SZPE.js +4 -0
- package/Marketplace/chunk-XR4JKTPA.js +1 -0
- package/Marketplace/chunk-XUPB6PPC.js +1 -0
- package/Marketplace/chunk-YQSHLQDX.js +2 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-FTJE6LDD.js +1 -0
- package/Marketplace/polyfills-BUUDEW7V.js +2 -0
- package/Marketplace/prerendered-routes.json +3 -0
- package/Marketplace/scripts-BTEOQWVQ.js +5 -0
- package/Marketplace/styles-6IZYQNTO.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-3FKDH5RG.js +0 -1
- package/Marketplace/chunk-3JZYRZT3.js +0 -2
- package/Marketplace/chunk-3LR4RLA6.js +0 -1
- package/Marketplace/chunk-46AOM3SM.js +0 -149
- package/Marketplace/chunk-47DMD3UG.js +0 -1
- package/Marketplace/chunk-47JAK757.js +0 -5
- package/Marketplace/chunk-4LFFAE2I.js +0 -1
- package/Marketplace/chunk-4LJDBY23.js +0 -1
- package/Marketplace/chunk-5JOW2QWK.js +0 -1
- package/Marketplace/chunk-5VEPYUMQ.js +0 -2
- package/Marketplace/chunk-6BNB4T6D.js +0 -1
- package/Marketplace/chunk-6U6JR5K6.js +0 -1
- package/Marketplace/chunk-6WBLOQ4O.js +0 -1
- package/Marketplace/chunk-6XIV3N7A.js +0 -93
- package/Marketplace/chunk-76GDTOVJ.js +0 -1
- package/Marketplace/chunk-76IZKTSD.js +0 -1
- package/Marketplace/chunk-7LZ5ZSXM.js +0 -1
- package/Marketplace/chunk-7XUSMPAA.js +0 -1
- package/Marketplace/chunk-ADRVUMMW.js +0 -1
- package/Marketplace/chunk-AP5VEP3X.js +0 -5
- package/Marketplace/chunk-B2TH5YJH.js +0 -1142
- package/Marketplace/chunk-BO4PPSB5.js +0 -2
- package/Marketplace/chunk-BQ7NR3ET.js +0 -1
- package/Marketplace/chunk-BSLGEXE4.js +0 -1494
- package/Marketplace/chunk-BSN7ZAXG.js +0 -1
- package/Marketplace/chunk-CCXKODFV.js +0 -2
- package/Marketplace/chunk-CGF5H6YA.js +0 -1
- package/Marketplace/chunk-D7ZPHL4I.js +0 -1
- package/Marketplace/chunk-DGTMJB7Z.js +0 -1
- package/Marketplace/chunk-E3NPUJ23.js +0 -1
- package/Marketplace/chunk-E4C642KN.js +0 -1
- package/Marketplace/chunk-E5GGIVK7.js +0 -1
- package/Marketplace/chunk-ECGLNS5H.js +0 -8
- package/Marketplace/chunk-EISLDGIF.js +0 -1
- package/Marketplace/chunk-F4WIW6HA.js +0 -1
- package/Marketplace/chunk-F5Y65N3B.js +0 -1
- package/Marketplace/chunk-FGPSBTFS.js +0 -3
- package/Marketplace/chunk-FMV4LYKN.js +0 -1
- package/Marketplace/chunk-FT77MFQN.js +0 -1
- package/Marketplace/chunk-GCKSYCMI.js +0 -5
- package/Marketplace/chunk-GNOSNGXM.js +0 -1
- package/Marketplace/chunk-GUYZJ4TX.js +0 -4
- package/Marketplace/chunk-HCDKYABV.js +0 -4
- package/Marketplace/chunk-HKDNDD2G.js +0 -1
- package/Marketplace/chunk-HUUFOAKH.js +0 -1
- package/Marketplace/chunk-HXJF7C6Q.js +0 -1
- package/Marketplace/chunk-IJYSJN63.js +0 -443
- package/Marketplace/chunk-ILVEM7H5.js +0 -1
- package/Marketplace/chunk-J5D7PMX5.js +0 -2
- package/Marketplace/chunk-JBFISOFM.js +0 -1
- package/Marketplace/chunk-JJFCQ6V3.js +0 -1
- package/Marketplace/chunk-JXTGH22T.js +0 -1
- package/Marketplace/chunk-JYYVBBNN.js +0 -1
- package/Marketplace/chunk-KAEUZC2Y.js +0 -1
- package/Marketplace/chunk-KCDL7SWP.js +0 -7
- package/Marketplace/chunk-KOWWF75X.js +0 -1
- package/Marketplace/chunk-LHMSPWGJ.js +0 -1
- package/Marketplace/chunk-MY4B7K3R.js +0 -4
- package/Marketplace/chunk-N6IHFFFZ.js +0 -1
- package/Marketplace/chunk-O434S2MH.js +0 -2
- package/Marketplace/chunk-O4CRP4WO.js +0 -1
- package/Marketplace/chunk-O4ZSBRQO.js +0 -1
- package/Marketplace/chunk-O6EVUHF3.js +0 -1
- package/Marketplace/chunk-OSA3WANL.js +0 -1
- package/Marketplace/chunk-OULUJ2IO.js +0 -189
- package/Marketplace/chunk-OVEJFFL6.js +0 -2
- package/Marketplace/chunk-P5UOWO2P.js +0 -1
- package/Marketplace/chunk-PD4CUVAW.js +0 -1
- package/Marketplace/chunk-PQDPS2ID.js +0 -7
- package/Marketplace/chunk-QGVD6MF4.js +0 -1
- package/Marketplace/chunk-QP6O4KGV.js +0 -1
- package/Marketplace/chunk-RENQ3YZH.js +0 -1
- package/Marketplace/chunk-RXWNRL3O.js +0 -1
- package/Marketplace/chunk-S2Z3ZGU7.js +0 -1
- package/Marketplace/chunk-SW7GE4R3.js +0 -10
- package/Marketplace/chunk-TPGBOTD4.js +0 -1
- package/Marketplace/chunk-TTLK2HTY.js +0 -1
- package/Marketplace/chunk-TVJVDA5Y.js +0 -1
- package/Marketplace/chunk-UDFZKU5J.js +0 -1
- package/Marketplace/chunk-UMNGKENU.js +0 -1
- package/Marketplace/chunk-URCHO4IV.js +0 -1
- package/Marketplace/chunk-VUVYEGEO.js +0 -1
- package/Marketplace/chunk-WT6W7RAQ.js +0 -1
- package/Marketplace/chunk-X2TVRY2Z.js +0 -1
- package/Marketplace/chunk-X5Q6FPWS.js +0 -315
- package/Marketplace/chunk-XJE5DG3A.js +0 -1
- package/Marketplace/chunk-XR6LJHZU.js +0 -5
- package/Marketplace/chunk-Y6MN6HLH.js +0 -1
- package/Marketplace/chunk-YKJ34DPH.js +0 -1
- package/Marketplace/chunk-YYWSBXIP.js +0 -1
- package/Marketplace/chunk-ZQWAIH5X.js +0 -7
- package/Marketplace/chunk-ZYFF443B.js +0 -1
- package/Marketplace/main-5MBYKGSM.js +0 -1
- package/Marketplace/polyfills-MH5IBZ74.js +0 -2
- package/Marketplace/scripts-TB7H6DN4.js +0 -5
- package/Marketplace/styles-VNC3CHFK.css +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as J}from"./chunk-SD7UKXTX.js";import{a as W}from"./chunk-HPS3WVU5.js";import{a as X}from"./chunk-HA5WIDED.js";import{d as K}from"./chunk-EQ2ZKEVE.js";import{a as $}from"./chunk-ORPJLSXE.js";import{M as w,k as Z,m as Y,v as M}from"./chunk-2NECQ3RY.js";import{a as H}from"./chunk-AI4XRCAL.js";import{Ac as b,Ea as q,Eb as S,Fa as z,Fb as L,Gb as V,Ka as k,La as x,Mc as Q,Oa as y,Vb as I,Wa as F,Wb as l,Yb as R,bb as O,fd as E,gc as c,hc as n,ia as T,ic as C,ka as A,kd as d,ld as G,ma as v,mc as B,pa as r,qb as s,rc as u,tc as N,uc as U,vb as P,xc as j,ya as f,yc as D,za as g,zc as _}from"./chunk-EIQCOZF5.js";var ae=["input"],re=["formField"],oe=["*"],h=class{source;value;constructor(te,e){this.source=te,this.value=e}},de={provide:H,useExisting:T(()=>se),multi:!0},ee=new v("MatRadioGroup"),ce=new v("mat-radio-default-options",{providedIn:"root",factory:ne});function ne(){return{color:"accent",disabledInteractive:!1}}var se=(()=>{class a{_changeDetector=r(E);_value=null;_name=r(M).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new k;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new h(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(t){return new(t||a)};static \u0275dir=V({type:a,selectors:[["mat-radio-group"]],contentQueries:function(t,i,o){if(t&1&&j(o,ie,5),t&2){let m;_(m=b())&&(i._radios=m)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",d],required:[2,"required","required",d],disabledInteractive:[2,"disabledInteractive","disabledInteractive",d]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Q([de,{provide:ee,useExisting:a}])]})}return a})(),ie=(()=>{class a{_elementRef=r(y);_changeDetector=r(E);_focusMonitor=r(Z);_radioDispatcher=r(J);_defaultOptions=r(ce,{optional:!0});_ngZone=r(x);_renderer=r(P);_uniqueId=r(M).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new k;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations;_injector=r(q);constructor(){r(Y).load($);let e=r(ee,{optional:!0}),t=r(F,{optional:!0}),i=r(new z("tabindex"),{optional:!0});this.radioGroup=e,this._noopAnimations=t==="NoopAnimations",this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=G(i,0))}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new h(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,t;if(!e||!e.selected||this.disabled?t=this.tabIndex:t=e.selected===this?this.tabIndex:-1,t!==this._previousTabIndex){let i=this._inputElement?.nativeElement;i&&(i.setAttribute("tabindex",t+""),this._previousTabIndex=t,O(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===i&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===i&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=S({type:a,selectors:[["mat-radio-button"]],viewQuery:function(t,i){if(t&1&&(D(ae,5),D(re,7,y)),t&2){let o;_(o=b())&&(i._inputElement=o.first),_(o=b())&&(i._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(t,i){t&1&&u("focus",function(){return i._inputElement.nativeElement.focus()}),t&2&&(I("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),R("mat-primary",i.color==="primary")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("mat-mdc-radio-checked",i.checked)("mat-mdc-radio-disabled",i.disabled)("mat-mdc-radio-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],checked:[2,"checked","checked",d],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",d],required:[2,"required","required",d],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",d]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:oe,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(t,i){if(t&1){let o=B();N(),c(0,"div",2,0)(2,"div",3)(3,"div",4),u("click",function(p){return f(o),g(i._onTouchTargetClick(p))}),n(),c(4,"input",5,1),u("change",function(p){return f(o),g(i._onInputInteraction(p))}),n(),c(6,"div",6),C(7,"div",7)(8,"div",8),n(),c(9,"div",9),C(10,"div",10),n()(),c(11,"label",11),U(12),n()()}t&2&&(l("labelPosition",i.labelPosition),s(2),R("mdc-radio--disabled",i.disabled),s(2),l("id",i.inputId)("checked",i.checked)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),I("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),s(5),l("matRippleTrigger",i._rippleTrigger.nativeElement)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0),s(2),l("for",i.inputId))},dependencies:[K,W],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px);top:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return a})(),Te=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=L({type:a});static \u0275inj=A({imports:[w,X,ie,w]})}return a})();export{se as a,ie as b,Te as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s}(r||{}),_="*";function a(s,t){return{type:r.Trigger,name:s,definitions:t,options:{}}}function c(s,t=null){return{type:r.Animate,styles:t,timings:s}}function y(s,t=null){return{type:r.Sequence,steps:s,options:t}}function F(s){return{type:r.Style,styles:s,offset:null}}function S(s,t,e){return{type:r.State,name:s,styles:t,options:e}}function g(s){return{type:r.Keyframes,steps:s}}function D(s,t,e=null){return{type:r.Transition,expr:s,animation:t,options:e}}function d(s,t=null){return{type:r.Reference,animation:s,options:t}}function p(s,t=null){return{type:r.AnimateRef,animation:s,options:t}}var l=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},u=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish()}),i.onDestroy(()=>{++n==h&&this._onDestroy()}),i.onStart(()=>{++o==h&&this._onStart()})}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},E="!";export{r as a,_ as b,a as c,c as d,y as e,F as f,S as g,g as h,D as i,d as j,p as k,l,u as m,E as n};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import{a as fe,b as de}from"./chunk-VGXNA5KN.js";import{a as ce}from"./chunk-B5JAZPVU.js";import{Y as se,Z as x,da as pe}from"./chunk-OS53H77X.js";import{e as ie}from"./chunk-JSPVOV7M.js";import{r as re,s as ne}from"./chunk-AKJ4I7KF.js";import{a as te,h as ae,m as oe,y as le}from"./chunk-AI4XRCAL.js";import{b as g,c as i}from"./chunk-W6T7TOHE.js";import{i as Z,j as ee,n as w}from"./chunk-B6POIFQM.js";import{Ca as T,Dc as M,Eb as v,Ec as N,Fb as j,Gc as U,Ib as P,Ic as H,Jc as q,Ka as V,Kb as b,Kc as J,Mc as S,Qa as k,Wb as m,Xc as K,Yb as z,Yc as Q,Z as L,_c as X,aa as f,bc as B,ea as s,g as c,gc as C,hc as _,ia as A,ja as y,ka as O,lc as I,mc as W,pa as d,q as p,qb as F,rc as G,sc as n,tc as R,uc as Y,xa as E,ya as h,za as u}from"./chunk-EIQCOZF5.js";var he=(()=>{class t{constructor(){this.httpService=d(ie),this.shopeeCategories=new c({data:[],isFirstLoad:!1}),this.tiktokCategories=new c({data:[],isFirstLoad:!1}),this.lazadaCategories=new c({data:[],isFirstLoad:!1}),this.tokopediaCategories=new c({data:[],isFirstLoad:!1}),this.wooCommerceCategories=new c({data:[],isFirstLoad:!1})}getCategories(e,o){switch(e){case g.Shopee:return this.shopeeCategories.asObservable().pipe(f(a=>a.isFirstLoad?p(a.data):this.getShopeeCategories(o)));case g.Tiktok:return this.tiktokCategories.asObservable().pipe(f(a=>a.isFirstLoad?p(a.data):this.getTiktokCategories(o)));case g.Lazada:return this.lazadaCategories.asObservable().pipe(f(a=>a.isFirstLoad?p(a.data):this.getLazadaCategories(o)));case g.Tokopedia:return this.tokopediaCategories.asObservable().pipe(f(a=>a.isFirstLoad?p(a.data):this.getTokopediaCategories(o)));case g.WooCommerce:return this.wooCommerceCategories.asObservable().pipe(f(a=>a.isFirstLoad?p(a.data):this.getWooCommerceCategories(o)));default:return p([])}}getShopeeCategories(e){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:e}]).pipe(s(a=>{let l={data:a,isFirstLoad:!0};this.shopeeCategories.next(l)}))}getTiktokCategories(e){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:e}]).pipe(s(a=>{let l={data:a,isFirstLoad:!0};this.tiktokCategories.next(l)}))}getLazadaCategories(e){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:e}]).pipe(s(a=>{let l={data:a,isFirstLoad:!0};this.lazadaCategories.next(l)}))}getTokopediaCategories(e){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:e}]).pipe(s(a=>{let l={data:a,isFirstLoad:!0};this.tokopediaCategories.next(l)}))}getWooCommerceCategories(e){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:e}]).pipe(s(a=>{let l={data:a,isFirstLoad:!0};this.wooCommerceCategories.next(l)}))}searchByIdWithParentDFS(e,o){let a=[...e];for(;a.length>0;){let l=a.pop();if(l.id===JSON.stringify(o))return l;if(l.children&&l.children.length>0)for(let $ of l.children)$.parent=l,a.push($)}return null}searchSelectAbleNode(e){let o=null;if(e.selectable)return e;let a=e.children?e.children:[];if(a.length==0)return e;for(let l of a){if(l.children.length==0&&l.selectable)return l;if(o=this.searchSelectAbleNode(l),o)return o}return o}generateCategoryLabel(e){let o="";return e?o=i.getLabelPathTree(e):o="Select a Category",o}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var me=["*"],Ce=({dt:t})=>`
|
|
2
|
+
.p-floatlabel {
|
|
3
|
+
display: block;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.p-floatlabel label {
|
|
8
|
+
position: absolute;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
top: 50%;
|
|
11
|
+
transform: translateY(-50%);
|
|
12
|
+
transition-property: all;
|
|
13
|
+
transition-timing-function: ease;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
font-weight: ${t("floatlabel.font.weight")};
|
|
16
|
+
inset-inline-start: ${t("floatlabel.position.x")};
|
|
17
|
+
color: ${t("floatlabel.color")};
|
|
18
|
+
transition-duration: ${t("floatlabel.transition.duration")};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.p-floatlabel:has(.p-textarea) label {
|
|
22
|
+
top: ${t("floatlabel.position.y")};
|
|
23
|
+
transform: translateY(0);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.p-floatlabel:has(.p-inputicon:first-child) label {
|
|
27
|
+
inset-inline-start: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-floatlabel:has(.ng-invalid.ng-dirty) label {
|
|
31
|
+
color: ${t("floatlabel.invalid.color")};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-floatlabel:has(input:focus) label,
|
|
35
|
+
.p-floatlabel:has(input.p-filled) label,
|
|
36
|
+
.p-floatlabel:has(input:-webkit-autofill) label,
|
|
37
|
+
.p-floatlabel:has(textarea:focus) label,
|
|
38
|
+
.p-floatlabel:has(textarea.p-filled) label,
|
|
39
|
+
.p-floatlabel:has(.p-inputwrapper-focus) label,
|
|
40
|
+
.p-floatlabel:has(.p-inputwrapper-filled) label {
|
|
41
|
+
top: ${t("floatlabel.over.active.top")};
|
|
42
|
+
transform: translateY(0);
|
|
43
|
+
font-size: ${t("floatlabel.active.font.size")};
|
|
44
|
+
font-weight: ${t("floatlabel.label.active.font.weight")};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.p-floatlabel:has(input.p-filled) label,
|
|
48
|
+
.p-floatlabel:has(textarea.p-filled) label,
|
|
49
|
+
.p-floatlabel:has(.p-inputwrapper-filled) label {
|
|
50
|
+
color: ${t("floatlabel.active.color")};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.p-floatlabel:has(input:focus) label,
|
|
54
|
+
.p-floatlabel:has(input:-webkit-autofill) label,
|
|
55
|
+
.p-floatlabel:has(textarea:focus) label,
|
|
56
|
+
.p-floatlabel:has(.p-inputwrapper-focus) label {
|
|
57
|
+
color: ${t("floatlabel.focus.color")};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.p-floatlabel-in .p-inputtext,
|
|
61
|
+
.p-floatlabel-in .p-textarea,
|
|
62
|
+
.p-floatlabel-in .p-select-label,
|
|
63
|
+
.p-floatlabel-in .p-multiselect-label-container,
|
|
64
|
+
.p-floatlabel-in .p-autocomplete-input-multiple,
|
|
65
|
+
.p-floatlabel-in .p-cascadeselect-label,
|
|
66
|
+
.p-floatlabel-in .p-treeselect-label {
|
|
67
|
+
padding-top: ${t("floatlabel.in.input.padding.top")};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.p-floatlabel-in:has(input:focus) label,
|
|
71
|
+
.p-floatlabel-in:has(input.p-filled) label,
|
|
72
|
+
.p-floatlabel-in:has(input:-webkit-autofill) label,
|
|
73
|
+
.p-floatlabel-in:has(textarea:focus) label,
|
|
74
|
+
.p-floatlabel-in:has(textarea.p-filled) label,
|
|
75
|
+
.p-floatlabel-in:has(.p-inputwrapper-focus) label,
|
|
76
|
+
.p-floatlabel-in:has(.p-inputwrapper-filled) label {
|
|
77
|
+
top: ${t("floatlabel.in.active.top")};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.p-floatlabel-on:has(input:focus) label,
|
|
81
|
+
.p-floatlabel-on:has(input.p-filled) label,
|
|
82
|
+
.p-floatlabel-on:has(input:-webkit-autofill) label,
|
|
83
|
+
.p-floatlabel-on:has(textarea:focus) label,
|
|
84
|
+
.p-floatlabel-on:has(textarea.p-filled) label,
|
|
85
|
+
.p-floatlabel-on:has(.p-inputwrapper-focus) label,
|
|
86
|
+
.p-floatlabel-on:has(.p-inputwrapper-filled) label {
|
|
87
|
+
top: 0;
|
|
88
|
+
transform: translateY(-50%);
|
|
89
|
+
border-radius: ${t("floatlabel.on.border.radius")};
|
|
90
|
+
background: ${t("floatlabel.on.active.background")};
|
|
91
|
+
padding: ${t("floatlabel.on.active.padding")};
|
|
92
|
+
}
|
|
93
|
+
`,ye={root:({instance:t,props:r})=>["p-floatlabel",{"p-floatlabel-over":r.variant==="over","p-floatlabel-on":r.variant==="on","p-floatlabel-in":r.variant==="in"}]},ue=(()=>{class t extends pe{name="floatlabel";theme=Ce;classes=ye;static \u0275fac=(()=>{let e;return function(a){return(e||(e=T(t)))(a||t)}})();static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})();var D=(()=>{class t extends ce{_componentStyle=d(ue);variant="over";static \u0275fac=(()=>{let e;return function(a){return(e||(e=T(t)))(a||t)}})();static \u0275cmp=v({type:t,selectors:[["p-floatlabel"],["p-floatLabel"],["p-float-label"]],hostVars:8,hostBindings:function(o,a){o&2&&z("p-floatlabel",!0)("p-floatlabel-over",a.variant==="over")("p-floatlabel-on",a.variant==="on")("p-floatlabel-in",a.variant==="in")},inputs:{variant:"variant"},features:[S([ue]),P],ngContentSelectors:me,decls:1,vars:0,template:function(o,a){o&1&&(R(),Y(0))},dependencies:[w,x],encapsulation:2,changeDetection:0})}return t})(),be=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=j({type:t});static \u0275inj=O({imports:[D,x,x]})}return t})();function _e(t,r){t&1&&I(0)}function Se(t,r){if(t&1&&(C(0,"p-floatLabel",1),b(1,_e,1,0,"ng-container",2),C(2,"label",3),N(3,"Category"),_()()),t&2){n();let e=M(3);F(),m("ngTemplateOutlet",e)}}function we(t,r){t&1&&I(0)}function xe(t,r){if(t&1&&b(0,we,1,0,"ng-container",2),t&2){n();let e=M(3);m("ngTemplateOutlet",e)}}function Le(t,r){if(t&1&&(C(0,"div",6),N(1),_()),t&2){let e=n(2);m("matTooltip",e.selectedCategoryLabel()),F(),U(" ",e.selectedCategoryLabel()," ")}}function Te(t,r){if(t&1){let e=W();C(0,"p-treeSelect",4),K(1,"async"),J("ngModelChange",function(a){h(e);let l=n();return q(l.selectedNode,a)||(l.selectedNode=a),u(a)}),G("click",function(){h(e);let a=n();return u(a.onClickSelect())})("onNodeSelect",function(a){h(e);let l=n();return u(l.onNodeSelect(a))})("onClear",function(){h(e);let a=n();return u(a.onNodeUnselect())}),b(2,Le,2,2,"ng-template",5),_()}if(t&2){let e=n();H("ngModel",e.selectedNode),m("filter",!0)("options",Q(1,5,e.categories$))("showClear",e.showClear)("disabled",e.disabled)}}var st=(()=>{class t{constructor(){this.categoryService=d(he),this.showClear=!1,this.showLabel=!1,this.disabled=!1,this.selectedCategory=new V,this.selectedCategoryLabel=k("Select a Category"),this.selectedNode=k(null),this.onChange=e=>{},this.onTouched=()=>{}}ngOnChanges(e){let o=e?.categoryId?.previousValue,a=e?.categoryId?.currentValue;i.IsEmpty(o)&&i.IsNotEmpty(a)&&this.initCategories(),i.IsEmpty(a)&&i.IsNotEmpty(o)&&this.generateCategoryLabel(null)}initCategories(){this.categories$=this.categoryService.getCategories(this.channelType,this.channelId).pipe(s(e=>this.setDefaultCategory(e)),L(1))}setDefaultCategory(e){try{let o=this.categoryService.searchByIdWithParentDFS(e,this.categoryId);o&&(this.generateCategoryLabel(o),this.selectedNode.set(o))}catch(o){console.error(o)}}onClickSelect(){this.disabled==!1&&(this.categories$=this.categoryService.getCategories(this.channelType,this.channelId).pipe(L(1)))}onNodeSelect(e){let o=this.categoryService.searchSelectAbleNode(e.node);this.selectedCategoryLabel.set(i.getLabelPathTree(o));let a=parseInt(o.id);this.onChange(a),this.selectedCategory.emit(a)}onNodeUnselect(){this.selectedCategoryLabel.set("Select a Category"),this.selectedCategory.emit(null)}generateCategoryLabel(e){e?this.selectedCategoryLabel.set(i.getLabelPathTree(e)):this.selectedCategoryLabel.set("Select a Category")}writeValue(e){i.IsNotEmpty(e)&&(this.categoryId=e,this.initCategories())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=v({type:t,selectors:[["app-channel-category-select"]],inputs:{channelId:"channelId",channelType:"channelType",categoryId:"categoryId",showClear:"showClear",showLabel:"showLabel",disabled:"disabled"},outputs:{selectedCategory:"selectedCategory"},features:[S([{provide:te,useExisting:A(()=>t),multi:!0}]),E],decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","containerStyleClass","w-100","placeholder","Select a Category","id","selectCategory","inputId","selectCategory",3,"ngModelChange","click","onNodeSelect","onClear","ngModel","filter","options","showClear","disabled"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(o,a){o&1&&b(0,Se,4,1,"p-floatLabel",1)(1,xe,1,1,"ng-container")(2,Te,3,7,"ng-template",null,0,X),o&2&&B(a.showLabel?0:1)},dependencies:[w,Z,ee,de,fe,se,ne,re,le,ae,oe,be,D],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})}}return t})();export{he as a,st as b};
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import{a as Z,b as xe,c as ot,f as fe,i as st,k as we,m as Ve}from"./chunk-B5JAZPVU.js";import{A as re,B as He,C as ae,L as et,M as tt,S as it,W as nt,Y as me,Z as F,b as Be,d as Xe,da as W,p as Ye,q as Pe,t as le,z as Je}from"./chunk-OS53H77X.js";import{c as Ue,d as De,f as Le,i as Fe,j as Re,k as $e}from"./chunk-K5XRGNWG.js";import{a as Ke,g as Ge}from"./chunk-AI4XRCAL.js";import{d as de,f as qe,g as pe,h as Ee,i as ue,n as N,o as Ce}from"./chunk-B6POIFQM.js";import{Aa as he,Ac as k,Ca as _,Dc as _e,Eb as T,Fb as ie,Ib as z,Ka as S,Kb as g,La as Se,Mc as Q,Nc as ze,Oc as L,Pc as ve,Qa as Qe,Qc as Oe,Vb as v,Wb as a,Wc as We,Xb as Ne,Yb as Te,Zb as ye,_b as b,_c as be,gc as C,hc as x,ia as Ae,ic as E,ja as j,jc as P,ka as te,kc as H,kd as se,lc as G,ld as Ze,mc as ne,pa as A,qb as h,rc as oe,sc as p,tc as U,uc as X,wb as ge,xa as Ie,xc as D,ya as $,yc as Y,za as B,zc as w}from"./chunk-EIQCOZF5.js";import{a as K,b as Me}from"./chunk-K2H6WANG.js";var lt=(()=>{class t extends fe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=T({type:t,selectors:[["CheckIcon"]],features:[z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(he(),C(0,"svg",0),E(1,"path",1),x()),i&2&&(b(n.getClassNames()),v("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return t})();var rt=(()=>{class t extends fe{static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=T({type:t,selectors:[["MinusIcon"]],features:[z],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,n){i&1&&(he(),C(0,"svg",0),E(1,"path",1),x()),i&2&&(b(n.getClassNames()),v("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return t})();var at=["content"],_t=["overlay"],vt=["*"],bt=(t,l,e,i,n,o,s,r,y,m,u,V,I,M)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t,"p-overlay-center":l,"p-overlay-top":e,"p-overlay-top-start":i,"p-overlay-top-end":n,"p-overlay-bottom":o,"p-overlay-bottom-start":s,"p-overlay-bottom-end":r,"p-overlay-left":y,"p-overlay-left-start":m,"p-overlay-left-end":u,"p-overlay-right":V,"p-overlay-right-start":I,"p-overlay-right-end":M}),Ct=(t,l,e)=>({showTransitionParams:t,hideTransitionParams:l,transform:e}),xt=t=>({value:"visible",params:t}),wt=t=>({mode:t}),kt=t=>({$implicit:t});function It(t,l){t&1&&G(0)}function St(t,l){if(t&1){let e=ne();C(0,"div",3,1),oe("click",function(n){$(e);let o=p(2);return B(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){$(e);let o=p(2);return B(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){$(e);let o=p(2);return B(o.onOverlayContentAnimationDone(n))}),X(2),g(3,It,1,0,"ng-container",4),x()}if(t&2){let e=p(2);b(e.contentStyleClass),a("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",L(11,xt,Oe(7,Ct,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",L(15,kt,L(13,wt,e.overlayMode)))}}function Tt(t,l){if(t&1){let e=ne();C(0,"div",3,0),oe("click",function(){$(e);let n=p();return B(n.onOverlayClick())}),g(2,St,4,17,"div",2),x()}if(t&2){let e=p();b(e.styleClass),a("ngStyle",e.style)("ngClass",We(5,bt,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),h(2),a("ngIf",e.visible)}}var zt=({dt:t})=>`
|
|
2
|
+
.p-overlay {
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.p-overlay-modal {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
position: fixed;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-overlay-content {
|
|
19
|
+
transform-origin: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.p-overlay-modal > .p-overlay-content {
|
|
23
|
+
z-index: 1;
|
|
24
|
+
width: 90%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Position */
|
|
28
|
+
/* top */
|
|
29
|
+
.p-overlay-top {
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
}
|
|
32
|
+
.p-overlay-top-start {
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
justify-content: flex-start;
|
|
35
|
+
}
|
|
36
|
+
.p-overlay-top-end {
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* bottom */
|
|
42
|
+
.p-overlay-bottom {
|
|
43
|
+
align-items: flex-end;
|
|
44
|
+
}
|
|
45
|
+
.p-overlay-bottom-start {
|
|
46
|
+
align-items: flex-end;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
}
|
|
49
|
+
.p-overlay-bottom-end {
|
|
50
|
+
align-items: flex-end;
|
|
51
|
+
justify-content: flex-end;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* left */
|
|
55
|
+
.p-overlay-left {
|
|
56
|
+
justify-content: flex-start;
|
|
57
|
+
}
|
|
58
|
+
.p-overlay-left-start {
|
|
59
|
+
justify-content: flex-start;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
}
|
|
62
|
+
.p-overlay-left-end {
|
|
63
|
+
justify-content: flex-start;
|
|
64
|
+
align-items: flex-end;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* right */
|
|
68
|
+
.p-overlay-right {
|
|
69
|
+
justify-content: flex-end;
|
|
70
|
+
}
|
|
71
|
+
.p-overlay-right-start {
|
|
72
|
+
justify-content: flex-end;
|
|
73
|
+
align-items: flex-start;
|
|
74
|
+
}
|
|
75
|
+
.p-overlay-right-end {
|
|
76
|
+
justify-content: flex-end;
|
|
77
|
+
align-items: flex-end;
|
|
78
|
+
}
|
|
79
|
+
`,ct=(()=>{class t extends W{name="overlay";theme=zt;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})(),Ot=Re([Le({transform:"{{transform}}",opacity:0}),De("{{showTransitionParams}}")]),Et=Re([De("{{hideTransitionParams}}",Le({transform:"{{transform}}",opacity:0}))]),Xi=(()=>{class t extends Z{overlayService;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return we.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return we.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return we.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return we.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new S;onBeforeShow=new S;onShow=new S;onBeforeHide=new S;onHide=new S;onAnimationStart=new S;onAnimationDone=new S;overlayViewChild;contentViewChild;contentTemplate;templates;_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=A(ct);documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(Ce(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return K(K({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return K(K({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Je(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Pe(this.targetEl),this.modal&&Be(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Pe(this.targetEl),this.modal&&Xe(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&xe.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Ve.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),xe.appendOverlay(this.overlayEl,this.appendTo==="body"?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Be(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(i,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(i,!0),this.modalVisible=!1,this.unbindListeners(),xe.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Ve.clear(i),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new ot(this.targetEl,e=>{(this.listener?this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}):!0)&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let n=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&n}):n)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!ae()}):!ae())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!ae()}):!ae())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(xe.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Ve.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(ge(nt),ge(Se))};static \u0275cmp=T({type:t,selectors:[["p-overlay"]],contentQueries:function(i,n,o){if(i&1&&(D(o,at,4),D(o,me,4)),i&2){let s;w(s=k())&&(n.contentTemplate=s.first),w(s=k())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&(Y(_t,5),Y(at,5)),i&2){let o;w(o=k())&&(n.overlayViewChild=o.first),w(o=k())&&(n.contentViewChild=o.first)}},inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Q([ct]),z],ngContentSelectors:vt,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(U(),g(0,Tt,3,20,"div",2)),i&2&&a("ngIf",n.modalVisible)},dependencies:[N,de,pe,ue,Ee,F],encapsulation:2,data:{animation:[Ue("overlayContentAnimation",[Fe(":enter",[$e(Ot)]),Fe(":leave",[$e(Et)])])]},changeDetection:0})}return t})();var nn=(()=>{class t extends fe{pathId;ngOnInit(){this.pathId="url(#"+it()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=T({type:t,selectors:[["SearchIcon"]],features:[z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(he(),C(0,"svg",0)(1,"g"),E(2,"path",1),x(),C(3,"defs")(4,"clipPath",2),E(5,"rect",3),x()()()),i&2&&(b(n.getClassNames()),v("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),h(),v("clip-path",n.pathId),h(3),a("id",n.pathId))},encapsulation:2})}return t})();var Vt=["checkboxicon"],Mt=["input"],Dt=()=>({"p-checkbox-input":!0}),Lt=t=>({checked:t,class:"p-checkbox-icon"});function Ft(t,l){if(t&1&&E(0,"span",8),t&2){let e=p(3);a("ngClass",e.checkboxIcon),v("data-pc-section","icon")}}function Rt(t,l){t&1&&E(0,"CheckIcon",9),t&2&&(a("styleClass","p-checkbox-icon"),v("data-pc-section","icon"))}function $t(t,l){if(t&1&&(P(0),g(1,Ft,1,2,"span",7)(2,Rt,1,2,"CheckIcon",6),H()),t&2){let e=p(2);h(),a("ngIf",e.checkboxIcon),h(),a("ngIf",!e.checkboxIcon)}}function Bt(t,l){t&1&&E(0,"MinusIcon",9),t&2&&(a("styleClass","p-checkbox-icon"),v("data-pc-section","icon"))}function Pt(t,l){if(t&1&&(P(0),g(1,$t,3,2,"ng-container",4)(2,Bt,1,2,"MinusIcon",6),H()),t&2){let e=p();h(),a("ngIf",e.checked),h(),a("ngIf",e._indeterminate())}}function Ht(t,l){}function jt(t,l){t&1&&g(0,Ht,0,0,"ng-template")}var At=({dt:t})=>`
|
|
80
|
+
.p-checkbox {
|
|
81
|
+
position: relative;
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
user-select: none;
|
|
84
|
+
vertical-align: bottom;
|
|
85
|
+
width: ${t("checkbox.width")};
|
|
86
|
+
height: ${t("checkbox.height")};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.p-checkbox-input {
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
appearance: none;
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0;
|
|
94
|
+
left: 0;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
padding: 0;
|
|
98
|
+
margin: 0;
|
|
99
|
+
opacity: 0;
|
|
100
|
+
z-index: 1;
|
|
101
|
+
outline: 0 none;
|
|
102
|
+
border: 1px solid transparent;
|
|
103
|
+
border-radius: ${t("checkbox.border.radius")};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.p-checkbox-box {
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
border-radius: ${t("checkbox.border.radius")};
|
|
111
|
+
border: 1px solid ${t("checkbox.border.color")};
|
|
112
|
+
background: ${t("checkbox.background")};
|
|
113
|
+
width: ${t("checkbox.width")};
|
|
114
|
+
height: ${t("checkbox.height")};
|
|
115
|
+
transition: background ${t("checkbox.transition.duration")}, color ${t("checkbox.transition.duration")}, border-color ${t("checkbox.transition.duration")}, box-shadow ${t("checkbox.transition.duration")}, outline-color ${t("checkbox.transition.duration")};
|
|
116
|
+
outline-color: transparent;
|
|
117
|
+
box-shadow: ${t("checkbox.shadow")};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.p-checkbox-icon {
|
|
121
|
+
transition-duration: ${t("checkbox.transition.duration")};
|
|
122
|
+
color: ${t("checkbox.icon.color")};
|
|
123
|
+
font-size: ${t("checkbox.icon.size")};
|
|
124
|
+
width: ${t("checkbox.icon.size")};
|
|
125
|
+
height: ${t("checkbox.icon.size")};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
129
|
+
border-color: ${t("checkbox.hover.border.color")};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.p-checkbox-checked .p-checkbox-box {
|
|
133
|
+
border-color: ${t("checkbox.checked.border.color")};
|
|
134
|
+
background: ${t("checkbox.checked.background")};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.p-checkbox-checked .p-checkbox-icon {
|
|
138
|
+
color: ${t("checkbox.icon.checked.color")};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
142
|
+
background: ${t("checkbox.checked.hover.background")};
|
|
143
|
+
border-color: ${t("checkbox.checked.hover.border.color")};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
|
|
147
|
+
color: ${t("checkbox.icon.checked.hover.color")};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
151
|
+
border-color: ${t("checkbox.focus.border.color")};
|
|
152
|
+
box-shadow: ${t("checkbox.focus.ring.shadow")};
|
|
153
|
+
outline: ${t("checkbox.focus.ring.width")} ${t("checkbox.focus.ring.style")} ${t("checkbox.focus.ring.color")};
|
|
154
|
+
outline-offset: ${t("checkbox.focus.ring.offset")};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
158
|
+
border-color: ${t("checkbox.checked.focus.border.color")};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
|
|
162
|
+
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
|
|
163
|
+
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
|
|
164
|
+
border-color: ${t("checkbox.invalid.border.color")};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.p-checkbox.p-variant-filled .p-checkbox-box {
|
|
168
|
+
background: ${t("checkbox.filled.background")};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
|
|
172
|
+
background: ${t("checkbox.checked.background")};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
176
|
+
background: ${t("checkbox.checked.hover.background")};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.p-checkbox.p-disabled {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.p-checkbox.p-disabled .p-checkbox-box {
|
|
184
|
+
background: ${t("checkbox.disabled.background")};
|
|
185
|
+
border-color: ${t("checkbox.checked.disabled.border.color")};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
|
|
189
|
+
color: ${t("checkbox.icon.disabled.color")};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.p-checkbox-sm,
|
|
193
|
+
.p-checkbox-sm .p-checkbox-box {
|
|
194
|
+
width: ${t("checkbox.sm.width")};
|
|
195
|
+
height: ${t("checkbox.sm.height")};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.p-checkbox-sm .p-checkbox-icon {
|
|
199
|
+
font-size: ${t("checkbox.icon.sm.size")};
|
|
200
|
+
width: ${t("checkbox.icon.sm.size")};
|
|
201
|
+
height: ${t("checkbox.icon.sm.size")};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.p-checkbox-lg,
|
|
205
|
+
.p-checkbox-lg .p-checkbox-box {
|
|
206
|
+
width: ${t("checkbox.lg.width")};
|
|
207
|
+
height: ${t("checkbox.lg.height")};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.p-checkbox-lg .p-checkbox-icon {
|
|
211
|
+
font-size: ${t("checkbox.icon.lg.size")};
|
|
212
|
+
width: ${t("checkbox.icon.lg.size")};
|
|
213
|
+
height: ${t("checkbox.icon.lg.size")};
|
|
214
|
+
}
|
|
215
|
+
`,Qt={root:({instance:t,props:l})=>["p-checkbox p-component",{"p-checkbox-checked":t.checked,"p-disabled":l.disabled,"p-invalid":l.invalid,"p-variant-filled":l.variant?l.variant==="filled":t.config.inputStyle==="filled"||t.config.inputVariant==="filled"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},dt=(()=>{class t extends W{name="checkbox";theme=At;classes=Qt;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})();var Nt={provide:Ke,useExisting:Ae(()=>pt),multi:!0},pt=(()=>{class t extends Z{value;name;disabled;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;style;inputStyle;styleClass;inputClass;indeterminate=!1;size;formControl;checkboxIcon;readonly;required;autofocus;trueValue=!0;falseValue=!1;variant;onChange=new S;onFocus=new S;onBlur=new S;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.model===this.trueValue:tt(this.value,this.model)}get containerClass(){return{"p-checkbox p-component":!0,"p-checkbox-checked p-highlight":this.checked,"p-disabled":this.disabled,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-checkbox-sm p-inputfield-sm":this.size==="small","p-checkbox-lg p-inputfield-lg":this.size==="large"}}_indeterminate=Qe(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;_componentStyle=A(dt);ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}ngOnChanges(e){super.ngOnChanges(e),e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}updateModel(e){let i,n=this.injector.get(Ge,null,{optional:!0,self:!0}),o=n&&!this.formControl?n.value:this.model;this.binary?(i=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(this.checked||this._indeterminate()?i=o.filter(s=>!et(s,this.value)):i=o?[...o,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=T({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(i,n,o){if(i&1&&(D(o,Vt,4),D(o,me,4)),i&2){let s;w(s=k())&&(n.checkboxIconTemplate=s.first),w(s=k())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&Y(Mt,5),i&2){let o;w(o=k())&&(n.inputViewChild=o.first)}},inputs:{value:"value",name:"name",disabled:[2,"disabled","disabled",se],binary:[2,"binary","binary",se],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",Ze],inputId:"inputId",style:"style",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",se],size:"size",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",se],required:[2,"required","required",se],autofocus:[2,"autofocus","autofocus",se],trueValue:"trueValue",falseValue:"falseValue",variant:"variant"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[Q([Nt,dt]),z,Ie],decls:6,vars:29,consts:[["input",""],[3,"ngClass"],["type","checkbox",3,"focus","blur","change","value","checked","disabled","readonly","ngClass"],[1,"p-checkbox-box"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"]],template:function(i,n){if(i&1){let o=ne();C(0,"div",1)(1,"input",2,0),oe("focus",function(r){return $(o),B(n.onInputFocus(r))})("blur",function(r){return $(o),B(n.onInputBlur(r))})("change",function(r){return $(o),B(n.handleChange(r))}),x(),C(3,"div",3),g(4,Pt,3,2,"ng-container",4)(5,jt,1,0,null,5),x()()}i&2&&(ye(n.style),b(n.styleClass),a("ngClass",n.containerClass),v("data-p-highlight",n.checked)("data-p-checked",n.checked)("data-p-disabled",n.disabled),h(),ye(n.inputStyle),b(n.inputClass),a("value",n.value)("checked",n.checked)("disabled",n.disabled)("readonly",n.readonly)("ngClass",ze(26,Dt)),v("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("required",n.required?!0:null)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel),h(3),a("ngIf",!n.checkboxIconTemplate&&!n._checkboxIconTemplate),h(),a("ngTemplateOutlet",n.checkboxIconTemplate||n._checkboxIconTemplate)("ngTemplateOutletContext",L(27,Lt,n.checked)))},dependencies:[N,de,pe,ue,lt,rt,F],encapsulation:2,changeDetection:0})}return t})(),wn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ie({type:t});static \u0275inj=te({imports:[pt,F,F]})}return t})();var ut=["content"],Wt=["item"],Zt=["loader"],qt=["loadericon"],Kt=["element"],Gt=["*"],Ut=(t,l,e)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":t,"p-virtualscroller-both p-both-scroll":l,"p-virtualscroller-horizontal p-horizontal-scroll":e}),je=(t,l)=>({$implicit:t,options:l}),Xt=t=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":t}),Yt=t=>({"p-virtualscroller-loader-mask":t}),Jt=t=>({numCols:t}),ft=t=>({options:t}),ei=()=>({styleClass:"p-virtualscroller-loading-icon"}),ti=(t,l)=>({rows:t,columns:l});function ii(t,l){t&1&&G(0)}function ni(t,l){if(t&1&&(P(0),g(1,ii,1,0,"ng-container",10),H()),t&2){let e=p(2);h(),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",ve(2,je,e.loadedItems,e.getContentOptions()))}}function oi(t,l){t&1&&G(0)}function si(t,l){if(t&1&&(P(0),g(1,oi,1,0,"ng-container",10),H()),t&2){let e=l.$implicit,i=l.index,n=p(3);h(),a("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",ve(2,je,e,n.getOptions(i)))}}function li(t,l){if(t&1&&(C(0,"div",11,3),g(2,si,2,5,"ng-container",12),x()),t&2){let e=p(2);ye(e.contentStyle),b(e.contentStyleClass),a("ngClass",L(8,Xt,e.d_loading)),v("data-pc-section","content"),h(2),a("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function ri(t,l){if(t&1&&E(0,"div",13),t&2){let e=p(2);a("ngStyle",e.spacerStyle),v("data-pc-section","spacer")}}function ai(t,l){t&1&&G(0)}function ci(t,l){if(t&1&&(P(0),g(1,ai,1,0,"ng-container",10),H()),t&2){let e=l.index,i=p(4);h(),a("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",L(4,ft,i.getLoaderOptions(e,i.both&&L(2,Jt,i.numItemsInViewport.cols))))}}function hi(t,l){if(t&1&&(P(0),g(1,ci,2,6,"ng-container",15),H()),t&2){let e=p(3);h(),a("ngForOf",e.loaderArr)}}function di(t,l){t&1&&G(0)}function pi(t,l){if(t&1&&(P(0),g(1,di,1,0,"ng-container",10),H()),t&2){let e=p(4);h(),a("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",L(3,ft,ze(2,ei)))}}function ui(t,l){t&1&&E(0,"SpinnerIcon",16),t&2&&(a("styleClass","p-virtualscroller-loading-icon pi-spin"),v("data-pc-section","loadingIcon"))}function mi(t,l){if(t&1&&g(0,pi,2,5,"ng-container",6)(1,ui,1,2,"ng-template",null,5,be),t&2){let e=_e(2),i=p(3);a("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function fi(t,l){if(t&1&&(C(0,"div",14),g(1,hi,2,1,"ng-container",6)(2,mi,3,2,"ng-template",null,4,be),x()),t&2){let e=_e(3),i=p(2);a("ngClass",L(4,Yt,!i.loaderTemplate)),v("data-pc-section","loader"),h(),a("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function gi(t,l){if(t&1){let e=ne();P(0),C(1,"div",7,1),oe("scroll",function(n){$(e);let o=p();return B(o.onContainerScroll(n))}),g(3,ni,2,5,"ng-container",6)(4,li,3,10,"ng-template",null,2,be)(6,ri,1,2,"div",8)(7,fi,4,6,"div",9),x(),H()}if(t&2){let e=_e(5),i=p();h(),b(i._styleClass),a("ngStyle",i._style)("ngClass",Oe(12,Ut,i.inline,i.both,i.horizontal)),v("id",i._id)("tabindex",i.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),a("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),h(3),a("ngIf",i._showSpacer),h(),a("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function yi(t,l){t&1&&G(0)}function _i(t,l){if(t&1&&(P(0),g(1,yi,1,0,"ng-container",10),H()),t&2){let e=p(2);h(),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",ve(5,je,e.items,ve(2,ti,e._items,e.loadedColumns)))}}function vi(t,l){if(t&1&&(X(0),g(1,_i,2,8,"ng-container",17)),t&2){let e=p();h(),a("ngIf",e.contentTemplate||e._contentTemplate)}}var bi=({dt:t})=>`
|
|
216
|
+
.p-virtualscroller {
|
|
217
|
+
position: relative;
|
|
218
|
+
overflow: auto;
|
|
219
|
+
contain: strict;
|
|
220
|
+
transform: translateZ(0);
|
|
221
|
+
will-change: scroll-position;
|
|
222
|
+
outline: 0 none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.p-virtualscroller-content {
|
|
226
|
+
position: absolute;
|
|
227
|
+
top: 0;
|
|
228
|
+
left: 0;
|
|
229
|
+
min-height: 100%;
|
|
230
|
+
min-width: 100%;
|
|
231
|
+
will-change: transform;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.p-virtualscroller-spacer {
|
|
235
|
+
position: absolute;
|
|
236
|
+
top: 0;
|
|
237
|
+
left: 0;
|
|
238
|
+
height: 1px;
|
|
239
|
+
width: 1px;
|
|
240
|
+
transform-origin: 0 0;
|
|
241
|
+
pointer-events: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.p-virtualscroller-loader {
|
|
245
|
+
position: sticky;
|
|
246
|
+
top: 0;
|
|
247
|
+
left: 0;
|
|
248
|
+
width: 100%;
|
|
249
|
+
height: 100%;
|
|
250
|
+
background: ${t("virtualscroller.loader.mask.background")};
|
|
251
|
+
color: ${t("virtualscroller.loader.mask.color")};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.p-virtualscroller-loader-mask {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
justify-content: center;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.p-virtualscroller-loading-icon {
|
|
261
|
+
font-size: ${t("virtualscroller.loader.icon.size")};
|
|
262
|
+
width: ${t("virtualscroller.loader.icon.size")};
|
|
263
|
+
height: ${t("virtualscroller.loader.icon.size")};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.p-virtualscroller-horizontal > .p-virtualscroller-content {
|
|
267
|
+
display: flex;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
271
|
+
position: static;
|
|
272
|
+
}
|
|
273
|
+
`,mt=(()=>{class t extends W{name="virtualscroller";theme=bi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})();var Ci=(()=>{class t extends Z{zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([i,n])=>this[`_${i}`]!==n&&(this[`_${i}`]=n)),Object.entries(e).forEach(([i,n])=>this[`${i}`]!==n&&(this[`${i}`]=n)))}onLazyLoad=new S;onScroll=new S;onScrollIndexChange=new S;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=A(mt);constructor(e){super(),this.zone=e}ngOnInit(){super.ngOnInit(),this.setInitialState()}ngOnChanges(e){super.ngOnChanges(e);let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:n,currentValue:o}=e.loading;this.lazy&&n!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:n,currentValue:o}=e.numToleratedItems;n!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:n,currentValue:o}=e.options;this.lazy&&n?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),n?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1,super.ngOnDestroy()}viewInit(){Ce(this.platformId)&&!this.initialized&&He(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=re(this.elementViewChild?.nativeElement),this.defaultHeight=le(this.elementViewChild?.nativeElement),this.defaultContentWidth=re(this.contentEl),this.defaultContentHeight=le(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Ye(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:r=0}=this.elementViewChild?.nativeElement,{numToleratedItems:y}=this.calculateNumItems(),m=this.getContentPosition(),u=this.itemSize,V=(d=0,f)=>d<=f?0:d,I=(d,f,R)=>d*f+R,M=(d=0,f=0)=>this.scrollTo({left:d,top:f,behavior:i}),O=this.both?{rows:0,cols:0}:0,J=!1,c=!1;this.both?(O={rows:V(e[0],y[0]),cols:V(e[1],y[1])},M(I(O.cols,u[1],m.left),I(O.rows,u[0],m.top)),c=this.lastScrollPos.top!==s||this.lastScrollPos.left!==r,J=O.rows!==o.rows||O.cols!==o.cols):(O=V(e,y),this.horizontal?M(I(O,u,m.left),s):M(r,I(O,u,m.top)),c=this.lastScrollPos!==(this.horizontal?r:s),J=O!==o),this.isRangeChanged=J,c&&(this.first=O)}}scrollInView(e,i,n="auto"){if(i){let{first:o,viewport:s}=this.getRenderedRange(),r=(u=0,V=0)=>this.scrollTo({left:u,top:V,behavior:n}),y=i==="to-start",m=i==="to-end";if(y){if(this.both)s.first.rows-o.rows>e[0]?r(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&r((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let u=(s.first-1)*this._itemSize;this.horizontal?r(u,0):r(0,u)}}else if(m){if(this.both)s.last.rows-o.rows<=e[0]+1?r(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&r((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let u=(s.first+1)*this._itemSize;this.horizontal?r(u,0):r(0,u)}}}else this.scrollToIndex(e,n)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,i=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},n={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let r=this.horizontal?s:o;i=e(r,this._itemSize),n=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:n}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(m,u)=>u||m?Math.ceil(m/(u||m)):0,s=m=>Math.ceil(m/2),r=this.both?{rows:o(n,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:n,this._itemSize),y=this.d_numToleratedItems||(this.both?[s(r.rows),s(r.cols)]:s(r));return{numItemsInViewport:r,numToleratedItems:y}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),n=(r,y,m,u=!1)=>this.getLast(r+y+(r<m?2:3)*m,u),o=this.first,s=this.both?{rows:n(this.first.rows,e.rows,i[0]),cols:n(this.first.cols,e.cols,i[1],!0)}:n(this.first,e,i);this.last=s,this.numItemsInViewport=e,this.d_numToleratedItems=i,this.showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[re(this.contentEl),le(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,o]=[re(this.elementViewChild.nativeElement),le(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=o<this.defaultHeight?o+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),s=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:n,top:o,bottom:s,x:i+n,y:o+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement.parentElement.parentElement,i=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||e.offsetWidth}px`,n=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||e.offsetHeight}px`,o=(s,r)=>this.elementViewChild.nativeElement.style[s]=r;this.both||this.horizontal?(o("height",n),o("width",i)):o("height",n)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(n,o,s,r=0)=>this.spacerStyle=Me(K({},this.spacerStyle),{[`${n}`]:(o||[]).length*s+r+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,n=(s,r)=>s*r,o=(s=0,r=0)=>this.contentStyle=Me(K({},this.contentStyle),{transform:`translate3d(${s}px, ${r}px, 0)`});if(this.both)o(n(i.cols,this._itemSize[1]),n(i.rows,this._itemSize[0]));else{let s=n(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let i=e.target,n=this.getContentPosition(),o=(c,d)=>c?c>d?c-d:c:0,s=(c,d)=>d||c?Math.floor(c/(d||c)):0,r=(c,d,f,R,q,ee)=>c<=q?q:ee?f-R-q:d+q-1,y=(c,d,f,R,q,ee,ke)=>c<=ee?0:Math.max(0,ke?c<d?f:c-ee:c>d?f:c-2*ee),m=(c,d,f,R,q,ee=!1)=>{let ke=d+R+2*q;return c>=q&&(ke+=q+1),this.getLast(ke,ee)},u=o(i.scrollTop,n.top),V=o(i.scrollLeft,n.left),I=this.both?{rows:0,cols:0}:0,M=this.last,O=!1,J=this.lastScrollPos;if(this.both){let c=this.lastScrollPos.top<=u,d=this.lastScrollPos.left<=V;if(!this._appendOnly||this._appendOnly&&(c||d)){let f={rows:s(u,this._itemSize[0]),cols:s(V,this._itemSize[1])},R={rows:r(f.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],c),cols:r(f.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],d)};I={rows:y(f.rows,R.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],c),cols:y(f.cols,R.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],d)},M={rows:m(f.rows,I.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:m(f.cols,I.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},O=I.rows!==this.first.rows||M.rows!==this.last.rows||I.cols!==this.first.cols||M.cols!==this.last.cols||this.isRangeChanged,J={top:u,left:V}}}else{let c=this.horizontal?V:u,d=this.lastScrollPos<=c;if(!this._appendOnly||this._appendOnly&&d){let f=s(c,this._itemSize),R=r(f,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,d);I=y(f,R,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,d),M=m(f,I,this.last,this.numItemsInViewport,this.d_numToleratedItems),O=I!==this.first||M!==this.last||this.isRangeChanged,J=c}}return{first:I,last:M,isRangeChanged:O,scrollPos:J}}onScrollChange(e){let{first:i,last:n,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let r={first:i,last:n};if(this.setContentPosition(r),this.first=i,this.last=n,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",r),this._lazy&&this.isPageChanged(i)){let y={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:n,this.items.length)};(this.lazyLoadState.first!==y.first||this.lazyLoadState.last!==y.last)&&this.handleEvents("onLazyLoad",y),this.lazyLoadState=y}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Ce(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=ae()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(He(this.elementViewChild?.nativeElement)){let[e,i]=[re(this.elementViewChild?.nativeElement),le(this.elementViewChild?.nativeElement)],[n,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?n||o:this.horizontal?n:this.vertical?o:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=re(this.contentEl),this.defaultContentHeight=le(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){let i=(this._items||[]).length,n=this.both?this.first.rows+e:this.first+e;return{index:n,count:i,first:n===0,last:n===i-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(e,i){let n=this.loaderArr.length;return K({index:e,count:n,first:e===0,last:e===n-1,even:e%2===0,odd:e%2!==0},i)}static \u0275fac=function(i){return new(i||t)(ge(Se))};static \u0275cmp=T({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,n,o){if(i&1&&(D(o,ut,4),D(o,Wt,4),D(o,Zt,4),D(o,qt,4),D(o,me,4)),i&2){let s;w(s=k())&&(n.contentTemplate=s.first),w(s=k())&&(n.itemTemplate=s.first),w(s=k())&&(n.loaderTemplate=s.first),w(s=k())&&(n.loaderIconTemplate=s.first),w(s=k())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&(Y(Kt,5),Y(ut,5)),i&2){let o;w(o=k())&&(n.elementViewChild=o.first),w(o=k())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&2&&Ne("height",n.height)},inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Q([mt]),z,Ie],ngContentSelectors:Gt,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-virtualscroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-virtualscroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-virtualscroller-spacer",3,"ngStyle"],[1,"p-virtualscroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(i,n){if(i&1&&(U(),g(0,gi,8,16,"ng-container",6)(1,vi,2,1,"ng-template",null,0,be)),i&2){let o=_e(2);a("ngIf",!n._disabled)("ngIfElse",o)}},dependencies:[N,de,qe,pe,ue,Ee,st,F],encapsulation:2})}return t})(),Qn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ie({type:t});static \u0275inj=te({imports:[Ci,F,F]})}return t})();var xi=["*"],wi=({dt:t})=>`
|
|
274
|
+
.p-iconfield {
|
|
275
|
+
position: relative;
|
|
276
|
+
display: block;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.p-inputicon {
|
|
280
|
+
position: absolute;
|
|
281
|
+
top: 50%;
|
|
282
|
+
margin-top: calc(-1 * (${t("icon.size")} / 2));
|
|
283
|
+
color: ${t("iconfield.icon.color")};
|
|
284
|
+
line-height: 1;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.p-iconfield .p-inputicon:first-child {
|
|
288
|
+
inset-inline-start: ${t("form.field.padding.x")};
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.p-iconfield .p-inputicon:last-child {
|
|
292
|
+
inset-inline-end: ${t("form.field.padding.x")};
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.p-iconfield .p-inputtext:not(:first-child) {
|
|
296
|
+
padding-inline-start: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.p-iconfield .p-inputtext:not(:last-child) {
|
|
300
|
+
padding-inline-end: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.p-iconfield:has(.p-inputfield-sm) .p-inputicon {
|
|
304
|
+
font-size: ${t("form.field.sm.font.size")};
|
|
305
|
+
width: ${t("form.field.sm.font.size")};
|
|
306
|
+
height: ${t("form.field.sm.font.size")};
|
|
307
|
+
margin-top: calc(-1 * (${t("form.field.sm.font.size")} / 2));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.p-iconfield:has(.p-inputfield-lg) .p-inputicon {
|
|
311
|
+
font-size: ${t("form.field.lg.font.size")};
|
|
312
|
+
width: ${t("form.field.lg.font.size")};
|
|
313
|
+
height: ${t("form.field.lg.font.size")};
|
|
314
|
+
margin-top: calc(-1 * (${t("form.field.lg.font.size")} / 2));
|
|
315
|
+
}
|
|
316
|
+
`,ki={root:"p-iconfield"},gt=(()=>{class t extends W{name="iconfield";theme=wi;classes=ki;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})();var no=(()=>{class t extends Z{iconPosition="left";get _styleClass(){return this.styleClass}styleClass;_componentStyle=A(gt);static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=T({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostAttrs:[1,"p-iconfield"],hostVars:6,hostBindings:function(i,n){i&2&&(b(n._styleClass),Te("p-iconfield-left",n.iconPosition==="left")("p-iconfield-right",n.iconPosition==="right"))},inputs:{iconPosition:"iconPosition",styleClass:"styleClass"},features:[Q([gt]),z],ngContentSelectors:xi,decls:1,vars:0,template:function(i,n){i&1&&(U(),X(0))},dependencies:[N],encapsulation:2,changeDetection:0})}return t})();var Ii=["*"],Si={root:"p-inputicon"},yt=(()=>{class t extends W{name="inputicon";classes=Si;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})(),_o=(()=>{class t extends Z{styleClass;get hostClasses(){return this.styleClass}_componentStyle=A(yt);static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=T({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:4,hostBindings:function(i,n){i&2&&(b(n.hostClasses),Te("p-inputicon",!0))},inputs:{styleClass:"styleClass"},features:[Q([yt]),z],ngContentSelectors:Ii,decls:1,vars:0,template:function(i,n){i&1&&(U(),X(0))},dependencies:[N,F],encapsulation:2,changeDetection:0})}return t})();export{lt as a,rt as b,nn as c,Xi as d,pt as e,wn as f,no as g,_o as h,Ci as i,Qn as j};
|