dealpos 12.25.0 → 12.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/POS/3rdpartylicenses.txt +5 -5
  2. package/POS/{chunk-XYTDUUSC.js → chunk-22IHO3MH.js} +1 -1
  3. package/POS/{chunk-XRIBHHO4.js → chunk-24BMOCAX.js} +1 -1
  4. package/POS/{chunk-RUWMVSTH.js → chunk-2QBSLAWO.js} +1 -1
  5. package/POS/{chunk-L3ZLZ4OE.js → chunk-2TJLQTKE.js} +3 -3
  6. package/POS/{chunk-GUZBG2YR.js → chunk-2YACNDDJ.js} +1 -1
  7. package/POS/{chunk-5FOCUFXV.js → chunk-37WWEYZP.js} +1 -1
  8. package/POS/{chunk-LQRN44AM.js → chunk-3F63V5FA.js} +1 -1
  9. package/POS/{chunk-4UTK4AX2.js → chunk-3NGVEZW6.js} +1 -1
  10. package/POS/chunk-3YEHZLGH.js +1 -0
  11. package/POS/{chunk-WT22BEPC.js → chunk-4ENF7HDH.js} +1 -1
  12. package/POS/{chunk-3C5LDI4I.js → chunk-4H2QBF3G.js} +1 -1
  13. package/POS/{chunk-DWGPL7AD.js → chunk-4HC4NINY.js} +1 -1
  14. package/POS/{chunk-CG7GZGBY.js → chunk-4XFJM6KN.js} +2 -2
  15. package/POS/{chunk-RTP66UZN.js → chunk-4XG4PKHL.js} +1 -1
  16. package/POS/chunk-52GZMUSD.js +2 -0
  17. package/POS/{chunk-D2JI22UT.js → chunk-56ANGAV7.js} +1 -1
  18. package/POS/{chunk-D6WV22VQ.js → chunk-5LYSXFMN.js} +1 -1
  19. package/POS/{chunk-EMZBXP7H.js → chunk-62W6H7TR.js} +1 -1
  20. package/POS/chunk-6BGF6ZSR.js +1 -0
  21. package/POS/{chunk-GHC5IBHU.js → chunk-6DBVOXEW.js} +8 -8
  22. package/POS/chunk-6R6CQAJ7.js +1 -0
  23. package/POS/chunk-6SOWVZKZ.js +3 -0
  24. package/POS/{chunk-YEPVIXGP.js → chunk-6ZLV2HUJ.js} +1 -1
  25. package/POS/{chunk-77QHDQXE.js → chunk-74TQGJSC.js} +1 -1
  26. package/POS/{chunk-AX5X5R2K.js → chunk-7WRBYZ5K.js} +1 -1
  27. package/POS/{chunk-HKSCV4ZU.js → chunk-7Y6JJ2WX.js} +1 -1
  28. package/POS/chunk-7ZTSHOMY.js +2 -0
  29. package/POS/{chunk-B763WO6J.js → chunk-AB5E7PH3.js} +1 -1
  30. package/POS/{chunk-6GPT4FMZ.js → chunk-ATHCIHNI.js} +1 -1
  31. package/POS/{chunk-A4CCOE6S.js → chunk-AYYVTAAW.js} +1 -1
  32. package/POS/{chunk-WDDP7W42.js → chunk-C57X3XTC.js} +1 -1
  33. package/POS/{chunk-SMRUZWVI.js → chunk-CEDJKDH5.js} +1 -1
  34. package/POS/{chunk-CNRLRAHF.js → chunk-CSG4LQAA.js} +1 -1
  35. package/POS/{chunk-GDHZXUIT.js → chunk-CUMMQ3RY.js} +1 -1
  36. package/POS/chunk-CUPSFRA5.js +4 -0
  37. package/POS/{chunk-4E63T57L.js → chunk-DA2GMWNL.js} +1 -1
  38. package/POS/chunk-DST4CG5Z.js +1 -0
  39. package/POS/{chunk-XTNSXV45.js → chunk-DUIHALS6.js} +1 -1
  40. package/POS/{chunk-VKUU4O2F.js → chunk-E5N5XPE3.js} +1 -1
  41. package/POS/{chunk-4QCV34XV.js → chunk-EU4PFRRH.js} +1 -1
  42. package/POS/{chunk-6RBBKUSJ.js → chunk-FCMQKMGD.js} +1 -1
  43. package/POS/{chunk-UMDQCNRO.js → chunk-GKBEFRIM.js} +1 -1
  44. package/POS/{chunk-E4ZI6XIK.js → chunk-GKUT6F7D.js} +1 -1
  45. package/POS/{chunk-XI56IWT5.js → chunk-GP7LR5HA.js} +1 -1
  46. package/POS/{chunk-KD7VHXRQ.js → chunk-GPO4EZOZ.js} +1 -1
  47. package/POS/{chunk-CEJDVVRZ.js → chunk-GZIIT4PY.js} +1 -1
  48. package/POS/{chunk-FCNDKUWQ.js → chunk-HBPWOVSQ.js} +1 -1
  49. package/POS/{chunk-FE56KRHT.js → chunk-HCIAHZJX.js} +1 -1
  50. package/POS/{chunk-JTNJKXLS.js → chunk-HHVIDNHO.js} +1 -1
  51. package/POS/{chunk-43P5T37M.js → chunk-IRDPJ624.js} +1 -1
  52. package/POS/{chunk-4ITHWILL.js → chunk-J5OVEQ5P.js} +1 -1
  53. package/POS/chunk-JFK7AWXA.js +1 -0
  54. package/POS/{chunk-UNOWFVYQ.js → chunk-JFN2PNFO.js} +1 -1
  55. package/POS/{chunk-3M2CPRPV.js → chunk-JJDWWNZM.js} +1 -1
  56. package/POS/{chunk-6WEBSDH4.js → chunk-JSWDRWY4.js} +1 -1
  57. package/POS/{chunk-EKVWCXXT.js → chunk-JTZHUU5G.js} +1 -1
  58. package/POS/chunk-JUVPEGXI.js +1 -0
  59. package/POS/{chunk-EBJD5MT3.js → chunk-JWBXJRP6.js} +1 -1
  60. package/POS/{chunk-OQ4HHFRW.js → chunk-KKPKCGQU.js} +1 -1
  61. package/POS/{chunk-VQD47HK2.js → chunk-KNHABKKA.js} +1 -1
  62. package/POS/{chunk-WEHAYKJH.js → chunk-KQAHJXRY.js} +1 -1
  63. package/POS/{chunk-JSBUV4WF.js → chunk-KSZ3CHTT.js} +1 -1
  64. package/POS/{chunk-QMOI6OVQ.js → chunk-L4DSB6X7.js} +1 -1
  65. package/POS/{chunk-HLONPZNA.js → chunk-LBFH2BOS.js} +1 -1
  66. package/POS/{chunk-JTJPRZKY.js → chunk-LJPENBRB.js} +4 -4
  67. package/POS/{chunk-5I57JI5C.js → chunk-LOFEE7M5.js} +1 -1
  68. package/POS/chunk-LUO2YZN7.js +1 -0
  69. package/POS/{chunk-XJWVXZXM.js → chunk-M26O7WM3.js} +4 -3
  70. package/POS/{chunk-6WJTWFC5.js → chunk-M3EOMWFA.js} +7 -7
  71. package/POS/{chunk-QEFMUCUE.js → chunk-M6OGUXNA.js} +1 -1
  72. package/POS/{chunk-SHIPFAGH.js → chunk-MB6CN5SC.js} +1 -1
  73. package/POS/{chunk-UCBNOLZD.js → chunk-MC55KJHS.js} +1 -1
  74. package/POS/{chunk-PZD5OQW7.js → chunk-MMH5Z45O.js} +1 -1
  75. package/POS/{chunk-OK6H5PB5.js → chunk-MQ4MPXNR.js} +3 -3
  76. package/POS/{chunk-MZHXEPDZ.js → chunk-MREEMP4E.js} +1 -1
  77. package/POS/{chunk-VH53XSTR.js → chunk-N3JIATQN.js} +1 -1
  78. package/POS/chunk-N3PCFAUP.js +1 -0
  79. package/POS/{chunk-ZFZKVR5U.js → chunk-N6QPTGTR.js} +1 -1
  80. package/POS/{chunk-BPBQHMGS.js → chunk-NFLCSNFV.js} +1 -1
  81. package/POS/{chunk-HEA2Y3M3.js → chunk-NXKAMKWM.js} +1 -1
  82. package/POS/{chunk-BX7BGCXG.js → chunk-OAFXTYXQ.js} +1 -1
  83. package/POS/chunk-OGTTJCF2.js +1 -0
  84. package/POS/{chunk-BVFCKC4E.js → chunk-OOAVMADQ.js} +1 -1
  85. package/POS/{chunk-FFMJQX7G.js → chunk-OVHS2O4L.js} +1 -1
  86. package/POS/{chunk-CPVHDYDS.js → chunk-OWOAMNJK.js} +14 -14
  87. package/POS/{chunk-MOHTSD22.js → chunk-OYVHHRW7.js} +1 -1
  88. package/POS/{chunk-DWV66ACR.js → chunk-P74CYPXA.js} +1 -1
  89. package/POS/{chunk-5ONHBLQJ.js → chunk-PEUBNVNB.js} +1 -1
  90. package/POS/{chunk-NIXERIH6.js → chunk-PH3GE7GZ.js} +1 -1
  91. package/POS/{chunk-ZBWHAXWE.js → chunk-PHPOKW25.js} +1 -1
  92. package/POS/{chunk-AHUBIEAL.js → chunk-PQ7CTBDS.js} +1 -1
  93. package/POS/{chunk-67WDM4XT.js → chunk-PUP74NYU.js} +1 -1
  94. package/POS/{chunk-TPO2CG3T.js → chunk-PWRL22MK.js} +1 -1
  95. package/POS/{chunk-UE2S7RBS.js → chunk-PYZI2MFO.js} +1 -1
  96. package/POS/{chunk-SDFPJ7V7.js → chunk-PZERYBHO.js} +1 -1
  97. package/POS/{chunk-R5KT5JRV.js → chunk-Q4VTP4IW.js} +1 -1
  98. package/POS/{chunk-QMVNSKHV.js → chunk-Q6YG5LNJ.js} +1 -1
  99. package/POS/{chunk-QSXO6BMT.js → chunk-QC74IM4D.js} +1 -1
  100. package/POS/{chunk-5EYFCRAB.js → chunk-QCW4KRJW.js} +3 -3
  101. package/POS/{chunk-B6GYCXBS.js → chunk-QIND4AZ2.js} +1 -1
  102. package/POS/{chunk-UOABKK3N.js → chunk-QVA7OC5X.js} +1 -1
  103. package/POS/chunk-R4D5EDBR.js +1 -0
  104. package/POS/{chunk-AN6C3HEO.js → chunk-RAA7OGA2.js} +1 -1
  105. package/POS/{chunk-YIJIR6J4.js → chunk-RDTFGVIM.js} +1 -1
  106. package/POS/{chunk-FOFOMWBZ.js → chunk-RONIKT4Z.js} +1 -1
  107. package/POS/{chunk-HMKZ73WK.js → chunk-S4242KD4.js} +1 -1
  108. package/POS/{chunk-PZ3A5ADH.js → chunk-S7RVXHAG.js} +1 -1
  109. package/POS/{chunk-Y537CL22.js → chunk-SANZRGGJ.js} +1 -1
  110. package/POS/{chunk-KHRF35SE.js → chunk-SCV4XCOL.js} +1 -1
  111. package/POS/{chunk-N3RGZLRH.js → chunk-SEZQ5GW6.js} +1 -1
  112. package/POS/{chunk-2MFVSZPG.js → chunk-SGDZTAVM.js} +1 -1
  113. package/POS/chunk-SMQXV4CO.js +3 -0
  114. package/POS/{chunk-FT5C5T6V.js → chunk-SPR7ZAXP.js} +1 -1
  115. package/POS/chunk-T3PC7HAL.js +1 -0
  116. package/POS/{chunk-EA2TZOMA.js → chunk-T6RDUE6Z.js} +1 -1
  117. package/POS/{chunk-3QCRJLHM.js → chunk-TESUWWYQ.js} +1 -1
  118. package/POS/{chunk-EEHYOORJ.js → chunk-TYFGMHZQ.js} +1 -1
  119. package/POS/{chunk-P5WMKTJ7.js → chunk-UAF6D2F3.js} +1 -1
  120. package/POS/{chunk-A5Y7UVRD.js → chunk-UDT6Q2HO.js} +1 -1
  121. package/POS/{chunk-Q4GBA5LO.js → chunk-UE75V6FK.js} +1 -1
  122. package/POS/chunk-ULT2AUQH.js +1 -0
  123. package/POS/{chunk-SOV7UOOV.js → chunk-V2DC2NW7.js} +1 -1
  124. package/POS/chunk-VFBLAENE.js +1 -0
  125. package/POS/chunk-VSCGWRET.js +3 -0
  126. package/POS/{chunk-IELV2LHE.js → chunk-W6HH3CJE.js} +1 -1
  127. package/POS/{chunk-O3GBT3SM.js → chunk-WA3ITSRM.js} +1 -1
  128. package/POS/{chunk-2MLUTSF2.js → chunk-WANL667I.js} +1 -1
  129. package/POS/{chunk-RJHNH3F2.js → chunk-WE3QPEWY.js} +1 -1
  130. package/POS/{chunk-NJSQLANE.js → chunk-WFSPTDX5.js} +1 -1
  131. package/POS/{chunk-5JEXBCVF.js → chunk-WTEHDISG.js} +1 -1
  132. package/POS/{chunk-JPYGUXVJ.js → chunk-WVHK55DZ.js} +1 -1
  133. package/POS/{chunk-VJOISRFK.js → chunk-X7D5CV4Y.js} +1 -1
  134. package/POS/chunk-YF62EAII.js +1 -0
  135. package/POS/{chunk-ZUQSZLJ6.js → chunk-YHNMC7XN.js} +1 -1
  136. package/POS/chunk-YS626B3P.js +1 -0
  137. package/POS/chunk-YVFLK2HY.js +1 -0
  138. package/POS/chunk-YWCLOMFE.js +1 -0
  139. package/POS/{chunk-LUSTXMPO.js → chunk-YZYKOPIV.js} +1 -1
  140. package/POS/{chunk-WWOCY5E4.js → chunk-ZCNLBVSL.js} +1 -1
  141. package/POS/{chunk-GHJGXKQP.js → chunk-ZG76RBT7.js} +1 -1
  142. package/POS/{chunk-MHAU3HZ2.js → chunk-ZLW3W7FM.js} +1 -1
  143. package/POS/chunk-ZO43ZYUB.js +11 -0
  144. package/POS/{chunk-Q3SBYZNJ.js → chunk-ZO5JABST.js} +1 -1
  145. package/POS/chunk-ZOLMGLSX.js +1 -0
  146. package/POS/{chunk-J2WC6QRA.js → chunk-ZVQULQH2.js} +1 -1
  147. package/POS/index.html +2 -2
  148. package/POS/{main-L7WA57WR.js → main-WBDIA2SQ.js} +1 -1
  149. package/POS/{styles-DBN3YZT2.css → styles-SS2IK7JT.css} +1 -1
  150. package/package.json +1 -1
  151. package/POS/chunk-6YN2YCQV.js +0 -1
  152. package/POS/chunk-72QH46UH.js +0 -1
  153. package/POS/chunk-AXMLMFWD.js +0 -1
  154. package/POS/chunk-GFLTC34T.js +0 -1
  155. package/POS/chunk-IDET4AKV.js +0 -4
  156. package/POS/chunk-JLSQBBYN.js +0 -1
  157. package/POS/chunk-JRCX5TQE.js +0 -2
  158. package/POS/chunk-K6LZXKDD.js +0 -1
  159. package/POS/chunk-O6M5ETQN.js +0 -1
  160. package/POS/chunk-OVMJAJZL.js +0 -1
  161. package/POS/chunk-PAO4W67B.js +0 -3
  162. package/POS/chunk-PEW5NXTL.js +0 -1
  163. package/POS/chunk-SC6QPAHY.js +0 -1
  164. package/POS/chunk-SLLY4QLZ.js +0 -1
  165. package/POS/chunk-TXLRK2JM.js +0 -1
  166. package/POS/chunk-UKIQTL4P.js +0 -2
  167. package/POS/chunk-WFKLU52M.js +0 -1
  168. package/POS/chunk-XFMJICHO.js +0 -1
  169. package/POS/chunk-XRISBTIK.js +0 -7
  170. package/POS/chunk-YMDQBGL4.js +0 -3
  171. package/POS/chunk-YNUJJQ5T.js +0 -3
  172. package/POS/chunk-Z373TXW5.js +0 -1
  173. package/POS/chunk-ZBW7SOF7.js +0 -1
  174. package/POS/chunk-ZTYH4OPU.js +0 -1
