dealposbooks 1.9.4 → 1.9.6

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.
Files changed (148) hide show
  1. package/3rdpartylicenses.txt +374 -374
  2. package/assets/scss/layouts/_sidebar.scss +2 -2
  3. package/assets/scss/style.scss +34 -3
  4. package/assets/scss/variables/_variables.scss +1 -2
  5. package/chunk-27SWEVDU.js +1 -0
  6. package/chunk-2DV653RD.js +1 -0
  7. package/chunk-2OECREUZ.js +1 -0
  8. package/{chunk-NL5IYBHF.js → chunk-32BR7AQL.js} +1 -1
  9. package/chunk-34XRAZFC.js +1 -0
  10. package/chunk-35CWG2OK.js +180 -0
  11. package/chunk-35KDUCM3.js +1 -0
  12. package/{chunk-BGDKOH3U.js → chunk-3DN7TZCI.js} +1 -1
  13. package/chunk-3G3QSUWH.js +1 -0
  14. package/chunk-3HW557B7.js +1 -0
  15. package/chunk-3L7IWFXM.js +527 -0
  16. package/chunk-3WB76KQC.js +430 -0
  17. package/chunk-43WCLYRX.js +1 -0
  18. package/chunk-46TNY5N4.js +185 -0
  19. package/chunk-4FGQ5T64.js +2 -0
  20. package/chunk-4KXSM3HP.js +1 -0
  21. package/chunk-4QKRWFW4.js +1 -0
  22. package/{chunk-AM66YD6C.js → chunk-4S33ZRKF.js} +1 -1
  23. package/chunk-54OPMMIM.js +1 -0
  24. package/chunk-6HQX2SM2.js +1 -0
  25. package/chunk-6TA77CRR.js +1 -0
  26. package/{chunk-F7TF7ASR.js → chunk-6ZZARVQO.js} +1 -1
  27. package/{chunk-XMZ7ADZB.js → chunk-7WXXPCRV.js} +1 -1
  28. package/{chunk-5QMHSLSU.js → chunk-AKMHO3LC.js} +1 -1
  29. package/chunk-AOSPVPK7.js +231 -0
  30. package/{chunk-5OU7ECCN.js → chunk-ASK2IVMC.js} +1 -1
  31. package/chunk-B7JILYJO.js +1 -0
  32. package/chunk-BNI5KUDE.js +193 -0
  33. package/chunk-BX3CRF44.js +1 -0
  34. package/{chunk-KQAMA66M.js → chunk-BYD3JK4R.js} +1 -1
  35. package/chunk-C4LZX33Q.js +449 -0
  36. package/{chunk-7TKATLB4.js → chunk-C5GEP4MM.js} +1 -1
  37. package/chunk-C7UZ6ZYF.js +1 -0
  38. package/chunk-CSMMP7XG.js +188 -0
  39. package/chunk-CTCQB63H.js +1 -0
  40. package/chunk-DCKLQNGL.js +1 -0
  41. package/chunk-DNK2GUDB.js +1 -0
  42. package/{chunk-VKO43FOT.js → chunk-DOM7WYRM.js} +1 -1
  43. package/chunk-ELWFWCNU.js +246 -0
  44. package/{chunk-5OXHRN43.js → chunk-EXVUABTO.js} +1 -1
  45. package/chunk-G6FJQBZZ.js +1 -0
  46. package/chunk-GJXWL5XV.js +1 -0
  47. package/chunk-GNP7WGSH.js +1 -0
  48. package/chunk-GTGRV7IH.js +1 -0
  49. package/chunk-HFFH2WIX.js +98 -0
  50. package/chunk-HRPP75N7.js +1 -0
  51. package/{chunk-7XAJOA36.js → chunk-HRQJ5DXP.js} +1 -1
  52. package/{chunk-XEATX3IC.js → chunk-I3HFXOYS.js} +1 -1
  53. package/{chunk-HDO45X7Q.js → chunk-IIB2DZLA.js} +1 -1
  54. package/{chunk-FCGAJLPQ.js → chunk-J2SK4PGN.js} +1 -1
  55. package/chunk-J77A3DFB.js +1 -0
  56. package/chunk-JDW35ZB5.js +47 -0
  57. package/chunk-JMLETF7Y.js +1 -0
  58. package/{chunk-56MVOUHH.js → chunk-JP3F2QND.js} +1 -1
  59. package/chunk-JYNZPVLW.js +1 -0
  60. package/chunk-K6753MGR.js +7 -0
  61. package/chunk-LD4G6ND6.js +130 -0
  62. package/{chunk-JQ4DHNFQ.js → chunk-LKZL77YR.js} +1 -1
  63. package/chunk-LR2DJRRL.js +79 -0
  64. package/chunk-LTZA6IIO.js +1 -0
  65. package/chunk-M7MFX6BW.js +1 -0
  66. package/chunk-MCDQ2TIS.js +1 -0
  67. package/chunk-MJVSTWYY.js +1 -0
  68. package/chunk-N2RYBZK7.js +1 -0
  69. package/{chunk-HPKZYS2A.js → chunk-N6JCA3CN.js} +2 -2
  70. package/chunk-NF3TF3LT.js +397 -0
  71. package/chunk-OEJBOFI5.js +1 -0
  72. package/{chunk-7PDAUPWN.js → chunk-OEOAUJY5.js} +12 -12
  73. package/{chunk-JRYP3YPK.js → chunk-OVCTOPAO.js} +1 -1
  74. package/{chunk-4FK4QI2U.js → chunk-OZACNHDP.js} +1 -1
  75. package/chunk-P6CJ2ONT.js +1 -0
  76. package/{chunk-T2A6NORZ.js → chunk-PGECEXRR.js} +1 -1
  77. package/{chunk-ITIRJVUS.js → chunk-QPKNYNLC.js} +2 -2
  78. package/chunk-RBDJZRHY.js +1 -0
  79. package/{chunk-25XKSUYX.js → chunk-RT5PUZ5F.js} +1 -1
  80. package/{chunk-ZKXT6RSI.js → chunk-TC43COAE.js} +1 -1
  81. package/chunk-TFV5QZKR.js +947 -0
  82. package/chunk-TK3G2BVM.js +222 -0
  83. package/{chunk-R6HGHSPM.js → chunk-TQZNJ5WF.js} +1 -1
  84. package/chunk-UEOO2LYA.js +82 -0
  85. package/chunk-WEWEITR7.js +1 -0
  86. package/chunk-WGZN6AN2.js +1 -0
  87. package/chunk-WZO2ZLBL.js +1 -0
  88. package/chunk-X34Y3TVX.js +1 -0
  89. package/chunk-XFSZDZPJ.js +1 -0
  90. package/chunk-XKEV5AED.js +201 -0
  91. package/chunk-XZGFG6E3.js +1 -0
  92. package/chunk-YOEPO6LK.js +959 -0
  93. package/{chunk-D5AXB5DE.js → chunk-YVEUYFCE.js} +2 -2
  94. package/chunk-ZWHB7NI7.js +1 -0
  95. package/index.html +2 -2
  96. package/main-U5PC2W2C.js +1 -0
  97. package/package.json +1 -1
  98. package/styles-GTUKYMN7.css +1 -0
  99. package/chunk-2TUOAI22.js +0 -1
  100. package/chunk-3IHOEH5O.js +0 -1
  101. package/chunk-3VC2KAML.js +0 -1
  102. package/chunk-4J3EFT67.js +0 -1
  103. package/chunk-6J5S4UPN.js +0 -2
  104. package/chunk-7GT5MR57.js +0 -1
  105. package/chunk-7LCGNNCW.js +0 -627
  106. package/chunk-7NXTCJMX.js +0 -1
  107. package/chunk-A3NY5EYN.js +0 -1
  108. package/chunk-AH5PA2TO.js +0 -1
  109. package/chunk-B4COOFJS.js +0 -2
  110. package/chunk-BJGK47CG.js +0 -1
  111. package/chunk-BWS6U7BM.js +0 -193
  112. package/chunk-D5RQBZNF.js +0 -1
  113. package/chunk-DELPZQZH.js +0 -246
  114. package/chunk-DJUGUNXR.js +0 -503
  115. package/chunk-DSFIM36S.js +0 -1
  116. package/chunk-EHCALTHK.js +0 -1
  117. package/chunk-FUGCJNGU.js +0 -960
  118. package/chunk-GMLRRSMP.js +0 -1
  119. package/chunk-IACJNRVA.js +0 -25
  120. package/chunk-IQZ2MKLS.js +0 -1
  121. package/chunk-IXPPR5MV.js +0 -1
  122. package/chunk-J3B5HVW4.js +0 -1
  123. package/chunk-L6VKOTIV.js +0 -180
  124. package/chunk-LATJGOV3.js +0 -185
  125. package/chunk-LLV6TGMT.js +0 -1
  126. package/chunk-MNCUT4L4.js +0 -1
  127. package/chunk-NBRL2K4H.js +0 -1
  128. package/chunk-NDOZ5YES.js +0 -1
  129. package/chunk-SCEMI63T.js +0 -1
  130. package/chunk-SDTMCYSJ.js +0 -1
  131. package/chunk-TDX2HSWE.js +0 -1
  132. package/chunk-UHVZAFKN.js +0 -1
  133. package/chunk-UMYCPFK5.js +0 -1660
  134. package/chunk-UOAJWMSO.js +0 -1
  135. package/chunk-UZCNPNT7.js +0 -2
  136. package/chunk-VF7TG32T.js +0 -47
  137. package/chunk-VI3AV775.js +0 -1
  138. package/chunk-VK5TK23W.js +0 -7
  139. package/chunk-VNHXLUHA.js +0 -1
  140. package/chunk-W6UD5NO5.js +0 -2
  141. package/chunk-WUGCCSIP.js +0 -1
  142. package/chunk-X234EQET.js +0 -129
  143. package/chunk-X3FQFXUZ.js +0 -300
  144. package/chunk-XJ5BSLZV.js +0 -1
  145. package/chunk-YAKYBQQ6.js +0 -1
  146. package/chunk-YQRWSN5V.js +0 -1
  147. package/main-VQYYYR67.js +0 -1
  148. package/styles-IDKYTRGA.css +0 -1
