marketplacepos 5.46.4 → 5.46.5
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 +43 -43
- package/Marketplace/{chunk-PQQSREEC.js → chunk-3PPLPXAX.js} +2 -2
- package/Marketplace/chunk-4BWA3J6V.js +1 -0
- package/Marketplace/chunk-5EDCBXCE.js +1 -0
- package/Marketplace/{chunk-HS64MICX.js → chunk-5X2M3HM4.js} +1 -1
- package/Marketplace/{chunk-UWC2EVFY.js → chunk-5ZR5WIHG.js} +1 -1
- package/Marketplace/{chunk-KVOROMP7.js → chunk-6NZJ2XKE.js} +1 -1
- package/Marketplace/{chunk-UBA54WUZ.js → chunk-6RCPPNMX.js} +1 -1
- package/Marketplace/{chunk-7ZMHGW2W.js → chunk-6WE2RKUX.js} +1 -1
- package/Marketplace/chunk-6YBD22SK.js +1 -0
- package/Marketplace/{chunk-5BCJEYHC.js → chunk-74AYYW2T.js} +1 -1
- package/Marketplace/{chunk-NTWV33QC.js → chunk-74WQHBVN.js} +1 -1
- package/Marketplace/{chunk-5RAWBW2Q.js → chunk-774TVUXT.js} +1 -1
- package/Marketplace/{chunk-NLJHQ4MQ.js → chunk-7ES3PHES.js} +1 -1
- package/Marketplace/{chunk-F4X5RWKY.js → chunk-7IOOG3TG.js} +8 -8
- package/Marketplace/{chunk-5KMDUD2M.js → chunk-7QKEL4DD.js} +1 -1
- package/Marketplace/{chunk-SWV5QK47.js → chunk-7TQWJCUW.js} +1 -1
- package/Marketplace/{chunk-32YMOC74.js → chunk-AY25KXUA.js} +1 -1
- package/Marketplace/chunk-BVV5R6HN.js +1 -0
- package/Marketplace/{chunk-WIMLQM6B.js → chunk-CAK6MZUW.js} +2 -2
- package/Marketplace/chunk-CO5XZENC.js +1 -0
- package/Marketplace/{chunk-34DHFHCG.js → chunk-DRVWJPA2.js} +1 -1
- package/Marketplace/{chunk-GQXYHXWJ.js → chunk-DXPLB6OB.js} +1 -1
- package/Marketplace/chunk-EMJTQYVO.js +1 -0
- package/Marketplace/{chunk-ZKROHCYD.js → chunk-FYB62QQV.js} +1 -1
- package/Marketplace/{chunk-FF4PEO2O.js → chunk-GVXBDVLX.js} +1 -1
- package/Marketplace/chunk-HVA57ZPZ.js +1 -0
- package/Marketplace/{chunk-TEJITT3W.js → chunk-HZPILY4V.js} +1 -1
- package/Marketplace/chunk-JX63Y4CW.js +1 -0
- package/Marketplace/{chunk-W4MTON2T.js → chunk-KEW73FTY.js} +1 -1
- package/Marketplace/{chunk-NABJFAKJ.js → chunk-KUYNX5QT.js} +1 -1
- package/Marketplace/{chunk-XSJBP4EN.js → chunk-L74PANZ5.js} +1 -1
- package/Marketplace/{chunk-QTTNQJAK.js → chunk-LEM7ESKJ.js} +1 -1
- package/Marketplace/{chunk-SBLG2UP7.js → chunk-LRBJ5RU5.js} +1 -1
- package/Marketplace/{chunk-2GS6DJ33.js → chunk-LS2KMKMD.js} +1 -1
- package/Marketplace/chunk-LSWILW54.js +1 -0
- package/Marketplace/chunk-MACYDQHW.js +1 -0
- package/Marketplace/{chunk-T4OUIM2Z.js → chunk-OFEZTCJA.js} +1 -1
- package/Marketplace/{chunk-FY73EXB5.js → chunk-OG4QM5FO.js} +1 -1
- package/Marketplace/{chunk-BVPWV5YO.js → chunk-OLVWSY6L.js} +1 -1
- package/Marketplace/{chunk-2O4IEGGR.js → chunk-PGP3WHIS.js} +3 -3
- package/Marketplace/{chunk-AR6PLQ6X.js → chunk-QUEDQBZU.js} +1 -1
- package/Marketplace/{chunk-B3HL4DNT.js → chunk-R5WARQUS.js} +1 -1
- package/Marketplace/chunk-RNZC6DAM.js +1 -0
- package/Marketplace/{chunk-GCOS7VK3.js → chunk-RT3SMV6M.js} +10 -10
- package/Marketplace/{chunk-BIHR6KWH.js → chunk-RUXJCVKX.js} +1 -1
- package/Marketplace/{chunk-NRUVGW2I.js → chunk-SXFLJBXI.js} +1 -1
- package/Marketplace/{chunk-HGGI2V4H.js → chunk-U23D2EPE.js} +1 -1
- package/Marketplace/{chunk-CJ4F7QUO.js → chunk-UGYIOLBR.js} +1 -1
- package/Marketplace/{chunk-PNF6K247.js → chunk-UQFILVPA.js} +2 -2
- package/Marketplace/{chunk-BG4CT2T7.js → chunk-UQL42ODX.js} +1 -1
- package/Marketplace/{chunk-EEZKQOJW.js → chunk-VEYUDPOA.js} +1 -1
- package/Marketplace/{chunk-6DYFCRDG.js → chunk-VIXNFSMT.js} +1 -1
- package/Marketplace/{chunk-YJKAX7P2.js → chunk-VQIT62HE.js} +1 -1
- package/Marketplace/{chunk-ZMF3NFLA.js → chunk-WBCI5HV5.js} +1 -1
- package/Marketplace/{chunk-5G2U27IM.js → chunk-WHV5AYGI.js} +1 -1
- package/Marketplace/{chunk-6K6XBSWF.js → chunk-WREH3C74.js} +2 -2
- package/Marketplace/{chunk-KEQ7PUNM.js → chunk-XANN3R5J.js} +1 -1
- package/Marketplace/{chunk-P35PCOWA.js → chunk-XHBBUUIF.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-QTIXFWWZ.js → main-KIV2XNXR.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4L5TB6FG.js +0 -1
- package/Marketplace/chunk-5JBIRETU.js +0 -1
- package/Marketplace/chunk-A44LN77B.js +0 -1
- package/Marketplace/chunk-CZBE6NFO.js +0 -1
- package/Marketplace/chunk-DLZRRLED.js +0 -1
- package/Marketplace/chunk-DZJWZ52D.js +0 -1
- package/Marketplace/chunk-HGDEIMTN.js +0 -1
- package/Marketplace/chunk-LRKVYKNL.js +0 -1
- package/Marketplace/chunk-QNX7E4P2.js +0 -1
- package/Marketplace/chunk-RI627B2Z.js +0 -1
- package/Marketplace/chunk-TFM5EMU4.js +0 -1
- package/Marketplace/chunk-TYSVSEYQ.js +0 -1
|
@@ -378,6 +378,47 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
378
378
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
379
379
|
THE SOFTWARE.
|
|
380
380
|
|
|
381
|
+
--------------------------------------------------------------------------------
|
|
382
|
+
Package: highcharts
|
|
383
|
+
License: "https://www.highcharts.com/license"
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
--------------------------------------------------------------------------------
|
|
387
|
+
Package: highcharts-angular
|
|
388
|
+
License: "SEE LICENSE IN <LICENSE>"
|
|
389
|
+
|
|
390
|
+
Highcharts Angular
|
|
391
|
+
|
|
392
|
+
Copyright (c) 2016-2017, Highsoft
|
|
393
|
+
|
|
394
|
+
The software in Highcharts Angular repository is free and open source,
|
|
395
|
+
but as Highcharts Angular relies on Highcharts.js, it requires a valid
|
|
396
|
+
Highcharts license for commercial use.
|
|
397
|
+
|
|
398
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
399
|
+
a copy of this software and associated documentation files (the
|
|
400
|
+
"Software"), to deal in the Software without restriction, including
|
|
401
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
402
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
403
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
404
|
+
the following conditions:
|
|
405
|
+
|
|
406
|
+
The above copyright notice and this permission notice shall be
|
|
407
|
+
included in all copies or substantial portions of the Software.
|
|
408
|
+
|
|
409
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
410
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
411
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
412
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
413
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
414
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
415
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
416
|
+
|
|
417
|
+
--------------------------------------------------------------------------------
|
|
418
|
+
Package: bigger-picture
|
|
419
|
+
License: "MIT"
|
|
420
|
+
|
|
421
|
+
|
|
381
422
|
--------------------------------------------------------------------------------
|
|
382
423
|
Package: @primeuix/utils
|
|
383
424
|
License: "MIT"
|
|
@@ -431,48 +472,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
431
472
|
SOFTWARE.
|
|
432
473
|
|
|
433
474
|
--------------------------------------------------------------------------------
|
|
434
|
-
Package:
|
|
435
|
-
License: "https://www.highcharts.com/license"
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
--------------------------------------------------------------------------------
|
|
439
|
-
Package: highcharts-angular
|
|
440
|
-
License: "SEE LICENSE IN <LICENSE>"
|
|
441
|
-
|
|
442
|
-
Highcharts Angular
|
|
443
|
-
|
|
444
|
-
Copyright (c) 2016-2017, Highsoft
|
|
445
|
-
|
|
446
|
-
The software in Highcharts Angular repository is free and open source,
|
|
447
|
-
but as Highcharts Angular relies on Highcharts.js, it requires a valid
|
|
448
|
-
Highcharts license for commercial use.
|
|
449
|
-
|
|
450
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
451
|
-
a copy of this software and associated documentation files (the
|
|
452
|
-
"Software"), to deal in the Software without restriction, including
|
|
453
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
454
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
455
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
456
|
-
the following conditions:
|
|
457
|
-
|
|
458
|
-
The above copyright notice and this permission notice shall be
|
|
459
|
-
included in all copies or substantial portions of the Software.
|
|
460
|
-
|
|
461
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
462
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
463
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
464
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
465
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
466
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
467
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
468
|
-
|
|
469
|
-
--------------------------------------------------------------------------------
|
|
470
|
-
Package: bigger-picture
|
|
475
|
+
Package: @microsoft/signalr
|
|
471
476
|
License: "MIT"
|
|
472
477
|
|
|
473
478
|
|
|
474
479
|
--------------------------------------------------------------------------------
|
|
475
|
-
Package: @
|
|
480
|
+
Package: @ng-select/ng-select
|
|
476
481
|
License: "MIT"
|
|
477
482
|
|
|
478
483
|
|
|
@@ -586,11 +591,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
586
591
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
587
592
|
SOFTWARE.
|
|
588
593
|
|
|
589
|
-
--------------------------------------------------------------------------------
|
|
590
|
-
Package: @ng-select/ng-select
|
|
591
|
-
License: "MIT"
|
|
592
|
-
|
|
593
|
-
|
|
594
594
|
--------------------------------------------------------------------------------
|
|
595
595
|
Package: @angular/forms
|
|
596
596
|
License: "MIT"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as He,b as Ne,c as Ue,d as Je}from"./chunk-5CKVZBHM.js";import{a as We}from"./chunk-BKRCW7SH.js";import{a as qe}from"./chunk-RGAKHXPF.js";import{b as je}from"./chunk-T2OSIFLN.js";import{a as Pe,c as Ge,d as Ze}from"./chunk-QW4EOJRM.js";import{a as Ye}from"./chunk-Q4N2QUV6.js";import{a as Re}from"./chunk-7G6GQTSH.js";import{a as Be}from"./chunk-YQLOB7IQ.js";import{a as ae}from"./chunk-YFDFIBAG.js";import{N as Le,P as oe,Q as Me,R as U,S as D,T as $e,V as se,_ as ze,aa as De,e as Ve,fa as Ae,ia as Qe,na as Ke,oa as R,pa as j,q as z,r as E,t as ke,u as Fe,z as Ee}from"./chunk-RC5PUUVM.js";import{a as we}from"./chunk-5PS6ZS3N.js";import{d as ee,f as Se,g as te,h as ie,i as ne,n as le}from"./chunk-FXQKRJWU.js";import{$b as G,Aa as fe,Ac as k,Bc as _,Ca as A,Cc as h,Fc as $,Gb as Q,Gc as M,Hb as ye,Hc as B,Ic as J,Ka as v,Kb as K,Kc as Ie,La as ge,Lc as xe,Mb as p,Mc as Te,Qc as Oe,Ra as L,Rc as Z,Sc as w,Tc as X,Uc as Ce,Xb as x,Yb as r,Zb as be,ac as N,cd as F,dc as Y,ia as ue,ic as d,ja as _e,jc as u,ka as he,kc as V,lc as T,mc as O,nc as C,oc as S,od as m,pa as me,pd as P,rb as c,rd as H,sd as ve,tc as b,uc as a,xb as W,ya as f,za as g,zc as y}from"./chunk-OJMQBH6T.js";import{a as pe,b as de}from"./chunk-66YHNWRR.js";var Xe=(()=>{class t extends Re{static \u0275fac=(()=>{let e;return function(i){return(e||(e=A(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["BlankIcon"]],features:[K],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(n,i){n&1&&(fe(),d(0,"svg",0),V(1,"rect",1),u())},encapsulation:2})}return t})();var q=t=>({height:t}),at=(t,s,e)=>({"p-select-option":!0,"p-select-option-selected":t,"p-disabled":s,"p-focus":e}),re=t=>({$implicit:t});function rt(t,s){t&1&&V(0,"CheckIcon",5)}function ct(t,s){t&1&&V(0,"BlankIcon",6)}function pt(t,s){if(t&1&&(T(0),p(1,rt,1,0,"CheckIcon",3)(2,ct,1,0,"BlankIcon",4),O()),t&2){let e=a();c(),r("ngIf",e.selected),c(),r("ngIf",!e.selected)}}function dt(t,s){if(t&1&&(d(0,"span"),M(1),u()),t&2){let e,n=a();c(),B((e=n.label)!==null&&e!==void 0?e:"empty")}}function ut(t,s){t&1&&C(0)}var _t=["item"],ht=["group"],mt=["loader"],ft=["selectedItem"],gt=["header"],et=["filter"],yt=["footer"],bt=["emptyfilter"],It=["empty"],xt=["dropdownicon"],Tt=["loadingicon"],Ot=["clearicon"],Ct=["filtericon"],vt=["onicon"],St=["officon"],wt=["cancelicon"],Vt=["focusInput"],kt=["editableInput"],Ft=["items"],Et=["scroller"],Lt=["overlay"],Mt=["firstHiddenFocusableEl"],$t=["lastHiddenFocusableEl"],zt=()=>({class:"p-select-clear-icon"}),Dt=()=>({class:"p-select-dropdown-icon"}),it=t=>({options:t}),nt=(t,s)=>({$implicit:t,options:s}),At=()=>({});function Qt(t,s){if(t&1&&(T(0),M(1),O()),t&2){let e=a(2);c(),B(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Kt(t,s){if(t&1&&C(0,24),t&2){let e=a(2);r("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",w(2,re,e.selectedOption))}}function Bt(t,s){if(t&1&&(d(0,"span"),M(1),u()),t&2){let e=a(3);c(),B(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Pt(t,s){if(t&1&&p(0,Bt,2,1,"span",18),t&2){let e=a(2);r("ngIf",e.isSelectedOptionEmpty())}}function Ht(t,s){if(t&1){let e=S();d(0,"span",22,3),b("focus",function(i){f(e);let l=a();return g(l.onInputFocus(i))})("blur",function(i){f(e);let l=a();return g(l.onInputBlur(i))})("keydown",function(i){f(e);let l=a();return g(l.onKeyDown(i))}),p(2,Qt,2,1,"ng-container",20)(3,Kt,1,4,"ng-container",23)(4,Pt,1,1,"ng-template",null,4,F),u()}if(t&2){let e,n=$(5),i=a();r("ngClass",i.inputClass)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),x("aria-disabled",i.disabled)("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.disabled?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required)("required",i.required),c(2),r("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",n),c(),r("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function Rt(t,s){if(t&1){let e=S();d(0,"input",25,5),b("input",function(i){f(e);let l=a();return g(l.onEditableInput(i))})("keydown",function(i){f(e);let l=a();return g(l.onKeyDown(i))})("focus",function(i){f(e);let l=a();return g(l.onInputFocus(i))})("blur",function(i){f(e);let l=a();return g(l.onInputBlur(i))}),u()}if(t&2){let e=a();r("ngClass",e.inputClass)("disabled",e.disabled)("pAutoFocus",e.autofocus),x("id",e.inputId)("maxlength",e.maxlength)("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function qt(t,s){if(t&1){let e=S();d(0,"TimesIcon",27),b("click",function(i){f(e);let l=a(2);return g(l.clear(i))}),u()}t&2&&x("data-pc-section","clearicon")}function Gt(t,s){}function Nt(t,s){t&1&&p(0,Gt,0,0,"ng-template")}function Zt(t,s){if(t&1){let e=S();d(0,"span",27),b("click",function(i){f(e);let l=a(2);return g(l.clear(i))}),p(1,Nt,1,0,null,28),u()}if(t&2){let e=a(2);x("data-pc-section","clearicon"),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",Z(3,zt))}}function Ut(t,s){if(t&1&&(T(0),p(1,qt,1,1,"TimesIcon",26)(2,Zt,2,4,"span",26),O()),t&2){let e=a();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function jt(t,s){t&1&&C(0)}function Wt(t,s){if(t&1&&(T(0),p(1,jt,1,0,"ng-container",29),O()),t&2){let e=a(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Yt(t,s){if(t&1&&V(0,"span",32),t&2){let e=a(3);r("ngClass","p-select-loading-icon pi-spin "+e.loadingIcon)}}function Jt(t,s){t&1&&V(0,"span",33),t&2&&N("p-select-loading-icon pi pi-spinner pi-spin")}function Xt(t,s){if(t&1&&(T(0),p(1,Yt,1,1,"span",30)(2,Jt,1,2,"span",31),O()),t&2){let e=a(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function ei(t,s){if(t&1&&(T(0),p(1,Wt,2,1,"ng-container",18)(2,Xt,3,2,"ng-container",18),O()),t&2){let e=a();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function ti(t,s){if(t&1&&V(0,"span",37),t&2){let e=a(3);r("ngClass",e.dropdownIcon)}}function ii(t,s){t&1&&V(0,"ChevronDownIcon",38),t&2&&r("styleClass","p-select-dropdown-icon")}function ni(t,s){if(t&1&&(T(0),p(1,ti,1,1,"span",35)(2,ii,1,1,"ChevronDownIcon",36),O()),t&2){let e=a(2);c(),r("ngIf",e.dropdownIcon),c(),r("ngIf",!e.dropdownIcon)}}function li(t,s){}function oi(t,s){t&1&&p(0,li,0,0,"ng-template")}function si(t,s){if(t&1&&(d(0,"span",39),p(1,oi,1,0,null,28),u()),t&2){let e=a(2);c(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Z(2,Dt))}}function ai(t,s){if(t&1&&p(0,ni,3,2,"ng-container",18)(1,si,2,3,"span",34),t&2){let e=a();r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),c(),r("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function ri(t,s){t&1&&C(0)}function ci(t,s){t&1&&C(0)}function pi(t,s){if(t&1&&(T(0),p(1,ci,1,0,"ng-container",28),O()),t&2){let e=a(3);c(),r("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",w(2,it,e.filterOptions))}}function di(t,s){t&1&&V(0,"SearchIcon")}function ui(t,s){}function _i(t,s){t&1&&p(0,ui,0,0,"ng-template")}function hi(t,s){if(t&1&&(d(0,"span"),p(1,_i,1,0,null,29),u()),t&2){let e=a(4);c(),r("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function mi(t,s){if(t&1){let e=S();d(0,"p-iconfield")(1,"input",46,10),b("input",function(i){f(e);let l=a(3);return g(l.onFilterInputChange(i))})("keydown",function(i){f(e);let l=a(3);return g(l.onFilterKeyDown(i))})("blur",function(i){f(e);let l=a(3);return g(l.onFilterBlur(i))}),u(),d(3,"p-inputicon"),p(4,di,1,0,"SearchIcon",18)(5,hi,2,1,"span",18),u()()}if(t&2){let e=a(3);c(),r("pSize",e.size)("value",e._filterValue()||"")("variant",e.variant),x("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),c(3),r("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),r("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function fi(t,s){if(t&1){let e=S();d(0,"div",45),b("click",function(i){return f(e),g(i.stopPropagation())}),p(1,pi,2,4,"ng-container",20)(2,mi,6,9,"ng-template",null,9,F),u()}if(t&2){let e=$(3),n=a(2);c(),r("ngIf",n.filterTemplate||n._filterTemplate)("ngIfElse",e)}}function gi(t,s){t&1&&C(0)}function yi(t,s){if(t&1&&p(0,gi,1,0,"ng-container",28),t&2){let e=s.$implicit,n=s.options;a(2);let i=$(9);r("ngTemplateOutlet",i)("ngTemplateOutletContext",X(2,nt,e,n))}}function bi(t,s){t&1&&C(0)}function Ii(t,s){if(t&1&&p(0,bi,1,0,"ng-container",28),t&2){let e=s.options,n=a(4);r("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",w(2,it,e))}}function xi(t,s){t&1&&(T(0),p(1,Ii,1,4,"ng-template",null,12,F),O())}function Ti(t,s){if(t&1){let e=S();d(0,"p-scroller",47,11),b("onLazyLoad",function(i){f(e);let l=a(2);return g(l.onLazyLoad.emit(i))}),p(2,yi,1,5,"ng-template",null,2,F)(4,xi,3,0,"ng-container",18),u()}if(t&2){let e=a(2);G(w(8,q,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Oi(t,s){t&1&&C(0)}function Ci(t,s){if(t&1&&(T(0),p(1,Oi,1,0,"ng-container",28),O()),t&2){a();let e=$(9),n=a();c(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",X(3,nt,n.visibleOptions(),Z(2,At)))}}function vi(t,s){if(t&1&&(d(0,"span"),M(1),u()),t&2){let e=a(2).$implicit,n=a(3);c(),B(n.getOptionGroupLabel(e.optionGroup))}}function Si(t,s){t&1&&C(0)}function wi(t,s){if(t&1&&(T(0),d(1,"li",51),p(2,vi,2,1,"span",18)(3,Si,1,0,"ng-container",28),u(),O()),t&2){let e=a(),n=e.$implicit,i=e.index,l=a().options,o=a(2);c(),r("ngStyle",w(5,q,l.itemSize+"px")),x("id",o.id+"_"+o.getOptionIndex(i,l)),c(),r("ngIf",!o.groupTemplate&&!o._groupTemplate),c(),r("ngTemplateOutlet",o.groupTemplate||o._groupTemplate)("ngTemplateOutletContext",w(7,re,n.optionGroup))}}function Vi(t,s){if(t&1){let e=S();T(0),d(1,"p-selectItem",52),b("onClick",function(i){f(e);let l=a().$implicit,o=a(3);return g(o.onOptionSelect(i,l))})("onMouseEnter",function(i){f(e);let l=a().index,o=a().options,I=a(2);return g(I.onOptionMouseEnter(i,I.getOptionIndex(l,o)))}),u(),O()}if(t&2){let e=a(),n=e.$implicit,i=e.index,l=a().options,o=a(2);c(),r("id",o.id+"_"+o.getOptionIndex(i,l))("option",n)("checkmark",o.checkmark)("selected",o.isSelected(n))("label",o.getOptionLabel(n))("disabled",o.isOptionDisabled(n))("template",o.itemTemplate||o._itemTemplate)("focused",o.focusedOptionIndex()===o.getOptionIndex(i,l))("ariaPosInset",o.getAriaPosInset(o.getOptionIndex(i,l)))("ariaSetSize",o.ariaSetSize)}}function ki(t,s){if(t&1&&p(0,wi,4,9,"ng-container",18)(1,Vi,2,10,"ng-container",18),t&2){let e=s.$implicit,n=a(3);r("ngIf",n.isOptionGroup(e)),c(),r("ngIf",!n.isOptionGroup(e))}}function Fi(t,s){if(t&1&&M(0),t&2){let e=a(4);J(" ",e.emptyFilterMessageLabel," ")}}function Ei(t,s){t&1&&C(0,null,14)}function Li(t,s){if(t&1&&p(0,Ei,2,0,"ng-container",29),t&2){let e=a(4);r("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function Mi(t,s){if(t&1&&(d(0,"li",53),p(1,Fi,1,1)(2,Li,1,1,"ng-container"),u()),t&2){let e=a().options,n=a(2);r("ngStyle",w(2,q,e.itemSize+"px")),c(),Y(!n.emptyFilterTemplate&&!n._emptyFilterTemplate&&!n.emptyTemplate?1:2)}}function $i(t,s){if(t&1&&M(0),t&2){let e=a(4);J(" ",e.emptyMessageLabel," ")}}function zi(t,s){t&1&&C(0,null,15)}function Di(t,s){if(t&1&&p(0,zi,2,0,"ng-container",29),t&2){let e=a(4);r("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Ai(t,s){if(t&1&&(d(0,"li",53),p(1,$i,1,1)(2,Di,1,1,"ng-container"),u()),t&2){let e=a().options,n=a(2);r("ngStyle",w(2,q,e.itemSize+"px")),c(),Y(!n.emptyTemplate&&!n._emptyTemplate?1:2)}}function Qi(t,s){if(t&1&&(d(0,"ul",48,13),p(2,ki,2,2,"ng-template",49)(3,Mi,3,4,"li",50)(4,Ai,3,4,"li",50),u()),t&2){let e=s.$implicit,n=s.options,i=a(2);G(n.contentStyle),r("ngClass",n.contentStyleClass),x("id",i.id+"_list")("aria-label",i.listLabel),c(2),r("ngForOf",e),c(),r("ngIf",i.filterValue&&i.isEmpty()),c(),r("ngIf",!i.filterValue&&i.isEmpty())}}function Ki(t,s){t&1&&C(0)}function Bi(t,s){if(t&1){let e=S();d(0,"div",40)(1,"span",41,6),b("focus",function(i){f(e);let l=a();return g(l.onFirstHiddenFocus(i))}),u(),p(3,ri,1,0,"ng-container",29)(4,fi,4,2,"div",42),d(5,"div",43),p(6,Ti,5,10,"p-scroller",44)(7,Ci,2,6,"ng-container",18)(8,Qi,5,8,"ng-template",null,7,F),u(),p(10,Ki,1,0,"ng-container",29),d(11,"span",41,8),b("focus",function(i){f(e);let l=a();return g(l.onLastHiddenFocus(i))}),u()()}if(t&2){let e=a();N(e.panelStyleClass),r("ngClass","p-select-overlay p-component")("ngStyle",e.panelStyle),c(),x("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),r("ngIf",e.filter),c(),be("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),c(),r("ngIf",e.virtualScroll),c(),r("ngIf",!e.virtualScroll),c(3),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),c(),x("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Pi=({dt:t})=>`
|
|
1
|
+
import{a as Re,b as Ne,c as Ue,d as Je}from"./chunk-5CKVZBHM.js";import{a as We}from"./chunk-BKRCW7SH.js";import{a as qe}from"./chunk-RGAKHXPF.js";import{b as je}from"./chunk-T2OSIFLN.js";import{a as Be,c as Ge,d as Ze}from"./chunk-QW4EOJRM.js";import{a as Ye}from"./chunk-Q4N2QUV6.js";import{a as He}from"./chunk-7G6GQTSH.js";import{a as Ke}from"./chunk-YQLOB7IQ.js";import{a as ae}from"./chunk-YFDFIBAG.js";import{N as Le,P as le,Q as Me,R as U,S as D,T as $e,V as se,_ as ze,aa as De,e as Ve,fa as Ae,ia as Pe,na as Qe,oa as H,pa as j,q as z,r as L,t as ke,u as Fe,z as Ee}from"./chunk-RC5PUUVM.js";import{a as we}from"./chunk-5PS6ZS3N.js";import{d as ee,f as Se,g as te,h as ie,i as ne,n as oe}from"./chunk-FXQKRJWU.js";import{$b as G,Aa as fe,Ac as F,Bc as _,Ca as A,Cc as h,Fc as $,Gb as P,Gc as M,Hb as ye,Hc as K,Ic as J,Ka as C,Kb as Q,Kc as Ie,La as ge,Lc as xe,Mb as p,Mc as Oe,Qc as ve,Ra as k,Rc as Z,Sc as w,Tc as X,Uc as Te,Xb as x,Yb as r,Zb as be,ac as N,cd as E,dc as Y,ia as ue,ic as d,ja as _e,jc as u,ka as he,kc as V,lc as O,mc as v,nc as T,oc as S,od as m,pa as me,pd as B,rb as c,rd as R,sd as Ce,tc as b,uc as a,xb as W,ya as f,za as g,zc as y}from"./chunk-OJMQBH6T.js";import{a as pe,b as de}from"./chunk-66YHNWRR.js";var Xe=(()=>{class t extends He{static \u0275fac=(()=>{let e;return function(i){return(e||(e=A(t)))(i||t)}})();static \u0275cmp=P({type:t,selectors:[["BlankIcon"]],features:[Q],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(n,i){n&1&&(fe(),d(0,"svg",0),V(1,"rect",1),u())},encapsulation:2})}return t})();var q=t=>({height:t}),rt=(t,l,e)=>({"p-select-option":!0,"p-select-option-selected":t,"p-disabled":l,"p-focus":e}),re=t=>({$implicit:t});function ct(t,l){t&1&&V(0,"CheckIcon",5)}function pt(t,l){t&1&&V(0,"BlankIcon",6)}function dt(t,l){if(t&1&&(O(0),p(1,ct,1,0,"CheckIcon",3)(2,pt,1,0,"BlankIcon",4),v()),t&2){let e=a();c(),r("ngIf",e.selected),c(),r("ngIf",!e.selected)}}function ut(t,l){if(t&1&&(d(0,"span"),M(1),u()),t&2){let e,n=a();c(),K((e=n.label)!==null&&e!==void 0?e:"empty")}}function _t(t,l){t&1&&T(0)}var ht=["item"],mt=["group"],ft=["loader"],gt=["selectedItem"],yt=["header"],et=["filter"],bt=["footer"],It=["emptyfilter"],xt=["empty"],Ot=["dropdownicon"],vt=["loadingicon"],Tt=["clearicon"],Ct=["filtericon"],St=["onicon"],wt=["officon"],Vt=["cancelicon"],kt=["focusInput"],Ft=["editableInput"],Et=["items"],Lt=["scroller"],Mt=["overlay"],$t=["firstHiddenFocusableEl"],zt=["lastHiddenFocusableEl"],Dt=()=>({class:"p-select-clear-icon"}),At=()=>({class:"p-select-dropdown-icon"}),it=t=>({options:t}),nt=(t,l)=>({$implicit:t,options:l}),Pt=()=>({});function Qt(t,l){if(t&1&&(O(0),M(1),v()),t&2){let e=a(2);c(),K(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Kt(t,l){if(t&1&&T(0,24),t&2){let e=a(2);r("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",w(2,re,e.selectedOption))}}function Bt(t,l){if(t&1&&(d(0,"span"),M(1),u()),t&2){let e=a(3);c(),K(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Rt(t,l){if(t&1&&p(0,Bt,2,1,"span",18),t&2){let e=a(2);r("ngIf",e.isSelectedOptionEmpty())}}function Ht(t,l){if(t&1){let e=S();d(0,"span",22,3),b("focus",function(i){f(e);let o=a();return g(o.onInputFocus(i))})("blur",function(i){f(e);let o=a();return g(o.onInputBlur(i))})("keydown",function(i){f(e);let o=a();return g(o.onKeyDown(i))}),p(2,Qt,2,1,"ng-container",20)(3,Kt,1,4,"ng-container",23)(4,Rt,1,1,"ng-template",null,4,E),u()}if(t&2){let e,n=$(5),i=a();r("ngClass",i.inputClass)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),x("aria-disabled",i.disabled)("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.disabled?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required)("required",i.required),c(2),r("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",n),c(),r("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function qt(t,l){if(t&1){let e=S();d(0,"input",25,5),b("input",function(i){f(e);let o=a();return g(o.onEditableInput(i))})("keydown",function(i){f(e);let o=a();return g(o.onKeyDown(i))})("focus",function(i){f(e);let o=a();return g(o.onInputFocus(i))})("blur",function(i){f(e);let o=a();return g(o.onInputBlur(i))}),u()}if(t&2){let e=a();r("ngClass",e.inputClass)("disabled",e.disabled)("pAutoFocus",e.autofocus),x("id",e.inputId)("maxlength",e.maxlength)("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Gt(t,l){if(t&1){let e=S();d(0,"TimesIcon",27),b("click",function(i){f(e);let o=a(2);return g(o.clear(i))}),u()}t&2&&x("data-pc-section","clearicon")}function Nt(t,l){}function Zt(t,l){t&1&&p(0,Nt,0,0,"ng-template")}function Ut(t,l){if(t&1){let e=S();d(0,"span",27),b("click",function(i){f(e);let o=a(2);return g(o.clear(i))}),p(1,Zt,1,0,null,28),u()}if(t&2){let e=a(2);x("data-pc-section","clearicon"),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",Z(3,Dt))}}function jt(t,l){if(t&1&&(O(0),p(1,Gt,1,1,"TimesIcon",26)(2,Ut,2,4,"span",26),v()),t&2){let e=a();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Wt(t,l){t&1&&T(0)}function Yt(t,l){if(t&1&&(O(0),p(1,Wt,1,0,"ng-container",29),v()),t&2){let e=a(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Jt(t,l){if(t&1&&V(0,"span",32),t&2){let e=a(3);r("ngClass","p-select-loading-icon pi-spin "+e.loadingIcon)}}function Xt(t,l){t&1&&V(0,"span",33),t&2&&N("p-select-loading-icon pi pi-spinner pi-spin")}function ei(t,l){if(t&1&&(O(0),p(1,Jt,1,1,"span",30)(2,Xt,1,2,"span",31),v()),t&2){let e=a(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function ti(t,l){if(t&1&&(O(0),p(1,Yt,2,1,"ng-container",18)(2,ei,3,2,"ng-container",18),v()),t&2){let e=a();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function ii(t,l){if(t&1&&V(0,"span",37),t&2){let e=a(3);r("ngClass",e.dropdownIcon)}}function ni(t,l){t&1&&V(0,"ChevronDownIcon",38),t&2&&r("styleClass","p-select-dropdown-icon")}function oi(t,l){if(t&1&&(O(0),p(1,ii,1,1,"span",35)(2,ni,1,1,"ChevronDownIcon",36),v()),t&2){let e=a(2);c(),r("ngIf",e.dropdownIcon),c(),r("ngIf",!e.dropdownIcon)}}function li(t,l){}function si(t,l){t&1&&p(0,li,0,0,"ng-template")}function ai(t,l){if(t&1&&(d(0,"span",39),p(1,si,1,0,null,28),u()),t&2){let e=a(2);c(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Z(2,At))}}function ri(t,l){if(t&1&&p(0,oi,3,2,"ng-container",18)(1,ai,2,3,"span",34),t&2){let e=a();r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),c(),r("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function ci(t,l){t&1&&T(0)}function pi(t,l){t&1&&T(0)}function di(t,l){if(t&1&&(O(0),p(1,pi,1,0,"ng-container",28),v()),t&2){let e=a(3);c(),r("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",w(2,it,e.filterOptions))}}function ui(t,l){t&1&&V(0,"SearchIcon")}function _i(t,l){}function hi(t,l){t&1&&p(0,_i,0,0,"ng-template")}function mi(t,l){if(t&1&&(d(0,"span"),p(1,hi,1,0,null,29),u()),t&2){let e=a(4);c(),r("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function fi(t,l){if(t&1){let e=S();d(0,"p-iconfield")(1,"input",46,10),b("input",function(i){f(e);let o=a(3);return g(o.onFilterInputChange(i))})("keydown",function(i){f(e);let o=a(3);return g(o.onFilterKeyDown(i))})("blur",function(i){f(e);let o=a(3);return g(o.onFilterBlur(i))}),u(),d(3,"p-inputicon"),p(4,ui,1,0,"SearchIcon",18)(5,mi,2,1,"span",18),u()()}if(t&2){let e=a(3);c(),r("pSize",e.size)("value",e._filterValue()||"")("variant",e.variant),x("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),c(3),r("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),r("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function gi(t,l){if(t&1){let e=S();d(0,"div",45),b("click",function(i){return f(e),g(i.stopPropagation())}),p(1,di,2,4,"ng-container",20)(2,fi,6,9,"ng-template",null,9,E),u()}if(t&2){let e=$(3),n=a(2);c(),r("ngIf",n.filterTemplate||n._filterTemplate)("ngIfElse",e)}}function yi(t,l){t&1&&T(0)}function bi(t,l){if(t&1&&p(0,yi,1,0,"ng-container",28),t&2){let e=l.$implicit,n=l.options;a(2);let i=$(9);r("ngTemplateOutlet",i)("ngTemplateOutletContext",X(2,nt,e,n))}}function Ii(t,l){t&1&&T(0)}function xi(t,l){if(t&1&&p(0,Ii,1,0,"ng-container",28),t&2){let e=l.options,n=a(4);r("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",w(2,it,e))}}function Oi(t,l){t&1&&(O(0),p(1,xi,1,4,"ng-template",null,12,E),v())}function vi(t,l){if(t&1){let e=S();d(0,"p-scroller",47,11),b("onLazyLoad",function(i){f(e);let o=a(2);return g(o.onLazyLoad.emit(i))}),p(2,bi,1,5,"ng-template",null,2,E)(4,Oi,3,0,"ng-container",18),u()}if(t&2){let e=a(2);G(w(8,q,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Ti(t,l){t&1&&T(0)}function Ci(t,l){if(t&1&&(O(0),p(1,Ti,1,0,"ng-container",28),v()),t&2){a();let e=$(9),n=a();c(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",X(3,nt,n.visibleOptions(),Z(2,Pt)))}}function Si(t,l){if(t&1&&(d(0,"span"),M(1),u()),t&2){let e=a(2).$implicit,n=a(3);c(),K(n.getOptionGroupLabel(e.optionGroup))}}function wi(t,l){t&1&&T(0)}function Vi(t,l){if(t&1&&(O(0),d(1,"li",51),p(2,Si,2,1,"span",18)(3,wi,1,0,"ng-container",28),u(),v()),t&2){let e=a(),n=e.$implicit,i=e.index,o=a().options,s=a(2);c(),r("ngStyle",w(5,q,o.itemSize+"px")),x("id",s.id+"_"+s.getOptionIndex(i,o)),c(),r("ngIf",!s.groupTemplate&&!s._groupTemplate),c(),r("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",w(7,re,n.optionGroup))}}function ki(t,l){if(t&1){let e=S();O(0),d(1,"p-selectItem",52),b("onClick",function(i){f(e);let o=a().$implicit,s=a(3);return g(s.onOptionSelect(i,o))})("onMouseEnter",function(i){f(e);let o=a().index,s=a().options,I=a(2);return g(I.onOptionMouseEnter(i,I.getOptionIndex(o,s)))}),u(),v()}if(t&2){let e=a(),n=e.$implicit,i=e.index,o=a().options,s=a(2);c(),r("id",s.id+"_"+s.getOptionIndex(i,o))("option",n)("checkmark",s.checkmark)("selected",s.isSelected(n))("label",s.getOptionLabel(n))("disabled",s.isOptionDisabled(n))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(i,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(i,o)))("ariaSetSize",s.ariaSetSize)}}function Fi(t,l){if(t&1&&p(0,Vi,4,9,"ng-container",18)(1,ki,2,10,"ng-container",18),t&2){let e=l.$implicit,n=a(3);r("ngIf",n.isOptionGroup(e)),c(),r("ngIf",!n.isOptionGroup(e))}}function Ei(t,l){if(t&1&&M(0),t&2){let e=a(4);J(" ",e.emptyFilterMessageLabel," ")}}function Li(t,l){t&1&&T(0,null,14)}function Mi(t,l){if(t&1&&p(0,Li,2,0,"ng-container",29),t&2){let e=a(4);r("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function $i(t,l){if(t&1&&(d(0,"li",53),p(1,Ei,1,1)(2,Mi,1,1,"ng-container"),u()),t&2){let e=a().options,n=a(2);r("ngStyle",w(2,q,e.itemSize+"px")),c(),Y(!n.emptyFilterTemplate&&!n._emptyFilterTemplate&&!n.emptyTemplate?1:2)}}function zi(t,l){if(t&1&&M(0),t&2){let e=a(4);J(" ",e.emptyMessageLabel," ")}}function Di(t,l){t&1&&T(0,null,15)}function Ai(t,l){if(t&1&&p(0,Di,2,0,"ng-container",29),t&2){let e=a(4);r("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Pi(t,l){if(t&1&&(d(0,"li",53),p(1,zi,1,1)(2,Ai,1,1,"ng-container"),u()),t&2){let e=a().options,n=a(2);r("ngStyle",w(2,q,e.itemSize+"px")),c(),Y(!n.emptyTemplate&&!n._emptyTemplate?1:2)}}function Qi(t,l){if(t&1&&(d(0,"ul",48,13),p(2,Fi,2,2,"ng-template",49)(3,$i,3,4,"li",50)(4,Pi,3,4,"li",50),u()),t&2){let e=l.$implicit,n=l.options,i=a(2);G(n.contentStyle),r("ngClass",n.contentStyleClass),x("id",i.id+"_list")("aria-label",i.listLabel),c(2),r("ngForOf",e),c(),r("ngIf",i.filterValue&&i.isEmpty()),c(),r("ngIf",!i.filterValue&&i.isEmpty())}}function Ki(t,l){t&1&&T(0)}function Bi(t,l){if(t&1){let e=S();d(0,"div",40)(1,"span",41,6),b("focus",function(i){f(e);let o=a();return g(o.onFirstHiddenFocus(i))}),u(),p(3,ci,1,0,"ng-container",29)(4,gi,4,2,"div",42),d(5,"div",43),p(6,vi,5,10,"p-scroller",44)(7,Ci,2,6,"ng-container",18)(8,Qi,5,8,"ng-template",null,7,E),u(),p(10,Ki,1,0,"ng-container",29),d(11,"span",41,8),b("focus",function(i){f(e);let o=a();return g(o.onLastHiddenFocus(i))}),u()()}if(t&2){let e=a();N(e.panelStyleClass),r("ngClass","p-select-overlay p-component")("ngStyle",e.panelStyle),c(),x("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),r("ngIf",e.filter),c(),be("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),c(),r("ngIf",e.virtualScroll),c(),r("ngIf",!e.virtualScroll),c(3),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),c(),x("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Ri=({dt:t})=>`
|
|
2
2
|
.p-select {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
cursor: pointer;
|
|
@@ -219,4 +219,4 @@ input.p-select-label {
|
|
|
219
219
|
width: ${t("select.lg.font.size")};
|
|
220
220
|
height: ${t("select.lg.font.size")};
|
|
221
221
|
}
|
|
222
|
-
`,Hi={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.disabled,"p-variant-filled":t.variant==="filled"||t.config.inputVariant()==="filled"||t.config.inputStyle()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.modelValue()!==void 0&&t.modelValue()!==null,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size==="small","p-select-lg p-inputfield-lg":t.size==="large"}],label:({instance:t,props:s})=>["p-select-label",{"p-placeholder":!s.editable&&t.label===s.placeholder,"p-select-label-empty":!s.editable&&!t.$slots.value&&(t.label==="p-emptylabel"||t.label.length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t,props:s,state:e,option:n,focusedOption:i})=>["p-select-option",{"p-select-option-selected":t.isSelected(n)&&s.highlightOnSelect,"p-focus":e.focusedOptionIndex===i,"p-disabled":t.isOptionDisabled(n)}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},tt=(()=>{class t extends Ae{name="select";theme=Pi;classes=Hi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=A(t)))(i||t)}})();static \u0275prov=_e({token:t,factory:t.\u0275fac})}return t})();var Ri={provide:we,useExisting:ue(()=>lt),multi:!0},qi=(()=>{class t extends ae{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new v;onMouseEnter=new v;onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=A(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",m],focused:[2,"focused","focused",m],label:"label",disabled:[2,"disabled","disabled",m],visible:[2,"visible","visible",m],itemSize:[2,"itemSize","itemSize",P],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",m]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[K],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-select-option-check-icon",4,"ngIf"],["styleClass","p-select-option-blank-icon",4,"ngIf"],["styleClass","p-select-option-check-icon"],["styleClass","p-select-option-blank-icon"]],template:function(n,i){n&1&&(d(0,"li",0),b("click",function(o){return i.onOptionClick(o)})("mouseenter",function(o){return i.onOptionMouseEnter(o)}),p(1,pt,3,2,"ng-container",1)(2,dt,2,1,"span",1)(3,ut,1,0,"ng-container",2),u()),n&2&&(r("id",i.id)("ngStyle",w(14,q,i.itemSize+"px"))("ngClass",Ce(16,at,i.selected&&!i.checkmark,i.disabled,i.focused)),x("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled),c(),r("ngIf",i.checkmark),c(),r("ngIf",!i.template),c(),r("ngTemplateOutlet",i.template)("ngTemplateOutletContext",w(20,re,i.option)))},dependencies:[le,ee,te,ne,ie,R,Ye,qe,Xe],encapsulation:2})}return t})(),lt=(()=>{class t extends ae{zone;filterService;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;size;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;fluid;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Me(e,this._options())||this._options.set(e)}onChange=new v;onFilter=new v;onFocus=new v;onBlur=new v;onClick=new v;onShow=new v;onHide=new v;onClear=new v;onLazyLoad=new v;_componentStyle=me(tt);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}get hostClass(){return this._componentStyle.classes.root({instance:this}).map(n=>typeof n=="string"?n:Object.keys(n).filter(i=>n[i]).join(" ")).join(" ")+" "+this.styleClass}get hostStyle(){return this.style}_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=L(null);_placeholder=L(void 0);modelValue=L(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=L(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=L(-1);labelId;listId;clicked=L(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(j.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(j.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(j.ARIA).listLabel}get rootClass(){return this._componentStyle.classes.root({instance:this})}get inputClass(){let e=this.label();return{"p-select-label":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-select-label-empty":!this.editable&&!this.selectedItemTemplate&&(e==null||e==="p-emptylabel"||e.length===0)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-ripple-disabled":this.config.ripple()===!1}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=H(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let i=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options.filter(l=>l.label?l.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:l.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let l=this.options||[],o=[];return l.forEach(I=>{let ce=this.getOptionGroupChildren(I).filter(ot=>i.includes(ot));ce.length>0&&o.push(de(pe({},I),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...ce]}))}),this.flatOptions(o)}return i}return e});label=H(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));return n!==-1?this.getOptionLabel(e[n]):this.placeholder()||"p-emptylabel"});filled=H(()=>typeof this.modelValue()=="string"?!!this.modelValue():this.label()!=="p-emptylabel"&&this.modelValue()!==void 0&&this.modelValue()!==null);selectedOption;editableInputValue=H(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,n){super(),this.zone=e,this.filterService=n,ve(()=>{let i=this.modelValue(),l=this.visibleOptions();if(l&&U(l)){let o=this.findSelectedOptionIndex();(o!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=l[o])}oe(l)&&(i===void 0||this.isModelValueNotSet())&&U(this.selectedOption)&&(this.selectedOption=null),i!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){super.ngOnInit(),this.id=this.id||De("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=z(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&Le(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((n,i,l)=>{n.push({optionGroup:i,group:!0,index:l});let o=this.getOptionGroupChildren(i);return o&&o.forEach(I=>n.push(I)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(this.modelValue()===null||this.modelValue()===void 0)&&!this.placeholder()){let e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,i=!0,l=!1){if(!this.isSelected(n)){let o=this.getOptionValue(n);this.updateModel(o,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),l===!1&&this.onChange.emit({originalEvent:e,value:o})}i&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return this.isValidOption(e)&&$e(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){super.ngAfterViewInit(),this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,n=e?.classList.contains("p-float-label");if(e&&n&&!this.selectedOption){let i=e.querySelector("label");i&&this._placeholder.set(i.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?D(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?D(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}isSelectedOptionEmpty(){return oe(this.selectedOption)}isOptionDisabled(e){return this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&e.disabled===!1?!1:this.optionDisabled?D(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?D(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?D(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),!(e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]'))&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:n})},1),!this.overlayVisible&&U(n)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&E(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=z(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=z(this.itemsWrapper,".p-select-option.p-select-option-selected");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Ve(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&E(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&E(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n=!1){if(!(this.disabled||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&ze(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){let i=this.visibleOptions()[n];this.onOptionSelect(e,i,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=z(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?se(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastOptionIndex(){return se(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide()}else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){if(n){let i=e.currentTarget;e.shiftKey?i.setSelectionRange(0,i.value.length):(i.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,n=!1){if(n){let i=e.currentTarget;if(e.shiftKey)i.setSelectionRange(0,i.value.length);else{let l=i.value.length;i.setSelectionRange(l,l),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!this.editable&&!n&&this.onEnterKey(e)}onEnterKey(e,n=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}!n&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())E(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Fe(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;E(n)}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ee(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;E(n)}hasFocusableElements(){return ke(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,l=!1;return i=this.visibleOptions().findIndex(o=>this.isOptionMatched(o)),i!==-1&&(l=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,i)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),l}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?z(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():E(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(n){return new(n||t)(W(ge),W(Qe))};static \u0275cmp=Q({type:t,selectors:[["p-select"]],contentQueries:function(n,i,l){if(n&1&&(y(l,_t,4),y(l,ht,4),y(l,mt,4),y(l,ft,4),y(l,gt,4),y(l,et,4),y(l,yt,4),y(l,bt,4),y(l,It,4),y(l,xt,4),y(l,Tt,4),y(l,Ot,4),y(l,Ct,4),y(l,vt,4),y(l,St,4),y(l,wt,4),y(l,Ke,4)),n&2){let o;_(o=h())&&(i.itemTemplate=o.first),_(o=h())&&(i.groupTemplate=o.first),_(o=h())&&(i.loaderTemplate=o.first),_(o=h())&&(i.selectedItemTemplate=o.first),_(o=h())&&(i.headerTemplate=o.first),_(o=h())&&(i.filterTemplate=o.first),_(o=h())&&(i.footerTemplate=o.first),_(o=h())&&(i.emptyFilterTemplate=o.first),_(o=h())&&(i.emptyTemplate=o.first),_(o=h())&&(i.dropdownIconTemplate=o.first),_(o=h())&&(i.loadingIconTemplate=o.first),_(o=h())&&(i.clearIconTemplate=o.first),_(o=h())&&(i.filterIconTemplate=o.first),_(o=h())&&(i.onIconTemplate=o.first),_(o=h())&&(i.offIconTemplate=o.first),_(o=h())&&(i.cancelIconTemplate=o.first),_(o=h())&&(i.templates=o)}},viewQuery:function(n,i){if(n&1&&(k(et,5),k(Vt,5),k(kt,5),k(Ft,5),k(Et,5),k(Lt,5),k(Mt,5),k($t,5)),n&2){let l;_(l=h())&&(i.filterViewChild=l.first),_(l=h())&&(i.focusInputViewChild=l.first),_(l=h())&&(i.editableInputViewChild=l.first),_(l=h())&&(i.itemsViewChild=l.first),_(l=h())&&(i.scroller=l.first),_(l=h())&&(i.overlayViewChild=l.first),_(l=h())&&(i.firstHiddenFocusableElementOnOverlay=l.first),_(l=h())&&(i.lastHiddenFocusableElementOnOverlay=l.first)}},hostVars:5,hostBindings:function(n,i){n&1&&b("click",function(o){return i.onContainerClick(o)}),n&2&&(x("id",i.id),G(i.hostStyle),N(i.hostClass))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",m],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",m],required:[2,"required","required",m],editable:[2,"editable","editable",m],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",P],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",m],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",m],checkmark:[2,"checkmark","checkmark",m],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",m],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",m],group:[2,"group","group",m],showClear:[2,"showClear","showClear",m],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",m],virtualScroll:[2,"virtualScroll","virtualScroll",m],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",P],virtualScrollOptions:"virtualScrollOptions",size:"size",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",P],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",m],selectOnFocus:[2,"selectOnFocus","selectOnFocus",m],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",m],autofocusFilter:[2,"autofocusFilter","autofocusFilter",m],fluid:[2,"fluid","fluid",m],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[Oe([Ri,tt]),K],decls:11,vars:15,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-select-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["role","combobox",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox",3,"input","keydown","focus","blur","ngClass","disabled","pAutoFocus"],["class","p-select-clear-icon",3,"click",4,"ngIf"],[1,"p-select-clear-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-select-dropdown-icon",4,"ngIf"],["class","p-select-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-select-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-select-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-select-header",3,"click",4,"ngIf"],[1,"p-select-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-select-header",3,"click"],["pInputText","","type","text","role","searchbox","autocomplete","off",1,"p-select-filter",3,"input","keydown","blur","pSize","value","variant"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-select-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-select-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-select-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-select-empty-message",3,"ngStyle"]],template:function(n,i){if(n&1){let l=S();p(0,Ht,6,20,"span",16)(1,Rt,2,8,"input",17)(2,Ut,3,2,"ng-container",18),d(3,"div",19),p(4,ei,3,2,"ng-container",20)(5,ai,2,2,"ng-template",null,0,F),u(),d(7,"p-overlay",21,1),Te("visibleChange",function(I){return f(l),xe(i.overlayVisible,I)||(i.overlayVisible=I),g(I)}),b("onAnimationStart",function(I){return f(l),g(i.onOverlayAnimationStart(I))})("onHide",function(){return f(l),g(i.hide())}),p(9,Bi,13,17,"ng-template",null,2,F),u()}if(n&2){let l,o=$(6);r("ngIf",!i.editable),c(),r("ngIf",i.editable),c(),r("ngIf",i.isVisibleClearIcon),c(),x("aria-expanded",(l=i.overlayVisible)!==null&&l!==void 0?l:!1)("data-pc-section","trigger"),c(),r("ngIf",i.loading)("ngIfElse",o),c(3),Ie("visible",i.overlayVisible),r("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[le,ee,Se,te,ne,ie,qi,We,Be,Pe,Ze,Ge,Ne,je,He,Ue,Je,R],encapsulation:2,changeDetection:0})}return t})(),Cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=he({imports:[lt,R,R]})}return t})();export{lt as a,Cn as b};
|
|
222
|
+
`,Hi={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.disabled,"p-variant-filled":t.variant==="filled"||t.config.inputVariant()==="filled"||t.config.inputStyle()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.modelValue()!==void 0&&t.modelValue()!==null,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size==="small","p-select-lg p-inputfield-lg":t.size==="large"}],label:({instance:t,props:l})=>["p-select-label",{"p-placeholder":!l.editable&&t.label===l.placeholder,"p-select-label-empty":!l.editable&&!t.$slots.value&&(t.label==="p-emptylabel"||t.label.length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t,props:l,state:e,option:n,focusedOption:i})=>["p-select-option",{"p-select-option-selected":t.isSelected(n)&&l.highlightOnSelect,"p-focus":e.focusedOptionIndex===i,"p-disabled":t.isOptionDisabled(n)}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},tt=(()=>{class t extends Ae{name="select";theme=Ri;classes=Hi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=A(t)))(i||t)}})();static \u0275prov=_e({token:t,factory:t.\u0275fac})}return t})();var qi={provide:we,useExisting:ue(()=>ot),multi:!0},Gi=(()=>{class t extends ae{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new C;onMouseEnter=new C;onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=A(t)))(i||t)}})();static \u0275cmp=P({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",m],focused:[2,"focused","focused",m],label:"label",disabled:[2,"disabled","disabled",m],visible:[2,"visible","visible",m],itemSize:[2,"itemSize","itemSize",B],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",m]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Q],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-select-option-check-icon",4,"ngIf"],["styleClass","p-select-option-blank-icon",4,"ngIf"],["styleClass","p-select-option-check-icon"],["styleClass","p-select-option-blank-icon"]],template:function(n,i){n&1&&(d(0,"li",0),b("click",function(s){return i.onOptionClick(s)})("mouseenter",function(s){return i.onOptionMouseEnter(s)}),p(1,dt,3,2,"ng-container",1)(2,ut,2,1,"span",1)(3,_t,1,0,"ng-container",2),u()),n&2&&(r("id",i.id)("ngStyle",w(14,q,i.itemSize+"px"))("ngClass",Te(16,rt,i.selected&&!i.checkmark,i.disabled,i.focused)),x("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled),c(),r("ngIf",i.checkmark),c(),r("ngIf",!i.template),c(),r("ngTemplateOutlet",i.template)("ngTemplateOutletContext",w(20,re,i.option)))},dependencies:[oe,ee,te,ne,ie,H,Ye,qe,Xe],encapsulation:2})}return t})(),ot=(()=>{class t extends ae{zone;filterService;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;size;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;fluid;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Me(e,this._options())||this._options.set(e)}onChange=new C;onFilter=new C;onFocus=new C;onBlur=new C;onClick=new C;onShow=new C;onHide=new C;onClear=new C;onLazyLoad=new C;_componentStyle=me(tt);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}get hostClass(){return this._componentStyle.classes.root({instance:this}).map(n=>typeof n=="string"?n:Object.keys(n).filter(i=>n[i]).join(" ")).join(" ")+" "+this.styleClass}get hostStyle(){return this.style}_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=k(null);_placeholder=k(void 0);modelValue=k(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=k(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=k(-1);labelId;listId;clicked=k(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(j.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(j.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(j.ARIA).listLabel}get rootClass(){return this._componentStyle.classes.root({instance:this})}get inputClass(){let e=this.label();return{"p-select-label":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-select-label-empty":!this.editable&&!this.selectedItemTemplate&&(e==null||e==="p-emptylabel"||e.length===0)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-ripple-disabled":this.config.ripple()===!1}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=R(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let i=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(I=>{let ce=this.getOptionGroupChildren(I).filter(st=>i.includes(st));ce.length>0&&s.push(de(pe({},I),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...ce]}))}),this.flatOptions(s)}return i}return e});label=R(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));return n!==-1?this.getOptionLabel(e[n]):this.placeholder()||"p-emptylabel"});filled=R(()=>typeof this.modelValue()=="string"?!!this.modelValue():this.label()!=="p-emptylabel"&&this.modelValue()!==void 0&&this.modelValue()!==null);selectedOption;editableInputValue=R(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,n){super(),this.zone=e,this.filterService=n,Ce(()=>{let i=this.modelValue(),o=this.visibleOptions();if(o&&U(o)){let s=this.findSelectedOptionIndex();(s!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=o[s])}le(o)&&(i===void 0||this.isModelValueNotSet())&&U(this.selectedOption)&&(this.selectedOption=null),i!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){super.ngOnInit(),this.id=this.id||De("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=z(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&Le(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((n,i,o)=>{n.push({optionGroup:i,group:!0,index:o});let s=this.getOptionGroupChildren(i);return s&&s.forEach(I=>n.push(I)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(this.modelValue()===null||this.modelValue()===void 0)&&!this.placeholder()){let e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,i=!0,o=!1){if(!this.isSelected(n)){let s=this.getOptionValue(n);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}i&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return this.isValidOption(e)&&$e(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){super.ngAfterViewInit(),this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,n=e?.classList.contains("p-float-label");if(e&&n&&!this.selectedOption){let i=e.querySelector("label");i&&this._placeholder.set(i.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?D(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?D(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}isSelectedOptionEmpty(){return le(this.selectedOption)}isOptionDisabled(e){return this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&e.disabled===!1?!1:this.optionDisabled?D(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?D(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?D(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),!(e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]'))&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:n})},1),!this.overlayVisible&&U(n)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&L(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=z(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=z(this.itemsWrapper,".p-select-option.p-select-option-selected");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Ve(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&L(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&L(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n=!1){if(!(this.disabled||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&ze(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){let i=this.visibleOptions()[n];this.onOptionSelect(e,i,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=z(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?se(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastOptionIndex(){return se(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide()}else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){if(n){let i=e.currentTarget;e.shiftKey?i.setSelectionRange(0,i.value.length):(i.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,n=!1){if(n){let i=e.currentTarget;if(e.shiftKey)i.setSelectionRange(0,i.value.length);else{let o=i.value.length;i.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!this.editable&&!n&&this.onEnterKey(e)}onEnterKey(e,n=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}!n&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())L(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Fe(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;L(n)}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ee(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;L(n)}hasFocusableElements(){return ke(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,o=!1;return i=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),i!==-1&&(o=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,i)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?z(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():L(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(n){return new(n||t)(W(ge),W(Pe))};static \u0275cmp=P({type:t,selectors:[["p-select"]],contentQueries:function(n,i,o){if(n&1&&(y(o,ht,4),y(o,mt,4),y(o,ft,4),y(o,gt,4),y(o,yt,4),y(o,et,4),y(o,bt,4),y(o,It,4),y(o,xt,4),y(o,Ot,4),y(o,vt,4),y(o,Tt,4),y(o,Ct,4),y(o,St,4),y(o,wt,4),y(o,Vt,4),y(o,Qe,4)),n&2){let s;_(s=h())&&(i.itemTemplate=s.first),_(s=h())&&(i.groupTemplate=s.first),_(s=h())&&(i.loaderTemplate=s.first),_(s=h())&&(i.selectedItemTemplate=s.first),_(s=h())&&(i.headerTemplate=s.first),_(s=h())&&(i.filterTemplate=s.first),_(s=h())&&(i.footerTemplate=s.first),_(s=h())&&(i.emptyFilterTemplate=s.first),_(s=h())&&(i.emptyTemplate=s.first),_(s=h())&&(i.dropdownIconTemplate=s.first),_(s=h())&&(i.loadingIconTemplate=s.first),_(s=h())&&(i.clearIconTemplate=s.first),_(s=h())&&(i.filterIconTemplate=s.first),_(s=h())&&(i.onIconTemplate=s.first),_(s=h())&&(i.offIconTemplate=s.first),_(s=h())&&(i.cancelIconTemplate=s.first),_(s=h())&&(i.templates=s)}},viewQuery:function(n,i){if(n&1&&(F(et,5),F(kt,5),F(Ft,5),F(Et,5),F(Lt,5),F(Mt,5),F($t,5),F(zt,5)),n&2){let o;_(o=h())&&(i.filterViewChild=o.first),_(o=h())&&(i.focusInputViewChild=o.first),_(o=h())&&(i.editableInputViewChild=o.first),_(o=h())&&(i.itemsViewChild=o.first),_(o=h())&&(i.scroller=o.first),_(o=h())&&(i.overlayViewChild=o.first),_(o=h())&&(i.firstHiddenFocusableElementOnOverlay=o.first),_(o=h())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:5,hostBindings:function(n,i){n&1&&b("click",function(s){return i.onContainerClick(s)}),n&2&&(x("id",i.id),G(i.hostStyle),N(i.hostClass))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",m],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",m],required:[2,"required","required",m],editable:[2,"editable","editable",m],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",B],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",m],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",m],checkmark:[2,"checkmark","checkmark",m],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",m],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",m],group:[2,"group","group",m],showClear:[2,"showClear","showClear",m],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",m],virtualScroll:[2,"virtualScroll","virtualScroll",m],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",B],virtualScrollOptions:"virtualScrollOptions",size:"size",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",B],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",m],selectOnFocus:[2,"selectOnFocus","selectOnFocus",m],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",m],autofocusFilter:[2,"autofocusFilter","autofocusFilter",m],fluid:[2,"fluid","fluid",m],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[ve([qi,tt]),Q],decls:11,vars:15,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-select-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["role","combobox",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox",3,"input","keydown","focus","blur","ngClass","disabled","pAutoFocus"],["class","p-select-clear-icon",3,"click",4,"ngIf"],[1,"p-select-clear-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-select-dropdown-icon",4,"ngIf"],["class","p-select-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-select-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-select-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-select-header",3,"click",4,"ngIf"],[1,"p-select-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-select-header",3,"click"],["pInputText","","type","text","role","searchbox","autocomplete","off",1,"p-select-filter",3,"input","keydown","blur","pSize","value","variant"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-select-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-select-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-select-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-select-empty-message",3,"ngStyle"]],template:function(n,i){if(n&1){let o=S();p(0,Ht,6,20,"span",16)(1,qt,2,8,"input",17)(2,jt,3,2,"ng-container",18),d(3,"div",19),p(4,ti,3,2,"ng-container",20)(5,ri,2,2,"ng-template",null,0,E),u(),d(7,"p-overlay",21,1),Oe("visibleChange",function(I){return f(o),xe(i.overlayVisible,I)||(i.overlayVisible=I),g(I)}),b("onAnimationStart",function(I){return f(o),g(i.onOverlayAnimationStart(I))})("onHide",function(){return f(o),g(i.hide())}),p(9,Bi,13,17,"ng-template",null,2,E),u()}if(n&2){let o,s=$(6);r("ngIf",!i.editable),c(),r("ngIf",i.editable),c(),r("ngIf",i.isVisibleClearIcon),c(),x("aria-expanded",(o=i.overlayVisible)!==null&&o!==void 0?o:!1)("data-pc-section","trigger"),c(),r("ngIf",i.loading)("ngIfElse",s),c(3),Ie("visible",i.overlayVisible),r("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[oe,ee,Se,te,ne,ie,Gi,We,Ke,Be,Ze,Ge,Ne,je,Re,Ue,Je,H],encapsulation:2,changeDetection:0})}return t})(),Cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=he({imports:[ot,H,H]})}return t})();var lt=class{constructor(){this.top=k(0)}initTopPosition(){let l=document.querySelector("body");this.top.set(l.getBoundingClientRect()?.top*-1)}adjustOverlayPosition(){let l=document.querySelector(".p-overlay.p-component");if(!l)return;let e=l.getBoundingClientRect(),n=this.top()+e.top;l.style.setProperty("top",`${n}px`,"important"),getComputedStyle(l).position!=="fixed"&&l.style.setProperty("position","fixed","important"),this.startOverlayObserver()}startOverlayObserver(){let l=document.querySelector(".p-overlay.p-component");l&&(this.stopOverlayObserver(),this.overlayObserver=new MutationObserver(e=>{let n=e[0];if(n&&n.type==="attributes"&&n.attributeName==="style"){let i=n.target,o=getComputedStyle(i).display,s=getComputedStyle(i).visibility;(o==="none"||s==="hidden")&&(i.style.setProperty("display","block","important"),i.style.setProperty("visibility","visible","important"),i.style.setProperty("position","fixed","important"))}}),this.overlayObserver.observe(l,{attributes:!0,attributeFilter:["style"]}))}stopOverlayObserver(){this.overlayObserver&&(this.overlayObserver.disconnect(),this.overlayObserver=void 0)}};export{ot as a,Cn as b,lt as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y,b as _t}from"./chunk-IJVKHW3C.js";import"./chunk-YERZ6W22.js";import{a as ut}from"./chunk-CO5XZENC.js";import"./chunk-FGRPTNDB.js";import"./chunk-3PPLPXAX.js";import"./chunk-OXWPLJEW.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import{e as mt}from"./chunk-PYXL7UF7.js";import{a as dt}from"./chunk-LDL3A7NM.js";import"./chunk-OLVWSY6L.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-RXQX7567.js";import{m as pt,n as st}from"./chunk-HJXYT6MI.js";import{A as ct,h as rt,m as lt}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{H as at,J as ot,d as Q,f as X,g as Z,j as tt,k as et,m as it,n as nt}from"./chunk-FXQKRJWU.js";import{$c as g,Fc as $,Gb as T,Gc as o,Hc as C,Ic as f,Jc as A,Kc as H,Lc as W,Mb as s,Mc as q,Nc as J,Qc as j,Ra as w,Rc as z,Sc as K,Tc as U,Uc as Y,Yb as p,Z as D,ac as F,ad as E,bd as V,cd as G,dc as S,ec as L,gc as k,hc as B,ic as e,jc as n,kc as R,lc as h,mc as N,oc as O,pa as P,pb as M,rb as r,tc as I,uc as _,v as b,ya as d,za as u}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ft=(t,c)=>({"bg-gradient-danger":t,"bg-gradient-warning":c}),gt=()=>["/menu/products/status/notification/detailV2"],St=t=>({ID:t}),Ct=(t,c,i)=>({"text-warning":t,"text-success":c,"text-danger":i});function vt(t,c){t&1&&(e(0,"div"),o(1," Scan in progress. You will be notified once it is complete. "),n())}function xt(t,c){if(t&1&&(e(0,"div"),o(1),g(2,"number"),n()),t&2){let i=c.$implicit;r(),A(" ",i.Key,": ",E(2,2,i.Value)," ")}}function ht(t,c){if(t&1&&(e(0,"div",22)(1,"div",21),o(2,"Status Product:"),n(),k(3,xt,3,4,"div",null,L),n()),t&2){let i=_(2).$implicit;r(3),B(i.ParsedStatus)}}function Nt(t,c){if(t&1&&(e(0,"div",21),o(1),n(),e(2,"div"),o(3),n(),s(4,ht,5,0,"div",22)),t&2){let i=_().$implicit;r(),f(" ",i.ProcessLabel," "),r(2),C(i.ProcessDescription),r(),S(i!=null&&i.ParsedStatus&&(i==null||i.ParsedStatus==null?null:i.ParsedStatus.length)>0?4:-1)}}function It(t,c){if(t&1&&(h(0),o(1),g(2,"number"),e(3,"span"),o(4,"s"),n(),N()),t&2){let i=_().$implicit;r(),f(" ",V(2,1,i.DurationInSecond,"1.1-1")," ")}}function Et(t,c){t&1&&o(0," - ")}function Vt(t,c){t&1&&o(0," In Progress ")}function yt(t,c){t&1&&o(0," Completed ")}function bt(t,c){t&1&&o(0," Failed ")}function Dt(t,c){if(t&1&&(h(0),e(1,"tr",16)(2,"td")(3,"a",17),o(4),n()(),e(5,"td")(6,"div",18),R(7,"img",19),e(8,"span"),o(9),n()()(),e(10,"td"),s(11,vt,2,0,"div")(12,Nt,5,3),n(),e(13,"td"),s(14,It,5,4,"ng-container",20)(15,Et,1,0,"ng-template",null,0,G),n(),e(17,"td")(18,"div",21),s(19,Vt,1,0)(20,yt,1,0)(21,bt,1,0),n()(),e(22,"td",22)(23,"div"),o(24),n(),e(25,"div"),o(26),g(27,"date"),n()()(),N()),t&2){let i,a=c.$implicit,m=$(16),l=_();r(),p("ngClass",U(17,ft,a.Status==1,a.Status==0)),r(2),p("routerLink",z(20,gt))("queryParams",K(21,St,a.ID)),r(),f(" ",a.ID," "),r(3),p("src",a.Img,M),r(2),C(a.ChannelName),r(2),S(a.StateID==l.scanState.InProgress?11:12),r(3),p("ngIf",a.DurationInSecond)("ngIfElse",m),r(4),F(Y(23,Ct,a.StateID==l.scanState.InProgress,a.StateID==l.scanState.Completed,a.StateID==l.scanState.Failed)),r(),S((i=a.StateID)===l.scanState.InProgress?19:i===l.scanState.Completed?20:i===l.scanState.Failed?21:-1),r(5),C(a.LoginID),r(2),f(" ",V(27,14,a.Created,"dd MMM yyyy HH:mm")," ")}}var Kt=(()=>{class t{constructor(){this.notificationService=P(y),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=_t,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(b(i=>(i.Data=i.Data.map(a=>(a.StatusProduct&&(a.ParsedStatus=JSON.parse(a.StatusProduct)),a)),i)),D(1))}onFilter(){this.initNotifications()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-notificationV2"]],features:[j([y])],decls:36,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","260px"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[4,"ngIf","ngIfElse"],[1,"fw-bold"],[1,"lh-base"]],template:function(a,m){if(a&1){let l=O();J(0),g(1,"async"),e(2,"mainpanel",1),I("onSubmit",function(){return d(l),u(m.onFilter())}),e(3,"actions")(4,"a",2),o(5," Back "),n()(),e(6,"filters")(7,"div")(8,"label",3),o(9,"Channel"),n(),e(10,"app-channel-options-v2",4),q("ngModelChange",function(x){return d(l),W(m.filter().ChannelID,x)||(m.filter().ChannelID=x),u(x)}),n()()(),e(11,"content")(12,"div",5)(13,"div",6)(14,"div",7)(15,"div",8)(16,"table",9)(17,"thead",10)(18,"tr",11)(19,"th",12),o(20,"Job ID"),n(),e(21,"th"),o(22,"Channel"),n(),e(23,"th"),o(24,"Process"),n(),e(25,"th"),o(26,"Duration"),n(),e(27,"th"),o(28,"Status"),n(),e(29,"th"),o(30,"Creator"),n()()(),e(31,"tbody"),s(32,Dt,28,27,"ng-container",13),n()()()()(),e(33,"div",6)(34,"div",14)(35,"app-custom-paginator",15),I("next",function(){return d(l),u(m.initNotifications())})("previous",function(){return d(l),u(m.initNotifications())}),n()()()()()()}if(a&2){let l=E(1,7,m.notifications$);r(2),p("hideSearchBox",!0),r(8),H("ngModel",m.filter().ChannelID),r(22),p("ngForOf",l==null?null:l.Data),r(3),p("filter",m.filter())("totaldata",l==null||l.Data==null?null:l.Data.length)("paginationTotal",l==null?null:l.Count)("hasClicked",!0)}},dependencies:[nt,Q,X,Z,tt,it,et,ct,rt,lt,st,pt,dt,mt,ot,at,ut],encapsulation:2})}}return t})();export{Kt as NotificationV2Component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Y}from"./chunk-CO5XZENC.js";import"./chunk-FGRPTNDB.js";import"./chunk-3PPLPXAX.js";import"./chunk-OXWPLJEW.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-OLVWSY6L.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import{a as H}from"./chunk-CGOB6Y3X.js";import{e as F}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-RXQX7567.js";import{m as J,n as G}from"./chunk-HJXYT6MI.js";import{A as j,c as K,h as R,m as N,p as O}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{g as T,j as W,l as D,n as U}from"./chunk-FXQKRJWU.js";import{$c as P,Gb as I,Gc as a,Hc as V,Kc as h,Lc as g,Mb as S,Mc as f,Nc as E,Oc as L,Pc as M,Ra as C,Yb as m,Z as b,ad as v,dc as k,ic as n,jc as i,kc as A,oc as _,pa as B,rb as d,tc as x,uc as u,ya as p,za as s}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function q(o,w){if(o&1){let t=_();n(0,"input",30),f("ngModelChange",function(e){p(t);let r=u();return g(r.sku,e)||(r.sku=e),s(e)}),i()}if(o&2){let t=u();h("ngModel",t.sku)}}function z(o,w){if(o&1){let t=_();n(0,"input",31),f("ngModelChange",function(e){p(t);let r=u();return g(r.itemId,e)||(r.itemId=e),s(e)}),i()}if(o&2){let t=u();h("ngModel",t.itemId)}}function Q(o,w){if(o&1&&(n(0,"pre",28),a(1),P(2,"json"),i()),o&2){u();let t=M(35);d(),V(v(2,1,t))}}function X(o,w){o&1&&(n(0,"p",29),a(1," Your data will be shown here once it's available "),i())}var me=(()=>{class o{constructor(){this.httpService=B(F),this.selectedChannel=C(null),this.sku=C(null),this.itemId=C(null),this.searchBy="sku"}initProductLog(){let t={ChannelID:this.selectedChannel()};this.searchBy==="sku"?t.SKU=this.sku():t.ItemID=this.itemId(),this.productLog$=this.httpService.post(H.GetProductApiLog,t).pipe(b(1))}copyToClipboard(t){if(!t)return;let c=typeof t=="string"?t:JSON.stringify(t,null,2);navigator.clipboard.writeText(c),alert("Copied to clipboard!")}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=I({type:o,selectors:[["app-product-api"]],decls:50,vars:14,consts:[["headerTitle","Origin Product Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],[1,"mb-2"],[1,"form-check","form-check-inline"],["type","radio","name","searchBy","id","searchBySku",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchBySku",1,"form-check-label"],["type","radio","name","searchBy","id","searchByItemId",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchByItemId",1,"form-check-label"],["type","text","style","height: 40px","class","form-control rounded-1","placeholder","Product Code / SKU",3,"ngModel","ngModelChange",4,"ngIf"],["type","text","style","height: 40px","class","form-control rounded-1","placeholder","ItemID is Product id from seller center",3,"ngModel","ngModelChange",4,"ngIf"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","productLogText"],[1,"text-center","my-12","text-muted"],["type","text","placeholder","Product Code / SKU",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],["type","text","placeholder","ItemID is Product id from seller center",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"]],template:function(c,e){if(c&1){let r=_();n(0,"mainpanel",0)(1,"actions")(2,"button",1),x("click",function(){return p(r),s(e.initProductLog())}),A(3,"i",2),a(4," Search "),i()(),n(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),a(12,"Channel"),i(),n(13,"p",8),a(14," View logs related to Product API Detail "),i()(),n(15,"div",9)(16,"app-channel-options-v2",10),f("ngModelChange",function(l){return p(r),g(e.selectedChannel,l)||(e.selectedChannel=l),s(l)}),i()()(),n(17,"div",11)(18,"div",7)(19,"h6"),a(20,"Product Code / SKU"),i(),n(21,"p",8),a(22," Product SKU or Code from Channel Product "),i()(),n(23,"div",9)(24,"div",12)(25,"div",13)(26,"input",14),f("ngModelChange",function(l){return p(r),g(e.searchBy,l)||(e.searchBy=l),s(l)}),i(),n(27,"label",15),a(28,"Search by SKU"),i()(),n(29,"div",13)(30,"input",16),f("ngModelChange",function(l){return p(r),g(e.searchBy,l)||(e.searchBy=l),s(l)}),i(),n(31,"label",17),a(32,"Search by ItemID"),i()()(),S(33,q,1,1,"input",18)(34,z,1,1,"input",19),i()()()(),E(35),P(36,"async"),n(37,"div",20)(38,"div",21)(39,"div",22)(40,"div",23)(41,"h5"),a(42,"Response"),i(),n(43,"button",24),x("click",function(){p(r);let l=M(35);return s(e.copyToClipboard(l))}),a(44," Copy "),i()(),n(45,"div",25)(46,"div",26)(47,"div",27),S(48,Q,3,3,"pre",28)(49,X,2,0,"p",29),i()()()()()()()()()}if(c&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),h("ngModel",e.selectedChannel),d(10),h("ngModel",e.searchBy),m("value","sku"),d(4),h("ngModel",e.searchBy),m("value","itemid"),d(3),m("ngIf",e.searchBy==="sku"),d(),m("ngIf",e.searchBy==="itemid"),d();let r=L(v(36,11,e.productLog$));d(8),m("disabled",!r),d(5),k(r?48:49)}},dependencies:[U,T,W,D,j,K,O,R,N,G,J,Y],encapsulation:2})}}return o})();export{me as ProductApiComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-QTTNQJAK.js";import"./chunk-IITU3NV6.js";import{a as de}from"./chunk-EEZKQOJW.js";import{a as me}from"./chunk-RGAWEFPQ.js";import{a as w}from"./chunk-XHAXYWZ7.js";import{c as ue,d as O,e as V}from"./chunk-TKV7XWBT.js";import"./chunk-YTCIQBSO.js";import"./chunk-2O4IEGGR.js";import"./chunk-VFATXJRG.js";import"./chunk-LYPHZP72.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-4YRBARG2.js";import"./chunk-5CKVZBHM.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-RHHHL4OR.js";import{a as he}from"./chunk-NLJHQ4MQ.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import{a as ne}from"./chunk-UMP6ZMEJ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-JVNHFIYT.js";import"./chunk-C7YK5TDP.js";import"./chunk-UWC2EVFY.js";import"./chunk-ACIMXBIC.js";import{i as M}from"./chunk-BVPWV5YO.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import{a as R}from"./chunk-CGOB6Y3X.js";import{b as ie,e as ae}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as f}from"./chunk-RXQX7567.js";import{d as le,l as se,m as ce,n as pe}from"./chunk-HJXYT6MI.js";import{A as te,c as X,h as Y,m as Z,o as ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{b as oe,c as re}from"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{g as Q,j as K,n as q}from"./chunk-FXQKRJWU.js";import{$c as I,G as j,Gb as G,Gc as S,Kc as E,Lc as x,Mb as g,Mc as T,Qc as $,Ra as P,Sc as J,Yb as h,ad as v,ea as A,ic as l,ja as H,jc as p,kc as W,lc as F,mc as N,nc as z,oc as L,pa as u,rb as c,tc as C,uc as m,xb as d,ya as y,za as b}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as k,b as B}from"./chunk-66YHNWRR.js";var U=(()=>{class r{constructor(){this.authService=u(M),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(e,i){let t=Object.assign([],this.channelOptions),n=[],a;return e.forEach(o=>{a=t.find(s=>s.ID==o?.parent?.id),a&&(a=B(k({},a),{Name:`${o?.parent?.label} - ${o?.label}`,LocationID:o?.id}),n.push(a))}),i.forEach(o=>{a=t.find(s=>s.ID==o.id),a&&n.push(a)}),n}generateFilterLocation(e,i){let t=[],n=[],a=[];return e.length>0?(t=e.map(o=>o.id),n=e.filter(o=>f.IsNotEmpty(o?.parent?.id)).map(o=>o?.parent?.id).filter((o,s,D)=>D.indexOf(o)===s)):(t=[],n=[]),a=i.map(o=>o.id),a=a.concat(n).filter((o,s,D)=>D.indexOf(o)===s),{locationIds:t,channelIds:a}}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=H({token:r,factory:r.\u0275fac})}}return r})();var fe=r=>[r];function _e(r,_){if(r&1){let e=L();l(0,"button",16),C("click",function(){y(e);let t=m(2).ngIf,n=m();return b(n.onUpdateItems(t))}),W(1,"i",17),S(2," Update "),p()}}function Se(r,_){if(r&1&&(F(0),g(1,_e,3,0,"button",15),N()),r&2){let e=m().ngIf,i=m();c(),h("ngIf",i.productService.hasSelectionVariant(e))}}function Ie(r,_){if(r&1&&(l(0,"actions")(1,"div",13),g(2,Se,2,1,"ng-container",14),p()()),r&2){let e=m();c(2),h("ngxPermissionsOnly",J(1,fe,e.inventoryUpdateRole))}}function ve(r,_){r&1&&z(0)}function ye(r,_){if(r&1){let e=L();F(0),l(1,"app-table",18),C("onToggle",function(t){y(e);let n=m();return b(n.onShowDifferenceStock(t))})("onSubmit",function(t){y(e);let n=m();return b(n.updateStockByVariant(t))}),p(),N()}if(r&2){let e=_.ngIf,i=m();c(),h("data",e)("channel",i.channels())("showProductToggle",!0)("hiddenIPOSInventory",i.searchFilter.HiddenIPOSInventory)}}var at=(()=>{class r{constructor(e,i,t,n,a,o){this.http=e,this.toastr=i,this.dialog=t,this.productService=n,this.authService=a,this.mainPanelService=o,this.paginationService=u(O),this.multiChannelService=u(U),this.updateResHandling=u(V),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=P([]),this.selectedChannels=P([]),this.channels=P([]),this.inventoryUpdateRole=ne.InventoryUpdate,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(A(e=>{e.Filter={PageNumber:e.Filter.PageNumber,filterModel:w.ALL,RowCount:e.Filter.PageSize,HiddenIPOSInventory:e.Filter.HiddenIPOSInventory},this.searchFilter=e.Filter,this.mainPanelService.openModalFilter()}))}onChannelChange(e=[]){let i=e.filter(n=>f.isValidGUID(n.id)==!1),t=e.filter(n=>f.isValidGUID(n.id));this.selectedLocations.set(i),this.selectedChannels.set(t)}onSearch(e){let i=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(i);let t=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=t.channelIds,this.searchFilter.ListLocationID=t.locationIds,this.searchFilter.text=e,this.paginationService.reloadPagination(this.searchFilter)}updateStock(e,i){if(e.length>0){let t=[];e.forEach(o=>{o.Channel?.forEach(s=>{t.push({ChannelItemID:s?.ChannelItemID,ChannelVariationID:s?.ChannelVariationID,Inventory:o.Inventory,LocationID:s?.LocationID})})});let a={ListChannelID:i.filter(o=>o.selected).map(o=>o.ID),List:t};this.http.post(R.UpdateInventoryChannel,a).subscribe(o=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+a.List.length+" variants in "+a.ListChannelID.length+" channels","Success")})}}updateStockByVariant(e){let i=e.InventoryMultiwarehouse[0]?.LocationID,t={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,NewQuantity:e.Inventory,VariantID:e.ID,SKU:e?.Sku,LocationID:i};this.http.post(R.UpdateUpdateQuantityByItem,t).subscribe(n=>{this.paginationService.reloadPagination(this.searchFilter),this.handlingUpdateStock(n)})}handlingUpdateStock(e){if(e){let i=e?.Response?.Fail_list,t=e?.Response?.Success_list;this.updateResHandling.responseHandling(t,i,"Stock")}else this.toastr.error(e?.Exception,"Error")}onShowDifferenceStock(e){e?this.searchFilter.filterModel=w.DIFFERENCE:this.searchFilter.filterModel=w.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(e){let i=this.productService.selectedVariantProduct(e),t=this.channelOptions.filter(n=>this.channels()?.find(a=>a.ID===n.ID));this.dialog.open(me,{data:{selectedItems:i,channels:JSON.parse(JSON.stringify(t))},width:"400px"}).afterClosed().pipe(j(n=>f.IsNotEmpty(n))).subscribe(n=>{this.updateStock(i,n)})}static{this.\u0275fac=function(i){return new(i||r)(d(ae),d(ie),d(le),d(he),d(M),d(se))}}static{this.\u0275cmp=G({type:r,selectors:[["app-multi-channel-comparison"]],features:[$([O,U,V])],decls:26,vars:21,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","hideSearchBox"],[4,"ngIf"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],[4,"ngxPermissionsOnly"],["type","button","class","btn btn-success shadow-sm rounded me-3",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(i,t){i&1&&(l(0,"mainpanel",0),C("onSubmit",function(a){return t.onSearch(a)}),g(1,Ie,3,3,"actions",1),I(2,"async"),l(3,"filters"),g(4,ve,1,0,"ng-container",1),I(5,"async"),l(6,"div")(7,"label",2),S(8,"Channel"),p(),l(9,"multiwarehouse-tree-select",3),C("onChannelChange",function(a){return t.onChannelChange(a)}),p()(),l(10,"div",4)(11,"label",5),S(12,"PageNumber"),p(),l(13,"input",6),T("ngModelChange",function(a){return x(t.searchFilter.PageNumber,a)||(t.searchFilter.PageNumber=a),a}),p()(),l(14,"div",4)(15,"label",7),S(16,"Page Size"),p(),l(17,"input",8),T("ngModelChange",function(a){return x(t.searchFilter.RowCount,a)||(t.searchFilter.RowCount=a),a}),p()()(),l(18,"content")(19,"div",9)(20,"div",10)(21,"div",11),g(22,ye,2,4,"ng-container",1),I(23,"async"),l(24,"infinite-paginator",12),I(25,"async"),C("onNextPage",function(){return t.paginationService.onNextPage(t.searchFilter)})("onLastPage",function(){return t.paginationService.onLastPage(t.searchFilter)})("onGetRowCount",function(){return t.paginationService.getRowCount(t.searchFilter)}),p()()()()()()),i&2&&(h("hideSearchBox",!1),c(),h("ngIf",v(2,13,t.paginationService.data$)),c(3),h("ngIf",v(5,15,t.loader$)),c(5),h("multiple",!0),c(4),E("ngModel",t.searchFilter.PageNumber),c(4),E("ngModel",t.searchFilter.RowCount),c(5),h("ngIf",v(23,17,t.paginationService.data$)),c(2),h("totalData",t.paginationService.totalData())("hideCount",t.paginationService.hideCount())("rowCount",v(25,19,t.paginationService.totalRowCount$))("pageNumber",t.paginationService.pageNumber())("disableNextButton",t.paginationService.disableNextButton())("goToLastPage",t.paginationService.isLastPage()))},dependencies:[q,Q,K,pe,ce,de,te,X,ee,Y,Z,ue,ge,re,oe],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]})}}return r})();export{at as MultiChannelComparison};
|
|
1
|
+
import{a as ge}from"./chunk-LEM7ESKJ.js";import"./chunk-IITU3NV6.js";import{a as de}from"./chunk-VEYUDPOA.js";import{a as me}from"./chunk-RGAWEFPQ.js";import{a as w}from"./chunk-XHAXYWZ7.js";import{c as ue,d as O,e as V}from"./chunk-TKV7XWBT.js";import"./chunk-YTCIQBSO.js";import"./chunk-PGP3WHIS.js";import"./chunk-VFATXJRG.js";import"./chunk-LYPHZP72.js";import"./chunk-RHHHL4OR.js";import{a as he}from"./chunk-7ES3PHES.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import{a as ne}from"./chunk-UMP6ZMEJ.js";import"./chunk-JVNHFIYT.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-C7YK5TDP.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-5ZR5WIHG.js";import"./chunk-ACIMXBIC.js";import{i as M}from"./chunk-OLVWSY6L.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import{a as R}from"./chunk-CGOB6Y3X.js";import{b as ie,e as ae}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as f}from"./chunk-RXQX7567.js";import{d as le,l as se,m as ce,n as pe}from"./chunk-HJXYT6MI.js";import{A as te,c as X,h as Y,m as Z,o as ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{b as oe,c as re}from"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{g as Q,j as K,n as q}from"./chunk-FXQKRJWU.js";import{$c as I,G as j,Gb as G,Gc as S,Kc as E,Lc as x,Mb as g,Mc as T,Qc as $,Ra as P,Sc as J,Yb as h,ad as v,ea as A,ic as l,ja as H,jc as p,kc as W,lc as F,mc as N,nc as z,oc as L,pa as u,rb as c,tc as C,uc as m,xb as d,ya as y,za as b}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as k,b as B}from"./chunk-66YHNWRR.js";var U=(()=>{class r{constructor(){this.authService=u(M),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(e,i){let t=Object.assign([],this.channelOptions),n=[],a;return e.forEach(o=>{a=t.find(s=>s.ID==o?.parent?.id),a&&(a=B(k({},a),{Name:`${o?.parent?.label} - ${o?.label}`,LocationID:o?.id}),n.push(a))}),i.forEach(o=>{a=t.find(s=>s.ID==o.id),a&&n.push(a)}),n}generateFilterLocation(e,i){let t=[],n=[],a=[];return e.length>0?(t=e.map(o=>o.id),n=e.filter(o=>f.IsNotEmpty(o?.parent?.id)).map(o=>o?.parent?.id).filter((o,s,D)=>D.indexOf(o)===s)):(t=[],n=[]),a=i.map(o=>o.id),a=a.concat(n).filter((o,s,D)=>D.indexOf(o)===s),{locationIds:t,channelIds:a}}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=H({token:r,factory:r.\u0275fac})}}return r})();var fe=r=>[r];function _e(r,_){if(r&1){let e=L();l(0,"button",16),C("click",function(){y(e);let t=m(2).ngIf,n=m();return b(n.onUpdateItems(t))}),W(1,"i",17),S(2," Update "),p()}}function Se(r,_){if(r&1&&(F(0),g(1,_e,3,0,"button",15),N()),r&2){let e=m().ngIf,i=m();c(),h("ngIf",i.productService.hasSelectionVariant(e))}}function Ie(r,_){if(r&1&&(l(0,"actions")(1,"div",13),g(2,Se,2,1,"ng-container",14),p()()),r&2){let e=m();c(2),h("ngxPermissionsOnly",J(1,fe,e.inventoryUpdateRole))}}function ve(r,_){r&1&&z(0)}function ye(r,_){if(r&1){let e=L();F(0),l(1,"app-table",18),C("onToggle",function(t){y(e);let n=m();return b(n.onShowDifferenceStock(t))})("onSubmit",function(t){y(e);let n=m();return b(n.updateStockByVariant(t))}),p(),N()}if(r&2){let e=_.ngIf,i=m();c(),h("data",e)("channel",i.channels())("showProductToggle",!0)("hiddenIPOSInventory",i.searchFilter.HiddenIPOSInventory)}}var at=(()=>{class r{constructor(e,i,t,n,a,o){this.http=e,this.toastr=i,this.dialog=t,this.productService=n,this.authService=a,this.mainPanelService=o,this.paginationService=u(O),this.multiChannelService=u(U),this.updateResHandling=u(V),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=P([]),this.selectedChannels=P([]),this.channels=P([]),this.inventoryUpdateRole=ne.InventoryUpdate,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(A(e=>{e.Filter={PageNumber:e.Filter.PageNumber,filterModel:w.ALL,RowCount:e.Filter.PageSize,HiddenIPOSInventory:e.Filter.HiddenIPOSInventory},this.searchFilter=e.Filter,this.mainPanelService.openModalFilter()}))}onChannelChange(e=[]){let i=e.filter(n=>f.isValidGUID(n.id)==!1),t=e.filter(n=>f.isValidGUID(n.id));this.selectedLocations.set(i),this.selectedChannels.set(t)}onSearch(e){let i=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(i);let t=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=t.channelIds,this.searchFilter.ListLocationID=t.locationIds,this.searchFilter.text=e,this.paginationService.reloadPagination(this.searchFilter)}updateStock(e,i){if(e.length>0){let t=[];e.forEach(o=>{o.Channel?.forEach(s=>{t.push({ChannelItemID:s?.ChannelItemID,ChannelVariationID:s?.ChannelVariationID,Inventory:o.Inventory,LocationID:s?.LocationID})})});let a={ListChannelID:i.filter(o=>o.selected).map(o=>o.ID),List:t};this.http.post(R.UpdateInventoryChannel,a).subscribe(o=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+a.List.length+" variants in "+a.ListChannelID.length+" channels","Success")})}}updateStockByVariant(e){let i=e.InventoryMultiwarehouse[0]?.LocationID,t={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,NewQuantity:e.Inventory,VariantID:e.ID,SKU:e?.Sku,LocationID:i};this.http.post(R.UpdateUpdateQuantityByItem,t).subscribe(n=>{this.paginationService.reloadPagination(this.searchFilter),this.handlingUpdateStock(n)})}handlingUpdateStock(e){if(e){let i=e?.Response?.Fail_list,t=e?.Response?.Success_list;this.updateResHandling.responseHandling(t,i,"Stock")}else this.toastr.error(e?.Exception,"Error")}onShowDifferenceStock(e){e?this.searchFilter.filterModel=w.DIFFERENCE:this.searchFilter.filterModel=w.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(e){let i=this.productService.selectedVariantProduct(e),t=this.channelOptions.filter(n=>this.channels()?.find(a=>a.ID===n.ID));this.dialog.open(me,{data:{selectedItems:i,channels:JSON.parse(JSON.stringify(t))},width:"400px"}).afterClosed().pipe(j(n=>f.IsNotEmpty(n))).subscribe(n=>{this.updateStock(i,n)})}static{this.\u0275fac=function(i){return new(i||r)(d(ae),d(ie),d(le),d(he),d(M),d(se))}}static{this.\u0275cmp=G({type:r,selectors:[["app-multi-channel-comparison"]],features:[$([O,U,V])],decls:26,vars:21,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","hideSearchBox"],[4,"ngIf"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],[4,"ngxPermissionsOnly"],["type","button","class","btn btn-success shadow-sm rounded me-3",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(i,t){i&1&&(l(0,"mainpanel",0),C("onSubmit",function(a){return t.onSearch(a)}),g(1,Ie,3,3,"actions",1),I(2,"async"),l(3,"filters"),g(4,ve,1,0,"ng-container",1),I(5,"async"),l(6,"div")(7,"label",2),S(8,"Channel"),p(),l(9,"multiwarehouse-tree-select",3),C("onChannelChange",function(a){return t.onChannelChange(a)}),p()(),l(10,"div",4)(11,"label",5),S(12,"PageNumber"),p(),l(13,"input",6),T("ngModelChange",function(a){return x(t.searchFilter.PageNumber,a)||(t.searchFilter.PageNumber=a),a}),p()(),l(14,"div",4)(15,"label",7),S(16,"Page Size"),p(),l(17,"input",8),T("ngModelChange",function(a){return x(t.searchFilter.RowCount,a)||(t.searchFilter.RowCount=a),a}),p()()(),l(18,"content")(19,"div",9)(20,"div",10)(21,"div",11),g(22,ye,2,4,"ng-container",1),I(23,"async"),l(24,"infinite-paginator",12),I(25,"async"),C("onNextPage",function(){return t.paginationService.onNextPage(t.searchFilter)})("onLastPage",function(){return t.paginationService.onLastPage(t.searchFilter)})("onGetRowCount",function(){return t.paginationService.getRowCount(t.searchFilter)}),p()()()()()()),i&2&&(h("hideSearchBox",!1),c(),h("ngIf",v(2,13,t.paginationService.data$)),c(3),h("ngIf",v(5,15,t.loader$)),c(5),h("multiple",!0),c(4),E("ngModel",t.searchFilter.PageNumber),c(4),E("ngModel",t.searchFilter.RowCount),c(5),h("ngIf",v(23,17,t.paginationService.data$)),c(2),h("totalData",t.paginationService.totalData())("hideCount",t.paginationService.hideCount())("rowCount",v(25,19,t.paginationService.totalRowCount$))("pageNumber",t.paginationService.pageNumber())("disableNextButton",t.paginationService.disableNextButton())("goToLastPage",t.paginationService.isLastPage()))},dependencies:[q,Q,K,pe,ce,de,te,X,ee,Y,Z,ue,ge,re,oe],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]})}}return r})();export{at as MultiChannelComparison};
|