@@ -188,6 +188,11 @@ Package: @firebase/auth-compat
188
188
  License: "Apache-2.0"
189
189
 
190
190
 
191
+ --------------------------------------------------------------------------------
192
+ Package: bigger-picture
193
+ License: "MIT"
194
+
195
+
191
196
  --------------------------------------------------------------------------------
192
197
  Package: ng-otp-input
193
198
  License: "MIT"
@@ -1419,9 +1424,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1419
1424
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1420
1425
  SOFTWARE.
1421
1426
 
1422
- --------------------------------------------------------------------------------
1423
- Package: bigger-picture
1424
- License: "MIT"
1425
-
1426
-
1427
1427
  --------------------------------------------------------------------------------
@@ -1,2 +1,2 @@
1
- import{b as M}from"./chunk-E4ZI6XIK.js";import{a as O}from"./chunk-KD7VHXRQ.js";import{b as x,h as se,i as S,n as oe}from"./chunk-ZUQSZLJ6.js";import{a as ae}from"./chunk-P5WMKTJ7.js";import{b as X,e as Y,g as ee,h as te,k as ie,l as ne,t as le}from"./chunk-JRCX5TQE.js";import{$b as m,Aa as B,Ac as H,Gb as K,Ic as Z,Ja as p,Jc as z,Ka as u,Kc as G,La as A,Lc as k,Na as R,Nb as _,Ob as f,Oc as W,Pb as s,Rb as Q,Sa as N,Ta as g,Tb as w,_b as h,ac as V,bc as P,cc as j,dc as $,ec as v,jc as C,lc as c,ma as D,oa as L,od as J,sb as o,sc as q,tb as y,tc as E,uc as b,vc as T,za as I,zc as U}from"./chunk-JTJPRZKY.js";var F=(()=>{class n extends oe{pathId;ngOnInit(){this.pathId="url(#"+x()+")"}static \u0275fac=(()=>{let e;return function(t){return(e||(e=R(n)))(t||n)}})();static \u0275cmp=I({type:n,selectors:[["TimesCircleIcon"]],standalone:!0,features:[K,z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,t){i&1&&(A(),h(0,"svg",0)(1,"g"),V(2,"path",1),m(),h(3,"defs")(4,"clipPath",2),V(5,"rect",3),m()()()),i&2&&(w(t.getClassNames()),f("aria-label",t.ariaLabel)("aria-hidden",t.ariaHidden)("role",t.role),o(),f("clip-path",t.pathId),o(3),s("id",t.pathId))},encapsulation:2})}return n})();var pe=["inputtext"],ue=["container"],ce=(n,r,e,i)=>({"p-chips p-component p-input-wrapper":!0,"p-disabled":n,"p-focus":r,"p-inputwrapper-filled":e,"p-inputwrapper-focus":i}),de=()=>({"p-inputtext p-chips-multiple-container":!0}),he=n=>({"p-chips-clearable":n}),me=n=>({"p-chips-token":!0,"p-focus":n}),fe=n=>({$implicit:n});function _e(n,r){n&1&&$(0)}function Ce(n,r){if(n&1&&(h(0,"span",12),U(1),m()),n&2){let e=c().$implicit,i=c();f("data-pc-section","label"),o(),H(i.field?i.resolveFieldData(e,i.field):e)}}function ge(n,r){if(n&1){let e=v();h(0,"TimesCircleIcon",15),C("click",function(t){p(e);let l=c(2).index,a=c();return u(a.removeItem(t,l))}),m()}n&2&&(s("styleClass","p-chips-token-icon"),f("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function ve(n,r){}function we(n,r){n&1&&_(0,ve,0,0,"ng-template")}function Ie(n,r){if(n&1){let e=v();h(0,"span",16),C("click",function(t){p(e);let l=c(2).index,a=c();return u(a.removeItem(t,l))}),_(1,we,1,0,null,17),m()}if(n&2){let e=c(3);f("data-pc-section","removeTokenIcon")("aria-hidden",!0),o(),s("ngTemplateOutlet",e.removeTokenIconTemplate)}}function ye(n,r){if(n&1&&(P(0),_(1,ge,1,3,"TimesCircleIcon",13)(2,Ie,2,3,"span",14),j()),n&2){let e=c(2);o(),s("ngIf",!e.removeTokenIconTemplate),o(),s("ngIf",e.removeTokenIconTemplate)}}function be(n,r){if(n&1){let e=v();h(0,"li",9,2),C("click",function(t){let l=p(e).$implicit,a=c();return u(a.onItemClick(t,l))}),_(2,_e,1,0,"ng-container",10)(3,Ce,2,2,"span",11)(4,ye,3,2,"ng-container",8),m()}if(n&2){let e=r.$implicit,i=r.index,t=c();s("ngClass",k(12,me,t.focusedIndex===i)),f("id",t.id+"_chips_item_"+i)("ariaLabel",e)("aria-selected",!0)("aria-setsize",t.value.length)("aria-posinset",i+1)("data-p-focused",t.focusedIndex===i)("data-pc-section","token"),o(2),s("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",k(14,fe,e)),o(),s("ngIf",!t.itemTemplate),o(),s("ngIf",!t.disabled)}}function Te(n,r){if(n&1){let e=v();h(0,"TimesIcon",15),C("click",function(){p(e);let t=c(2);return u(t.clear())}),m()}n&2&&s("styleClass","p-chips-clear-icon")}function ke(n,r){}function xe(n,r){n&1&&_(0,ke,0,0,"ng-template")}function Ve(n,r){if(n&1){let e=v();h(0,"span",19),C("click",function(){p(e);let t=c(2);return u(t.clear())}),_(1,xe,1,0,null,17),m()}if(n&2){let e=c(2);o(),s("ngTemplateOutlet",e.clearIconTemplate)}}function Ee(n,r){if(n&1&&(h(0,"li"),_(1,Te,1,1,"TimesIcon",13)(2,Ve,2,1,"span",18),m()),n&2){let e=c();o(),s("ngIf",!e.clearIconTemplate),o(),s("ngIf",e.clearIconTemplate)}}var Se={provide:ae,useExisting:D(()=>Oe),multi:!0},Oe=(()=>{class n{document;el;cd;style;styleClass;disabled;field;placeholder;max;maxLength;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;caseSensitiveDuplication=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new g;onRemove=new g;onFocus=new g;onBlur=new g;onChipClick=new g;onClear=new g;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=x();focused;focusedIndex;filled;get focusedOptionId(){return this.focusedIndex!==null?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,i,t){this.document=e,this.el=i,this.cd=t}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e);break;default:break}}onArrowLeftKeyOn(){this.inputViewChild.nativeElement.value.length===0&&this.value&&this.value.length>0&&(this.focusedIndex=this.focusedIndex===null?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){this.inputViewChild.nativeElement.value.length===0&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){this.focusedIndex!==null&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(t=>{this.addItem(e,t,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){!this.value||this.value.length===0?this.filled=this.inputViewChild&&this.inputViewChild.nativeElement&&this.inputViewChild.nativeElement.value!="":this.filled=!0}onItemClick(e,i){this.onChipClick.emit({originalEvent:e,value:i})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,i){if(e&&i){if(i.indexOf(".")==-1)return e[i];{let a=i.split("."),d=e;for(var t=0,l=a.length;t<l;++t)d=d[a[t]];return d}}else return null}onInputFocus(e){this.focused=!0,this.focusedIndex=null,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.focusedIndex=null,this.addOnBlur&&this.inputViewChild.nativeElement.value&&this.addItem(e,this.inputViewChild.nativeElement.value,!1),this.onModelTouched(),this.onBlur.emit(e)}removeItem(e,i){if(this.disabled)return;let t=this.value[i];this.value=this.value.filter((l,a)=>a!=i),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:t}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,i,t){if(this.value=this.value||[],i&&i.trim().length){let l=this.caseSensitiveDuplication?this.value.includes(i):this.value.some(a=>a.toLowerCase()===i.toLowerCase());(this.allowDuplicate||!l)&&!this.isMaxedOut&&(this.value=[...this.value,i],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:i}))}this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",t&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){let i=e.target.value;switch(e.code){case"Backspace":i.length===0&&this.value&&this.value.length>0&&(this.focusedIndex!==null?this.removeItem(e,this.focusedIndex):this.removeItem(e,this.value.length-1));break;case"Enter":case"NumpadEnter":i&&i.trim().length&&!this.isMaxedOut&&this.addItem(e,i,!0);break;case"Tab":this.addOnTab&&i&&i.trim().length&&!this.isMaxedOut&&(this.addItem(e,i,!0),e.preventDefault());break;case"ArrowLeft":i.length===0&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,i,!0);break}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(i){return new(i||n)(y(X),y(N),y(J))};static \u0275cmp=I({type:n,selectors:[["p-chips"]],contentQueries:function(i,t,l){if(i&1&&q(l,se,4),i&2){let a;b(a=T())&&(t.templates=a)}},viewQuery:function(i,t){if(i&1&&(E(pe,5),E(ue,5)),i&2){let l;b(l=T())&&(t.inputViewChild=l.first),b(l=T())&&(t.containerViewChild=l.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,t){i&2&&Q("p-inputwrapper-filled",t.filled)("p-inputwrapper-focus",t.focused)("p-chips-clearable",t.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",maxLength:"maxLength",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",caseSensitiveDuplication:"caseSensitiveDuplication",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[Z([Se])],decls:8,vars:32,consts:[["container",""],["inputtext",""],["token",""],[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"click","focus","blur","keydown","ngClass"],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"keydown","input","paste","focus","blur","disabled","ngStyle"],[4,"ngIf"],["role","option",3,"click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(i,t){if(i&1){let l=v();h(0,"div",3)(1,"ul",4,0),C("click",function(){return p(l),u(t.onWrapperClick())})("focus",function(){return p(l),u(t.onContainerFocus())})("blur",function(){return p(l),u(t.onContainerBlur())})("keydown",function(d){return p(l),u(t.onContainerKeyDown(d))}),_(3,be,5,16,"li",5),h(4,"li",6)(5,"input",7,1),C("keydown",function(d){return p(l),u(t.onKeyDown(d))})("input",function(){return p(l),u(t.onInput())})("paste",function(d){return p(l),u(t.onPaste(d))})("focus",function(d){return p(l),u(t.onInputFocus(d))})("blur",function(d){return p(l),u(t.onInputBlur(d))}),m()(),_(7,Ee,3,2,"li",8),m()()}i&2&&(w(t.styleClass),s("ngClass",W(24,ce,t.disabled,t.focused,t.value&&t.value.length||(t.inputViewChild==null?null:t.inputViewChild.nativeElement.value)&&(t.inputViewChild==null?null:t.inputViewChild.nativeElement.value.length),t.focused))("ngStyle",t.style),f("data-pc-name","chips")("data-pc-section","root"),o(),s("ngClass",G(29,de)),f("aria-labelledby",t.ariaLabelledBy)("aria-label",t.ariaLabel)("aria-activedescendant",t.focused?t.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),o(2),s("ngForOf",t.value),o(),s("ngClass",k(30,he,t.showClear&&!t.disabled)),f("data-pc-section","inputToken"),o(),w(t.inputStyleClass),s("disabled",t.disabled||t.isMaxedOut)("ngStyle",t.inputStyle),f("id",t.inputId)("maxlength",t.maxLength)("placeholder",t.value&&t.value.length?null:t.placeholder)("tabindex",t.tabindex),o(2),s("ngIf",t.value!=null&&t.filled&&!t.disabled&&t.showClear))},dependencies:()=>[Y,ee,te,ne,ie,F,O],styles:[`@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}
1
+ import{b as M}from"./chunk-GKUT6F7D.js";import{a as O}from"./chunk-GPO4EZOZ.js";import{b as x,h as se,i as S,n as oe}from"./chunk-YHNMC7XN.js";import{a as ae}from"./chunk-UAF6D2F3.js";import{b as X,e as Y,g as ee,h as te,k as ie,l as ne,t as le}from"./chunk-7ZTSHOMY.js";import{$b as h,Aa as B,Ac as U,Bc as H,Hb as K,Ja as p,Jc as Z,Ka as u,Kc as z,La as A,Lc as G,Mc as k,Na as R,Ob as _,Pb as f,Pc as W,Qb as s,Sa as N,Sb as Q,Ta as g,Ub as w,ac as m,bc as V,cc as P,dc as j,ec as $,fc as v,kc as C,ma as D,mc as c,oa as L,pd as J,sb as o,tb as y,tc as q,uc as E,vc as b,wc as T,za as I}from"./chunk-LJPENBRB.js";var F=(()=>{class n extends oe{pathId;ngOnInit(){this.pathId="url(#"+x()+")"}static \u0275fac=(()=>{let e;return function(t){return(e||(e=R(n)))(t||n)}})();static \u0275cmp=I({type:n,selectors:[["TimesCircleIcon"]],standalone:!0,features:[K,z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,t){i&1&&(A(),h(0,"svg",0)(1,"g"),V(2,"path",1),m(),h(3,"defs")(4,"clipPath",2),V(5,"rect",3),m()()()),i&2&&(w(t.getClassNames()),f("aria-label",t.ariaLabel)("aria-hidden",t.ariaHidden)("role",t.role),o(),f("clip-path",t.pathId),o(3),s("id",t.pathId))},encapsulation:2})}return n})();var pe=["inputtext"],ue=["container"],ce=(n,r,e,i)=>({"p-chips p-component p-input-wrapper":!0,"p-disabled":n,"p-focus":r,"p-inputwrapper-filled":e,"p-inputwrapper-focus":i}),de=()=>({"p-inputtext p-chips-multiple-container":!0}),he=n=>({"p-chips-clearable":n}),me=n=>({"p-chips-token":!0,"p-focus":n}),fe=n=>({$implicit:n});function _e(n,r){n&1&&$(0)}function Ce(n,r){if(n&1&&(h(0,"span",12),U(1),m()),n&2){let e=c().$implicit,i=c();f("data-pc-section","label"),o(),H(i.field?i.resolveFieldData(e,i.field):e)}}function ge(n,r){if(n&1){let e=v();h(0,"TimesCircleIcon",15),C("click",function(t){p(e);let l=c(2).index,a=c();return u(a.removeItem(t,l))}),m()}n&2&&(s("styleClass","p-chips-token-icon"),f("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function ve(n,r){}function we(n,r){n&1&&_(0,ve,0,0,"ng-template")}function Ie(n,r){if(n&1){let e=v();h(0,"span",16),C("click",function(t){p(e);let l=c(2).index,a=c();return u(a.removeItem(t,l))}),_(1,we,1,0,null,17),m()}if(n&2){let e=c(3);f("data-pc-section","removeTokenIcon")("aria-hidden",!0),o(),s("ngTemplateOutlet",e.removeTokenIconTemplate)}}function ye(n,r){if(n&1&&(P(0),_(1,ge,1,3,"TimesCircleIcon",13)(2,Ie,2,3,"span",14),j()),n&2){let e=c(2);o(),s("ngIf",!e.removeTokenIconTemplate),o(),s("ngIf",e.removeTokenIconTemplate)}}function be(n,r){if(n&1){let e=v();h(0,"li",9,2),C("click",function(t){let l=p(e).$implicit,a=c();return u(a.onItemClick(t,l))}),_(2,_e,1,0,"ng-container",10)(3,Ce,2,2,"span",11)(4,ye,3,2,"ng-container",8),m()}if(n&2){let e=r.$implicit,i=r.index,t=c();s("ngClass",k(12,me,t.focusedIndex===i)),f("id",t.id+"_chips_item_"+i)("ariaLabel",e)("aria-selected",!0)("aria-setsize",t.value.length)("aria-posinset",i+1)("data-p-focused",t.focusedIndex===i)("data-pc-section","token"),o(2),s("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",k(14,fe,e)),o(),s("ngIf",!t.itemTemplate),o(),s("ngIf",!t.disabled)}}function Te(n,r){if(n&1){let e=v();h(0,"TimesIcon",15),C("click",function(){p(e);let t=c(2);return u(t.clear())}),m()}n&2&&s("styleClass","p-chips-clear-icon")}function ke(n,r){}function xe(n,r){n&1&&_(0,ke,0,0,"ng-template")}function Ve(n,r){if(n&1){let e=v();h(0,"span",19),C("click",function(){p(e);let t=c(2);return u(t.clear())}),_(1,xe,1,0,null,17),m()}if(n&2){let e=c(2);o(),s("ngTemplateOutlet",e.clearIconTemplate)}}function Ee(n,r){if(n&1&&(h(0,"li"),_(1,Te,1,1,"TimesIcon",13)(2,Ve,2,1,"span",18),m()),n&2){let e=c();o(),s("ngIf",!e.clearIconTemplate),o(),s("ngIf",e.clearIconTemplate)}}var Se={provide:ae,useExisting:D(()=>Oe),multi:!0},Oe=(()=>{class n{document;el;cd;style;styleClass;disabled;field;placeholder;max;maxLength;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;caseSensitiveDuplication=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new g;onRemove=new g;onFocus=new g;onBlur=new g;onChipClick=new g;onClear=new g;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=x();focused;focusedIndex;filled;get focusedOptionId(){return this.focusedIndex!==null?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,i,t){this.document=e,this.el=i,this.cd=t}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e);break;default:break}}onArrowLeftKeyOn(){this.inputViewChild.nativeElement.value.length===0&&this.value&&this.value.length>0&&(this.focusedIndex=this.focusedIndex===null?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){this.inputViewChild.nativeElement.value.length===0&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){this.focusedIndex!==null&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(t=>{this.addItem(e,t,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){!this.value||this.value.length===0?this.filled=this.inputViewChild&&this.inputViewChild.nativeElement&&this.inputViewChild.nativeElement.value!="":this.filled=!0}onItemClick(e,i){this.onChipClick.emit({originalEvent:e,value:i})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,i){if(e&&i){if(i.indexOf(".")==-1)return e[i];{let a=i.split("."),d=e;for(var t=0,l=a.length;t<l;++t)d=d[a[t]];return d}}else return null}onInputFocus(e){this.focused=!0,this.focusedIndex=null,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.focusedIndex=null,this.addOnBlur&&this.inputViewChild.nativeElement.value&&this.addItem(e,this.inputViewChild.nativeElement.value,!1),this.onModelTouched(),this.onBlur.emit(e)}removeItem(e,i){if(this.disabled)return;let t=this.value[i];this.value=this.value.filter((l,a)=>a!=i),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:t}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,i,t){if(this.value=this.value||[],i&&i.trim().length){let l=this.caseSensitiveDuplication?this.value.includes(i):this.value.some(a=>a.toLowerCase()===i.toLowerCase());(this.allowDuplicate||!l)&&!this.isMaxedOut&&(this.value=[...this.value,i],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:i}))}this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",t&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){let i=e.target.value;switch(e.code){case"Backspace":i.length===0&&this.value&&this.value.length>0&&(this.focusedIndex!==null?this.removeItem(e,this.focusedIndex):this.removeItem(e,this.value.length-1));break;case"Enter":case"NumpadEnter":i&&i.trim().length&&!this.isMaxedOut&&this.addItem(e,i,!0);break;case"Tab":this.addOnTab&&i&&i.trim().length&&!this.isMaxedOut&&(this.addItem(e,i,!0),e.preventDefault());break;case"ArrowLeft":i.length===0&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,i,!0);break}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(i){return new(i||n)(y(X),y(N),y(J))};static \u0275cmp=I({type:n,selectors:[["p-chips"]],contentQueries:function(i,t,l){if(i&1&&q(l,se,4),i&2){let a;b(a=T())&&(t.templates=a)}},viewQuery:function(i,t){if(i&1&&(E(pe,5),E(ue,5)),i&2){let l;b(l=T())&&(t.inputViewChild=l.first),b(l=T())&&(t.containerViewChild=l.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,t){i&2&&Q("p-inputwrapper-filled",t.filled)("p-inputwrapper-focus",t.focused)("p-chips-clearable",t.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",maxLength:"maxLength",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",caseSensitiveDuplication:"caseSensitiveDuplication",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[Z([Se])],decls:8,vars:32,consts:[["container",""],["inputtext",""],["token",""],[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"click","focus","blur","keydown","ngClass"],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"keydown","input","paste","focus","blur","disabled","ngStyle"],[4,"ngIf"],["role","option",3,"click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(i,t){if(i&1){let l=v();h(0,"div",3)(1,"ul",4,0),C("click",function(){return p(l),u(t.onWrapperClick())})("focus",function(){return p(l),u(t.onContainerFocus())})("blur",function(){return p(l),u(t.onContainerBlur())})("keydown",function(d){return p(l),u(t.onContainerKeyDown(d))}),_(3,be,5,16,"li",5),h(4,"li",6)(5,"input",7,1),C("keydown",function(d){return p(l),u(t.onKeyDown(d))})("input",function(){return p(l),u(t.onInput())})("paste",function(d){return p(l),u(t.onPaste(d))})("focus",function(d){return p(l),u(t.onInputFocus(d))})("blur",function(d){return p(l),u(t.onInputBlur(d))}),m()(),_(7,Ee,3,2,"li",8),m()()}i&2&&(w(t.styleClass),s("ngClass",W(24,ce,t.disabled,t.focused,t.value&&t.value.length||(t.inputViewChild==null?null:t.inputViewChild.nativeElement.value)&&(t.inputViewChild==null?null:t.inputViewChild.nativeElement.value.length),t.focused))("ngStyle",t.style),f("data-pc-name","chips")("data-pc-section","root"),o(),s("ngClass",G(29,de)),f("aria-labelledby",t.ariaLabelledBy)("aria-label",t.ariaLabel)("aria-activedescendant",t.focused?t.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),o(2),s("ngForOf",t.value),o(),s("ngClass",k(30,he,t.showClear&&!t.disabled)),f("data-pc-section","inputToken"),o(),w(t.inputStyleClass),s("disabled",t.disabled||t.isMaxedOut)("ngStyle",t.inputStyle),f("id",t.inputId)("maxlength",t.maxLength)("placeholder",t.value&&t.value.length?null:t.placeholder)("tabindex",t.tabindex),o(2),s("ngIf",t.value!=null&&t.filled&&!t.disabled&&t.showClear))},dependencies:()=>[Y,ee,te,ne,ie,F,O],styles:[`@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}
2
2
  `],encapsulation:2,changeDetection:0})}return n})(),Xe=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=B({type:n});static \u0275inj=L({imports:[le,M,S,F,O,M,S]})}return n})();export{Xe as a};
@@ -1 +1 @@
1
- import{t as E,u as M}from"./chunk-JRCX5TQE.js";import{Aa as P,P as C,Ya as k,c as g,f as v,na as I,oa as O,p as S,qa as q,sa as m,x as y}from"./chunk-JTJPRZKY.js";import{k as D}from"./chunk-O3DEWASH.js";var R=function(a){return a.Outlet="Outlet",a.SyncTime="SyncTime",a.OutletPrice="OutletPrice",a.POSStorage="POSStorage",a.Product="Product",a.OfflineConfig="OfflineConfig",a.Order="Order",a.FailedOrder="FailedOrder",a}(R||{});function f(a,l,e,o){return new Promise((t,r)=>{a||r("IndexedDB not available");let n=a.open(l,e),i;n.onsuccess=c=>{i=n.result,t(i)},n.onerror=c=>{r(`IndexedDB error: ${n.error}`)},typeof o=="function"&&(n.onupgradeneeded=c=>{o(c,i)})})}function A(a,l,e,o,t){if(!a)return;let r=a.open(l,e);r.onupgradeneeded=n=>{let i=n.target.result;o.forEach(s=>{if(!i.objectStoreNames.contains(s.store)){let u=i.createObjectStore(s.store,s.storeConfig);s.storeSchema.forEach(d=>{u.createIndex(d.name,d.keypath,d.options)})}});let c=t&&t();c&&Object.keys(c).map(s=>parseInt(s,10)).filter(s=>s>n.oldVersion).sort((s,u)=>s-u).forEach(s=>{c[s](i,r.transaction)}),i.close()},r.onsuccess=n=>{n.target.result.close()}}function V(a,l,e){if(!a||!l||!e)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new g(o=>{try{let t=l+1,r=indexedDB.open(a,t);r.onupgradeneeded=n=>{let i=n.target.result;i.deleteObjectStore(e),i.close(),console.log("onupgradeneeded"),o.next(!0),o.complete()},r.onerror=n=>o.error(n)}catch(t){o.error(t)}})}function _(a,l){return a.objectStoreNames.contains(l)}function j(a,l,e){a||e("You need to use the openDatabase function to create a database before you query it!"),_(a,l)||e(`objectStore does not exists: ${l}`)}function p(a,l){let e=a.transaction(l.storeName,l.dbMode);return e.onerror=l.error,e.onabort=l.abort,e}function b(a,l,e,o){return{storeName:l,dbMode:a,error:t=>{e(t)},abort:t=>{e(t)}}}var x=function(a){return a.readonly="readonly",a.readwrite="readwrite",a}(x||{}),K=new q(null),G=(()=>{class a{constructor(e,o){if(this.dbConfigs=e,this.platformId=o,this.defaultDatabaseName=null,this.isBrowser=M(this.platformId),this.isBrowser){this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;let t=Object.values(this.dbConfigs),r=t.length===1;for(let n of t)this.instanciateConfig(n,r)}}instanciateConfig(e,o){if(!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!e.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");if((e.isDefault??!1)&&this.defaultDatabaseName)throw new Error("NgxIndexedDB: Only one database can be set as default");((e.isDefault??!1)&&!this.defaultDatabaseName||o)&&(this.defaultDatabaseName=e.name,this.selectedDb=e.name),A(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),f(this.indexedDB,e.name).then(t=>{t.version!==e.version&&(this.dbConfigs[e.name].version=t.version)})}get dbConfig(){return this.dbConfigs[this.selectedDb]}selectDb(e){if(e=e??this.defaultDatabaseName,!e)throw new Error("No database name specified and no default database set.");if(!Object.keys(this.dbConfigs).includes(e))throw new Error(`NgxIndexedDB: Database ${e} is not initialized.`);this.selectedDb=e}createObjectStore(e,o){let t=[e];A(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,t,o)}add(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{let c=p(n,b(x.readwrite,e,u=>r.error(u))).objectStore(e),s=t?c.add(o,t):c.add(o);s.onsuccess=u=>D(this,null,function*(){let d=u.target.result,h=c.get(d);h.onsuccess=w=>{r.next(w.target.result),r.complete()},h.onerror=w=>{r.error(w)}}),s.onerror=u=>{r.error(u)}}).catch(n=>r.error(n))})}bulkAdd(e,o){let t=new Promise((r,n)=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{let s=p(i,b(x.readwrite,e,r,n)).objectStore(e),u=o.map(d=>new Promise((h,w)=>{let B=d.key;delete d.key;let T=B?s.add(d,B):s.add(d);T.onsuccess=$=>{let F=$.target.result;h(F)}}));r(Promise.all(u))}).catch(i=>n(i))});return S(t)}bulkDelete(e,o){let t=o.map(r=>new Promise((n,i)=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let s=p(c,b(x.readwrite,e,i,n));s.objectStore(e).delete(r),s.oncomplete=()=>{this.getAll(e).pipe(C(1)).subscribe(d=>{n(d)})}}).catch(c=>i(c))}));return S(Promise.all(t))}getByKey(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{let c=p(r,b(x.readonly,e,t.error)).objectStore(e).get(o);c.onsuccess=s=>{t.next(s.target.result),t.complete()},c.onerror=s=>{t.error(s)}}).catch(r=>t.error(r))})}bulkGet(e,o){let t=o.map(r=>this.getByKey(e,r));return new g(r=>{y(t).subscribe(n=>{r.next(n),r.complete()})})}getByID(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let c=p(r,b(x.readonly,e,t.error,t.next)).objectStore(e).get(o);c.onsuccess=s=>{t.next(s.target.result)}}).catch(r=>t.error(r))})}getByIndex(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{j(n,e,d=>r.error(d));let u=p(n,b(x.readonly,e,r.error)).objectStore(e).index(o).get(t);u.onsuccess=d=>{r.next(d.target.result),r.complete()}}).catch(n=>r.error(n))})}getAll(e){return new g(o=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{j(t,e,c=>o.error(c));let i=p(t,b(x.readonly,e,o.error,o.next)).objectStore(e).getAll();i.onerror=c=>{o.error(c)},i.onsuccess=({target:{result:c}})=>{o.next(c),o.complete()}}).catch(t=>o.error(t))})}update(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let i=p(r,b(x.readwrite,e,s=>t.error(s))).objectStore(e),c=i.put(o);c.onsuccess=s=>D(this,null,function*(){let u=s.target.result,d=i.get(u);d.onsuccess=h=>{t.next(h.target.result),t.complete()}})}).catch(r=>t.error(r))})}bulkPut(e,o){let t;return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{j(n,e,c=>r.error(c)),t=p(n,b(x.readwrite,e,c=>r.error(c)));let i=t.objectStore(e);o.forEach((c,s)=>{let u=i.put(c);s===o.length-1&&(u.onsuccess=d=>{t.commit(),r.next(d.target.result),r.complete()}),u.onerror=d=>{t.abort(),r.error(d)}})}).catch(n=>{t?.abort(),r.error(n)})})}delete(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,c=>t.error(c));let n=p(r,b(x.readwrite,e,c=>t.error(c)));n.objectStore(e).delete(o),n.oncomplete=()=>{this.getAll(e).pipe(C(1)).subscribe(c=>{t.next(c),t.complete()})}}).catch(r=>t.error(r))})}deleteByKey(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,c=>t.error(c));let n=p(r,b(x.readwrite,e,c=>t.error(c))),i=n.objectStore(e);n.oncomplete=()=>{t.next(!0),t.complete()},i.delete(o)}).catch(r=>t.error(r))})}clear(e){return new g(o=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{j(t,e,i=>o.error(i));let r=p(t,b(x.readwrite,e,i=>o.error(i)));r.objectStore(e).clear(),r.oncomplete=()=>{o.next(!0),o.complete()}}).catch(t=>o.error(t))})}deleteDatabase(){return new g(e=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>D(this,null,function*(){yield o.close();let t=this.indexedDB.deleteDatabase(this.dbConfig.name);t.onsuccess=()=>{e.next(!0),e.complete()},t.onerror=r=>e.error(r),t.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(o=>e.error(o))})}openCursor(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let i=p(r,b(x.readonly,e,t.error)).objectStore(e),c=o===void 0?i.openCursor():i.openCursor(o);c.onsuccess=s=>{t.next(s),t.complete()}}).catch(r=>t.error(r))})}openCursorByIndex(e,o,t,r=x.readonly){let n=new v;return f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{j(i,e,h=>{n.error(h)});let d=p(i,b(r,e,h=>{n.error(h)},()=>{n.next()})).objectStore(e).index(o).openCursor(t);d.onsuccess=h=>{n.next(h)}}).catch(i=>n.error(i)),n}getAllByIndex(e,o,t){let r=[];return new g(n=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{j(i,e,h=>n.error(h));let d=p(i,b(x.readonly,e,n.error)).objectStore(e).index(o).openCursor(t);d.onsuccess=h=>{let w=h.target.result;w?(r.push(w.value),w.continue()):(n.next(r),n.complete())}}).catch(i=>n.error(i))})}getAllKeysByIndex(e,o,t){let r=[];return new g(n=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{j(i,e,h=>n.error(h));let d=p(i,b(x.readonly,e,n.error)).objectStore(e).index(o).openKeyCursor(t);d.onsuccess=h=>{let w=h.target.result;w?(r.push({primaryKey:w.primaryKey,key:w.key}),w.continue()):(n.next(r),n.complete())}}).catch(i=>n.error(i))})}count(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let c=p(r,b(x.readonly,e,t.error)).objectStore(e).count(o);c.onerror=s=>t.error(s),c.onsuccess=s=>{t.next(s.target.result),t.complete()}}).catch(r=>t.error(r))})}countByIndex(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{j(n,e,d=>r.error(d));let u=p(n,b(x.readonly,e,r.error)).objectStore(e).index(o).count(t);u.onerror=d=>r.error(d),u.onsuccess=d=>{r.next(d.target.result),r.complete()}}).catch(n=>r.error(n))})}deleteObjectStore(e){return V(this.dbConfig.name,++this.dbConfig.version,e)}}return a.\u0275fac=function(e){return new(e||a)(m(K),m(k))},a.\u0275prov=I({token:a,factory:a.\u0275fac}),a})(),Z=(()=>{class a{static forRoot(...e){let o={};for(let t of e)Object.assign(o,{[t.name]:t});return{ngModule:a,providers:[G,{provide:K,useValue:o}]}}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=P({type:a}),a.\u0275inj=O({imports:[E]}),a})();export{R as a,G as b,Z as c};
1
+ import{t as E,u as M}from"./chunk-7ZTSHOMY.js";import{Aa as P,P as C,Ya as k,c as g,f as v,na as I,oa as O,p as S,qa as q,sa as m,x as y}from"./chunk-LJPENBRB.js";import{k as D}from"./chunk-O3DEWASH.js";var R=function(a){return a.Outlet="Outlet",a.SyncTime="SyncTime",a.OutletPrice="OutletPrice",a.POSStorage="POSStorage",a.Product="Product",a.OfflineConfig="OfflineConfig",a.Order="Order",a.FailedOrder="FailedOrder",a}(R||{});function f(a,l,e,o){return new Promise((t,r)=>{a||r("IndexedDB not available");let n=a.open(l,e),i;n.onsuccess=c=>{i=n.result,t(i)},n.onerror=c=>{r(`IndexedDB error: ${n.error}`)},typeof o=="function"&&(n.onupgradeneeded=c=>{o(c,i)})})}function A(a,l,e,o,t){if(!a)return;let r=a.open(l,e);r.onupgradeneeded=n=>{let i=n.target.result;o.forEach(s=>{if(!i.objectStoreNames.contains(s.store)){let u=i.createObjectStore(s.store,s.storeConfig);s.storeSchema.forEach(d=>{u.createIndex(d.name,d.keypath,d.options)})}});let c=t&&t();c&&Object.keys(c).map(s=>parseInt(s,10)).filter(s=>s>n.oldVersion).sort((s,u)=>s-u).forEach(s=>{c[s](i,r.transaction)}),i.close()},r.onsuccess=n=>{n.target.result.close()}}function V(a,l,e){if(!a||!l||!e)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new g(o=>{try{let t=l+1,r=indexedDB.open(a,t);r.onupgradeneeded=n=>{let i=n.target.result;i.deleteObjectStore(e),i.close(),console.log("onupgradeneeded"),o.next(!0),o.complete()},r.onerror=n=>o.error(n)}catch(t){o.error(t)}})}function _(a,l){return a.objectStoreNames.contains(l)}function j(a,l,e){a||e("You need to use the openDatabase function to create a database before you query it!"),_(a,l)||e(`objectStore does not exists: ${l}`)}function p(a,l){let e=a.transaction(l.storeName,l.dbMode);return e.onerror=l.error,e.onabort=l.abort,e}function b(a,l,e,o){return{storeName:l,dbMode:a,error:t=>{e(t)},abort:t=>{e(t)}}}var x=function(a){return a.readonly="readonly",a.readwrite="readwrite",a}(x||{}),K=new q(null),G=(()=>{class a{constructor(e,o){if(this.dbConfigs=e,this.platformId=o,this.defaultDatabaseName=null,this.isBrowser=M(this.platformId),this.isBrowser){this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;let t=Object.values(this.dbConfigs),r=t.length===1;for(let n of t)this.instanciateConfig(n,r)}}instanciateConfig(e,o){if(!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!e.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");if((e.isDefault??!1)&&this.defaultDatabaseName)throw new Error("NgxIndexedDB: Only one database can be set as default");((e.isDefault??!1)&&!this.defaultDatabaseName||o)&&(this.defaultDatabaseName=e.name,this.selectedDb=e.name),A(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),f(this.indexedDB,e.name).then(t=>{t.version!==e.version&&(this.dbConfigs[e.name].version=t.version)})}get dbConfig(){return this.dbConfigs[this.selectedDb]}selectDb(e){if(e=e??this.defaultDatabaseName,!e)throw new Error("No database name specified and no default database set.");if(!Object.keys(this.dbConfigs).includes(e))throw new Error(`NgxIndexedDB: Database ${e} is not initialized.`);this.selectedDb=e}createObjectStore(e,o){let t=[e];A(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,t,o)}add(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{let c=p(n,b(x.readwrite,e,u=>r.error(u))).objectStore(e),s=t?c.add(o,t):c.add(o);s.onsuccess=u=>D(this,null,function*(){let d=u.target.result,h=c.get(d);h.onsuccess=w=>{r.next(w.target.result),r.complete()},h.onerror=w=>{r.error(w)}}),s.onerror=u=>{r.error(u)}}).catch(n=>r.error(n))})}bulkAdd(e,o){let t=new Promise((r,n)=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{let s=p(i,b(x.readwrite,e,r,n)).objectStore(e),u=o.map(d=>new Promise((h,w)=>{let B=d.key;delete d.key;let T=B?s.add(d,B):s.add(d);T.onsuccess=$=>{let F=$.target.result;h(F)}}));r(Promise.all(u))}).catch(i=>n(i))});return S(t)}bulkDelete(e,o){let t=o.map(r=>new Promise((n,i)=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let s=p(c,b(x.readwrite,e,i,n));s.objectStore(e).delete(r),s.oncomplete=()=>{this.getAll(e).pipe(C(1)).subscribe(d=>{n(d)})}}).catch(c=>i(c))}));return S(Promise.all(t))}getByKey(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{let c=p(r,b(x.readonly,e,t.error)).objectStore(e).get(o);c.onsuccess=s=>{t.next(s.target.result),t.complete()},c.onerror=s=>{t.error(s)}}).catch(r=>t.error(r))})}bulkGet(e,o){let t=o.map(r=>this.getByKey(e,r));return new g(r=>{y(t).subscribe(n=>{r.next(n),r.complete()})})}getByID(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let c=p(r,b(x.readonly,e,t.error,t.next)).objectStore(e).get(o);c.onsuccess=s=>{t.next(s.target.result)}}).catch(r=>t.error(r))})}getByIndex(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{j(n,e,d=>r.error(d));let u=p(n,b(x.readonly,e,r.error)).objectStore(e).index(o).get(t);u.onsuccess=d=>{r.next(d.target.result),r.complete()}}).catch(n=>r.error(n))})}getAll(e){return new g(o=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{j(t,e,c=>o.error(c));let i=p(t,b(x.readonly,e,o.error,o.next)).objectStore(e).getAll();i.onerror=c=>{o.error(c)},i.onsuccess=({target:{result:c}})=>{o.next(c),o.complete()}}).catch(t=>o.error(t))})}update(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let i=p(r,b(x.readwrite,e,s=>t.error(s))).objectStore(e),c=i.put(o);c.onsuccess=s=>D(this,null,function*(){let u=s.target.result,d=i.get(u);d.onsuccess=h=>{t.next(h.target.result),t.complete()}})}).catch(r=>t.error(r))})}bulkPut(e,o){let t;return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{j(n,e,c=>r.error(c)),t=p(n,b(x.readwrite,e,c=>r.error(c)));let i=t.objectStore(e);o.forEach((c,s)=>{let u=i.put(c);s===o.length-1&&(u.onsuccess=d=>{t.commit(),r.next(d.target.result),r.complete()}),u.onerror=d=>{t.abort(),r.error(d)}})}).catch(n=>{t?.abort(),r.error(n)})})}delete(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,c=>t.error(c));let n=p(r,b(x.readwrite,e,c=>t.error(c)));n.objectStore(e).delete(o),n.oncomplete=()=>{this.getAll(e).pipe(C(1)).subscribe(c=>{t.next(c),t.complete()})}}).catch(r=>t.error(r))})}deleteByKey(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,c=>t.error(c));let n=p(r,b(x.readwrite,e,c=>t.error(c))),i=n.objectStore(e);n.oncomplete=()=>{t.next(!0),t.complete()},i.delete(o)}).catch(r=>t.error(r))})}clear(e){return new g(o=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{j(t,e,i=>o.error(i));let r=p(t,b(x.readwrite,e,i=>o.error(i)));r.objectStore(e).clear(),r.oncomplete=()=>{o.next(!0),o.complete()}}).catch(t=>o.error(t))})}deleteDatabase(){return new g(e=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>D(this,null,function*(){yield o.close();let t=this.indexedDB.deleteDatabase(this.dbConfig.name);t.onsuccess=()=>{e.next(!0),e.complete()},t.onerror=r=>e.error(r),t.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(o=>e.error(o))})}openCursor(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let i=p(r,b(x.readonly,e,t.error)).objectStore(e),c=o===void 0?i.openCursor():i.openCursor(o);c.onsuccess=s=>{t.next(s),t.complete()}}).catch(r=>t.error(r))})}openCursorByIndex(e,o,t,r=x.readonly){let n=new v;return f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{j(i,e,h=>{n.error(h)});let d=p(i,b(r,e,h=>{n.error(h)},()=>{n.next()})).objectStore(e).index(o).openCursor(t);d.onsuccess=h=>{n.next(h)}}).catch(i=>n.error(i)),n}getAllByIndex(e,o,t){let r=[];return new g(n=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{j(i,e,h=>n.error(h));let d=p(i,b(x.readonly,e,n.error)).objectStore(e).index(o).openCursor(t);d.onsuccess=h=>{let w=h.target.result;w?(r.push(w.value),w.continue()):(n.next(r),n.complete())}}).catch(i=>n.error(i))})}getAllKeysByIndex(e,o,t){let r=[];return new g(n=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{j(i,e,h=>n.error(h));let d=p(i,b(x.readonly,e,n.error)).objectStore(e).index(o).openKeyCursor(t);d.onsuccess=h=>{let w=h.target.result;w?(r.push({primaryKey:w.primaryKey,key:w.key}),w.continue()):(n.next(r),n.complete())}}).catch(i=>n.error(i))})}count(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{j(r,e,s=>t.error(s));let c=p(r,b(x.readonly,e,t.error)).objectStore(e).count(o);c.onerror=s=>t.error(s),c.onsuccess=s=>{t.next(s.target.result),t.complete()}}).catch(r=>t.error(r))})}countByIndex(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{j(n,e,d=>r.error(d));let u=p(n,b(x.readonly,e,r.error)).objectStore(e).index(o).count(t);u.onerror=d=>r.error(d),u.onsuccess=d=>{r.next(d.target.result),r.complete()}}).catch(n=>r.error(n))})}deleteObjectStore(e){return V(this.dbConfig.name,++this.dbConfig.version,e)}}return a.\u0275fac=function(e){return new(e||a)(m(K),m(k))},a.\u0275prov=I({token:a,factory:a.\u0275fac}),a})(),Z=(()=>{class a{static forRoot(...e){let o={};for(let t of e)Object.assign(o,{[t.name]:t});return{ngModule:a,providers:[G,{provide:K,useValue:o}]}}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=P({type:a}),a.\u0275inj=O({imports:[E]}),a})();export{R as a,G as b,Z as c};
@@ -1 +1 @@
1
- import{ua as k,va as S}from"./chunk-O6M5ETQN.js";import{b as R}from"./chunk-ZBW7SOF7.js";import{g as U,h as E,t as b}from"./chunk-JRCX5TQE.js";import{$b as l,Cc as I,Ja as s,Jc as w,Ka as g,Nb as C,Pb as a,Ta as _,_b as i,ac as f,bc as d,cc as p,ec as v,jc as u,lc as m,mb as O,sb as r,za as h,zc as P}from"./chunk-JTJPRZKY.js";import{k as M}from"./chunk-O3DEWASH.js";function L(n,x){if(n&1){let e=v();d(0),i(1,"a",6),u("click",function(t){s(e);let c=m(2);return g(c.onEdit(t))}),f(2,"i",7),l(),f(3,"div",8),p()}}function D(n,x){if(n&1){let e=v();d(0),i(1,"a",9),u("click",function(){s(e);let t=m(2);return g(t.onRemove())}),f(2,"i",10),l(),p()}}function N(n,x){if(n&1&&(d(0),i(1,"div",5),C(2,L,4,0,"ng-container",4)(3,D,3,0,"ng-container",4),l(),p()),n&2){let e=m();r(2),a("ngIf",e.showEdit),r(),a("ngIf",e.showRemove)}}var Z=BiggerPicture({target:document.body}),T=(()=>{class n{imageUrl;showEdit=!0;showRemove=!0;onEditEvent=new _;onRemoveEvent=new _;constructor(){}onEdit(e){this.onEditEvent.emit(e)}onRemove(){this.onRemoveEvent.emit()}onZoom(e,o){return M(this,null,function*(){o.preventDefault();try{let t=yield R(e.replace("w_80",""));Z.open({items:[t],intro:"fadeup"})}catch(t){alert(t)}})}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=h({type:n,selectors:[["image-container"]],inputs:{imageUrl:"imageUrl",showEdit:"showEdit",showRemove:"showRemove"},outputs:{onEditEvent:"onEdit",onRemoveEvent:"onRemove"},standalone:!0,features:[w],decls:5,vars:2,consts:[[1,"image_temporary","productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"imgUpload",3,"src"],[1,"overlay","pointer",3,"click"],[4,"ngIf"],[1,"overlay-title","d-flex","justify-content-center","align-items-center",2,"column-gap","24px"],["matTooltipPosition","above","matTooltip","Crop image",1,"edit-icon","image_upload_icon",3,"click"],[1,"fa","fa-file-pen"],[2,"width","2px","height","20px","background-color","white"],["matTooltipPosition","above","matTooltip","Remove image",1,"trash-icon","image_upload_icon",3,"click"],[1,"fa","fa-trash"]],template:function(o,t){o&1&&(i(0,"div",0)(1,"div",1),f(2,"img",2),i(3,"div",3),u("click",function(y){return t.onZoom(t.imageUrl,y)}),C(4,N,4,2,"ng-container",4),l()()()),o&2&&(r(2),a("src",t.imageUrl,O),r(2),a("ngIf",t.showEdit||t.showRemove))},dependencies:[b,E,S,k],styles:[".image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image_upload_icon[_ngcontent-%COMP%]{font-size:20px;color:#5f5f5f75}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}.trash-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px;text-align:center;cursor:pointer}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})}return n})();function $(n,x){if(n&1&&(d(0),i(1,"legend",8)(2,"span"),P(3),l()(),p()),n&2){let e=m();r(3),I("Image ",e.images.length,"/",e.maxFile,"")}}function A(n,x){if(n&1){let e=v();d(0),i(1,"image-container",9),u("onEdit",function(t){let c=s(e),y=c.$implicit,V=c.index,F=m();return g(F.onEdit(y.ImageURL,V,t))})("onRemove",function(){let t=s(e).index,c=m();return g(c.onRemove(t))}),l(),p()}if(n&2){let e=x.$implicit,o=m();r(),a("imageUrl",e.ImageURL)("showEdit",o.showEdit)}}function B(n,x){if(n&1){let e=v();d(0),i(1,"div",10)(2,"div",11),u("click",function(){s(e);let t=m();return g(t.onUpload())}),f(3,"i",12)(4,"i",13),l()(),p()}}var le=(()=>{class n{images=[];showLegend=!0;showEdit=!1;maxFile=0;onUploadEvent=new _;onRemoveEvent=new _;onEditEvent=new _;constructor(){}onUpload(){this.onUploadEvent.emit()}onRemove(e){this.onRemoveEvent.emit(e)}onEdit(e,o,t){this.onEditEvent.emit({imageUrl:e,index:o,element:t})}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=h({type:n,selectors:[["multiple-images-container"]],inputs:{images:"images",showLegend:"showLegend",showEdit:"showEdit",maxFile:"maxFile"},outputs:{onUploadEvent:"onUpload",onRemoveEvent:"onRemove",onEditEvent:"onEdit"},standalone:!0,features:[w],decls:9,vars:3,consts:[[1,"row"],[1,"col-12"],[1,"form-group","p-3","border","rounded"],[4,"ngIf"],[1,"row","mt-3"],[1,"col-md-12"],[1,"upload_trigger","d-flex","align-items-center"],[4,"ngFor","ngForOf"],[1,"w-auto","px-2","text-secondary"],[3,"onEdit","onRemove","imageUrl","showEdit"],["matTooltip","Add new image","matTooltipPosition","above",1,"image_temporary","productUpload_defaultSize","me-2","image-upload",2,"cursor","pointer"],[1,"imgContainer","d-flex","align-items-center","justify-content-center",3,"click"],[1,"fa-solid","fa-image","text-secondary","fa-4x"],[1,"fa-solid","fa-upload","text-secondary"]],template:function(o,t){o&1&&(i(0,"div",0)(1,"div",1)(2,"fieldset",2),C(3,$,4,2,"ng-container",3),i(4,"div",4)(5,"div",5)(6,"div",6),C(7,A,2,2,"ng-container",7)(8,B,5,0,"ng-container",3),l()()()()()()),o&2&&(r(3),a("ngIf",t.showLegend),r(4),a("ngForOf",t.images),r(),a("ngIf",t.images.length<t.maxFile))},dependencies:[b,U,E,T],styles:[".upload_trigger[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;vertical-align:top;width:100%}.image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}@media only screen and (max-width: 650px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}@media only screen and (min-device-width: 768px) and (max-device-width: 1112px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})}return n})();export{T as a,le as b};
1
+ import{ua as k,va as S}from"./chunk-LUO2YZN7.js";import{b as R}from"./chunk-6BGF6ZSR.js";import{g as U,h as E,t as b}from"./chunk-7ZTSHOMY.js";import{$b as i,Ac as P,Dc as I,Ja as s,Ka as g,Kc as w,Ob as C,Qb as a,Ta as _,ac as l,bc as f,cc as d,dc as p,fc as v,kc as u,mb as O,mc as m,sb as r,za as h}from"./chunk-LJPENBRB.js";import{k as M}from"./chunk-O3DEWASH.js";function L(n,x){if(n&1){let e=v();d(0),i(1,"a",6),u("click",function(t){s(e);let c=m(2);return g(c.onEdit(t))}),f(2,"i",7),l(),f(3,"div",8),p()}}function D(n,x){if(n&1){let e=v();d(0),i(1,"a",9),u("click",function(){s(e);let t=m(2);return g(t.onRemove())}),f(2,"i",10),l(),p()}}function N(n,x){if(n&1&&(d(0),i(1,"div",5),C(2,L,4,0,"ng-container",4)(3,D,3,0,"ng-container",4),l(),p()),n&2){let e=m();r(2),a("ngIf",e.showEdit),r(),a("ngIf",e.showRemove)}}var Z=BiggerPicture({target:document.body}),T=(()=>{class n{imageUrl;showEdit=!0;showRemove=!0;onEditEvent=new _;onRemoveEvent=new _;constructor(){}onEdit(e){this.onEditEvent.emit(e)}onRemove(){this.onRemoveEvent.emit()}onZoom(e,o){return M(this,null,function*(){o.preventDefault();try{let t=yield R(e.replace("w_80",""));Z.open({items:[t],intro:"fadeup"})}catch(t){alert(t)}})}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=h({type:n,selectors:[["image-container"]],inputs:{imageUrl:"imageUrl",showEdit:"showEdit",showRemove:"showRemove"},outputs:{onEditEvent:"onEdit",onRemoveEvent:"onRemove"},standalone:!0,features:[w],decls:5,vars:2,consts:[[1,"image_temporary","productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"imgUpload",3,"src"],[1,"overlay","pointer",3,"click"],[4,"ngIf"],[1,"overlay-title","d-flex","justify-content-center","align-items-center",2,"column-gap","24px"],["matTooltipPosition","above","matTooltip","Crop image",1,"edit-icon","image_upload_icon",3,"click"],[1,"fa","fa-file-pen"],[2,"width","2px","height","20px","background-color","white"],["matTooltipPosition","above","matTooltip","Remove image",1,"trash-icon","image_upload_icon",3,"click"],[1,"fa","fa-trash"]],template:function(o,t){o&1&&(i(0,"div",0)(1,"div",1),f(2,"img",2),i(3,"div",3),u("click",function(y){return t.onZoom(t.imageUrl,y)}),C(4,N,4,2,"ng-container",4),l()()()),o&2&&(r(2),a("src",t.imageUrl,O),r(2),a("ngIf",t.showEdit||t.showRemove))},dependencies:[b,E,S,k],styles:[".image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image_upload_icon[_ngcontent-%COMP%]{font-size:20px;color:#5f5f5f75}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}.trash-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px;text-align:center;cursor:pointer}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})}return n})();function $(n,x){if(n&1&&(d(0),i(1,"legend",8)(2,"span"),P(3),l()(),p()),n&2){let e=m();r(3),I("Image ",e.images.length,"/",e.maxFile,"")}}function A(n,x){if(n&1){let e=v();d(0),i(1,"image-container",9),u("onEdit",function(t){let c=s(e),y=c.$implicit,V=c.index,F=m();return g(F.onEdit(y.ImageURL,V,t))})("onRemove",function(){let t=s(e).index,c=m();return g(c.onRemove(t))}),l(),p()}if(n&2){let e=x.$implicit,o=m();r(),a("imageUrl",e.ImageURL)("showEdit",o.showEdit)}}function B(n,x){if(n&1){let e=v();d(0),i(1,"div",10)(2,"div",11),u("click",function(){s(e);let t=m();return g(t.onUpload())}),f(3,"i",12)(4,"i",13),l()(),p()}}var le=(()=>{class n{images=[];showLegend=!0;showEdit=!1;maxFile=0;onUploadEvent=new _;onRemoveEvent=new _;onEditEvent=new _;constructor(){}onUpload(){this.onUploadEvent.emit()}onRemove(e){this.onRemoveEvent.emit(e)}onEdit(e,o,t){this.onEditEvent.emit({imageUrl:e,index:o,element:t})}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=h({type:n,selectors:[["multiple-images-container"]],inputs:{images:"images",showLegend:"showLegend",showEdit:"showEdit",maxFile:"maxFile"},outputs:{onUploadEvent:"onUpload",onRemoveEvent:"onRemove",onEditEvent:"onEdit"},standalone:!0,features:[w],decls:9,vars:3,consts:[[1,"row"],[1,"col-12"],[1,"form-group","p-3","border","rounded"],[4,"ngIf"],[1,"row","mt-3"],[1,"col-md-12"],[1,"upload_trigger","d-flex","align-items-center"],[4,"ngFor","ngForOf"],[1,"w-auto","px-2","text-secondary"],[3,"onEdit","onRemove","imageUrl","showEdit"],["matTooltip","Add new image","matTooltipPosition","above",1,"image_temporary","productUpload_defaultSize","me-2","image-upload",2,"cursor","pointer"],[1,"imgContainer","d-flex","align-items-center","justify-content-center",3,"click"],[1,"fa-solid","fa-image","text-secondary","fa-4x"],[1,"fa-solid","fa-upload","text-secondary"]],template:function(o,t){o&1&&(i(0,"div",0)(1,"div",1)(2,"fieldset",2),C(3,$,4,2,"ng-container",3),i(4,"div",4)(5,"div",5)(6,"div",6),C(7,A,2,2,"ng-container",7)(8,B,5,0,"ng-container",3),l()()()()()()),o&2&&(r(3),a("ngIf",t.showLegend),r(4),a("ngForOf",t.images),r(),a("ngIf",t.images.length<t.maxFile))},dependencies:[b,U,E,T],styles:[".upload_trigger[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;vertical-align:top;width:100%}.image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}@media only screen and (max-width: 650px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}@media only screen and (min-device-width: 768px) and (max-device-width: 1112px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})}return n})();export{T as a,le as b};