@@ -0,0 +1,201 @@
1
+ import{b as wt}from"./chunk-32BR7AQL.js";import{a as yt,b as xe}from"./chunk-LR2DJRRL.js";import{a as me}from"./chunk-JMLETF7Y.js";import{a as de,b as ue,c as he,d as be}from"./chunk-TC43COAE.js";import{a as _e,b as bt,c as xt}from"./chunk-EXVUABTO.js";import{a as ce,j as fe,l as ge,n as Y,o as J,p as mt,r as ht,s as _t,w as ft,x as gt}from"./chunk-YOEPO6LK.js";import{Ba as st,D as et,Ea as pt,Ha as ct,Ma as dt,Na as pe,Oa as W,R as A,S as L,U as tt,V as it,Va as ut,_ as nt,a as qe,b as Qe,c as $,e as Ze,f as je,k as Ue,l as We,ma as ot,o as Ye,oa as lt,pa as rt,ra as U,sa as K,ta as at,v as Je,wa as se,y as Xe}from"./chunk-BNI5KUDE.js";import{a as Ne}from"./chunk-3HW557B7.js";import{C as He,F as Be,M as Ge,c as oe,e as Ke,f as le,g as re,h as ae,m as j,w as Re}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Aa as Ee,Ab as te,Ac as ne,Bc as ze,Cb as u,Ga as D,I as Se,Jb as x,Kb as a,Lb as ke,Lc as M,Nb as q,Ob as Q,Pb as E,Ub as d,Uc as f,Vb as c,Vc as H,Wb as g,Xb as w,Xc as B,Yb as C,Yc as Ae,Zb as O,_b as v,aa as Te,ba as N,ca as Ve,dc as b,ec as r,gb as s,ha as k,ic as De,jc as F,kc as S,lc as T,mb as ee,oc as z,pa as h,pc as m,qa as _,qc as R,rc as ie,ta as X,uc as Me,vc as Le,wb as P,wc as Pe,xb as Fe,xc as $e,yc as Z,za as I,zc as V}from"./chunk-YVEUYFCE.js";import{a as ve,b as Ie}from"./chunk-YQFG5XE2.js";var G=t=>({height:t}),Dt=(t,l,e)=>({"p-select-option":!0,"p-select-option-selected":t,"p-disabled":l,"p-focus":e}),we=t=>({$implicit:t});function Mt(t,l){t&1&&g(0,"CheckIcon",4),t&2&&a("styleClass","p-select-option-check-icon")}function Lt(t,l){t&1&&g(0,"BlankIcon",4),t&2&&a("styleClass","p-select-option-blank-icon")}function Pt(t,l){if(t&1&&(w(0),u(1,Mt,1,1,"CheckIcon",3)(2,Lt,1,1,"BlankIcon",3),C()),t&2){let e=r();s(),a("ngIf",e.selected),s(),a("ngIf",!e.selected)}}function $t(t,l){if(t&1&&(d(0,"span"),m(1),c()),t&2){let e,n=r();s(),R((e=n.label)!==null&&e!==void 0?e:"empty")}}function zt(t,l){t&1&&O(0)}var At=["container"],Kt=["filter"],Rt=["focusInput"],Ht=["editableInput"],Bt=["items"],Gt=["scroller"],Nt=["overlay"],qt=["firstHiddenFocusableEl"],Qt=["lastHiddenFocusableEl"],Zt=()=>({class:"p-select-clear-icon"}),jt=()=>({class:"p-select-dropdown-icon"}),vt=t=>({options:t}),It=(t,l)=>({$implicit:t,options:l}),Ut=()=>({});function Wt(t,l){if(t&1&&(w(0),m(1),C()),t&2){let e=r(2);s(),R(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Yt(t,l){if(t&1&&O(0,23),t&2){let e=r(2);a("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",V(2,we,e.selectedOption))}}function Jt(t,l){if(t&1&&(d(0,"span"),m(1),c()),t&2){let e=r(3);s(),R(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Xt(t,l){if(t&1&&u(0,Jt,2,1,"span",17),t&2){let e=r(2);a("ngIf",!e.selectedOption)}}function ei(t,l){if(t&1){let e=v();d(0,"span",21,3),b("focus",function(i){h(e);let o=r();return _(o.onInputFocus(i))})("blur",function(i){h(e);let o=r();return _(o.onInputBlur(i))})("keydown",function(i){h(e);let o=r();return _(o.onKeyDown(i))}),u(2,Wt,2,1,"ng-container",19)(3,Yt,1,4,"ng-container",22)(4,Xt,1,1,"ng-template",null,4,M),c()}if(t&2){let e,n=z(5),i=r();a("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),s(2),a("ngIf",!i.selectedItemTemplate)("ngIfElse",n),s(),a("ngIf",i.selectedItemTemplate&&i.selectedOption)}}function ti(t,l){if(t&1){let e=v();d(0,"input",24,5),b("input",function(i){h(e);let o=r();return _(o.onEditableInput(i))})("keydown",function(i){h(e);let o=r();return _(o.onKeyDown(i))})("focus",function(i){h(e);let o=r();return _(o.onInputFocus(i))})("blur",function(i){h(e);let o=r();return _(o.onInputBlur(i))}),c()}if(t&2){let e=r();a("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 ii(t,l){if(t&1){let e=v();d(0,"TimesIcon",26),b("click",function(i){h(e);let o=r(2);return _(o.clear(i))}),c()}t&2&&x("data-pc-section","clearicon")}function ni(t,l){}function oi(t,l){t&1&&u(0,ni,0,0,"ng-template")}function li(t,l){if(t&1){let e=v();d(0,"span",26),b("click",function(i){h(e);let o=r(2);return _(o.clear(i))}),u(1,oi,1,0,null,27),c()}if(t&2){let e=r(2);x("data-pc-section","clearicon"),s(),a("ngTemplateOutlet",e.clearIconTemplate)("ngTemplateOutletContext",Z(3,Zt))}}function ri(t,l){if(t&1&&(w(0),u(1,ii,1,1,"TimesIcon",25)(2,li,2,4,"span",25),C()),t&2){let e=r();s(),a("ngIf",!e.clearIconTemplate),s(),a("ngIf",e.clearIconTemplate)}}function ai(t,l){t&1&&O(0)}function si(t,l){if(t&1&&(w(0),u(1,ai,1,0,"ng-container",28),C()),t&2){let e=r(2);s(),a("ngTemplateOutlet",e.loadingIconTemplate)}}function pi(t,l){if(t&1&&g(0,"span",31),t&2){let e=r(3);a("ngClass","p-select-loading-icon pi-spin "+e.loadingIcon)}}function ci(t,l){t&1&&g(0,"span",32),t&2&&Q("p-select-loading-icon pi pi-spinner pi-spin")}function di(t,l){if(t&1&&(w(0),u(1,pi,1,1,"span",29)(2,ci,1,2,"span",30),C()),t&2){let e=r(2);s(),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ui(t,l){if(t&1&&(w(0),u(1,si,2,1,"ng-container",17)(2,di,3,2,"ng-container",17),C()),t&2){let e=r();s(),a("ngIf",e.loadingIconTemplate),s(),a("ngIf",!e.loadingIconTemplate)}}function mi(t,l){if(t&1&&g(0,"span",36),t&2){let e=r(3);a("ngClass",e.dropdownIcon)}}function hi(t,l){t&1&&g(0,"ChevronDownIcon",37),t&2&&a("styleClass","p-select-dropdown-icon")}function _i(t,l){if(t&1&&(w(0),u(1,mi,1,1,"span",34)(2,hi,1,1,"ChevronDownIcon",35),C()),t&2){let e=r(2);s(),a("ngIf",e.dropdownIcon),s(),a("ngIf",!e.dropdownIcon)}}function fi(t,l){}function gi(t,l){t&1&&u(0,fi,0,0,"ng-template")}function bi(t,l){if(t&1&&(d(0,"span",38),u(1,gi,1,0,null,27),c()),t&2){let e=r(2);s(),a("ngTemplateOutlet",e.dropdownIconTemplate)("ngTemplateOutletContext",Z(2,jt))}}function xi(t,l){if(t&1&&u(0,_i,3,2,"ng-container",17)(1,bi,2,3,"span",33),t&2){let e=r();a("ngIf",!e.dropdownIconTemplate),s(),a("ngIf",e.dropdownIconTemplate)}}function yi(t,l){t&1&&O(0)}function wi(t,l){t&1&&O(0)}function Ci(t,l){if(t&1&&(w(0),u(1,wi,1,0,"ng-container",27),C()),t&2){let e=r(3);s(),a("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",V(2,vt,e.filterOptions))}}function Oi(t,l){t&1&&g(0,"SearchIcon")}function vi(t,l){}function Ii(t,l){t&1&&u(0,vi,0,0,"ng-template")}function Si(t,l){if(t&1&&(d(0,"span"),u(1,Ii,1,0,null,28),c()),t&2){let e=r(4);s(),a("ngTemplateOutlet",e.filterIconTemplate)}}function Ti(t,l){if(t&1){let e=v();d(0,"p-iconfield")(1,"input",45,10),b("input",function(i){h(e);let o=r(3);return _(o.onFilterInputChange(i))})("keydown",function(i){h(e);let o=r(3);return _(o.onFilterKeyDown(i))})("blur",function(i){h(e);let o=r(3);return _(o.onFilterBlur(i))}),c(),d(3,"p-inputicon"),u(4,Oi,1,0,"SearchIcon",17)(5,Si,2,1,"span",17),c()()}if(t&2){let e=r(3);s(),a("value",e._filterValue()||"")("variant",e.variant),x("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),s(3),a("ngIf",!e.filterIconTemplate),s(),a("ngIf",e.filterIconTemplate)}}function Vi(t,l){if(t&1){let e=v();d(0,"div",44),b("click",function(i){return h(e),_(i.stopPropagation())}),u(1,Ci,2,4,"ng-container",19)(2,Ti,6,8,"ng-template",null,9,M),c()}if(t&2){let e=z(3),n=r(2);s(),a("ngIf",n.filterTemplate)("ngIfElse",e)}}function Ei(t,l){t&1&&O(0)}function Fi(t,l){if(t&1&&u(0,Ei,1,0,"ng-container",27),t&2){let e=l.$implicit,n=l.options;r(2);let i=z(9);a("ngTemplateOutlet",i)("ngTemplateOutletContext",ne(2,It,e,n))}}function ki(t,l){t&1&&O(0)}function Di(t,l){if(t&1&&u(0,ki,1,0,"ng-container",27),t&2){let e=l.options,n=r(4);a("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",V(2,vt,e))}}function Mi(t,l){t&1&&(w(0),u(1,Di,1,4,"ng-template",null,12,M),C())}function Li(t,l){if(t&1){let e=v();d(0,"p-scroller",46,11),b("onLazyLoad",function(i){h(e);let o=r(2);return _(o.onLazyLoad.emit(i))}),u(2,Fi,1,5,"ng-template",null,2,M)(4,Mi,3,0,"ng-container",17),c()}if(t&2){let e=r(2);q(V(8,G,e.scrollHeight)),a("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),a("ngIf",e.loaderTemplate)}}function Pi(t,l){t&1&&O(0)}function $i(t,l){if(t&1&&(w(0),u(1,Pi,1,0,"ng-container",27),C()),t&2){r();let e=z(9),n=r();s(),a("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(3,It,n.visibleOptions(),Z(2,Ut)))}}function zi(t,l){if(t&1&&(d(0,"span"),m(1),c()),t&2){let e=r(2).$implicit,n=r(3);s(),R(n.getOptionGroupLabel(e.optionGroup))}}function Ai(t,l){t&1&&O(0)}function Ki(t,l){if(t&1&&(w(0),d(1,"li",50),u(2,zi,2,1,"span",17)(3,Ai,1,0,"ng-container",27),c(),C()),t&2){let e=r(),n=e.$implicit,i=e.index,o=r().options,p=r(2);s(),a("ngStyle",V(5,G,o.itemSize+"px")),x("id",p.id+"_"+p.getOptionIndex(i,o)),s(),a("ngIf",!p.groupTemplate),s(),a("ngTemplateOutlet",p.groupTemplate)("ngTemplateOutletContext",V(7,we,n.optionGroup))}}function Ri(t,l){if(t&1){let e=v();w(0),d(1,"p-dropdownItem",51),b("onClick",function(i){h(e);let o=r().$implicit,p=r(3);return _(p.onOptionSelect(i,o))})("onMouseEnter",function(i){h(e);let o=r().index,p=r().options,y=r(2);return _(y.onOptionMouseEnter(i,y.getOptionIndex(o,p)))}),c(),C()}if(t&2){let e=r(),n=e.$implicit,i=e.index,o=r().options,p=r(2);s(),a("id",p.id+"_"+p.getOptionIndex(i,o))("option",n)("checkmark",p.checkmark)("selected",p.isSelected(n))("label",p.getOptionLabel(n))("disabled",p.isOptionDisabled(n))("template",p.itemTemplate)("focused",p.focusedOptionIndex()===p.getOptionIndex(i,o))("ariaPosInset",p.getAriaPosInset(p.getOptionIndex(i,o)))("ariaSetSize",p.ariaSetSize)}}function Hi(t,l){if(t&1&&u(0,Ki,4,9,"ng-container",17)(1,Ri,2,10,"ng-container",17),t&2){let e=l.$implicit,n=r(3);a("ngIf",n.isOptionGroup(e)),s(),a("ngIf",!n.isOptionGroup(e))}}function Bi(t,l){if(t&1&&m(0),t&2){let e=r(4);ie(" ",e.emptyFilterMessageLabel," ")}}function Gi(t,l){t&1&&O(0,null,14)}function Ni(t,l){if(t&1&&u(0,Gi,2,0,"ng-container",28),t&2){let e=r(4);a("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function qi(t,l){if(t&1&&(d(0,"li",52),u(1,Bi,1,1)(2,Ni,1,1,"ng-container"),c()),t&2){let e=r().options,n=r(2);a("ngStyle",V(2,G,e.itemSize+"px")),s(),E(!n.emptyFilterTemplate&&!n.emptyTemplate?1:2)}}function Qi(t,l){if(t&1&&m(0),t&2){let e=r(4);ie(" ",e.emptyMessageLabel," ")}}function Zi(t,l){t&1&&O(0)}function ji(t,l){if(t&1&&u(0,Zi,1,0,"ng-container",28),t&2){let e=r(4);a("ngTemplateOutlet",e.emptyTemplate)}}function Ui(t,l){if(t&1&&(d(0,"li",52),u(1,Qi,1,1)(2,ji,1,1,"ng-container"),c()),t&2){let e=r().options,n=r(2);a("ngStyle",V(2,G,e.itemSize+"px")),s(),E(n.emptyTemplate?2:1)}}function Wi(t,l){if(t&1&&(d(0,"ul",47,13),u(2,Hi,2,2,"ng-template",48)(3,qi,3,4,"li",49)(4,Ui,3,4,"li",49),c()),t&2){let e=l.$implicit,n=l.options,i=r(2);q(n.contentStyle),a("ngClass",n.contentStyleClass),x("id",i.id+"_list")("aria-label",i.listLabel),s(2),a("ngForOf",e),s(),a("ngIf",i.filterValue&&i.isEmpty()),s(),a("ngIf",!i.filterValue&&i.isEmpty())}}function Yi(t,l){t&1&&O(0)}function Ji(t,l){if(t&1){let e=v();d(0,"div",39)(1,"span",40,6),b("focus",function(i){h(e);let o=r();return _(o.onFirstHiddenFocus(i))}),c(),u(3,yi,1,0,"ng-container",28)(4,Vi,4,2,"div",41),d(5,"div",42),u(6,Li,5,10,"p-scroller",43)(7,$i,2,6,"ng-container",17)(8,Wi,5,8,"ng-template",null,7,M),c(),u(10,Yi,1,0,"ng-container",28),d(11,"span",40,8),b("focus",function(i){h(e);let o=r();return _(o.onLastHiddenFocus(i))}),c()()}if(t&2){let e=r();Q(e.panelStyleClass),a("ngClass","p-select-overlay p-component")("ngStyle",e.panelStyle),s(),x("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),s(2),a("ngTemplateOutlet",e.headerTemplate),s(),a("ngIf",e.filter),s(),ke("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),s(),a("ngIf",e.virtualScroll),s(),a("ngIf",!e.virtualScroll),s(3),a("ngTemplateOutlet",e.footerTemplate),s(),x("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Xi=({dt:t})=>`
2
+ .p-select {
3
+ display: inline-flex;
4
+ cursor: pointer;
5
+ position: relative;
6
+ user-select: none;
7
+ background: ${t("select.background")};
8
+ border: 1px solid ${t("select.border.color")};
9
+ transition: background ${t("select.transition.duration")}, color ${t("select.transition.duration")}, border-color ${t("select.transition.duration")},
10
+ outline-color ${t("select.transition.duration")}, box-shadow ${t("select.transition.duration")};
11
+ border-radius: ${t("select.border.radius")};
12
+ outline-color: transparent;
13
+ box-shadow: ${t("select.shadow")};
14
+ }
15
+
16
+ .p-select:not(.p-disabled):hover {
17
+ border-color: ${t("select.hover.border.color")};
18
+ }
19
+
20
+ .p-select:not(.p-disabled).p-focus {
21
+ border-color: ${t("select.focus.border.color")};
22
+ box-shadow: ${t("select.focus.ring.shadow")};
23
+ outline: ${t("select.focus.ring.width")} ${t("select.focus.ring.style")} ${t("select.focus.ring.color")};
24
+ outline-offset: ${t("select.focus.ring.offset")};
25
+ }
26
+
27
+ .p-select.p-variant-filled {
28
+ background: ${t("select.filled.background")};
29
+ }
30
+
31
+ .p-select.p-variant-filled.p-focus {
32
+ background: ${t("select.filled.focus.background")};
33
+ }
34
+
35
+ .p-select.p-disabled {
36
+ opacity: 1;
37
+ background: ${t("select.disabled.background")};
38
+ }
39
+
40
+ .p-select-clear-icon {
41
+ position: absolute;
42
+ top: 50%;
43
+ margin-top: -0.5rem;
44
+ color: ${t("select.clear.icon.color")};
45
+ right: ${t("select.dropdown.width")};
46
+ }
47
+
48
+ .p-select-dropdown {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ flex-shrink: 0;
53
+ background: transparent;
54
+ color: ${t("select.dropdown.color")};
55
+ width: ${t("select.dropdown.width")};
56
+ border-start-end-radius: ${t("select.border.radius")};
57
+ border-end-end-radius: ${t("select.border.radius")};
58
+ }
59
+
60
+ .p-select-label {
61
+ display: block;
62
+ white-space: nowrap;
63
+ overflow: hidden;
64
+ flex: 1 1 auto;
65
+ width: 1%;
66
+ padding: ${t("select.padding.y")} ${t("select.padding.x")};
67
+ text-overflow: ellipsis;
68
+ cursor: pointer;
69
+ color: ${t("select.color")};
70
+ background: transparent;
71
+ border: 0 none;
72
+ outline: 0 none;
73
+ }
74
+
75
+ .p-select-label.p-placeholder {
76
+ color: ${t("select.placeholder.color")};
77
+ }
78
+
79
+ .p-select:has(.p-select-clear-icon) .p-select-label {
80
+ padding-right: calc(1rem + ${t("select.padding.x")});
81
+ }
82
+
83
+ .p-select.p-disabled .p-select-label {
84
+ color: ${t("select.disabled.color")};
85
+ }
86
+
87
+ .p-select-label-empty {
88
+ overflow: hidden;
89
+ opacity: 0;
90
+ }
91
+
92
+ input.p-select-label {
93
+ cursor: default;
94
+ }
95
+
96
+ .p-select .p-select-overlay {
97
+ min-width: 100%;
98
+ }
99
+
100
+ .p-select-overlay {
101
+ position: absolute;
102
+ top: 0;
103
+ left: 0;
104
+ background: ${t("select.overlay.background")};
105
+ color: ${t("select.overlay.color")};
106
+ border: 1px solid ${t("select.overlay.border.color")};
107
+ border-radius: ${t("select.overlay.border.radius")};
108
+ box-shadow: ${t("select.overlay.shadow")};
109
+ }
110
+
111
+ .p-select-header {
112
+ padding: ${t("select.list.header.padding")};
113
+ }
114
+
115
+ .p-select-filter {
116
+ width: 100%;
117
+ }
118
+
119
+ .p-select-list-container {
120
+ overflow: auto;
121
+ }
122
+
123
+ .p-select-option-group {
124
+ cursor: auto;
125
+ margin: 0;
126
+ padding: ${t("select.option.group.padding")};
127
+ background: ${t("select.option.group.background")};
128
+ color: ${t("select.option.group.color")};
129
+ font-weight: ${t("select.option.group.font.weight")};
130
+ }
131
+
132
+ .p-select-list {
133
+ margin: 0;
134
+ padding: 0;
135
+ list-style-type: none;
136
+ padding: ${t("select.list.padding")};
137
+ gap: ${t("select.list.gap")};
138
+ display: flex;
139
+ flex-direction: column;
140
+ }
141
+
142
+ .p-select-option {
143
+ cursor: pointer;
144
+ font-weight: normal;
145
+ white-space: nowrap;
146
+ position: relative;
147
+ overflow: hidden;
148
+ display: flex;
149
+ align-items: center;
150
+ padding: ${t("select.option.padding")};
151
+ border: 0 none;
152
+ color: ${t("select.option.color")};
153
+ background: transparent;
154
+ transition: background ${t("select.transition.duration")}, color ${t("select.transition.duration")}, border-color ${t("select.transition.duration")},
155
+ box-shadow ${t("select.transition.duration")}, outline-color ${t("select.transition.duration")};
156
+ border-radius: ${t("select.option.border.radius")};
157
+ }
158
+
159
+ .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
160
+ background: ${t("select.option.focus.background")};
161
+ color: ${t("select.option.focus.color")};
162
+ }
163
+
164
+ .p-select-option.p-select-option-selected {
165
+ background: ${t("select.option.selected.background")};
166
+ color: ${t("select.option.selected.color")};
167
+ }
168
+
169
+ .p-select-option.p-select-option-selected.p-focus {
170
+ background: ${t("select.option.selected.focus.background")};
171
+ color: ${t("select.option.selected.focus.color")};
172
+ }
173
+
174
+ .p-select-option-check-icon {
175
+ position: relative;
176
+ margin-inline-start: ${t("select.checkmark.gutter.start")};
177
+ margin-inline-end: ${t("select.checkmark.gutter.end")};
178
+ color: ${t("select.checkmark.color")};
179
+ }
180
+
181
+ .p-select-empty-message {
182
+ padding: ${t("select.empty.message.padding")};
183
+ }
184
+
185
+ .p-select-fluid {
186
+ display: flex;
187
+ }
188
+
189
+ /*For PrimeNG*/
190
+
191
+ .p-dropdown.ng-invalid.ng-dirty,
192
+ .p-select.ng-invalid.ng-dirty {
193
+ outline: 1px solid ${t("select.invalid.border.color")};
194
+ outline-offset: 0;
195
+ }
196
+
197
+ .p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
198
+ .p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
199
+ color: ${t("select.invalid.placeholder.color")};
200
+ }
201
+ `,en={root:({instance:t})=>["p-dropdown 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&&!t.modelValue().length,"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"},Ct=(()=>{class t extends ut{name="select";theme=Xi;classes=en;static \u0275fac=(()=>{let e;return function(i){return(e||(e=X(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Ot;Ot||(Ot={});var tn={provide:qe,useExisting:Te(()=>Ce),multi:!0},nn=(()=>{class t extends ce{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new I;onMouseEnter=new I;onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=X(t)))(i||t)}})();static \u0275cmp=P({type:t,selectors:[["p-dropdownItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",f],focused:[2,"focused","focused",f],label:"label",disabled:[2,"disabled","disabled",f],visible:[2,"visible","visible",f],itemSize:[2,"itemSize","itemSize",H],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",f]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},standalone:!1,features:[te],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(n,i){n&1&&(d(0,"li",0),b("click",function(p){return i.onOptionClick(p)})("mouseenter",function(p){return i.onOptionMouseEnter(p)}),u(1,Pt,3,2,"ng-container",1)(2,$t,2,1,"span",1)(3,zt,1,0,"ng-container",2),c()),n&2&&(a("id",i.id)("ngStyle",V(14,G,i.itemSize+"px"))("ngClass",ze(16,Dt,i.selected,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),s(),a("ngIf",i.checkmark),s(),a("ngIf",!i.template),s(),a("ngTemplateOutlet",i.template)("ngTemplateOutletContext",V(20,we,i.option)))},dependencies:()=>[oe,le,ae,re,mt,de,ue],encapsulation:2})}return t})(),Ce=(()=>{class t extends ce{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;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;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){rt(e,this._options())||this._options.set(e)}onChange=new I;onFilter=new I;onFocus=new I;onBlur=new I;onClick=new I;onShow=new I;onHide=new I;onClear=new I;onLazyLoad=new I;_componentStyle=k(Ct);containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;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;filterOptions;_options=D(null);_placeholder=D(void 0);modelValue=D(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;selectedOptionUpdated;_filterValue=D(null);searchValue;searchTimeout;preventModelTouched;focusedOptionIndex=D(-1);clicked=D(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(W.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(W.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(W.ARIA).listLabel}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}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 focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=B(()=>{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||[],p=[];return o.forEach(y=>{let Oe=this.getOptionGroupChildren(y).filter(Ft=>i.includes(Ft));Oe.length>0&&p.push(Ie(ve({},y),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...Oe]}))}),this.flatOptions(p)}return i}return e});label=B(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));return n!==-1?this.getOptionLabel(e[n]):this.placeholder()||"p-emptylabel"});filled=B(()=>typeof this.modelValue()=="string"?!!this.modelValue():this.label()!=="p-emptylabel"&&this.modelValue()!==void 0&&this.modelValue()!==null);selectedOption;editableInputValue=B(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,n){super(),this.zone=e,this.filterService=n,Ae(()=>{let i=this.modelValue(),o=this.visibleOptions();if(o&&U(o)){let p=this.findSelectedOptionIndex();(p!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=o[p])}lt(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(),console.log("Dropdown component is deprecated as of v18, use Select component instead."),this.id=this.id||pt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}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=A(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&ot(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}templates;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;default:this.itemTemplate=e.template;break}})}flatOptions(e){return(e||[]).reduce((n,i,o)=>{n.push({optionGroup:i,group:!0,index:o});let p=this.getOptionGroupChildren(i);return p&&p.forEach(y=>n.push(y)),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 p=this.getOptionValue(n);this.updateModel(p,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:p})}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.autoDisplayFirst&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return at(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?K(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?K(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}isOptionDisabled(e){return this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&e.disabled===!1?!1:this.optionDisabled?K(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?K(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?K(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,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:n})},1),!this.overlayVisible&&U(n)&&this.show()}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&L(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=A(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),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=A(this.itemsWrapper,".p-dropdown-item.p-highlight");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"&&et(),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){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&&st(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=A(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()}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?it(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;L(n)}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?nt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;L(n)}hasFocusableElements(){return tt(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(p=>this.isOptionExactMatched(p)),i===-1&&(i=this.visibleOptions().findIndex(p=>this.isOptionStartsWith(p))),i!==-1&&(o=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionStartsWith(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isOptionExactMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale)===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?A(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)(ee(Ee),ee(ct))};static \u0275cmp=P({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,i,o){if(n&1&&De(o,dt,4),n&2){let p;S(p=T())&&(i.templates=p)}},viewQuery:function(n,i){if(n&1&&(F(At,5),F(Kt,5),F(Rt,5),F(Ht,5),F(Bt,5),F(Gt,5),F(Nt,5),F(qt,5),F(Qt,5)),n&2){let o;S(o=T())&&(i.containerViewChild=o.first),S(o=T())&&(i.filterViewChild=o.first),S(o=T())&&(i.focusInputViewChild=o.first),S(o=T())&&(i.editableInputViewChild=o.first),S(o=T())&&(i.itemsViewChild=o.first),S(o=T())&&(i.scroller=o.first),S(o=T())&&(i.overlayViewChild=o.first),S(o=T())&&(i.firstHiddenFocusableElementOnOverlay=o.first),S(o=T())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:5,hostBindings:function(n,i){n&1&&b("click",function(p){return i.onContainerClick(p)}),n&2&&(x("id",i.id),q(i.hostStyle),Q(i.hostClass))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",f],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",f],required:[2,"required","required",f],editable:[2,"editable","editable",f],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",H],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",f],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",f],checkmark:[2,"checkmark","checkmark",f],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",f],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",f],group:[2,"group","group",f],showClear:[2,"showClear","showClear",f],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",f],virtualScroll:[2,"virtualScroll","virtualScroll",f],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",H],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",H],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",f],selectOnFocus:[2,"selectOnFocus","selectOnFocus",f],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",f],autofocusFilter:[2,"autofocusFilter","autofocusFilter",f],fluid:[2,"fluid","fluid",f],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"},standalone:!1,features:[$e([tn,Ct]),te],decls:11,vars:15,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["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","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=v();u(0,ei,6,20,"span",15)(1,ti,2,8,"input",16)(2,ri,3,2,"ng-container",17),d(3,"div",18),u(4,ui,3,2,"ng-container",19)(5,xi,2,2,"ng-template",null,0,M),c(),d(7,"p-overlay",20,1),Pe("visibleChange",function(y){return h(o),Le(i.overlayVisible,y)||(i.overlayVisible=y),_(y)}),b("onAnimationStart",function(y){return h(o),_(i.onOverlayAnimationStart(y))})("onHide",function(){return h(o),_(i.hide())}),u(9,Ji,13,17,"ng-template",null,2,M),c()}if(n&2){let o,p=z(6);a("ngIf",!i.editable),s(),a("ngIf",i.editable),s(),a("ngIf",i.isVisibleClearIcon),s(),x("aria-expanded",(o=i.overlayVisible)!==null&&o!==void 0?o:!1)("data-pc-section","trigger"),s(),a("ngIf",i.loading)("ngIfElse",p),s(3),Me("visible",i.overlayVisible),a("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:()=>[oe,Ke,le,ae,re,yt,bt,be,ht,_e,me,he,Y,fe,ge,nn],encapsulation:2,changeDetection:0})}return t})(),St=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Fe({type:t});static \u0275inj=Ve({imports:[j,xe,pe,xt,be,_t,_e,me,he,de,ue,J,fe,ge,xe,pe]})}return t})();var Tt=(()=>{class t{constructor(){this.httpService=k(Re),this.toastr=k(Ne)}register(e){return this.httpService.post("/api/Trial/Register",e).pipe(Se(i=>{let o=i.error?.message||"Registration failed";throw this.toastr.error(o,"Registration Error",{timeOut:1e4}),i}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Vt(){return t=>{if(!t.value)return null;let l=t.value.replace(/[\s\-().]/g,"");return[/^(\+62|62)8[1-9][0-9]{7,10}$/,/^08[1-9][0-9]{7,10}$/,/^(\+62|62|0)[2-7][0-9]{7,9}$/].some(i=>i.test(l))?null:{invalidPhone:!0}}}var Et=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-signup-confirmation"]],decls:13,vars:0,consts:[[1,"card","py-4",2,"width","36rem"],[1,"card-header","text-center","py-0","bg-white"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","45px"],[1,"fw-bold","mb-2","mt-3"],[1,"card-body","py-0"],[1,"mb-0","text-center"],["target","_blank",1,"link-primary","link-anchor"]],template:function(n,i){n&1&&(d(0,"div",0)(1,"div",1),g(2,"i",2),d(3,"h2",3),m(4,"Registration Successful"),c()(),d(5,"div",4)(6,"p",5),m(7," Please wait for the DealPOS team to approve your request."),g(8,"br"),m(9," The Approval will be sent to your email address, or you can contact our "),d(10,"a",6),m(11,"support"),c(),m(12," team for more information. "),c()()())},dependencies:[j],styles:[".link-anchor[_ngcontent-%COMP%]{text-decoration:none}.link-anchor[_ngcontent-%COMP%]:hover{text-decoration:underline}"]})}}return t})();function ln(t,l){t&1&&(d(0,"div",2),g(1,"app-signup-confirmation"),c())}function rn(t,l){t&1&&(d(0,"small",21),m(1,"Domain is required"),c())}function an(t,l){t&1&&(d(0,"small",21),m(1," Email is required "),c())}function sn(t,l){t&1&&(d(0,"small",21),m(1," Please enter a valid email address "),c())}function pn(t,l){if(t&1&&u(0,an,2,0,"small",21)(1,sn,2,0,"small",21),t&2){let e,n,i=r(2);E((e=i.registrationForm.get("email"))!=null&&e.getError("required")?0:-1),s(),E((n=i.registrationForm.get("email"))!=null&&n.getError("email")?1:-1)}}function cn(t,l){t&1&&(d(0,"small",21),m(1," Please enter a valid phone number "),c())}function dn(t,l){if(t&1){let e=v();d(0,"div",3)(1,"div",7)(2,"div",8)(3,"div",9)(4,"h2",10),m(5,"Books Registration"),c(),d(6,"p",11),m(7," Register now and take control with all-in-one accounting solution - built for modern retail. See our "),d(8,"a",12),m(9,"pricing"),c(),m(10," plan "),c()(),d(11,"div",13)(12,"section")(13,"form",14)(14,"div",15)(15,"div",16)(16,"label",17),m(17," Domain "),c(),d(18,"div",18),g(19,"input",19)(20,"p-dropdown",20),c(),u(21,rn,2,0,"small",21),c(),d(22,"div",16)(23,"label",22),m(24," Email "),c(),g(25,"input",23),u(26,pn,2,2),c(),d(27,"div",16)(28,"label",24),m(29,"Phone Number"),c(),g(30,"input",25),u(31,cn,2,0,"small",21),c(),d(32,"div",16)(33,"label",26),m(34,"Note"),c(),g(35,"input",27),c()(),d(36,"p-button",28),b("click",function(){h(e);let i=r();return _(i.onRegister())}),c(),d(37,"p",29),m(38," Already have an account? "),d(39,"a",30),m(40,"Sign in"),c()()()()()()()()}if(t&2){let e=r();s(13),a("formGroup",e.registrationForm),s(7),a("options",e.domainSuffixOptions),x("aria-label","Domain suffix"),s(),E(e.domainError?21:-1),s(5),E(e.emailError?26:-1),s(5),E(e.phoneError?31:-1)}}var _o=(()=>{class t{constructor(){this.formBuilder=k(Je),this.registerService=k(Tt),this.route=k(He),this.isRegisterSuccess=D(!1),this.domainSuffixOptions=[{label:".dealpos.co.id",value:".dealpos.co.id"},{label:".dealpos.net",value:".dealpos.net"},{label:".dealpos.com",value:".dealpos.com"},{label:".dealpos.app",value:".dealpos.app"}],this.initializeForm()}initializeForm(){let e=this.getDomainFromQueryParams();this.registrationForm=this.formBuilder.group({domain:[{value:e.domain||"",disabled:e.disableForm},[$.required,$.minLength(3),$.maxLength(63)]],domainSuffix:[{value:e.domainSuffix,disabled:e.disableForm},$.required],email:["",[$.required,$.email]],mobile:["",[Vt()]],note:[""]})}getDomainFromQueryParams(){let n=this.route.snapshot.queryParams.domain||"",i={domain:null,domainSuffix:".dealpos.co.id",disableForm:!1};if(n){let o=n.split(".");o.length>1&&(i.domain=o[0],i.domainSuffix="."+o?.slice(1)?.join("."),i.disableForm=!0)}return i}onRegister(){if(this.registrationForm.markAllAsTouched(),this.registrationForm.invalid)return;let e=this.registrationForm.getRawValue(),n={subDomain:`${e.domain}${e.domainSuffix}`,mobile:e.mobile,email:e.email,note:e.note};this.registerService.register(n).subscribe(()=>{this.isRegisterSuccess.set(!0),this.resetForm()})}resetForm(){this.registrationForm.reset({domain:"",domainSuffix:".dealpos.co.id",email:"",mobile:"",note:""}),this.registrationForm.markAsPristine(),this.registrationForm.markAsUntouched()}get domainError(){let e=this.registrationForm.get("domain");return e?.invalid&&(e?.dirty||e?.touched)||!1}get emailError(){let e=this.registrationForm.get("email");return e?.invalid&&(e?.dirty||e?.touched)||!1}get phoneError(){let e=this.registrationForm.get("mobile");return e?.invalid&&(e?.dirty||e?.touched)||!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-signup"]],decls:7,vars:1,consts:[[1,"h-100","h-custom"],[1,"container","h-100"],[1,"d-flex","justify-content-center","w-100","pt-5"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"d-flex","copyright"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","DealPOS Logo"],[1,"col-xxl-5","col-lg-7","col-xl-6","px-0","px-sm-2","px-lg-2"],[1,"card","rounded-3","mt-0","mt-sm-4","py-8"],[1,"card-header","text-center","px-5","py-0","bg-white"],[1,"fw-bold"],[1,"mb-0"],["href","https://www.dealpos.com/pricing","target","_blank",1,"link-anchor","link-primary"],[1,"card-body","px-5","pb-0","pt-4"],["id","registration-form","novalidate","",3,"formGroup"],[1,"d-flex","flex-column","align-items-center","gap-3"],[1,"form-field","w-100"],["for","domain",1,"field-label"],[1,"domain-input-group"],["pInputText","","id","domain","formControlName","domain","placeholder","Enter your store address","styleClass","domain-input","autocomplete","organization","name","domain",1,"rounded-end-0"],["formControlName","domainSuffix","optionLabel","label","optionValue","value","styleClass","domain-suffix",3,"options"],["role","alert",1,"field-error"],["for","email",1,"field-label"],["formControlName","email","pInputText","","id","email","type","email","placeholder","Enter your email","autocomplete","email","name","email"],["for","mobile",1,"field-label"],["formControlName","mobile","pInputText","","id","mobile","type","tel","placeholder","Enter your phone number","autocomplete","tel","name","mobile"],["for","note",1,"field-label"],["formControlName","note","pInputText","","id","note","placeholder","e.g., requesting trial access books","autoResize","false","name","note"],["type","submit","label","Register","styleClass","register-button",1,"w-100","mt-10",3,"click"],[1,"signin-text"],["routerLink","/",1,"link-anchor","link-primary"]],template:function(n,i){n&1&&(d(0,"section",0)(1,"div",1),u(2,ln,2,0,"div",2)(3,dn,41,6,"div",3),c(),d(4,"div",4)(5,"a",5),g(6,"img",6),c()()()),n&2&&(s(2),E(i.isRegisterSuccess()?2:3))},dependencies:[Ge,Be,J,Y,Xe,Ue,Qe,Ze,je,We,Ye,gt,ft,wt,St,Ce,Et],styles:["[_nghost-%COMP%] .container[_ngcontent-%COMP%]{background-color:#f4f4f4}@media (min-width: 1025px){[_nghost-%COMP%] .h-custom[_ngcontent-%COMP%]{height:100vh!important}}[_nghost-%COMP%] .form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .field-label[_ngcontent-%COMP%]{font-weight:600;color:#333;margin-bottom:.2rem;font-size:.9rem}[_nghost-%COMP%] .domain-input-group[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .domain-input-group[_ngcontent-%COMP%] .domain-input{border-radius:6px 0 0 6px!important;border-right:none!important;flex:1}[_nghost-%COMP%] .domain-input-group[_ngcontent-%COMP%] .domain-suffix{border-radius:0 6px 6px 0!important;border-left:none!important;min-width:160px;padding-top:4px!important}[_nghost-%COMP%] .domain-input-group[_ngcontent-%COMP%] .domain-suffix .p-dropdown-label{font-size:.9rem}[_nghost-%COMP%] .p-inputtext{border:1px solid #e0e0e0;border-radius:6px;padding:.75rem;font-size:.9rem;transition:all .2s ease;width:100%}[_nghost-%COMP%] .p-inputtext:focus{border-color:var(--p-primary-color);box-shadow:0 0 0 .2rem rgba(var(--p-primary-color),.25)}[_nghost-%COMP%] .p-inputtext.ng-invalid.ng-touched{border-color:#dc3545}[_nghost-%COMP%] .p-inputtext.ng-invalid.ng-touched:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}[_nghost-%COMP%] .p-dropdown{border:1px solid #e0e0e0;border-radius:6px}[_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:var(--p-primary-color)}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{border-color:var(--p-primary-color);box-shadow:0 0 0 .2rem rgba(var(--p-primary-color),.25)}[_nghost-%COMP%] .p-dropdown .p-dropdown-label{padding:.75rem;font-size:.9rem}[_nghost-%COMP%] .p-textarea{border:1px solid #e0e0e0;border-radius:6px;padding:.75rem;font-size:.9rem;font-family:inherit;resize:vertical;min-height:80px}[_nghost-%COMP%] .p-textarea:focus{border-color:var(--p-primary-color);box-shadow:0 0 0 .2rem rgba(var(--p-primary-color),.25)}[_nghost-%COMP%] .p-button.register-button{background-color:var(--p-primary-color);border-color:var(--p-primary-color);color:#fff;font-weight:600;border-radius:6px;width:100%;margin-bottom:1rem}[_nghost-%COMP%] .p-button.register-button .p-button-label{font-size:1rem}[_nghost-%COMP%] .p-button.register-button:hover:not(:disabled){background-color:var(--p-primary-color);border-color:var(--p-primary-color);box-shadow:0 4px 12px rgba(var(--p-primary-color),.3)}[_nghost-%COMP%] .p-button.register-button:disabled{background-color:#6c757d;border-color:#6c757d;transform:none;box-shadow:none}[_nghost-%COMP%] .field-error[_ngcontent-%COMP%]{color:#dc3545;font-size:.8rem;margin-top:.25rem}[_nghost-%COMP%] .rate-limit-warning[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .signin-text[_ngcontent-%COMP%]{color:#6c757d;font-size:.9rem;margin:0;text-align:center}[_nghost-%COMP%] .link-anchor[_ngcontent-%COMP%]{text-decoration:none}[_nghost-%COMP%] .link-anchor[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{position:fixed;bottom:1rem;right:1.25rem;margin-left:20px}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:8.125rem}@media (max-width: 768px){[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{position:static;margin-top:10px}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{justify-content:center}}"]})}}return t})();export{_o as SignupComponent};
@@ -0,0 +1 @@
1
+ import{a as O,b as H}from"./chunk-G6FJQBZZ.js";import"./chunk-GJXWL5XV.js";import"./chunk-34XRAZFC.js";import{a as I,b as E}from"./chunk-LKZL77YR.js";import{a as j,b as R}from"./chunk-JDW35ZB5.js";import"./chunk-WZO2ZLBL.js";import"./chunk-6ZZARVQO.js";import{h as G}from"./chunk-35CWG2OK.js";import{b as D,c as N}from"./chunk-EXVUABTO.js";import"./chunk-4S33ZRKF.js";import"./chunk-4FGQ5T64.js";import{w as V,x as A}from"./chunk-YOEPO6LK.js";import"./chunk-ZWHB7NI7.js";import"./chunk-BNI5KUDE.js";import"./chunk-35KDUCM3.js";import{a as F}from"./chunk-3HW557B7.js";import{i as W,m as $}from"./chunk-BYD3JK4R.js";import"./chunk-F2X3VGZZ.js";import{Cb as B,Ic as s,Jc as m,Kb as p,Lc as x,Nb as h,Ub as o,V as y,Vb as n,Wb as c,X as T,Z as S,_b as w,dc as _,ec as l,gb as a,h as v,ha as u,pa as g,qa as d,ra as b,s as f,sa as k,wb as M,xc as P,yc as C}from"./chunk-YVEUYFCE.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),_("onClick",function(){g(e);let r=l();return d(r.onFormat())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),_("onClick",function(){g(e);let r=l();return d(r.migrateWriteoffOutlet())}),n()()}if(i&2){let e=l();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),s(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let e=l();h(C(12,L)),a(),h(C(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var fe=(()=>{class i{constructor(){this.migrateService=u(O),this.toastr=u(F),this.refresh$=new v(void 0),this.pageTitle="Write-Off Outlet"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getWriteOffOutletAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(f(t=>Number(t.pos))),this.countInBooks$=e.pipe(f(t=>Number(t.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-writeoff-outlet"]],features:[P([O])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),B(1,z,5,6,"ng-template",null,0,x)(3,J,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,$,W,E,I,R,j,N,D,H,A,V],encapsulation:2})}}return i})();export{fe as WriteOffOutletComponent};