@esri/calcite-components 3.0.1 → 3.0.2

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 (390) hide show
  1. package/dist/calcite/{KPJGFWME.js → 26HCN763.js} +2 -2
  2. package/dist/calcite/{MCYHITP5.js → 2D346WWC.js} +2 -2
  3. package/dist/calcite/{C3XHCMBP.js → 2FISXH45.js} +1 -1
  4. package/dist/calcite/{7URHQAUN.js → 2J535H74.js} +1 -1
  5. package/dist/calcite/{CHVHH4L7.js → 2JYAKUAI.js} +2 -2
  6. package/dist/calcite/{2TEERBTI.js → 2MRVC7VA.js} +2 -2
  7. package/dist/calcite/{QZ4S4NPD.js → 2PENUS6W.js} +2 -2
  8. package/dist/calcite/{BYRVP24K.js → 2Q43JR4R.js} +2 -2
  9. package/dist/calcite/{UAPP5RN3.js → 2QHD4PJ3.js} +2 -2
  10. package/dist/calcite/{FYUK2GME.js → 2XQRDBOF.js} +2 -2
  11. package/dist/calcite/{XPMURWBT.js → 2YAKETFF.js} +2 -2
  12. package/dist/calcite/{RIYYUHQ7.js → 36RFUWOV.js} +2 -2
  13. package/dist/calcite/{KJYAPBB2.js → 3BBEWJXF.js} +2 -2
  14. package/dist/calcite/{AZPKU6ON.js → 3IDVHKGJ.js} +2 -2
  15. package/dist/calcite/{RIXZG4AD.js → 3INVFQIX.js} +2 -2
  16. package/dist/calcite/{EFUCITW3.js → 3LLV2AEE.js} +2 -2
  17. package/dist/calcite/{YHIHWSGP.js → 3MDXQNOS.js} +2 -2
  18. package/dist/calcite/{AFJ2UDEO.js → 3RVGBVFJ.js} +2 -2
  19. package/dist/calcite/{ETK7F3KI.js → 3TLSGE35.js} +2 -2
  20. package/dist/calcite/{N2Q46D75.js → 3ZXS7UKF.js} +2 -2
  21. package/dist/calcite/{NQPJICFQ.js → 42EYBCUV.js} +1 -1
  22. package/dist/calcite/{O6BU5DYY.js → 44T76NU4.js} +2 -2
  23. package/dist/calcite/{4GUL5QXY.js → 4BJW4WBP.js} +2 -2
  24. package/dist/calcite/{47FXQ37G.js → 4FEHFKFZ.js} +2 -2
  25. package/dist/calcite/{OUKBJ6J3.js → 4GA4WC4S.js} +2 -2
  26. package/dist/calcite/{4PKLCHA5.js → 4JFNYHYI.js} +2 -2
  27. package/dist/calcite/{MKMTLSBP.js → 4PUNUHJG.js} +2 -2
  28. package/dist/calcite/{HRDRO2MA.js → 4S7WQOEH.js} +2 -2
  29. package/dist/calcite/{WODNJF5Z.js → 4V2CYZGJ.js} +2 -2
  30. package/dist/calcite/{PV7FS57L.js → 4ZGOTZVH.js} +2 -2
  31. package/dist/calcite/{QLL7IT53.js → 4ZU47CQ3.js} +1 -1
  32. package/dist/calcite/{62M3DNDT.js → 532AODLB.js} +2 -2
  33. package/dist/calcite/{YW6YWFXE.js → 57I55JUX.js} +2 -2
  34. package/dist/calcite/{MRRSD5GQ.js → 5COCTVTL.js} +2 -2
  35. package/dist/calcite/{VIVZTWDT.js → 5K7VN4KA.js} +2 -2
  36. package/dist/calcite/{MVBR6FNF.js → 5LT4TL2A.js} +1 -1
  37. package/dist/calcite/{S6DJKPG5.js → 5V5PZFPV.js} +1 -1
  38. package/dist/calcite/{VGKMOO66.js → 5VWHRVSC.js} +1 -1
  39. package/dist/calcite/{D7X7U5LL.js → 63TOND25.js} +2 -2
  40. package/dist/calcite/{T246IHBX.js → 6CCGJZNF.js} +2 -2
  41. package/dist/calcite/{5KCZZJGZ.js → 6EPLB3BH.js} +2 -2
  42. package/dist/calcite/{R5GIKUFX.js → 6LEJ3UPZ.js} +2 -2
  43. package/dist/calcite/{MUYFLMXN.js → 6MF5C5ST.js} +2 -2
  44. package/dist/calcite/{T5I34CKY.js → 6VYYMBFV.js} +2 -2
  45. package/dist/calcite/{FMALNIBL.js → 762X4JRQ.js} +2 -2
  46. package/dist/calcite/{NPTN6OGZ.js → 77BUHP3U.js} +2 -2
  47. package/dist/calcite/{7SVWZ5TZ.js → 7BNRX2TA.js} +2 -2
  48. package/dist/calcite/{PYT6F7XN.js → 7D6PTDQC.js} +1 -1
  49. package/dist/calcite/{3TJZ3VMN.js → ADQG5III.js} +2 -2
  50. package/dist/calcite/{GR3JRBW6.js → AFAENHVJ.js} +2 -2
  51. package/dist/calcite/{EB432BS5.js → AG3OBGY5.js} +2 -2
  52. package/dist/calcite/{JHWO2CVD.js → AGSPOKJL.js} +2 -2
  53. package/dist/calcite/{SM6GCEH6.js → ALESK5G3.js} +2 -2
  54. package/dist/calcite/{S6SBHJIV.js → AQIH4QSU.js} +2 -2
  55. package/dist/calcite/{5X666Z33.js → AR5Q6UVU.js} +2 -2
  56. package/dist/calcite/{TTPB5NUF.js → ARIDWTR6.js} +1 -1
  57. package/dist/calcite/{UVQWXGAE.js → AW6AIWFX.js} +2 -2
  58. package/dist/calcite/{46ICVIVW.js → AWUASB3T.js} +2 -2
  59. package/dist/calcite/{XDEHQTPQ.js → B3PECEJL.js} +2 -2
  60. package/dist/calcite/{MCZED6UJ.js → B4RFHTW2.js} +1 -1
  61. package/dist/calcite/{DH73QGXJ.js → BFYE5CCU.js} +2 -2
  62. package/dist/calcite/{CNTBFQBL.js → BNGQWGBI.js} +2 -2
  63. package/dist/calcite/{3LOOBSHJ.js → BPAXWMOU.js} +2 -2
  64. package/dist/calcite/{FJLPIBCZ.js → BPPH3LON.js} +2 -2
  65. package/dist/calcite/{VLUVMJLJ.js → BS4H6VSM.js} +2 -2
  66. package/dist/calcite/{FNTHRMT3.js → BYC3WNCO.js} +2 -2
  67. package/dist/calcite/{VSVGJIKO.js → BYLYAZTZ.js} +2 -2
  68. package/dist/calcite/{XUCTBMBM.js → BYPR2JSH.js} +2 -2
  69. package/dist/calcite/{GKVYSG3G.js → BZD7GFVI.js} +2 -2
  70. package/dist/calcite/{QGSMNFLV.js → C4UTTCWS.js} +2 -2
  71. package/dist/calcite/{YW7G4LA7.js → CFI5FI64.js} +2 -2
  72. package/dist/calcite/{CWBUDJKG.js → CHIM52AT.js} +2 -2
  73. package/dist/calcite/{B2GDIYRL.js → CI3KGKPX.js} +2 -2
  74. package/dist/calcite/{X7JJZRMI.js → CUGMAH5O.js} +2 -2
  75. package/dist/calcite/{CE3TSSYN.js → CVRPAZHG.js} +1 -1
  76. package/dist/calcite/{KOPH76Z4.js → D3M3HCEU.js} +2 -2
  77. package/dist/calcite/{EWBW2GOP.js → D5BK72IU.js} +2 -2
  78. package/dist/calcite/{6KFLYQ3F.js → DABOIYSX.js} +2 -2
  79. package/dist/calcite/{KCA2V6ZH.js → DF4DAIZE.js} +2 -2
  80. package/dist/calcite/{FYCT4FES.js → DP7DCTHA.js} +2 -2
  81. package/dist/calcite/{M6GGWFWP.js → DUIF4UOJ.js} +2 -2
  82. package/dist/calcite/{PU7HI4RM.js → DXHVTM3H.js} +2 -2
  83. package/dist/calcite/{W2IMTPXZ.js → E3LQGBTP.js} +2 -2
  84. package/dist/calcite/{3EQ32UON.js → E3P6UTBX.js} +2 -2
  85. package/dist/calcite/{3NJWAHVN.js → E4L6NZNF.js} +2 -2
  86. package/dist/calcite/{6GK2OTHZ.js → E77UFCG7.js} +1 -1
  87. package/dist/calcite/{4TLHW2N3.js → EPC6PV3A.js} +2 -2
  88. package/dist/calcite/{MGC5QBVT.js → ERSVI3SQ.js} +2 -2
  89. package/dist/calcite/{KT3W2WN7.js → EUZ5QYKG.js} +2 -2
  90. package/dist/calcite/{KW4WGJWX.js → EZG5QKN6.js} +2 -2
  91. package/dist/calcite/{U5LWIQFM.js → FBT37OEB.js} +2 -2
  92. package/dist/calcite/{QV6PXGLB.js → FC7N6LLB.js} +2 -2
  93. package/dist/calcite/{BJQEZXFS.js → FPK4FZB7.js} +2 -2
  94. package/dist/calcite/{2MTW4RBX.js → FTW2LAIW.js} +2 -2
  95. package/dist/calcite/{NBX4LUWL.js → FXELZL3D.js} +2 -2
  96. package/dist/calcite/{54O5ASY6.js → G44GIY32.js} +2 -2
  97. package/dist/calcite/{LWAXFXVK.js → G57AKIT2.js} +1 -1
  98. package/dist/calcite/{45R3L3J2.js → GE7AW6D3.js} +2 -2
  99. package/dist/calcite/{VQZMYHUR.js → GMSVWV3D.js} +2 -2
  100. package/dist/calcite/{NLK3OCCK.js → GO4QOK2G.js} +2 -2
  101. package/dist/calcite/{M5RSVI77.js → GRW4JOP4.js} +2 -2
  102. package/dist/calcite/{SVTZCS25.js → GUGZXV6L.js} +1 -1
  103. package/dist/calcite/{KP4G4VQ3.js → GYGPER4P.js} +2 -2
  104. package/dist/calcite/{IBLJGOPM.js → H7Q3GS6I.js} +2 -2
  105. package/dist/calcite/{DVFRWPOF.js → HAWP5JEV.js} +2 -2
  106. package/dist/calcite/{6ZNTK2O2.js → HHGO6V2F.js} +2 -2
  107. package/dist/calcite/{G4CQ5QPF.js → HPIVWV3W.js} +2 -2
  108. package/dist/calcite/{VPCQX3JS.js → HVSGKI4U.js} +2 -2
  109. package/dist/calcite/{YUYVD6B5.js → HYAVXYZ2.js} +2 -2
  110. package/dist/calcite/HZD74WIH.js +4 -0
  111. package/dist/calcite/{Z7RQIFXO.js → IF2VTG4O.js} +2 -2
  112. package/dist/calcite/{4QSXDJ3I.js → IFPCUCS6.js} +2 -2
  113. package/dist/calcite/{KPP5CUG6.js → IIZHIWV2.js} +2 -2
  114. package/dist/calcite/{GZBMMB2V.js → IMPJNHBW.js} +2 -2
  115. package/dist/calcite/{57MQUGHN.js → IUEFQJD6.js} +2 -2
  116. package/dist/calcite/{U3A4ZFDA.js → IVQXEPWH.js} +2 -2
  117. package/dist/calcite/{RD2YKJMP.js → IZ4UM67D.js} +2 -2
  118. package/dist/calcite/{5FYVM4AX.js → J67XRVOQ.js} +2 -2
  119. package/dist/calcite/{V7P5NO5D.js → JAS5LR3V.js} +2 -2
  120. package/dist/calcite/{DYHX5C6J.js → JD225EOA.js} +2 -2
  121. package/dist/calcite/{E6LODM5C.js → JIYWCS5W.js} +2 -2
  122. package/dist/calcite/{GS4K4IEJ.js → JNT67J3Z.js} +2 -2
  123. package/dist/calcite/{BKB5MWFT.js → JORKWQP7.js} +2 -2
  124. package/dist/calcite/{7COKCZTB.js → K5VIMCTR.js} +2 -2
  125. package/dist/calcite/{IKHZ7MAG.js → KBLPZCLN.js} +2 -2
  126. package/dist/calcite/{XK4FISIX.js → KDOZHNH6.js} +2 -2
  127. package/dist/calcite/{3TGA6ACB.js → KEZYP6US.js} +2 -2
  128. package/dist/calcite/{OREMH3DL.js → KFCQM5TQ.js} +2 -2
  129. package/dist/calcite/{TFRMRELY.js → KJOYBAI5.js} +2 -2
  130. package/dist/calcite/{PA6PSCEP.js → KKGMEX34.js} +1 -1
  131. package/dist/calcite/{2AP6YLXQ.js → KN2DHQQX.js} +2 -2
  132. package/dist/calcite/{N2AFATQQ.js → KP54C3JZ.js} +2 -2
  133. package/dist/calcite/{WB2APVPE.js → KTIU4AW5.js} +2 -2
  134. package/dist/calcite/{2M5DP5VS.js → KUKMISYB.js} +2 -2
  135. package/dist/calcite/{Y3MFFLOP.js → KXMBACE6.js} +2 -2
  136. package/dist/calcite/{FOFSX3FY.js → KYF26PQD.js} +2 -2
  137. package/dist/calcite/{HPFCIR5F.js → LALBDZYZ.js} +2 -2
  138. package/dist/calcite/{J6V2OKQD.js → LEM2HQED.js} +1 -1
  139. package/dist/calcite/{FGCSO5KT.js → LQPVMOYJ.js} +2 -2
  140. package/dist/calcite/{45YXH4D4.js → LVN6GKGM.js} +2 -2
  141. package/dist/calcite/{J6ES4ZTD.js → LVPZFTT7.js} +2 -2
  142. package/dist/calcite/{U3J436K5.js → LX6AOLTA.js} +2 -2
  143. package/dist/calcite/{3BOJE7XV.js → M7C4BL3W.js} +2 -2
  144. package/dist/calcite/{JUW7VCPP.js → MBDY7HC3.js} +2 -2
  145. package/dist/calcite/{HMZA4X6S.js → MBW4RJGP.js} +2 -2
  146. package/dist/calcite/{DO7AVVBP.js → ME6Z2YOO.js} +2 -2
  147. package/dist/calcite/{FSQRHBBB.js → METSX5PL.js} +2 -2
  148. package/dist/calcite/{TV2JMAEX.js → MFSJ7P6E.js} +2 -2
  149. package/dist/calcite/{DNKJTXCY.js → MKITX7PO.js} +2 -2
  150. package/dist/calcite/{RI6ANEBM.js → MKVVU5LK.js} +2 -2
  151. package/dist/calcite/{3LXK5OEB.js → MMMDZXO3.js} +2 -2
  152. package/dist/calcite/{F52GIETG.js → MNEWDDI2.js} +2 -2
  153. package/dist/calcite/{CYKAIRKP.js → N7VBZNZD.js} +2 -2
  154. package/dist/calcite/{MD4KKJXR.js → NMX7JENH.js} +2 -2
  155. package/dist/calcite/{PPMXW2CH.js → NQ2LK6DD.js} +2 -2
  156. package/dist/calcite/{OOHSVUO2.js → NUOSJ2QU.js} +2 -2
  157. package/dist/calcite/{TTARWRVZ.js → NWMFN6P5.js} +2 -2
  158. package/dist/calcite/{C52QQAFR.js → NXAQ3ZNZ.js} +2 -2
  159. package/dist/calcite/{GGNAK2N6.js → O4ROBHBS.js} +2 -2
  160. package/dist/calcite/{IGQGPBGN.js → O6S6VY32.js} +2 -2
  161. package/dist/calcite/{LAE3F72I.js → OPD7D4JP.js} +1 -1
  162. package/dist/calcite/{ZYBMEVEB.js → ORNJ2SHJ.js} +2 -2
  163. package/dist/calcite/{OENBCW7D.js → OSDCA5Z5.js} +2 -2
  164. package/dist/calcite/{XL665FTR.js → OTFP3MJD.js} +2 -2
  165. package/dist/calcite/{J3ZEXA7Z.js → OYFIV5DV.js} +2 -2
  166. package/dist/calcite/{OAD7JJOE.js → P7NGK5HU.js} +2 -2
  167. package/dist/calcite/{OLP7ABVK.js → P7S34RN4.js} +1 -1
  168. package/dist/calcite/{6OPQR7PL.js → PBIOUIAG.js} +2 -2
  169. package/dist/calcite/{PFRWMYU6.js → PDYG4KDD.js} +2 -2
  170. package/dist/calcite/{HD2NABQD.js → PGMKTKRG.js} +2 -2
  171. package/dist/calcite/{BETB6YPW.js → PXNVLWHJ.js} +2 -2
  172. package/dist/calcite/{NWTXX6JY.js → PXWJSYPX.js} +2 -2
  173. package/dist/calcite/{XFRASDZI.js → PYX2DOAY.js} +2 -2
  174. package/dist/calcite/{RYQPXZK6.js → Q66CF4W3.js} +2 -2
  175. package/dist/calcite/{YJWS4TZW.js → QCYLDKPD.js} +2 -2
  176. package/dist/calcite/{U4KFLUXN.js → QNMIJ4WK.js} +2 -2
  177. package/dist/calcite/{MYXXA6E5.js → QTFP7OUN.js} +2 -2
  178. package/dist/calcite/{CPH3OCUO.js → QVCY4WGU.js} +2 -2
  179. package/dist/calcite/{AQANFQEK.js → R4SFKVAB.js} +2 -2
  180. package/dist/calcite/{5YBMD5MK.js → R4WJ47LZ.js} +1 -1
  181. package/dist/calcite/{DJU4LSIS.js → R4XN3TM5.js} +2 -2
  182. package/dist/calcite/{OOWC3DHW.js → R7DNUMFW.js} +2 -2
  183. package/dist/calcite/{MFGDUWWU.js → RBZYH2DB.js} +2 -2
  184. package/dist/calcite/{FF2SNYC6.js → RJ2QSN7Y.js} +2 -2
  185. package/dist/calcite/{W7BTFAAV.js → S2LJOUMB.js} +2 -2
  186. package/dist/calcite/{KAZVOPHR.js → S5F5TPCL.js} +2 -2
  187. package/dist/calcite/{CWJKJUCU.js → SGGVWBUG.js} +2 -2
  188. package/dist/calcite/{RSI5VQHT.js → SMJSXUYT.js} +2 -2
  189. package/dist/calcite/{LDJND26G.js → SPUWEZWR.js} +2 -2
  190. package/dist/calcite/{ACFEDJWV.js → SSS44B5K.js} +2 -2
  191. package/dist/calcite/{I54F3V4F.js → SXNM7HTI.js} +2 -2
  192. package/dist/calcite/{7CQS22FK.js → T2NQWILT.js} +1 -1
  193. package/dist/calcite/{6AN3H3R6.js → T4ULXMD7.js} +2 -2
  194. package/dist/calcite/{F6CK7P7G.js → T64NHTR5.js} +2 -2
  195. package/dist/calcite/{6HEZO2KI.js → TNF7E2RJ.js} +2 -2
  196. package/dist/calcite/{FBUTQVLY.js → TY7PAOH3.js} +2 -2
  197. package/dist/calcite/{RRNZ4FU5.js → TYHCHYHH.js} +2 -2
  198. package/dist/calcite/{TC73OO6B.js → U52CBUNR.js} +2 -2
  199. package/dist/calcite/{IITTEDPS.js → UD7QUO4R.js} +2 -2
  200. package/dist/calcite/{VSACPVTO.js → UEYGVMY4.js} +2 -2
  201. package/dist/calcite/{7C4KHH7U.js → UG4VX2WO.js} +2 -2
  202. package/dist/calcite/{FA3DOLYY.js → UIY3ZOUS.js} +2 -2
  203. package/dist/calcite/{5OWSKBSV.js → URZNSXZT.js} +2 -2
  204. package/dist/calcite/{KLG62CS4.js → VANSKT7E.js} +2 -2
  205. package/dist/calcite/{7NLQECEF.js → VI3KXLGC.js} +1 -1
  206. package/dist/calcite/{VRJOLF5U.js → VPBKQWRV.js} +2 -2
  207. package/dist/calcite/{W35EGCBV.js → VRXSW66C.js} +2 -2
  208. package/dist/calcite/{S3TERCKZ.js → VTO75NHN.js} +2 -2
  209. package/dist/calcite/{RRPMD5OW.js → WK6BSIWL.js} +2 -2
  210. package/dist/calcite/{X6EDNQN2.js → WRT5VFG2.js} +2 -2
  211. package/dist/calcite/{STCRUA4G.js → XCHOTUWL.js} +2 -2
  212. package/dist/calcite/{LWKIGIQ7.js → XIWNJBFP.js} +1 -1
  213. package/dist/calcite/{G5AYPPXM.js → XJFKL6PV.js} +2 -2
  214. package/dist/calcite/{EWAQVZXY.js → XLECMXIQ.js} +2 -2
  215. package/dist/calcite/{UJ2DNCBI.js → XMMC32IR.js} +2 -2
  216. package/dist/calcite/{FL63KFPW.js → XNX35ZFQ.js} +2 -2
  217. package/dist/calcite/{O627WVJG.js → YJATTLI4.js} +2 -2
  218. package/dist/calcite/{OEK7OZTX.js → YJBOOAYG.js} +2 -2
  219. package/dist/calcite/{5ZA467A4.js → YX5TRVRY.js} +2 -2
  220. package/dist/calcite/{YXYKAROM.js → YYW4OM7V.js} +2 -2
  221. package/dist/calcite/{7C3Y7SM7.js → Z4EVTJCF.js} +2 -2
  222. package/dist/calcite/{IJOUQRZG.js → Z6VFYDJB.js} +2 -2
  223. package/dist/calcite/{DX5LTGNX.js → ZDGZDBPE.js} +2 -2
  224. package/dist/calcite/{HEVM6SRJ.js → ZYEB6OOM.js} +2 -2
  225. package/dist/calcite/calcite.esm.js +2 -2
  226. package/dist/chunks/ExpandToggle.js +1 -1
  227. package/dist/chunks/FloatingArrow.js +1 -1
  228. package/dist/chunks/Heading.js +1 -1
  229. package/dist/chunks/Validation.js +1 -1
  230. package/dist/chunks/_commonjsHelpers.js +1 -1
  231. package/dist/chunks/array.js +1 -1
  232. package/dist/chunks/component.js +1 -1
  233. package/dist/chunks/core.js +1 -1
  234. package/dist/chunks/date.js +1 -1
  235. package/dist/chunks/dom.js +1 -1
  236. package/dist/chunks/dynamicClasses.js +1 -1
  237. package/dist/chunks/filter.js +1 -1
  238. package/dist/chunks/floating-ui.js +1 -1
  239. package/dist/chunks/focusTrapComponent.js +1 -1
  240. package/dist/chunks/form.js +1 -1
  241. package/dist/chunks/global.js +1 -1
  242. package/dist/chunks/guid.js +1 -1
  243. package/dist/chunks/input.js +1 -1
  244. package/dist/chunks/interact.min.js +1 -1
  245. package/dist/chunks/interactive.js +1 -1
  246. package/dist/chunks/key.js +1 -1
  247. package/dist/chunks/label.js +1 -1
  248. package/dist/chunks/loadable.js +1 -1
  249. package/dist/chunks/locale.js +1 -1
  250. package/dist/chunks/logger.js +1 -1
  251. package/dist/chunks/math.js +1 -1
  252. package/dist/chunks/observers.js +1 -1
  253. package/dist/chunks/openCloseComponent.js +1 -1
  254. package/dist/chunks/resources.js +1 -1
  255. package/dist/chunks/resources2.js +1 -1
  256. package/dist/chunks/resources3.js +1 -1
  257. package/dist/chunks/resources4.js +1 -1
  258. package/dist/chunks/resources5.js +1 -1
  259. package/dist/chunks/resources6.js +1 -1
  260. package/dist/chunks/resources7.js +1 -1
  261. package/dist/chunks/responsive.js +1 -1
  262. package/dist/chunks/runtime.js +3 -3
  263. package/dist/chunks/sortableComponent.js +1 -1
  264. package/dist/chunks/text.js +1 -1
  265. package/dist/chunks/time.js +1 -1
  266. package/dist/chunks/useFocusTrap.js +1 -1
  267. package/dist/chunks/useT9n.js +1 -1
  268. package/dist/chunks/utils.js +1 -1
  269. package/dist/chunks/utils2.js +1 -1
  270. package/dist/chunks/utils3.js +1 -1
  271. package/dist/chunks/utils4.js +1 -1
  272. package/dist/components/calcite-accordion/customElement.js +1 -1
  273. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  274. package/dist/components/calcite-action/customElement.js +1 -1
  275. package/dist/components/calcite-action-bar/customElement.js +1 -1
  276. package/dist/components/calcite-action-group/customElement.js +1 -1
  277. package/dist/components/calcite-action-menu/customElement.js +1 -1
  278. package/dist/components/calcite-action-pad/customElement.js +1 -1
  279. package/dist/components/calcite-alert/customElement.js +1 -1
  280. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  281. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  282. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  283. package/dist/components/calcite-avatar/customElement.js +1 -1
  284. package/dist/components/calcite-block/customElement.js +1 -1
  285. package/dist/components/calcite-block-group/customElement.js +1 -1
  286. package/dist/components/calcite-block-section/customElement.js +1 -1
  287. package/dist/components/calcite-button/customElement.js +1 -1
  288. package/dist/components/calcite-card/customElement.js +1 -1
  289. package/dist/components/calcite-card-group/customElement.js +1 -1
  290. package/dist/components/calcite-carousel/customElement.js +1 -1
  291. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  292. package/dist/components/calcite-checkbox/customElement.js +1 -1
  293. package/dist/components/calcite-chip/customElement.js +1 -1
  294. package/dist/components/calcite-chip-group/customElement.js +1 -1
  295. package/dist/components/calcite-color-picker/customElement.js +1 -1
  296. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  297. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  298. package/dist/components/calcite-combobox/customElement.js +1 -1
  299. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  300. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  301. package/dist/components/calcite-date-picker/customElement.js +1 -1
  302. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  303. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  304. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  305. package/dist/components/calcite-dialog/customElement.js +10 -10
  306. package/dist/components/calcite-dropdown/customElement.js +1 -1
  307. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  308. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  309. package/dist/components/calcite-fab/customElement.js +1 -1
  310. package/dist/components/calcite-filter/customElement.js +1 -1
  311. package/dist/components/calcite-flow/customElement.js +1 -1
  312. package/dist/components/calcite-flow-item/customElement.js +1 -1
  313. package/dist/components/calcite-graph/customElement.js +1 -1
  314. package/dist/components/calcite-handle/customElement.js +1 -1
  315. package/dist/components/calcite-icon/customElement.js +1 -1
  316. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  317. package/dist/components/calcite-input/customElement.js +1 -1
  318. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  319. package/dist/components/calcite-input-message/customElement.js +1 -1
  320. package/dist/components/calcite-input-number/customElement.js +1 -1
  321. package/dist/components/calcite-input-text/customElement.js +1 -1
  322. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  323. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  324. package/dist/components/calcite-label/customElement.js +1 -1
  325. package/dist/components/calcite-link/customElement.js +1 -1
  326. package/dist/components/calcite-list/customElement.js +1 -1
  327. package/dist/components/calcite-list-item/customElement.js +1 -1
  328. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  329. package/dist/components/calcite-loader/customElement.js +1 -1
  330. package/dist/components/calcite-menu/customElement.js +1 -1
  331. package/dist/components/calcite-menu-item/customElement.js +1 -1
  332. package/dist/components/calcite-meter/customElement.js +1 -1
  333. package/dist/components/calcite-modal/customElement.js +2 -2
  334. package/dist/components/calcite-navigation/customElement.js +1 -1
  335. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  336. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  337. package/dist/components/calcite-notice/customElement.js +1 -1
  338. package/dist/components/calcite-option/customElement.js +1 -1
  339. package/dist/components/calcite-option-group/customElement.js +1 -1
  340. package/dist/components/calcite-pagination/customElement.js +1 -1
  341. package/dist/components/calcite-panel/customElement.js +1 -1
  342. package/dist/components/calcite-popover/customElement.js +2 -2
  343. package/dist/components/calcite-progress/customElement.js +1 -1
  344. package/dist/components/calcite-radio-button/customElement.js +1 -1
  345. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  346. package/dist/components/calcite-rating/customElement.js +1 -1
  347. package/dist/components/calcite-scrim/customElement.js +1 -1
  348. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  349. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  350. package/dist/components/calcite-select/customElement.js +1 -1
  351. package/dist/components/calcite-sheet/customElement.js +4 -4
  352. package/dist/components/calcite-shell/customElement.js +1 -1
  353. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  354. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  355. package/dist/components/calcite-slider/customElement.js +1 -1
  356. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  357. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  358. package/dist/components/calcite-split-button/customElement.js +1 -1
  359. package/dist/components/calcite-stack/customElement.js +1 -1
  360. package/dist/components/calcite-stepper/customElement.js +1 -1
  361. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  362. package/dist/components/calcite-switch/customElement.js +1 -1
  363. package/dist/components/calcite-tab/customElement.js +1 -1
  364. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  365. package/dist/components/calcite-tab-title/customElement.js +1 -1
  366. package/dist/components/calcite-table/customElement.js +1 -1
  367. package/dist/components/calcite-table-cell/customElement.js +1 -1
  368. package/dist/components/calcite-table-header/customElement.js +1 -1
  369. package/dist/components/calcite-table-row/customElement.js +1 -1
  370. package/dist/components/calcite-tabs/customElement.js +1 -1
  371. package/dist/components/calcite-text-area/customElement.js +1 -1
  372. package/dist/components/calcite-tile/customElement.js +1 -1
  373. package/dist/components/calcite-tile-group/customElement.js +1 -1
  374. package/dist/components/calcite-tile-select/customElement.js +1 -1
  375. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  376. package/dist/components/calcite-time-picker/customElement.js +1 -1
  377. package/dist/components/calcite-tip/customElement.js +1 -1
  378. package/dist/components/calcite-tip-group/customElement.js +1 -1
  379. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  380. package/dist/components/calcite-tooltip/customElement.js +1 -1
  381. package/dist/components/calcite-tree/customElement.js +1 -1
  382. package/dist/components/calcite-tree-item/customElement.js +1 -1
  383. package/dist/docs/api.json +2 -2
  384. package/dist/docs/docs.json +2 -2
  385. package/dist/docs/web-types.json +1 -1
  386. package/dist/index.js +1 -1
  387. package/dist/loader.js +1 -1
  388. package/package.json +5 -5
  389. package/readme.md +2 -2
  390. package/dist/calcite/3U4EUW42.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{d as ue}from"./CE3TSSYN.js";import{a as be}from"./NWTXX6JY.js";import{a as D,b as A,c as r,d as H,f as F,g as ge,h as T,j as x,k as $}from"./T5I34CKY.js";import{a as me}from"./DYHX5C6J.js";import{a as ce,c as re,e as he,f as de,h as pe}from"./DJU4LSIS.js";import{c as ae,d as oe,e as ne}from"./HEVM6SRJ.js";import{a as ee,c as E,d as te,e as ie,f as se,g as C,h as le}from"./IBLJGOPM.js";import"./7NLQECEF.js";import{a as Z}from"./YUYVD6B5.js";import{a as J,b as K}from"./X6EDNQN2.js";import{a as w,c as k}from"./HMZA4X6S.js";import"./4GUL5QXY.js";import{a as u}from"./TTARWRVZ.js";import{a as X,b as Y}from"./NQPJICFQ.js";import{a as S}from"./NPTN6OGZ.js";import{a as Q}from"./RSI5VQHT.js";import{a as _,b as g}from"./QV6PXGLB.js";import{f as I,i as q}from"./NLK3OCCK.js";import{a as j,b as N}from"./6OPQR7PL.js";import{a as W}from"./OLP7ABVK.js";import{B,D as G,J as U,e as P,f as d,j as m,u as L,v as b,w as R,x as c}from"./D7X7U5LL.js";var Ce={button:"x-button"},Se=({disabled:M,key:e,label:t,scale:i})=>u(e,d`<button .ariaLabel=${t} class=${c(Ce.button)} .disabled=${M} tabindex=-1 type=button><calcite-icon icon=x .scale=${w(i)}></calcite-icon></button>`),ke=P`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) }:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-spacing-unit-s: .5rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) }:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-spacing-unit-s: .75rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) }:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-combobox-item-spacing-unit-s);margin-inline-end:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.placeholder-icon{color:var(--calcite-color-text-3)}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-color-text-3)}.floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@media (forced-colors: active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width, 100%)}.list{margin:0;display:block;padding:0}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}`,fe="combobox-item-",ve="combobox-chip-",xe="combobox-label-",O="combobox-listbox-",Ie="combobox-input-",V=class extends R{constructor(){super(),this.filterItems=(()=>{let e=(t,i)=>t&&i.some(({el:s})=>t===s);return X((t,i=!1,s=!0)=>{let l=be([...this.data,...this.groupData],t,this.effectiveFilterProps),a=this.getItemsAndGroups(),o=t==="";a.forEach(n=>{if(o){n.itemHidden=!1;return}let h=!e(n,l);n.itemHidden=h;let[p,v]=n.ancestors;(e(p,l)||e(v,l))&&(n.itemHidden=!1),h||n.ancestors.forEach(f=>f.itemHidden=!1)}),this.filterTextMatchPattern=this.filterText&&new RegExp(`(${Y(this.filterText)})`,"i"),this.filteredItems=this.getFilteredItems(),this.filteredItems.forEach(n=>{n.filterTextMatchPattern=this.filterTextMatchPattern}),i&&(this.open=this.filterText.trim().length>0&&this.filteredItems.length>0),s&&this.calciteComboboxFilterChange.emit()},G.filter)})(),this._filterText="",this.getSelectedItems=()=>{if(!this.isMulti()){let e=this.items.find(({selected:t})=>t);return e?[e]:[]}return this.items.filter(e=>e.selected&&(this.selectionMode!=="ancestors"||!T(e))).sort((e,t)=>{let i=this.selectedItems.indexOf(e),s=this.selectedItems.indexOf(t);return i>-1&&s>-1?i-s:s-i})},this.groupItems=[],this.guid=W(),this.ignoreSelectedEventsFlag=!1,this.inputHeight=0,this.internalValueChangeFlag=!1,this.items=[],this.mutationObserver=S("mutation",()=>this.updateItems()),this.onLabelClick=()=>{this.setFocus()},this.transitionProp="opacity",this.placement=ee,this.resizeObserver=S("resize",()=>{this.setMaxScrollerHeight(),this.refreshSelectionDisplay()}),this._selectedItems=[],this.textInput=_(),this._value=null,this.activeChipIndex=-1,this.activeDescendant="",this.activeItemIndex=-1,this.compactSelectionDisplay=!1,this.selectedHiddenChipsCount=0,this.selectedVisibleChipsCount=0,this.clearDisabled=!1,this.disabled=!1,this.filteredItems=[],this.maxItems=0,this.messages=Q(),this.open=!1,this.overlayPositioning="absolute",this.placeholderIconFlipRtl=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.selectionDisplay="all",this.selectionMode="multiple",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteComboboxBeforeClose=b({cancelable:!1}),this.calciteComboboxBeforeOpen=b({cancelable:!1}),this.calciteComboboxChange=b({cancelable:!1}),this.calciteComboboxChipClose=b({cancelable:!1}),this.calciteComboboxClose=b({cancelable:!1}),this.calciteComboboxFilterChange=b({cancelable:!1}),this.calciteComboboxOpen=b({cancelable:!1}),this.listenOn(document,"click",this.documentClickHandler),this.listen("calciteComboboxItemChange",this.calciteComboboxItemChangeHandler),this.listen("calciteInternalComboboxItemChange",this.calciteInternalComboboxItemChangeHandler),this.listen("click",this.comboboxFocusHandler)}static{this.properties={activeChipIndex:16,activeDescendant:16,activeItemIndex:16,compactSelectionDisplay:16,selectedHiddenChipsCount:16,selectedVisibleChipsCount:16,allowCustomValues:7,clearDisabled:7,disabled:7,filterText:3,filterProps:0,filteredItems:0,flipPlacements:0,form:3,label:1,maxItems:11,messageOverrides:0,name:3,open:7,overlayPositioning:3,placeholder:1,placeholderIcon:3,placeholderIconFlipRtl:7,readOnly:7,required:7,scale:3,selectedItems:0,selectionDisplay:3,selectionMode:3,status:3,validationIcon:[3,{converter:B}],validationMessage:1,validity:0,value:1}}static{this.styles=ke}emitComboboxChange(){this.calciteComboboxChange.emit()}get effectiveFilterProps(){return this.filterProps?this.filterProps.filter(e=>e!=="el"):["description","label","metadata","shortHeading","textLabel"]}get showingInlineIcon(){let{placeholderIcon:e,selectionMode:t,selectedItems:i,open:s}=this,l=i[0],a=l?.icon,o=x(t);return!s&&l?!!a&&o:!!e&&(!l||o)}get filterText(){return this._filterText}set filterText(e){let t=this._filterText;e!==t&&(this._filterText=e,this.filterTextChange(e))}get selectedItems(){return this._selectedItems}set selectedItems(e){let t=this._selectedItems;e!==t&&(this._selectedItems=e,this.selectedItemsHandler())}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueHandler(e))}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:l,filteredFlipPlacements:a}=this;return ie(this,{floatingEl:t,referenceEl:i,overlayPositioning:l,placement:s,flipPlacements:a,type:"menu"},e)}async setFocus(){await N(this),this.textInput.value?.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){super.connectedCallback(),ae(this),re(this),this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),C(this)}async load(){}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("maxItems")&&(this.hasUpdated||this.maxItems!==0)&&this.setMaxScrollerHeight(),e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(e.has("selectionMode")||e.has("scale"))&&this.updateItems(),e.has("flipPlacements")&&this.flipPlacementsHandler()}updated(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(!0),this.inputHeight=this.el.offsetHeight),J(this),this.refreshSelectionDisplay()}loaded(){de(this,this.getValue()),C(this),this.updateItems(),this.filterItems(this.filterText,!1,!1)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),oe(this),he(this),le(this)}filterTextChange(e){this.updateActiveItemIndex(-1),this.filterItems(e,!0)}openHandler(){Z(this),!this.disabled&&this.setMaxScrollerHeight()}handleDisabledChange(e){e||(this.open=!1)}valueHandler(e){this.internalValueChangeFlag||(this.getItems().forEach(t=>{t.selected=Array.isArray(e)?e.includes(t.value):e===t.value}),this.updateItems())}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}async documentClickHandler(e){this.disabled||e.composedPath().includes(this.el)||(await this.componentOnReady(),!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1)),this.allowCustomValues&&this.filterText.trim().length&&this.addCustomChip(this.filterText),this.open=!1)}calciteComboboxItemChangeHandler(e){if(this.ignoreSelectedEventsFlag)return;let t=e.target,i=this.filteredItems.indexOf(t);this.updateActiveItemIndex(i),this.toggleSelection(t,t.selected)}calciteInternalComboboxItemChangeHandler(e){e.stopPropagation(),this.hasUpdated&&this.updateItems()}clearValue(){this.ignoreSelectedEventsFlag=!0,this.items.forEach(e=>e.selected=!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=[],this.emitComboboxChange(),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems(""),this.setFocus()}clearInputValue(){this.textInput.value.value="",this.filterText=""}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?te(t,e):null}getValue(){let e=this.selectedItems.map(t=>t.value?.toString());return e.length?e.length>1?e:e[0]:""}comboboxInViewport(){let e=this.el.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)}keyDownHandler(e){if(this.readOnly)return;let{key:t}=e;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):this.open?(this.open=!1,e.preventDefault()):!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1));break;case"ArrowLeft":(this.activeChipIndex!==-1||this.textInput.value.selectionStart===0)&&(this.previousChip(),e.preventDefault());break;case"ArrowRight":this.activeChipIndex!==-1&&(this.nextChip(),e.preventDefault());break;case"ArrowUp":this.filteredItems.length&&(e.preventDefault(),this.open&&this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView());break;case"ArrowDown":this.filteredItems.length&&(e.preventDefault(),this.open?this.shiftActiveItemIndex(1):(this.open=!0,this.ensureRecentSelectedItemIsActive()),this.comboboxInViewport()||this.el.scrollIntoView());break;case" ":!this.textInput.value.value&&!e.defaultPrevented&&(this.open||(this.open=!0,this.shiftActiveItemIndex(1)),e.preventDefault());break;case"Home":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveOrSelectedItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(this.filteredItems.length-1),this.scrollToActiveOrSelectedItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":!this.clearDisabled&&!this.open&&this.clearValue(),this.open=!1,e.preventDefault();break;case"Enter":if(this.open&&this.activeItemIndex>-1){let i=this.filteredItems[this.activeItemIndex];this.toggleSelection(i,!i.selected),e.preventDefault()}else this.activeChipIndex>-1?(this.removeActiveChip(),e.preventDefault()):this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):e.defaultPrevented||ce(this)&&e.preventDefault();break;case"Delete":case"Backspace":{if(this.selectionDisplay==="single"||this.selectionDisplay==="fit"&&this.selectedHiddenChipsCount>0)return;this.activeChipIndex>-1?(e.preventDefault(),this.removeActiveChip()):!this.filterText&&this.isMulti()&&(e.preventDefault(),this.removeLastChip());break}}}onBeforeOpen(){this.scrollToActiveOrSelectedItem(),this.calciteComboboxBeforeOpen.emit()}onOpen(){this.scrollToActiveOrSelectedItem(!0),this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit(),se(this)}async setMaxScrollerHeight(){let{listContainerEl:e,open:t,referenceEl:i}=this;if(!e||!t)return;await this.reposition(!0);let s=this.getMaxScrollerHeight();e.style.maxBlockSize=s>0?`${s}px`:"",e.style.inlineSize=`${i.clientWidth}px`,await this.reposition(!0)}calciteChipCloseHandler(e){this.open=!1;let t=this.items.find(i=>i===e);t&&this.toggleSelection(t,!1),this.calciteComboboxChipClose.emit()}clickHandler(e){if(this.readOnly)return;let t=e.composedPath();if(t.some(i=>i.tagName==="CALCITE-CHIP")){this.open=!1,e.preventDefault();return}if(t.some(i=>i.classList?.contains(Ce.button))){this.clearValue(),e.preventDefault();return}this.open=!this.open,this.ensureRecentSelectedItemIsActive()}ensureRecentSelectedItemIsActive(){let{selectedItems:e}=this,t=e.length===0?0:this.items.indexOf(e[e.length-1]);this.updateActiveItemIndex(t)}hideChip(e){e.classList.add(r.chipInvisible)}showChip(e){e.classList.remove(r.chipInvisible)}refreshChipDisplay({chipEls:e,availableHorizontalChipElSpace:t,chipContainerElGap:i}){e.forEach(s=>{if(!s.selected)this.hideChip(s);else{let l=I(s);if(l&&l<t){t-=l+i,this.showChip(s);return}}this.hideChip(s)})}async refreshSelectionDisplay(){if(await j(this),x(this.selectionMode)||!this.textInput.value)return;let{allSelectedIndicatorChipEl:e,chipContainerEl:t,selectionDisplay:i,placeholder:s,selectedIndicatorChipEl:l,textInput:{value:a}}=this,o=parseInt(getComputedStyle(t).gap.replace("px","")),n=I(t),{fontSize:h,fontFamily:p}=getComputedStyle(a),v=(q(s,`${h} ${p}`)||parseInt(ue))+o,f=I(e),y=I(l),$e=Math.max(f,y);if(this.setCompactSelectionDisplay({chipContainerElGap:o,chipContainerElWidth:n,inputWidth:v,largestSelectedIndicatorChipWidth:$e}),i==="fit"){let z=Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter(we=>we.closable),ye=Math.round(n-((this.selectedHiddenChipsCount>0?y:0)+o+v+o));this.refreshChipDisplay({availableHorizontalChipElSpace:ye,chipContainerElGap:o,chipEls:z}),this.setVisibleAndHiddenChips(z)}}setFloatingEl(e){this.floatingEl=e,C(this)}setCompactSelectionDisplay({chipContainerElGap:e,chipContainerElWidth:t,inputWidth:i,largestSelectedIndicatorChipWidth:s}){let l=Math.round(s+e+i);(!this.maxCompactBreakpoint||this.maxCompactBreakpoint<l)&&(this.maxCompactBreakpoint=l),this.compactSelectionDisplay=t<this.maxCompactBreakpoint}setContainerEl(e){e&&this.resizeObserver?.observe(e),this.listContainerEl=e,this.transitionEl=e}setChipContainerEl(e){e&&this.resizeObserver?.observe(e),this.chipContainerEl=e}setReferenceEl(e){this.referenceEl=e,C(this)}setAllSelectedIndicatorChipEl(e){this.allSelectedIndicatorChipEl=e}setSelectedIndicatorChipEl(e){this.selectedIndicatorChipEl=e}setVisibleAndHiddenChips(e){let t=0;e.forEach(s=>{s.selected&&!s.classList.contains(r.chipInvisible)&&t++}),t!==this.selectedVisibleChipsCount&&(this.selectedVisibleChipsCount=t);let i=this.getSelectedItems().length-t;i!==this.selectedHiddenChipsCount&&(this.selectedHiddenChipsCount=i)}getMaxScrollerHeight(){let e=[...this.groupItems,...this.getItems(!0)].filter(l=>!k(l)),{maxItems:t}=this,i=0,s=0;return e.length>=t&&e.forEach(l=>{if(i<t){let a=this.calculateScrollerHeight(l);s+=a,i+=1}}),s}calculateScrollerHeight(e){if(!e)return 0;let t=e.getBoundingClientRect().height,i=`:scope > ${D}, :scope > ${A}`,s=Array.from(e.querySelectorAll(i)).reduce((l,a)=>l+a.getBoundingClientRect().height,0);return t-s}inputHandler(e){let t=e.target.value;this.filterText=t}getItemsAndGroups(){return[...this.groupItems,...this.items]}toggleSelection(e,t){!e||this.selectionMode==="single-persist"&&e.selected&&e.value===this.value&&!t||(this.isMulti()?(e.selected=t,this.updateAncestors(e),this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach(i=>i.selected=i===e?t:!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput.value&&(this.textInput.value.value=$(e)),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(e){if(this.selectionMode!=="ancestors")return;let t=F(e),i=ge(e);e.selected?t.forEach(s=>{s.selected=!0}):(i.forEach(s=>s.selected=!1),[...t].forEach(s=>{T(s)||(s.selected=!1)}))}getFilteredItems(){return this.filterText===""?this.items:this.items.filter(e=>!k(e))}updateItems(){this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.groupData=this.getGroupData(),this.updateItemProps(),this.selectedItems=this.getSelectedItems(),this.filteredItems=this.getFilteredItems()}updateItemProps(){this.getItems(!0).forEach(e=>{e.selectionMode=this.selectionMode,e.scale=this.scale}),this.groupItems.forEach(e=>e.scale=this.scale),this.allowCustomValues||this.setMaxScrollerHeight(),this.groupItems.forEach((e,t,i)=>{t===0&&(e.afterEmptyGroup=!1);let s=i[t+1];s&&(s.afterEmptyGroup=e.children.length===0)})}getData(){return this.items.map(e=>({description:e.description,filterDisabled:e.filterDisabled,label:e.heading,metadata:e.metadata,shortHeading:e.shortHeading,textLabel:e.textLabel,el:e}))}getGroupData(){return this.groupItems.map(e=>({label:e.label,el:e}))}resetText(){this.textInput.value&&(this.textInput.value.value=""),this.filterText=""}getItems(e=!1){return Array.from(this.el.querySelectorAll(D)).filter(t=>e||!t.disabled)}getGroupItems(){return Array.from(this.el.querySelectorAll(A))}addCustomChip(e,t){let i=this.items.find(s=>(s.heading||s.textLabel)===e);if(i)this.toggleSelection(i,!0);else{let s=document.createElement("calcite-combobox-item");s.value=e,s.heading=e,this.el.prepend(s),this.updateItems(),this.toggleSelection(s,!0),this.open=!0,t&&this.setFocus()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex;this.activeChipIndex=t===-1?e:Math.max(t-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex+1;t>e?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=t,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){let e=this.selectedItems[this.activeChipIndex]?.guid;(e?this.referenceEl.querySelector(`#${ve}${e}`):null)?.setFocus()}scrollToActiveOrSelectedItem(e=!1){let t=e&&this.selectedItems&&this.selectedItems.length?this.selectedItems[0]:this.filteredItems[this.activeItemIndex];t&&t.scrollIntoView({block:"nearest"})}shiftActiveItemIndex(e){let{length:t}=this.filteredItems,i=(this.activeItemIndex+t+e)%t;this.updateActiveItemIndex(i),this.scrollToActiveOrSelectedItem()}updateActiveItemIndex(e){this.activeItemIndex=e;let t=null;this.filteredItems.forEach((i,s)=>{s===e?(i.active=!0,t=`${fe}${i.guid}`):i.active=!1}),this.activeDescendant=t,this.activeItemIndex>-1&&(this.activeChipIndex=-1)}isAllSelected(){return this.getItems().length===this.getSelectedItems().length}isMulti(){return!x(this.selectionMode)}comboboxFocusHandler(){this.disabled||this.textInput.value?.focus()}renderChips(){let{activeChipIndex:e,readOnly:t,scale:i,selectionMode:s,messages:l}=this;return this.selectedItems.map((a,o)=>{let n={chip:!0,"chip--active":e===o},h=[...F(a)].reverse(),p=$(a),v=[...h,a].map(y=>$(y)),f=s!=="ancestors"?p:v.join(" / ");return u(p,d`<calcite-chip .appearance=${t?"outline":"solid"} class=${c(n)} .closable=${!t} data-test-id=${`chip-${o}`} .icon=${a.icon} .iconFlipRtl=${a.iconFlipRtl} id=${(a.guid?`${ve}${a.guid}`:null)??m} .label=${f} .messageOverrides=${{dismissLabel:l.removeTag}} @focusin=${()=>this.activeChipIndex=o} @calciteChipClose=${()=>this.calciteChipCloseHandler(a)} .scale=${i} .selected=${a.selected} .tabIndex=${e===o?0:-1} title=${f??m} .value=${a.value}>${f}</calcite-chip>`)})}renderAllSelectedIndicatorChip(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i,setAllSelectedIndicatorChipEl:s}=this,l=this.messages.allSelected;return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:!(this.isAllSelected()&&!i&&!e)})} .label=${l} .scale=${t} title=${l??m} value ${g(s)}>${l}</calcite-chip>`}renderAllSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i}=this,s=this.messages.all||"All";return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:!(this.isAllSelected()&&!i&&e)})} .label=${s} .scale=${t} title=${s} value>${s}</calcite-chip>`}renderSelectedIndicatorChip(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l,selectedVisibleChipsCount:a,setSelectedIndicatorChipEl:o}=this,n,h;if(e)n=!0;else if(t==="single"){let p=i().length;this.isAllSelected()?n=!0:p>0?n=!1:n=!0,h=`${p} ${this.messages.selected}`}else t==="fit"&&(n=!!(this.isAllSelected()&&a===0||l===0),h=a>0?`+${l}`:`${l} ${this.messages.selected}`);return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:n})} .label=${h} .scale=${s} title=${h??m} value ${g(o)}>${h}</calcite-chip>`}renderSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l}=this,a,o;if(e){let n=i().length;this.isAllSelected()?a=!0:t==="fit"?(a=!(l>0),o=`${l||0}`):t==="single"&&(a=!(n>0),o=`${n}`)}else a=!0;return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:a})} .label=${o} .scale=${s} title=${o??m} value>${o}</calcite-chip>`}renderInput(){let{guid:e,disabled:t,placeholder:i,selectionMode:s,selectedItems:l,open:a}=this,o=x(s),n=l[0],h=!a&&o&&!!n&&!this.filterText;return d`<span class=${c({"input-wrap":!0,"input-wrap--single":o})}>${h&&u("label",d`<span class=${c({label:!0,"label--icon":!!n?.icon})}>${$(n)}</span>`)||""}${u("input",d`<input aria-activedescendant=${this.activeDescendant??m} aria-controls=${`${O}${e}`} aria-errormessage=${H.validationMessage} aria-owns=${`${O}${e}`} aria-autocomplete=list .ariaExpanded=${a} aria-haspopup=listbox .ariaInvalid=${this.status==="invalid"} .ariaLabel=${ne(this)} class=${c({[r.input]:!0,"input--single":!0,[r.inputHidden]:h,"input--icon":this.showingInlineIcon&&!!this.placeholderIcon})} data-test-id=input .disabled=${t} .id=${`${Ie}${e}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${i??m} .readOnly=${this.readOnly} role=combobox .tabIndex=${this.activeChipIndex===-1?0:-1} type=text .value=${L(this.filterText??"")} ${g(this.textInput)}>`)}</span>`}renderListBoxOptions(){return this.filteredItems.map(e=>d`<li .ariaLabel=${e.label} .ariaSelected=${e.selected} id=${(e.guid?`${fe}${e.guid}`:null)??m} role=option tabindex=-1>${e.heading||e.textLabel}</li>`)}renderFloatingUIContainer(){let{setFloatingEl:e,setContainerEl:t,open:i}=this,s={[r.listContainer]:!0,[E.animation]:!0,[E.animationActive]:i};return d`<div aria-hidden=true class=${c(r.floatingUIContainer)} ${g(e)}><div class=${c(s)} ${g(t)}><ul class=${c({list:!0,"list--hide":!i})}><slot></slot></ul></div></div>`}renderSelectedOrPlaceholderIcon(){let{open:e,placeholderIcon:t,placeholderIconFlipRtl:i,selectedItems:s}=this,l=s[0],a=l?.icon,o=t&&(e||!l);return this.showingInlineIcon&&u("selected-placeholder-icon",d`<span class="icon-start"><calcite-icon class=${c({[r.selectedIcon]:!o,[r.placeholderIcon]:o})} .flipRtl=${o?i:l.iconFlipRtl} .icon=${o?t:a} .scale=${w(this.scale)}></calcite-icon></span>`)||""}renderChevronIcon(){let{open:e}=this;return u("chevron",d`<span class="icon-end"><calcite-icon class=${c(r.icon)} .icon=${e?"chevron-up":"chevron-down"} .scale=${w(this.scale)}></calcite-icon></span>`)}render(){let{selectionDisplay:e,guid:t,label:i,open:s,readOnly:l}=this,a=x(this.selectionMode),o=e==="all",n=e==="single",h=!a&&e==="fit",p=!this.clearDisabled&&this.value?.length>0;return K({disabled:this.disabled,children:d`<div aria-live=polite class=${c({wrapper:!0,"wrapper--single":a||!this.selectedItems.length,"wrapper--active":s})} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${g(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${u("grid",d`<div class=${c({"grid-input":!0,[r.selectionDisplayFit]:h,[r.selectionDisplaySingle]:n})} ${g(this.setChipContainerEl)}>${!a&&!n&&this.renderChips()||""}${!a&&!o&&[this.renderSelectedIndicatorChip(),this.renderSelectedIndicatorChipCompact(),this.renderAllSelectedIndicatorChip(),this.renderAllSelectedIndicatorChipCompact()]||""}<label class=${c(r.screenReadersOnly)} .htmlFor=${`${Ie}${t}`} .id=${`${xe}${t}`}>${i}</label>${this.renderInput()}</div>`)}${!l&&p?u("close-button",Se({disabled:this.disabled,label:this.messages.clear,scale:this.scale})):null}${!l&&this.renderChevronIcon()||""}</div><ul aria-labelledby=${`${xe}${t}`} aria-multiselectable=true class=${c(r.screenReadersOnly)} .id=${`${O}${t}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${pe({component:this})}${this.validationMessage&&this.status==="invalid"?me({icon:this.validationIcon,id:H.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};U("calcite-combobox",V);export{V as Combobox};
3
+ v3.0.2 */
4
+ import{d as ue}from"./CVRPAZHG.js";import{a as be}from"./PXWJSYPX.js";import{a as D,b as A,c as r,d as H,f as F,g as ge,h as T,j as x,k as $}from"./6VYYMBFV.js";import{a as me}from"./JD225EOA.js";import{a as ce,c as re,e as he,f as de,h as pe}from"./R4XN3TM5.js";import{c as ae,d as oe,e as ne}from"./ZYEB6OOM.js";import{a as ee,c as E,d as te,e as ie,f as se,g as C,h as le}from"./H7Q3GS6I.js";import"./VI3KXLGC.js";import{a as Z}from"./HYAVXYZ2.js";import{a as J,b as K}from"./WRT5VFG2.js";import{a as w,c as k}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{a as u}from"./NWMFN6P5.js";import{a as X,b as Y}from"./42EYBCUV.js";import{a as S}from"./77BUHP3U.js";import{a as Q}from"./SMJSXUYT.js";import{a as _,b as g}from"./FC7N6LLB.js";import{f as I,i as q}from"./GO4QOK2G.js";import{a as j,b as N}from"./PBIOUIAG.js";import{a as W}from"./P7S34RN4.js";import{B,D as G,J as U,e as P,f as d,j as m,u as L,v as b,w as R,x as c}from"./63TOND25.js";var Ce={button:"x-button"},Se=({disabled:M,key:e,label:t,scale:i})=>u(e,d`<button .ariaLabel=${t} class=${c(Ce.button)} .disabled=${M} tabindex=-1 type=button><calcite-icon icon=x .scale=${w(i)}></calcite-icon></button>`),ke=P`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) }:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-spacing-unit-s: .5rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) }:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-spacing-unit-s: .75rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) }:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-combobox-item-spacing-unit-s);margin-inline-end:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.placeholder-icon{color:var(--calcite-color-text-3)}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-color-text-3)}.floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@media (forced-colors: active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width, 100%)}.list{margin:0;display:block;padding:0}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}`,fe="combobox-item-",ve="combobox-chip-",xe="combobox-label-",O="combobox-listbox-",Ie="combobox-input-",V=class extends R{constructor(){super(),this.filterItems=(()=>{let e=(t,i)=>t&&i.some(({el:s})=>t===s);return X((t,i=!1,s=!0)=>{let l=be([...this.data,...this.groupData],t,this.effectiveFilterProps),a=this.getItemsAndGroups(),o=t==="";a.forEach(n=>{if(o){n.itemHidden=!1;return}let h=!e(n,l);n.itemHidden=h;let[p,v]=n.ancestors;(e(p,l)||e(v,l))&&(n.itemHidden=!1),h||n.ancestors.forEach(f=>f.itemHidden=!1)}),this.filterTextMatchPattern=this.filterText&&new RegExp(`(${Y(this.filterText)})`,"i"),this.filteredItems=this.getFilteredItems(),this.filteredItems.forEach(n=>{n.filterTextMatchPattern=this.filterTextMatchPattern}),i&&(this.open=this.filterText.trim().length>0&&this.filteredItems.length>0),s&&this.calciteComboboxFilterChange.emit()},G.filter)})(),this._filterText="",this.getSelectedItems=()=>{if(!this.isMulti()){let e=this.items.find(({selected:t})=>t);return e?[e]:[]}return this.items.filter(e=>e.selected&&(this.selectionMode!=="ancestors"||!T(e))).sort((e,t)=>{let i=this.selectedItems.indexOf(e),s=this.selectedItems.indexOf(t);return i>-1&&s>-1?i-s:s-i})},this.groupItems=[],this.guid=W(),this.ignoreSelectedEventsFlag=!1,this.inputHeight=0,this.internalValueChangeFlag=!1,this.items=[],this.mutationObserver=S("mutation",()=>this.updateItems()),this.onLabelClick=()=>{this.setFocus()},this.transitionProp="opacity",this.placement=ee,this.resizeObserver=S("resize",()=>{this.setMaxScrollerHeight(),this.refreshSelectionDisplay()}),this._selectedItems=[],this.textInput=_(),this._value=null,this.activeChipIndex=-1,this.activeDescendant="",this.activeItemIndex=-1,this.compactSelectionDisplay=!1,this.selectedHiddenChipsCount=0,this.selectedVisibleChipsCount=0,this.clearDisabled=!1,this.disabled=!1,this.filteredItems=[],this.maxItems=0,this.messages=Q(),this.open=!1,this.overlayPositioning="absolute",this.placeholderIconFlipRtl=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.selectionDisplay="all",this.selectionMode="multiple",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteComboboxBeforeClose=b({cancelable:!1}),this.calciteComboboxBeforeOpen=b({cancelable:!1}),this.calciteComboboxChange=b({cancelable:!1}),this.calciteComboboxChipClose=b({cancelable:!1}),this.calciteComboboxClose=b({cancelable:!1}),this.calciteComboboxFilterChange=b({cancelable:!1}),this.calciteComboboxOpen=b({cancelable:!1}),this.listenOn(document,"click",this.documentClickHandler),this.listen("calciteComboboxItemChange",this.calciteComboboxItemChangeHandler),this.listen("calciteInternalComboboxItemChange",this.calciteInternalComboboxItemChangeHandler),this.listen("click",this.comboboxFocusHandler)}static{this.properties={activeChipIndex:16,activeDescendant:16,activeItemIndex:16,compactSelectionDisplay:16,selectedHiddenChipsCount:16,selectedVisibleChipsCount:16,allowCustomValues:7,clearDisabled:7,disabled:7,filterText:3,filterProps:0,filteredItems:0,flipPlacements:0,form:3,label:1,maxItems:11,messageOverrides:0,name:3,open:7,overlayPositioning:3,placeholder:1,placeholderIcon:3,placeholderIconFlipRtl:7,readOnly:7,required:7,scale:3,selectedItems:0,selectionDisplay:3,selectionMode:3,status:3,validationIcon:[3,{converter:B}],validationMessage:1,validity:0,value:1}}static{this.styles=ke}emitComboboxChange(){this.calciteComboboxChange.emit()}get effectiveFilterProps(){return this.filterProps?this.filterProps.filter(e=>e!=="el"):["description","label","metadata","shortHeading","textLabel"]}get showingInlineIcon(){let{placeholderIcon:e,selectionMode:t,selectedItems:i,open:s}=this,l=i[0],a=l?.icon,o=x(t);return!s&&l?!!a&&o:!!e&&(!l||o)}get filterText(){return this._filterText}set filterText(e){let t=this._filterText;e!==t&&(this._filterText=e,this.filterTextChange(e))}get selectedItems(){return this._selectedItems}set selectedItems(e){let t=this._selectedItems;e!==t&&(this._selectedItems=e,this.selectedItemsHandler())}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueHandler(e))}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:l,filteredFlipPlacements:a}=this;return ie(this,{floatingEl:t,referenceEl:i,overlayPositioning:l,placement:s,flipPlacements:a,type:"menu"},e)}async setFocus(){await N(this),this.textInput.value?.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){super.connectedCallback(),ae(this),re(this),this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),C(this)}async load(){}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("maxItems")&&(this.hasUpdated||this.maxItems!==0)&&this.setMaxScrollerHeight(),e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(e.has("selectionMode")||e.has("scale"))&&this.updateItems(),e.has("flipPlacements")&&this.flipPlacementsHandler()}updated(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(!0),this.inputHeight=this.el.offsetHeight),J(this),this.refreshSelectionDisplay()}loaded(){de(this,this.getValue()),C(this),this.updateItems(),this.filterItems(this.filterText,!1,!1)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),oe(this),he(this),le(this)}filterTextChange(e){this.updateActiveItemIndex(-1),this.filterItems(e,!0)}openHandler(){Z(this),!this.disabled&&this.setMaxScrollerHeight()}handleDisabledChange(e){e||(this.open=!1)}valueHandler(e){this.internalValueChangeFlag||(this.getItems().forEach(t=>{t.selected=Array.isArray(e)?e.includes(t.value):e===t.value}),this.updateItems())}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}async documentClickHandler(e){this.disabled||e.composedPath().includes(this.el)||(await this.componentOnReady(),!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1)),this.allowCustomValues&&this.filterText.trim().length&&this.addCustomChip(this.filterText),this.open=!1)}calciteComboboxItemChangeHandler(e){if(this.ignoreSelectedEventsFlag)return;let t=e.target,i=this.filteredItems.indexOf(t);this.updateActiveItemIndex(i),this.toggleSelection(t,t.selected)}calciteInternalComboboxItemChangeHandler(e){e.stopPropagation(),this.hasUpdated&&this.updateItems()}clearValue(){this.ignoreSelectedEventsFlag=!0,this.items.forEach(e=>e.selected=!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=[],this.emitComboboxChange(),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems(""),this.setFocus()}clearInputValue(){this.textInput.value.value="",this.filterText=""}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?te(t,e):null}getValue(){let e=this.selectedItems.map(t=>t.value?.toString());return e.length?e.length>1?e:e[0]:""}comboboxInViewport(){let e=this.el.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)}keyDownHandler(e){if(this.readOnly)return;let{key:t}=e;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):this.open?(this.open=!1,e.preventDefault()):!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1));break;case"ArrowLeft":(this.activeChipIndex!==-1||this.textInput.value.selectionStart===0)&&(this.previousChip(),e.preventDefault());break;case"ArrowRight":this.activeChipIndex!==-1&&(this.nextChip(),e.preventDefault());break;case"ArrowUp":this.filteredItems.length&&(e.preventDefault(),this.open&&this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView());break;case"ArrowDown":this.filteredItems.length&&(e.preventDefault(),this.open?this.shiftActiveItemIndex(1):(this.open=!0,this.ensureRecentSelectedItemIsActive()),this.comboboxInViewport()||this.el.scrollIntoView());break;case" ":!this.textInput.value.value&&!e.defaultPrevented&&(this.open||(this.open=!0,this.shiftActiveItemIndex(1)),e.preventDefault());break;case"Home":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveOrSelectedItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(this.filteredItems.length-1),this.scrollToActiveOrSelectedItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":!this.clearDisabled&&!this.open&&this.clearValue(),this.open=!1,e.preventDefault();break;case"Enter":if(this.open&&this.activeItemIndex>-1){let i=this.filteredItems[this.activeItemIndex];this.toggleSelection(i,!i.selected),e.preventDefault()}else this.activeChipIndex>-1?(this.removeActiveChip(),e.preventDefault()):this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):e.defaultPrevented||ce(this)&&e.preventDefault();break;case"Delete":case"Backspace":{if(this.selectionDisplay==="single"||this.selectionDisplay==="fit"&&this.selectedHiddenChipsCount>0)return;this.activeChipIndex>-1?(e.preventDefault(),this.removeActiveChip()):!this.filterText&&this.isMulti()&&(e.preventDefault(),this.removeLastChip());break}}}onBeforeOpen(){this.scrollToActiveOrSelectedItem(),this.calciteComboboxBeforeOpen.emit()}onOpen(){this.scrollToActiveOrSelectedItem(!0),this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit(),se(this)}async setMaxScrollerHeight(){let{listContainerEl:e,open:t,referenceEl:i}=this;if(!e||!t)return;await this.reposition(!0);let s=this.getMaxScrollerHeight();e.style.maxBlockSize=s>0?`${s}px`:"",e.style.inlineSize=`${i.clientWidth}px`,await this.reposition(!0)}calciteChipCloseHandler(e){this.open=!1;let t=this.items.find(i=>i===e);t&&this.toggleSelection(t,!1),this.calciteComboboxChipClose.emit()}clickHandler(e){if(this.readOnly)return;let t=e.composedPath();if(t.some(i=>i.tagName==="CALCITE-CHIP")){this.open=!1,e.preventDefault();return}if(t.some(i=>i.classList?.contains(Ce.button))){this.clearValue(),e.preventDefault();return}this.open=!this.open,this.ensureRecentSelectedItemIsActive()}ensureRecentSelectedItemIsActive(){let{selectedItems:e}=this,t=e.length===0?0:this.items.indexOf(e[e.length-1]);this.updateActiveItemIndex(t)}hideChip(e){e.classList.add(r.chipInvisible)}showChip(e){e.classList.remove(r.chipInvisible)}refreshChipDisplay({chipEls:e,availableHorizontalChipElSpace:t,chipContainerElGap:i}){e.forEach(s=>{if(!s.selected)this.hideChip(s);else{let l=I(s);if(l&&l<t){t-=l+i,this.showChip(s);return}}this.hideChip(s)})}async refreshSelectionDisplay(){if(await j(this),x(this.selectionMode)||!this.textInput.value)return;let{allSelectedIndicatorChipEl:e,chipContainerEl:t,selectionDisplay:i,placeholder:s,selectedIndicatorChipEl:l,textInput:{value:a}}=this,o=parseInt(getComputedStyle(t).gap.replace("px","")),n=I(t),{fontSize:h,fontFamily:p}=getComputedStyle(a),v=(q(s,`${h} ${p}`)||parseInt(ue))+o,f=I(e),y=I(l),$e=Math.max(f,y);if(this.setCompactSelectionDisplay({chipContainerElGap:o,chipContainerElWidth:n,inputWidth:v,largestSelectedIndicatorChipWidth:$e}),i==="fit"){let z=Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter(we=>we.closable),ye=Math.round(n-((this.selectedHiddenChipsCount>0?y:0)+o+v+o));this.refreshChipDisplay({availableHorizontalChipElSpace:ye,chipContainerElGap:o,chipEls:z}),this.setVisibleAndHiddenChips(z)}}setFloatingEl(e){this.floatingEl=e,C(this)}setCompactSelectionDisplay({chipContainerElGap:e,chipContainerElWidth:t,inputWidth:i,largestSelectedIndicatorChipWidth:s}){let l=Math.round(s+e+i);(!this.maxCompactBreakpoint||this.maxCompactBreakpoint<l)&&(this.maxCompactBreakpoint=l),this.compactSelectionDisplay=t<this.maxCompactBreakpoint}setContainerEl(e){e&&this.resizeObserver?.observe(e),this.listContainerEl=e,this.transitionEl=e}setChipContainerEl(e){e&&this.resizeObserver?.observe(e),this.chipContainerEl=e}setReferenceEl(e){this.referenceEl=e,C(this)}setAllSelectedIndicatorChipEl(e){this.allSelectedIndicatorChipEl=e}setSelectedIndicatorChipEl(e){this.selectedIndicatorChipEl=e}setVisibleAndHiddenChips(e){let t=0;e.forEach(s=>{s.selected&&!s.classList.contains(r.chipInvisible)&&t++}),t!==this.selectedVisibleChipsCount&&(this.selectedVisibleChipsCount=t);let i=this.getSelectedItems().length-t;i!==this.selectedHiddenChipsCount&&(this.selectedHiddenChipsCount=i)}getMaxScrollerHeight(){let e=[...this.groupItems,...this.getItems(!0)].filter(l=>!k(l)),{maxItems:t}=this,i=0,s=0;return e.length>=t&&e.forEach(l=>{if(i<t){let a=this.calculateScrollerHeight(l);s+=a,i+=1}}),s}calculateScrollerHeight(e){if(!e)return 0;let t=e.getBoundingClientRect().height,i=`:scope > ${D}, :scope > ${A}`,s=Array.from(e.querySelectorAll(i)).reduce((l,a)=>l+a.getBoundingClientRect().height,0);return t-s}inputHandler(e){let t=e.target.value;this.filterText=t}getItemsAndGroups(){return[...this.groupItems,...this.items]}toggleSelection(e,t){!e||this.selectionMode==="single-persist"&&e.selected&&e.value===this.value&&!t||(this.isMulti()?(e.selected=t,this.updateAncestors(e),this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach(i=>i.selected=i===e?t:!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput.value&&(this.textInput.value.value=$(e)),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(e){if(this.selectionMode!=="ancestors")return;let t=F(e),i=ge(e);e.selected?t.forEach(s=>{s.selected=!0}):(i.forEach(s=>s.selected=!1),[...t].forEach(s=>{T(s)||(s.selected=!1)}))}getFilteredItems(){return this.filterText===""?this.items:this.items.filter(e=>!k(e))}updateItems(){this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.groupData=this.getGroupData(),this.updateItemProps(),this.selectedItems=this.getSelectedItems(),this.filteredItems=this.getFilteredItems()}updateItemProps(){this.getItems(!0).forEach(e=>{e.selectionMode=this.selectionMode,e.scale=this.scale}),this.groupItems.forEach(e=>e.scale=this.scale),this.allowCustomValues||this.setMaxScrollerHeight(),this.groupItems.forEach((e,t,i)=>{t===0&&(e.afterEmptyGroup=!1);let s=i[t+1];s&&(s.afterEmptyGroup=e.children.length===0)})}getData(){return this.items.map(e=>({description:e.description,filterDisabled:e.filterDisabled,label:e.heading,metadata:e.metadata,shortHeading:e.shortHeading,textLabel:e.textLabel,el:e}))}getGroupData(){return this.groupItems.map(e=>({label:e.label,el:e}))}resetText(){this.textInput.value&&(this.textInput.value.value=""),this.filterText=""}getItems(e=!1){return Array.from(this.el.querySelectorAll(D)).filter(t=>e||!t.disabled)}getGroupItems(){return Array.from(this.el.querySelectorAll(A))}addCustomChip(e,t){let i=this.items.find(s=>(s.heading||s.textLabel)===e);if(i)this.toggleSelection(i,!0);else{let s=document.createElement("calcite-combobox-item");s.value=e,s.heading=e,this.el.prepend(s),this.updateItems(),this.toggleSelection(s,!0),this.open=!0,t&&this.setFocus()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex;this.activeChipIndex=t===-1?e:Math.max(t-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex+1;t>e?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=t,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){let e=this.selectedItems[this.activeChipIndex]?.guid;(e?this.referenceEl.querySelector(`#${ve}${e}`):null)?.setFocus()}scrollToActiveOrSelectedItem(e=!1){let t=e&&this.selectedItems&&this.selectedItems.length?this.selectedItems[0]:this.filteredItems[this.activeItemIndex];t&&t.scrollIntoView({block:"nearest"})}shiftActiveItemIndex(e){let{length:t}=this.filteredItems,i=(this.activeItemIndex+t+e)%t;this.updateActiveItemIndex(i),this.scrollToActiveOrSelectedItem()}updateActiveItemIndex(e){this.activeItemIndex=e;let t=null;this.filteredItems.forEach((i,s)=>{s===e?(i.active=!0,t=`${fe}${i.guid}`):i.active=!1}),this.activeDescendant=t,this.activeItemIndex>-1&&(this.activeChipIndex=-1)}isAllSelected(){return this.getItems().length===this.getSelectedItems().length}isMulti(){return!x(this.selectionMode)}comboboxFocusHandler(){this.disabled||this.textInput.value?.focus()}renderChips(){let{activeChipIndex:e,readOnly:t,scale:i,selectionMode:s,messages:l}=this;return this.selectedItems.map((a,o)=>{let n={chip:!0,"chip--active":e===o},h=[...F(a)].reverse(),p=$(a),v=[...h,a].map(y=>$(y)),f=s!=="ancestors"?p:v.join(" / ");return u(p,d`<calcite-chip .appearance=${t?"outline":"solid"} class=${c(n)} .closable=${!t} data-test-id=${`chip-${o}`} .icon=${a.icon} .iconFlipRtl=${a.iconFlipRtl} id=${(a.guid?`${ve}${a.guid}`:null)??m} .label=${f} .messageOverrides=${{dismissLabel:l.removeTag}} @focusin=${()=>this.activeChipIndex=o} @calciteChipClose=${()=>this.calciteChipCloseHandler(a)} .scale=${i} .selected=${a.selected} .tabIndex=${e===o?0:-1} title=${f??m} .value=${a.value}>${f}</calcite-chip>`)})}renderAllSelectedIndicatorChip(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i,setAllSelectedIndicatorChipEl:s}=this,l=this.messages.allSelected;return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:!(this.isAllSelected()&&!i&&!e)})} .label=${l} .scale=${t} title=${l??m} value ${g(s)}>${l}</calcite-chip>`}renderAllSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i}=this,s=this.messages.all||"All";return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:!(this.isAllSelected()&&!i&&e)})} .label=${s} .scale=${t} title=${s} value>${s}</calcite-chip>`}renderSelectedIndicatorChip(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l,selectedVisibleChipsCount:a,setSelectedIndicatorChipEl:o}=this,n,h;if(e)n=!0;else if(t==="single"){let p=i().length;this.isAllSelected()?n=!0:p>0?n=!1:n=!0,h=`${p} ${this.messages.selected}`}else t==="fit"&&(n=!!(this.isAllSelected()&&a===0||l===0),h=a>0?`+${l}`:`${l} ${this.messages.selected}`);return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:n})} .label=${h} .scale=${s} title=${h??m} value ${g(o)}>${h}</calcite-chip>`}renderSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l}=this,a,o;if(e){let n=i().length;this.isAllSelected()?a=!0:t==="fit"?(a=!(l>0),o=`${l||0}`):t==="single"&&(a=!(n>0),o=`${n}`)}else a=!0;return d`<calcite-chip class=${c({chip:!0,[r.chipInvisible]:a})} .label=${o} .scale=${s} title=${o??m} value>${o}</calcite-chip>`}renderInput(){let{guid:e,disabled:t,placeholder:i,selectionMode:s,selectedItems:l,open:a}=this,o=x(s),n=l[0],h=!a&&o&&!!n&&!this.filterText;return d`<span class=${c({"input-wrap":!0,"input-wrap--single":o})}>${h&&u("label",d`<span class=${c({label:!0,"label--icon":!!n?.icon})}>${$(n)}</span>`)||""}${u("input",d`<input aria-activedescendant=${this.activeDescendant??m} aria-controls=${`${O}${e}`} aria-errormessage=${H.validationMessage} aria-owns=${`${O}${e}`} aria-autocomplete=list .ariaExpanded=${a} aria-haspopup=listbox .ariaInvalid=${this.status==="invalid"} .ariaLabel=${ne(this)} class=${c({[r.input]:!0,"input--single":!0,[r.inputHidden]:h,"input--icon":this.showingInlineIcon&&!!this.placeholderIcon})} data-test-id=input .disabled=${t} .id=${`${Ie}${e}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${i??m} .readOnly=${this.readOnly} role=combobox .tabIndex=${this.activeChipIndex===-1?0:-1} type=text .value=${L(this.filterText??"")} ${g(this.textInput)}>`)}</span>`}renderListBoxOptions(){return this.filteredItems.map(e=>d`<li .ariaLabel=${e.label} .ariaSelected=${e.selected} id=${(e.guid?`${fe}${e.guid}`:null)??m} role=option tabindex=-1>${e.heading||e.textLabel}</li>`)}renderFloatingUIContainer(){let{setFloatingEl:e,setContainerEl:t,open:i}=this,s={[r.listContainer]:!0,[E.animation]:!0,[E.animationActive]:i};return d`<div aria-hidden=true class=${c(r.floatingUIContainer)} ${g(e)}><div class=${c(s)} ${g(t)}><ul class=${c({list:!0,"list--hide":!i})}><slot></slot></ul></div></div>`}renderSelectedOrPlaceholderIcon(){let{open:e,placeholderIcon:t,placeholderIconFlipRtl:i,selectedItems:s}=this,l=s[0],a=l?.icon,o=t&&(e||!l);return this.showingInlineIcon&&u("selected-placeholder-icon",d`<span class="icon-start"><calcite-icon class=${c({[r.selectedIcon]:!o,[r.placeholderIcon]:o})} .flipRtl=${o?i:l.iconFlipRtl} .icon=${o?t:a} .scale=${w(this.scale)}></calcite-icon></span>`)||""}renderChevronIcon(){let{open:e}=this;return u("chevron",d`<span class="icon-end"><calcite-icon class=${c(r.icon)} .icon=${e?"chevron-up":"chevron-down"} .scale=${w(this.scale)}></calcite-icon></span>`)}render(){let{selectionDisplay:e,guid:t,label:i,open:s,readOnly:l}=this,a=x(this.selectionMode),o=e==="all",n=e==="single",h=!a&&e==="fit",p=!this.clearDisabled&&this.value?.length>0;return K({disabled:this.disabled,children:d`<div aria-live=polite class=${c({wrapper:!0,"wrapper--single":a||!this.selectedItems.length,"wrapper--active":s})} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${g(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${u("grid",d`<div class=${c({"grid-input":!0,[r.selectionDisplayFit]:h,[r.selectionDisplaySingle]:n})} ${g(this.setChipContainerEl)}>${!a&&!n&&this.renderChips()||""}${!a&&!o&&[this.renderSelectedIndicatorChip(),this.renderSelectedIndicatorChipCompact(),this.renderAllSelectedIndicatorChip(),this.renderAllSelectedIndicatorChipCompact()]||""}<label class=${c(r.screenReadersOnly)} .htmlFor=${`${Ie}${t}`} .id=${`${xe}${t}`}>${i}</label>${this.renderInput()}</div>`)}${!l&&p?u("close-button",Se({disabled:this.disabled,label:this.messages.clear,scale:this.scale})):null}${!l&&this.renderChevronIcon()||""}</div><ul aria-labelledby=${`${xe}${t}`} aria-multiselectable=true class=${c(r.screenReadersOnly)} .id=${`${O}${t}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${pe({component:this})}${this.validationMessage&&this.status==="invalid"?me({icon:this.validationIcon,id:H.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};U("calcite-combobox",V);export{V as Combobox};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{b as G}from"./7CQS22FK.js";import{e as R,f as _,g as I}from"./LWAXFXVK.js";var W={exports:{}},X={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},P={exports:{}},ne=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},te=ne,oe=Array.prototype.concat,ae=Array.prototype.slice,q=P.exports=function(e){for(var r=[],n=0,t=e.length;n<t;n++){var o=e[n];te(o)?r=oe.call(r,ae.call(o)):r.push(o)}return r};q.wrap=function(e){return function(){return e(q(arguments))}};var se=P.exports,x=X,H=se,U=Object.hasOwnProperty,D=Object.create(null);for(C in x)U.call(x,C)&&(D[x[C]]=C);var C,y=W.exports={to:{},get:{}};y.get=function(e){var r=e.substring(0,3).toLowerCase(),n,t;switch(r){case"hsl":n=y.get.hsl(e),t="hsl";break;case"hwb":n=y.get.hwb(e),t="hwb";break;default:n=y.get.rgb(e),t="rgb";break}return n?{model:t,value:n}:null};y.get.rgb=function(e){if(!e)return null;var r=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,t=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,a=[0,0,0,1],l,i,h;if(l=e.match(n)){for(h=l[2],l=l[1],i=0;i<3;i++){var p=i*2;a[i]=parseInt(l.slice(p,p+2),16)}h&&(a[3]=parseInt(h,16)/255)}else if(l=e.match(r)){for(l=l[1],h=l[3],i=0;i<3;i++)a[i]=parseInt(l[i]+l[i],16);h&&(a[3]=parseInt(h+h,16)/255)}else if(l=e.match(t)){for(i=0;i<3;i++)a[i]=parseInt(l[i+1],0);l[4]&&(l[5]?a[3]=parseFloat(l[4])*.01:a[3]=parseFloat(l[4]))}else if(l=e.match(o)){for(i=0;i<3;i++)a[i]=Math.round(parseFloat(l[i+1])*2.55);l[4]&&(l[5]?a[3]=parseFloat(l[4])*.01:a[3]=parseFloat(l[4]))}else return(l=e.match(s))?l[1]==="transparent"?[0,0,0,0]:U.call(x,l[1])?(a=x[l[1]],a[3]=1,a):null:null;for(i=0;i<3;i++)a[i]=w(a[i],0,255);return a[3]=w(a[3],0,1),a};y.get.hsl=function(e){if(!e)return null;var r=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(r);if(n){var t=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,s=w(parseFloat(n[2]),0,100),a=w(parseFloat(n[3]),0,100),l=w(isNaN(t)?1:t,0,1);return[o,s,a,l]}return null};y.get.hwb=function(e){if(!e)return null;var r=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(r);if(n){var t=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,s=w(parseFloat(n[2]),0,100),a=w(parseFloat(n[3]),0,100),l=w(isNaN(t)?1:t,0,1);return[o,s,a,l]}return null};y.to.hex=function(){var e=H(arguments);return"#"+j(e[0])+j(e[1])+j(e[2])+(e[3]<1?j(Math.round(e[3]*255)):"")};y.to.rgb=function(){var e=H(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};y.to.rgb.percent=function(){var e=H(arguments),r=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),t=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+r+"%, "+n+"%, "+t+"%)":"rgba("+r+"%, "+n+"%, "+t+"%, "+e[3]+")"};y.to.hsl=function(){var e=H(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};y.to.hwb=function(){var e=H(arguments),r="";return e.length>=4&&e[3]!==1&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"};y.to.keyword=function(e){return D[e.slice(0,3)]};function w(e,r,n){return Math.min(Math.max(r,e),n)}function j(e){var r=Math.round(e).toString(16).toUpperCase();return r.length<2?"0"+r:r}var le=W.exports,A=X,J={};for(let e of Object.keys(A))J[A[e]]=e;var c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},K=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:n}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:r}),Object.defineProperty(c[e],"labels",{value:n})}c.rgb.hsl=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255,o=Math.min(r,n,t),s=Math.max(r,n,t),a=s-o,l,i;s===o?l=0:r===s?l=(n-t)/a:n===s?l=2+(t-r)/a:t===s&&(l=4+(r-n)/a),l=Math.min(l*60,360),l<0&&(l+=360);let h=(o+s)/2;return s===o?i=0:h<=.5?i=a/(s+o):i=a/(2-s-o),[l,i*100,h*100]};c.rgb.hsv=function(e){let r,n,t,o,s,a=e[0]/255,l=e[1]/255,i=e[2]/255,h=Math.max(a,l,i),p=h-Math.min(a,l,i),v=function(re){return(h-re)/6/p+1/2};return p===0?(o=0,s=0):(s=p/h,r=v(a),n=v(l),t=v(i),a===h?o=t-n:l===h?o=1/3+r-t:i===h&&(o=2/3+n-r),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,h*100]};c.rgb.hwb=function(e){let r=e[0],n=e[1],t=e[2],o=c.rgb.hsl(e)[0],s=1/255*Math.min(r,Math.min(n,t));return t=1-1/255*Math.max(r,Math.max(n,t)),[o,s*100,t*100]};c.rgb.cmyk=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255,o=Math.min(1-r,1-n,1-t),s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,l=(1-t-o)/(1-o)||0;return[s*100,a*100,l*100,o*100]};function ie(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}c.rgb.keyword=function(e){let r=J[e];if(r)return r;let n=1/0,t;for(let o of Object.keys(A)){let s=A[o],a=ie(e,s);a<n&&(n=a,t=o)}return t};c.keyword.rgb=function(e){return A[e]};c.rgb.xyz=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;let o=r*.4124+n*.3576+t*.1805,s=r*.2126+n*.7152+t*.0722,a=r*.0193+n*.1192+t*.9505;return[o*100,s*100,a*100]};c.rgb.lab=function(e){let r=c.rgb.xyz(e),n=r[0],t=r[1],o=r[2];n/=95.047,t/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*t-16,a=500*(n-t),l=200*(t-o);return[s,a,l]};c.hsl.rgb=function(e){let r=e[0]/360,n=e[1]/100,t=e[2]/100,o,s,a;if(n===0)return a=t*255,[a,a,a];t<.5?o=t*(1+n):o=t+n-t*n;let l=2*t-o,i=[0,0,0];for(let h=0;h<3;h++)s=r+1/3*-(h-1),s<0&&s++,s>1&&s--,6*s<1?a=l+(o-l)*6*s:2*s<1?a=o:3*s<2?a=l+(o-l)*(2/3-s)*6:a=l,i[h]=a*255;return i};c.hsl.hsv=function(e){let r=e[0],n=e[1]/100,t=e[2]/100,o=n,s=Math.max(t,.01);t*=2,n*=t<=1?t:2-t,o*=s<=1?s:2-s;let a=(t+n)/2,l=t===0?2*o/(s+o):2*n/(t+n);return[r,l*100,a*100]};c.hsv.rgb=function(e){let r=e[0]/60,n=e[1]/100,t=e[2]/100,o=Math.floor(r)%6,s=r-Math.floor(r),a=255*t*(1-n),l=255*t*(1-n*s),i=255*t*(1-n*(1-s));switch(t*=255,o){case 0:return[t,i,a];case 1:return[l,t,a];case 2:return[a,t,i];case 3:return[a,l,t];case 4:return[i,a,t];case 5:return[t,a,l]}};c.hsv.hsl=function(e){let r=e[0],n=e[1]/100,t=e[2]/100,o=Math.max(t,.01),s,a;a=(2-n)*t;let l=(2-n)*o;return s=n*o,s/=l<=1?l:2-l,s=s||0,a/=2,[r,s*100,a*100]};c.hwb.rgb=function(e){let r=e[0]/360,n=e[1]/100,t=e[2]/100,o=n+t,s;o>1&&(n/=o,t/=o);let a=Math.floor(6*r),l=1-t;s=6*r-a,a&1&&(s=1-s);let i=n+s*(l-n),h,p,v;switch(a){default:case 6:case 0:h=l,p=i,v=n;break;case 1:h=i,p=l,v=n;break;case 2:h=n,p=l,v=i;break;case 3:h=n,p=i,v=l;break;case 4:h=i,p=n,v=l;break;case 5:h=l,p=n,v=i;break}return[h*255,p*255,v*255]};c.cmyk.rgb=function(e){let r=e[0]/100,n=e[1]/100,t=e[2]/100,o=e[3]/100,s=1-Math.min(1,r*(1-o)+o),a=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,t*(1-o)+o);return[s*255,a*255,l*255]};c.xyz.rgb=function(e){let r=e[0]/100,n=e[1]/100,t=e[2]/100,o,s,a;return o=r*3.2406+n*-1.5372+t*-.4986,s=r*-.9689+n*1.8758+t*.0415,a=r*.0557+n*-.204+t*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[o*255,s*255,a*255]};c.xyz.lab=function(e){let r=e[0],n=e[1],t=e[2];r/=95.047,n/=100,t/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-t);return[o,s,a]};c.lab.xyz=function(e){let r=e[0],n=e[1],t=e[2],o,s,a;s=(r+16)/116,o=n/500+s,a=s-t/200;let l=s**3,i=o**3,h=a**3;return s=l>.008856?l:(s-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,o*=95.047,s*=100,a*=108.883,[o,s,a]};c.lab.lch=function(e){let r=e[0],n=e[1],t=e[2],o;o=Math.atan2(t,n)*360/2/Math.PI,o<0&&(o+=360);let s=Math.sqrt(n*n+t*t);return[r,s,o]};c.lch.lab=function(e){let r=e[0],n=e[1],t=e[2]/360*2*Math.PI,o=n*Math.cos(t),s=n*Math.sin(t);return[r,o,s]};c.rgb.ansi16=function(e,r=null){let[n,t,o]=e,s=r===null?c.rgb.hsv(e)[2]:r;if(s=Math.round(s/50),s===0)return 30;let a=30+(Math.round(o/255)<<2|Math.round(t/255)<<1|Math.round(n/255));return s===2&&(a+=60),a};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let r=e[0],n=e[1],t=e[2];return r===n&&n===t?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(t/255*5)};c.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let n=(~~(e>50)+1)*.5,t=(r&1)*n*255,o=(r>>1&1)*n*255,s=(r>>2&1)*n*255;return[t,o,s]};c.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let r,n=Math.floor(e/36)/5*255,t=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,t,o]};c.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(l=>l+l).join(""));let t=parseInt(n,16),o=t>>16&255,s=t>>8&255,a=t&255;return[o,s,a]};c.rgb.hcg=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255,o=Math.max(Math.max(r,n),t),s=Math.min(Math.min(r,n),t),a=o-s,l,i;return a<1?l=s/(1-a):l=0,a<=0?i=0:o===r?i=(n-t)/a%6:o===n?i=2+(t-r)/a:i=4+(r-n)/a,i/=6,i%=1,[i*360,a*100,l*100]};c.hsl.hcg=function(e){let r=e[1]/100,n=e[2]/100,t=n<.5?2*r*n:2*r*(1-n),o=0;return t<1&&(o=(n-.5*t)/(1-t)),[e[0],t*100,o*100]};c.hsv.hcg=function(e){let r=e[1]/100,n=e[2]/100,t=r*n,o=0;return t<1&&(o=(n-t)/(1-t)),[e[0],t*100,o*100]};c.hcg.rgb=function(e){let r=e[0]/360,n=e[1]/100,t=e[2]/100;if(n===0)return[t*255,t*255,t*255];let o=[0,0,0],s=r%1*6,a=s%1,l=1-a,i=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*t,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};c.hcg.hsv=function(e){let r=e[1]/100,n=e[2]/100,t=r+n*(1-r),o=0;return t>0&&(o=r/t),[e[0],o*100,t*100]};c.hcg.hsl=function(e){let r=e[1]/100,n=e[2]/100*(1-r)+.5*r,t=0;return n>0&&n<.5?t=r/(2*n):n>=.5&&n<1&&(t=r/(2*(1-n))),[e[0],t*100,n*100]};c.hcg.hwb=function(e){let r=e[1]/100,n=e[2]/100,t=r+n*(1-r);return[e[0],(t-r)*100,(1-t)*100]};c.hwb.hcg=function(e){let r=e[1]/100,n=1-e[2]/100,t=n-r,o=0;return t<1&&(o=(n-t)/(1-t)),[e[0],t*100,o*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,n=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=K;function ce(){let e={},r=Object.keys(O);for(let n=r.length,t=0;t<n;t++)e[r[t]]={distance:-1,parent:null};return e}function he(e){let r=ce(),n=[e];for(r[e].distance=0;n.length;){let t=n.pop(),o=Object.keys(O[t]);for(let s=o.length,a=0;a<s;a++){let l=o[a],i=r[l];i.distance===-1&&(i.distance=r[t].distance+1,i.parent=t,n.unshift(l))}}return r}function ue(e,r){return function(n){return r(e(n))}}function ge(e,r){let n=[r[e].parent,e],t=O[r[e].parent][e],o=r[e].parent;for(;r[o].parent;)n.unshift(r[o].parent),t=ue(O[r[o].parent][o],t),o=r[o].parent;return t.conversion=n,t}var fe=function(e){let r=he(e),n={},t=Object.keys(r);for(let o=t.length,s=0;s<o;s++){let a=t[s];r[a].parent!==null&&(n[a]=ge(a,r))}return n},L=K,be=fe,k={},de=Object.keys(L);function pe(e){let r=function(...n){let t=n[0];return t==null?t:(t.length>1&&(n=t),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function me(e){let r=function(...n){let t=n[0];if(t==null)return t;t.length>1&&(n=t);let o=e(n);if(typeof o=="object")for(let s=o.length,a=0;a<s;a++)o[a]=Math.round(o[a]);return o};return"conversion"in e&&(r.conversion=e.conversion),r}de.forEach(e=>{k[e]={},Object.defineProperty(k[e],"channels",{value:L[e].channels}),Object.defineProperty(k[e],"labels",{value:L[e].labels});let r=be(e);Object.keys(r).forEach(n=>{let t=r[n];k[e][n]=me(t),k[e][n].raw=pe(t)})});var ye=k,M=le,m=ye,Q=["keyword","gray","hex"],z={};for(let e of Object.keys(m))z[[...m[e].labels].sort().join("")]=e;var F={};function d(e,r){if(!(this instanceof d))return new d(e,r);if(r&&r in Q&&(r=null),r&&!(r in m))throw new Error("Unknown model: "+r);let n,t;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof d)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){let o=M.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,t=m[this.model].channels,this.color=o.value.slice(0,t),this.valpha=typeof o.value[t]=="number"?o.value[t]:1}else if(e.length>0){this.model=r||"rgb",t=m[this.model].channels;let o=Array.prototype.slice.call(e,0,t);this.color=B(o,t),this.valpha=typeof e[t]=="number"?e[t]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);let s=o.sort().join("");if(!(s in z))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=z[s];let{labels:a}=m[this.model],l=[];for(n=0;n<a.length;n++)l.push(e[a[n]]);this.color=B(l)}if(F[this.model])for(t=m[this.model].channels,n=0;n<t;n++){let o=F[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}d.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let r=this.model in M.to?this:this.rgb();r=r.round(typeof e=="number"?e:1);let n=r.valpha===1?r.color:[...r.color,this.valpha];return M.to[r.model](n)},percentString(e){let r=this.rgb().round(typeof e=="number"?e:1),n=r.valpha===1?r.color:[...r.color,this.valpha];return M.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:r}=m[this.model],{labels:n}=m[this.model];for(let t=0;t<r;t++)e[n[t]]=this.color[t];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new d([...this.color.map(we(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new d([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,b(255)),green:u("rgb",1,b(255)),blue:u("rgb",2,b(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,b(100)),lightness:u("hsl",2,b(100)),saturationv:u("hsv",1,b(100)),value:u("hsv",2,b(100)),chroma:u("hcg",1,b(100)),gray:u("hcg",2,b(100)),white:u("hwb",1,b(100)),wblack:u("hwb",2,b(100)),cyan:u("cmyk",0,b(100)),magenta:u("cmyk",1,b(100)),yellow:u("cmyk",2,b(100)),black:u("cmyk",3,b(100)),x:u("xyz",0,b(95.047)),y:u("xyz",1,b(100)),z:u("xyz",2,b(108.833)),l:u("lab",0,b(100)),a:u("lab",1),b:u("lab",2),keyword(e){return e!==void 0?new d(e):m[this.model].keyword(this.color)},hex(e){return e!==void 0?new d(e):M.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new d(e);let r=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),M.to.hex(r)+n},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,r=[];for(let[n,t]of e.entries()){let o=t/255;r[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(e){let r=this.luminosity(),n=e.luminosity();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},level(e){let r=this.contrast(e);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten(e){let r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken(e){let r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate(e){let r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate(e){let r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten(e){let r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken(e){let r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale(){let e=this.rgb().color,r=e[0]*.3+e[1]*.59+e[2]*.11;return d.rgb(r,r,r)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let r=this.hsl(),n=r.color[0];return n=(n+e)%360,n=n<0?360+n:n,r.color[0]=n,r},mix(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),t=this.rgb(),o=r===void 0?.5:r,s=2*o-1,a=n.alpha()-t.alpha(),l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,i=1-l;return d.rgb(l*n.red()+i*t.red(),l*n.green()+i*t.green(),l*n.blue()+i*t.blue(),n.alpha()*o+t.alpha()*(1-o))}};for(let e of Object.keys(m)){if(Q.includes(e))continue;let{channels:r}=m[e];d.prototype[e]=function(...n){return this.model===e?new d(this):n.length>0?new d(n,e):new d([...Se(m[this.model][e].raw(this.color)),this.valpha],e)},d[e]=function(...n){let t=n[0];return typeof t=="number"&&(t=B(n,r)),new d(t,e)}}function ve(e,r){return Number(e.toFixed(r))}function we(e){return function(r){return ve(r,e)}}function u(e,r,n){e=Array.isArray(e)?e:[e];for(let t of e)(F[t]||(F[t]=[]))[r]=n;return e=e[0],function(t){let o;return t!==void 0?(n&&(t=n(t)),o=this[e](),o.color[r]=t,o):(o=this[e]().color[r],n&&(o=n(o)),o)}}function b(e){return function(r){return Math.max(0,Math.min(e,r))}}function Se(e){return Array.isArray(e)?e:[e]}function B(e,r){for(let n=0;n<r;n++)typeof e[n]!="number"&&(e[n]=0);return e}var ke=d,Me=G(ke),Be={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},Ee=Me("#007AC2"),Ge="calcite-color-",Re={r:255,g:255,b:255},xe={h:360,s:100,v:100},_e=xe.h-1,Ie={min:0,max:100},Ae={s:{gap:parseInt(R),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(_),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt(I),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},qe=1,Ne=/^[0-9A-F]$/i,He=/^#[0-9A-F]{3}$/i,Ce=/^#[0-9A-F]{6}$/i,je=/^#[0-9A-F]{4}$/i,$e=/^#[0-9A-F]{8}$/i,Ve=e=>Number((e*100).toFixed()),We=e=>Number((e/100).toFixed(2));function T(e,r=!1){return E(e,r)||Oe(e,r)}function Y(e,r,n){return e?e.length===r&&n.test(e):!1}function E(e,r=!1){return Y(e,r?5:4,r?je:He)}function Oe(e,r=!1){return Y(e,r?9:7,r?$e:Ce)}function Xe(e,r=!1,n=!1){if(e=e.toLowerCase(),e.startsWith("#")||(e=`#${e}`),E(e,r))return N(V(e,r));if(r&&n&&T(e,!1)){let t=E(e,!1);return N(V(`${e}${t?"f":"ff"}`,!0))}return e}function Pe(e,r=!1){return r?e.hexa():e.hex()}function N(e){let{r,g:n,b:t}=e,o=$(r),s=$(n),a=$(t),l="a"in e?$(e.a*255):"";return`#${o}${s}${a}${l}`.toLowerCase()}function $(e){return e.toString(16).padStart(2,"0")}function Ue(e){let r={...e,a:e.alpha??1};return delete r.alpha,r}function De(e){let r={...e,alpha:e.a??1};return delete r.a,r}function V(e,r=!1){if(!T(e,r))return null;e=e.replace("#","");let n,t,o,s;if(e.length===3||e.length===4){let[a,l,i,h]=e.split("");n=parseInt(`${a}${a}`,16),t=parseInt(`${l}${l}`,16),o=parseInt(`${i}${i}`,16),s=parseInt(`${h}${h}`,16)/255}else n=parseInt(e.slice(0,2),16),t=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16),s=parseInt(e.slice(6,8),16)/255;return isNaN(s)?{r:n,g:t,b:o}:{r:n,g:t,b:o,a:s}}var Z=e=>e,g=Z({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),f=Z({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function Je(e){if(typeof e=="string"){if(e.startsWith("#")){let{length:r}=e;if(r===4||r===7)return g.HEX;if(r===5||r===9)return g.HEXA}if(e.startsWith("rgba("))return g.RGBA_CSS;if(e.startsWith("rgb("))return g.RGB_CSS;if(e.startsWith("hsl("))return g.HSL_CSS;if(e.startsWith("hsla("))return g.HSLA_CSS}if(typeof e=="object"){if(S(e,"r","g","b"))return S(e,"a")?f.RGBA:f.RGB;if(S(e,"h","s","l"))return S(e,"a")?f.HSLA:f.HSL;if(S(e,"h","s","v"))return S(e,"a")?f.HSVA:f.HSV}return null}function S(e,...r){return r.every(n=>n&&e&&`${n}`in e)}function Ke(e,r){return e?.rgb().array().toString()===r?.rgb().array().toString()}function Qe(e){return e===g.HEXA||e===g.RGBA_CSS||e===g.HSLA_CSS||e===f.RGBA||e===f.HSLA||e===f.HSVA}function Te(e){return e===g.HEX?g.HEXA:e===g.RGB_CSS?g.RGBA_CSS:e===g.HSL_CSS?g.HSLA_CSS:e===f.RGB?f.RGBA:e===f.HSL?f.HSLA:e===f.HSV?f.HSVA:e}function Ye(e){return e===g.HEXA?g.HEX:e===g.RGBA_CSS?g.RGB_CSS:e===g.HSLA_CSS?g.HSL_CSS:e===f.RGBA?f.RGB:e===f.HSLA?f.HSL:e===f.HSVA?f.HSV:e}var Fe=1,ee=Fe*2;function Ze(e,r,n){let t=n?Ae.l.preview.size:r.preview.size,o=e-ee,s=r.gap*3;return Math.max(o-s-t,0)}function er(e){let r=e-ee;return{width:Math.max(r,0),height:Math.max(Math.floor(r/1.8),0)}}export{Me as a,Be as b,Ee as c,Ge as d,Re as e,xe as f,_e as g,Ie as h,Ae as i,qe as j,Ne as k,Ve as l,We as m,T as n,E as o,Oe as p,Xe as q,Pe as r,N as s,Ue as t,De as u,V as v,g as w,Je as x,Ke as y,Qe as z,Te as A,Ye as B,Ze as C,er as D};
3
+ v3.0.2 */
4
+ import{b as G}from"./T2NQWILT.js";import{e as R,f as _,g as I}from"./G57AKIT2.js";var W={exports:{}},X={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},P={exports:{}},ne=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},te=ne,oe=Array.prototype.concat,ae=Array.prototype.slice,q=P.exports=function(e){for(var r=[],n=0,t=e.length;n<t;n++){var o=e[n];te(o)?r=oe.call(r,ae.call(o)):r.push(o)}return r};q.wrap=function(e){return function(){return e(q(arguments))}};var se=P.exports,x=X,H=se,U=Object.hasOwnProperty,D=Object.create(null);for(C in x)U.call(x,C)&&(D[x[C]]=C);var C,y=W.exports={to:{},get:{}};y.get=function(e){var r=e.substring(0,3).toLowerCase(),n,t;switch(r){case"hsl":n=y.get.hsl(e),t="hsl";break;case"hwb":n=y.get.hwb(e),t="hwb";break;default:n=y.get.rgb(e),t="rgb";break}return n?{model:t,value:n}:null};y.get.rgb=function(e){if(!e)return null;var r=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,t=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,a=[0,0,0,1],l,i,h;if(l=e.match(n)){for(h=l[2],l=l[1],i=0;i<3;i++){var p=i*2;a[i]=parseInt(l.slice(p,p+2),16)}h&&(a[3]=parseInt(h,16)/255)}else if(l=e.match(r)){for(l=l[1],h=l[3],i=0;i<3;i++)a[i]=parseInt(l[i]+l[i],16);h&&(a[3]=parseInt(h+h,16)/255)}else if(l=e.match(t)){for(i=0;i<3;i++)a[i]=parseInt(l[i+1],0);l[4]&&(l[5]?a[3]=parseFloat(l[4])*.01:a[3]=parseFloat(l[4]))}else if(l=e.match(o)){for(i=0;i<3;i++)a[i]=Math.round(parseFloat(l[i+1])*2.55);l[4]&&(l[5]?a[3]=parseFloat(l[4])*.01:a[3]=parseFloat(l[4]))}else return(l=e.match(s))?l[1]==="transparent"?[0,0,0,0]:U.call(x,l[1])?(a=x[l[1]],a[3]=1,a):null:null;for(i=0;i<3;i++)a[i]=w(a[i],0,255);return a[3]=w(a[3],0,1),a};y.get.hsl=function(e){if(!e)return null;var r=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(r);if(n){var t=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,s=w(parseFloat(n[2]),0,100),a=w(parseFloat(n[3]),0,100),l=w(isNaN(t)?1:t,0,1);return[o,s,a,l]}return null};y.get.hwb=function(e){if(!e)return null;var r=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(r);if(n){var t=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,s=w(parseFloat(n[2]),0,100),a=w(parseFloat(n[3]),0,100),l=w(isNaN(t)?1:t,0,1);return[o,s,a,l]}return null};y.to.hex=function(){var e=H(arguments);return"#"+j(e[0])+j(e[1])+j(e[2])+(e[3]<1?j(Math.round(e[3]*255)):"")};y.to.rgb=function(){var e=H(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};y.to.rgb.percent=function(){var e=H(arguments),r=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),t=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+r+"%, "+n+"%, "+t+"%)":"rgba("+r+"%, "+n+"%, "+t+"%, "+e[3]+")"};y.to.hsl=function(){var e=H(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};y.to.hwb=function(){var e=H(arguments),r="";return e.length>=4&&e[3]!==1&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"};y.to.keyword=function(e){return D[e.slice(0,3)]};function w(e,r,n){return Math.min(Math.max(r,e),n)}function j(e){var r=Math.round(e).toString(16).toUpperCase();return r.length<2?"0"+r:r}var le=W.exports,A=X,J={};for(let e of Object.keys(A))J[A[e]]=e;var c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},K=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:n}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:r}),Object.defineProperty(c[e],"labels",{value:n})}c.rgb.hsl=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255,o=Math.min(r,n,t),s=Math.max(r,n,t),a=s-o,l,i;s===o?l=0:r===s?l=(n-t)/a:n===s?l=2+(t-r)/a:t===s&&(l=4+(r-n)/a),l=Math.min(l*60,360),l<0&&(l+=360);let h=(o+s)/2;return s===o?i=0:h<=.5?i=a/(s+o):i=a/(2-s-o),[l,i*100,h*100]};c.rgb.hsv=function(e){let r,n,t,o,s,a=e[0]/255,l=e[1]/255,i=e[2]/255,h=Math.max(a,l,i),p=h-Math.min(a,l,i),v=function(re){return(h-re)/6/p+1/2};return p===0?(o=0,s=0):(s=p/h,r=v(a),n=v(l),t=v(i),a===h?o=t-n:l===h?o=1/3+r-t:i===h&&(o=2/3+n-r),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,h*100]};c.rgb.hwb=function(e){let r=e[0],n=e[1],t=e[2],o=c.rgb.hsl(e)[0],s=1/255*Math.min(r,Math.min(n,t));return t=1-1/255*Math.max(r,Math.max(n,t)),[o,s*100,t*100]};c.rgb.cmyk=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255,o=Math.min(1-r,1-n,1-t),s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,l=(1-t-o)/(1-o)||0;return[s*100,a*100,l*100,o*100]};function ie(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}c.rgb.keyword=function(e){let r=J[e];if(r)return r;let n=1/0,t;for(let o of Object.keys(A)){let s=A[o],a=ie(e,s);a<n&&(n=a,t=o)}return t};c.keyword.rgb=function(e){return A[e]};c.rgb.xyz=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;let o=r*.4124+n*.3576+t*.1805,s=r*.2126+n*.7152+t*.0722,a=r*.0193+n*.1192+t*.9505;return[o*100,s*100,a*100]};c.rgb.lab=function(e){let r=c.rgb.xyz(e),n=r[0],t=r[1],o=r[2];n/=95.047,t/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*t-16,a=500*(n-t),l=200*(t-o);return[s,a,l]};c.hsl.rgb=function(e){let r=e[0]/360,n=e[1]/100,t=e[2]/100,o,s,a;if(n===0)return a=t*255,[a,a,a];t<.5?o=t*(1+n):o=t+n-t*n;let l=2*t-o,i=[0,0,0];for(let h=0;h<3;h++)s=r+1/3*-(h-1),s<0&&s++,s>1&&s--,6*s<1?a=l+(o-l)*6*s:2*s<1?a=o:3*s<2?a=l+(o-l)*(2/3-s)*6:a=l,i[h]=a*255;return i};c.hsl.hsv=function(e){let r=e[0],n=e[1]/100,t=e[2]/100,o=n,s=Math.max(t,.01);t*=2,n*=t<=1?t:2-t,o*=s<=1?s:2-s;let a=(t+n)/2,l=t===0?2*o/(s+o):2*n/(t+n);return[r,l*100,a*100]};c.hsv.rgb=function(e){let r=e[0]/60,n=e[1]/100,t=e[2]/100,o=Math.floor(r)%6,s=r-Math.floor(r),a=255*t*(1-n),l=255*t*(1-n*s),i=255*t*(1-n*(1-s));switch(t*=255,o){case 0:return[t,i,a];case 1:return[l,t,a];case 2:return[a,t,i];case 3:return[a,l,t];case 4:return[i,a,t];case 5:return[t,a,l]}};c.hsv.hsl=function(e){let r=e[0],n=e[1]/100,t=e[2]/100,o=Math.max(t,.01),s,a;a=(2-n)*t;let l=(2-n)*o;return s=n*o,s/=l<=1?l:2-l,s=s||0,a/=2,[r,s*100,a*100]};c.hwb.rgb=function(e){let r=e[0]/360,n=e[1]/100,t=e[2]/100,o=n+t,s;o>1&&(n/=o,t/=o);let a=Math.floor(6*r),l=1-t;s=6*r-a,a&1&&(s=1-s);let i=n+s*(l-n),h,p,v;switch(a){default:case 6:case 0:h=l,p=i,v=n;break;case 1:h=i,p=l,v=n;break;case 2:h=n,p=l,v=i;break;case 3:h=n,p=i,v=l;break;case 4:h=i,p=n,v=l;break;case 5:h=l,p=n,v=i;break}return[h*255,p*255,v*255]};c.cmyk.rgb=function(e){let r=e[0]/100,n=e[1]/100,t=e[2]/100,o=e[3]/100,s=1-Math.min(1,r*(1-o)+o),a=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,t*(1-o)+o);return[s*255,a*255,l*255]};c.xyz.rgb=function(e){let r=e[0]/100,n=e[1]/100,t=e[2]/100,o,s,a;return o=r*3.2406+n*-1.5372+t*-.4986,s=r*-.9689+n*1.8758+t*.0415,a=r*.0557+n*-.204+t*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[o*255,s*255,a*255]};c.xyz.lab=function(e){let r=e[0],n=e[1],t=e[2];r/=95.047,n/=100,t/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-t);return[o,s,a]};c.lab.xyz=function(e){let r=e[0],n=e[1],t=e[2],o,s,a;s=(r+16)/116,o=n/500+s,a=s-t/200;let l=s**3,i=o**3,h=a**3;return s=l>.008856?l:(s-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,o*=95.047,s*=100,a*=108.883,[o,s,a]};c.lab.lch=function(e){let r=e[0],n=e[1],t=e[2],o;o=Math.atan2(t,n)*360/2/Math.PI,o<0&&(o+=360);let s=Math.sqrt(n*n+t*t);return[r,s,o]};c.lch.lab=function(e){let r=e[0],n=e[1],t=e[2]/360*2*Math.PI,o=n*Math.cos(t),s=n*Math.sin(t);return[r,o,s]};c.rgb.ansi16=function(e,r=null){let[n,t,o]=e,s=r===null?c.rgb.hsv(e)[2]:r;if(s=Math.round(s/50),s===0)return 30;let a=30+(Math.round(o/255)<<2|Math.round(t/255)<<1|Math.round(n/255));return s===2&&(a+=60),a};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let r=e[0],n=e[1],t=e[2];return r===n&&n===t?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(t/255*5)};c.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let n=(~~(e>50)+1)*.5,t=(r&1)*n*255,o=(r>>1&1)*n*255,s=(r>>2&1)*n*255;return[t,o,s]};c.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let r,n=Math.floor(e/36)/5*255,t=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,t,o]};c.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(l=>l+l).join(""));let t=parseInt(n,16),o=t>>16&255,s=t>>8&255,a=t&255;return[o,s,a]};c.rgb.hcg=function(e){let r=e[0]/255,n=e[1]/255,t=e[2]/255,o=Math.max(Math.max(r,n),t),s=Math.min(Math.min(r,n),t),a=o-s,l,i;return a<1?l=s/(1-a):l=0,a<=0?i=0:o===r?i=(n-t)/a%6:o===n?i=2+(t-r)/a:i=4+(r-n)/a,i/=6,i%=1,[i*360,a*100,l*100]};c.hsl.hcg=function(e){let r=e[1]/100,n=e[2]/100,t=n<.5?2*r*n:2*r*(1-n),o=0;return t<1&&(o=(n-.5*t)/(1-t)),[e[0],t*100,o*100]};c.hsv.hcg=function(e){let r=e[1]/100,n=e[2]/100,t=r*n,o=0;return t<1&&(o=(n-t)/(1-t)),[e[0],t*100,o*100]};c.hcg.rgb=function(e){let r=e[0]/360,n=e[1]/100,t=e[2]/100;if(n===0)return[t*255,t*255,t*255];let o=[0,0,0],s=r%1*6,a=s%1,l=1-a,i=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*t,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};c.hcg.hsv=function(e){let r=e[1]/100,n=e[2]/100,t=r+n*(1-r),o=0;return t>0&&(o=r/t),[e[0],o*100,t*100]};c.hcg.hsl=function(e){let r=e[1]/100,n=e[2]/100*(1-r)+.5*r,t=0;return n>0&&n<.5?t=r/(2*n):n>=.5&&n<1&&(t=r/(2*(1-n))),[e[0],t*100,n*100]};c.hcg.hwb=function(e){let r=e[1]/100,n=e[2]/100,t=r+n*(1-r);return[e[0],(t-r)*100,(1-t)*100]};c.hwb.hcg=function(e){let r=e[1]/100,n=1-e[2]/100,t=n-r,o=0;return t<1&&(o=(n-t)/(1-t)),[e[0],t*100,o*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,n=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=K;function ce(){let e={},r=Object.keys(O);for(let n=r.length,t=0;t<n;t++)e[r[t]]={distance:-1,parent:null};return e}function he(e){let r=ce(),n=[e];for(r[e].distance=0;n.length;){let t=n.pop(),o=Object.keys(O[t]);for(let s=o.length,a=0;a<s;a++){let l=o[a],i=r[l];i.distance===-1&&(i.distance=r[t].distance+1,i.parent=t,n.unshift(l))}}return r}function ue(e,r){return function(n){return r(e(n))}}function ge(e,r){let n=[r[e].parent,e],t=O[r[e].parent][e],o=r[e].parent;for(;r[o].parent;)n.unshift(r[o].parent),t=ue(O[r[o].parent][o],t),o=r[o].parent;return t.conversion=n,t}var fe=function(e){let r=he(e),n={},t=Object.keys(r);for(let o=t.length,s=0;s<o;s++){let a=t[s];r[a].parent!==null&&(n[a]=ge(a,r))}return n},L=K,be=fe,k={},de=Object.keys(L);function pe(e){let r=function(...n){let t=n[0];return t==null?t:(t.length>1&&(n=t),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function me(e){let r=function(...n){let t=n[0];if(t==null)return t;t.length>1&&(n=t);let o=e(n);if(typeof o=="object")for(let s=o.length,a=0;a<s;a++)o[a]=Math.round(o[a]);return o};return"conversion"in e&&(r.conversion=e.conversion),r}de.forEach(e=>{k[e]={},Object.defineProperty(k[e],"channels",{value:L[e].channels}),Object.defineProperty(k[e],"labels",{value:L[e].labels});let r=be(e);Object.keys(r).forEach(n=>{let t=r[n];k[e][n]=me(t),k[e][n].raw=pe(t)})});var ye=k,M=le,m=ye,Q=["keyword","gray","hex"],z={};for(let e of Object.keys(m))z[[...m[e].labels].sort().join("")]=e;var F={};function d(e,r){if(!(this instanceof d))return new d(e,r);if(r&&r in Q&&(r=null),r&&!(r in m))throw new Error("Unknown model: "+r);let n,t;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof d)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){let o=M.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,t=m[this.model].channels,this.color=o.value.slice(0,t),this.valpha=typeof o.value[t]=="number"?o.value[t]:1}else if(e.length>0){this.model=r||"rgb",t=m[this.model].channels;let o=Array.prototype.slice.call(e,0,t);this.color=B(o,t),this.valpha=typeof e[t]=="number"?e[t]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);let s=o.sort().join("");if(!(s in z))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=z[s];let{labels:a}=m[this.model],l=[];for(n=0;n<a.length;n++)l.push(e[a[n]]);this.color=B(l)}if(F[this.model])for(t=m[this.model].channels,n=0;n<t;n++){let o=F[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}d.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let r=this.model in M.to?this:this.rgb();r=r.round(typeof e=="number"?e:1);let n=r.valpha===1?r.color:[...r.color,this.valpha];return M.to[r.model](n)},percentString(e){let r=this.rgb().round(typeof e=="number"?e:1),n=r.valpha===1?r.color:[...r.color,this.valpha];return M.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:r}=m[this.model],{labels:n}=m[this.model];for(let t=0;t<r;t++)e[n[t]]=this.color[t];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new d([...this.color.map(we(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new d([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,b(255)),green:u("rgb",1,b(255)),blue:u("rgb",2,b(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,b(100)),lightness:u("hsl",2,b(100)),saturationv:u("hsv",1,b(100)),value:u("hsv",2,b(100)),chroma:u("hcg",1,b(100)),gray:u("hcg",2,b(100)),white:u("hwb",1,b(100)),wblack:u("hwb",2,b(100)),cyan:u("cmyk",0,b(100)),magenta:u("cmyk",1,b(100)),yellow:u("cmyk",2,b(100)),black:u("cmyk",3,b(100)),x:u("xyz",0,b(95.047)),y:u("xyz",1,b(100)),z:u("xyz",2,b(108.833)),l:u("lab",0,b(100)),a:u("lab",1),b:u("lab",2),keyword(e){return e!==void 0?new d(e):m[this.model].keyword(this.color)},hex(e){return e!==void 0?new d(e):M.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new d(e);let r=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),M.to.hex(r)+n},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,r=[];for(let[n,t]of e.entries()){let o=t/255;r[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(e){let r=this.luminosity(),n=e.luminosity();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},level(e){let r=this.contrast(e);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten(e){let r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken(e){let r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate(e){let r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate(e){let r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten(e){let r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken(e){let r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale(){let e=this.rgb().color,r=e[0]*.3+e[1]*.59+e[2]*.11;return d.rgb(r,r,r)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let r=this.hsl(),n=r.color[0];return n=(n+e)%360,n=n<0?360+n:n,r.color[0]=n,r},mix(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),t=this.rgb(),o=r===void 0?.5:r,s=2*o-1,a=n.alpha()-t.alpha(),l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,i=1-l;return d.rgb(l*n.red()+i*t.red(),l*n.green()+i*t.green(),l*n.blue()+i*t.blue(),n.alpha()*o+t.alpha()*(1-o))}};for(let e of Object.keys(m)){if(Q.includes(e))continue;let{channels:r}=m[e];d.prototype[e]=function(...n){return this.model===e?new d(this):n.length>0?new d(n,e):new d([...Se(m[this.model][e].raw(this.color)),this.valpha],e)},d[e]=function(...n){let t=n[0];return typeof t=="number"&&(t=B(n,r)),new d(t,e)}}function ve(e,r){return Number(e.toFixed(r))}function we(e){return function(r){return ve(r,e)}}function u(e,r,n){e=Array.isArray(e)?e:[e];for(let t of e)(F[t]||(F[t]=[]))[r]=n;return e=e[0],function(t){let o;return t!==void 0?(n&&(t=n(t)),o=this[e](),o.color[r]=t,o):(o=this[e]().color[r],n&&(o=n(o)),o)}}function b(e){return function(r){return Math.max(0,Math.min(e,r))}}function Se(e){return Array.isArray(e)?e:[e]}function B(e,r){for(let n=0;n<r;n++)typeof e[n]!="number"&&(e[n]=0);return e}var ke=d,Me=G(ke),Be={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},Ee=Me("#007AC2"),Ge="calcite-color-",Re={r:255,g:255,b:255},xe={h:360,s:100,v:100},_e=xe.h-1,Ie={min:0,max:100},Ae={s:{gap:parseInt(R),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(_),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt(I),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},qe=1,Ne=/^[0-9A-F]$/i,He=/^#[0-9A-F]{3}$/i,Ce=/^#[0-9A-F]{6}$/i,je=/^#[0-9A-F]{4}$/i,$e=/^#[0-9A-F]{8}$/i,Ve=e=>Number((e*100).toFixed()),We=e=>Number((e/100).toFixed(2));function T(e,r=!1){return E(e,r)||Oe(e,r)}function Y(e,r,n){return e?e.length===r&&n.test(e):!1}function E(e,r=!1){return Y(e,r?5:4,r?je:He)}function Oe(e,r=!1){return Y(e,r?9:7,r?$e:Ce)}function Xe(e,r=!1,n=!1){if(e=e.toLowerCase(),e.startsWith("#")||(e=`#${e}`),E(e,r))return N(V(e,r));if(r&&n&&T(e,!1)){let t=E(e,!1);return N(V(`${e}${t?"f":"ff"}`,!0))}return e}function Pe(e,r=!1){return r?e.hexa():e.hex()}function N(e){let{r,g:n,b:t}=e,o=$(r),s=$(n),a=$(t),l="a"in e?$(e.a*255):"";return`#${o}${s}${a}${l}`.toLowerCase()}function $(e){return e.toString(16).padStart(2,"0")}function Ue(e){let r={...e,a:e.alpha??1};return delete r.alpha,r}function De(e){let r={...e,alpha:e.a??1};return delete r.a,r}function V(e,r=!1){if(!T(e,r))return null;e=e.replace("#","");let n,t,o,s;if(e.length===3||e.length===4){let[a,l,i,h]=e.split("");n=parseInt(`${a}${a}`,16),t=parseInt(`${l}${l}`,16),o=parseInt(`${i}${i}`,16),s=parseInt(`${h}${h}`,16)/255}else n=parseInt(e.slice(0,2),16),t=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16),s=parseInt(e.slice(6,8),16)/255;return isNaN(s)?{r:n,g:t,b:o}:{r:n,g:t,b:o,a:s}}var Z=e=>e,g=Z({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),f=Z({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function Je(e){if(typeof e=="string"){if(e.startsWith("#")){let{length:r}=e;if(r===4||r===7)return g.HEX;if(r===5||r===9)return g.HEXA}if(e.startsWith("rgba("))return g.RGBA_CSS;if(e.startsWith("rgb("))return g.RGB_CSS;if(e.startsWith("hsl("))return g.HSL_CSS;if(e.startsWith("hsla("))return g.HSLA_CSS}if(typeof e=="object"){if(S(e,"r","g","b"))return S(e,"a")?f.RGBA:f.RGB;if(S(e,"h","s","l"))return S(e,"a")?f.HSLA:f.HSL;if(S(e,"h","s","v"))return S(e,"a")?f.HSVA:f.HSV}return null}function S(e,...r){return r.every(n=>n&&e&&`${n}`in e)}function Ke(e,r){return e?.rgb().array().toString()===r?.rgb().array().toString()}function Qe(e){return e===g.HEXA||e===g.RGBA_CSS||e===g.HSLA_CSS||e===f.RGBA||e===f.HSLA||e===f.HSVA}function Te(e){return e===g.HEX?g.HEXA:e===g.RGB_CSS?g.RGBA_CSS:e===g.HSL_CSS?g.HSLA_CSS:e===f.RGB?f.RGBA:e===f.HSL?f.HSLA:e===f.HSV?f.HSVA:e}function Ye(e){return e===g.HEXA?g.HEX:e===g.RGBA_CSS?g.RGB_CSS:e===g.HSLA_CSS?g.HSL_CSS:e===f.RGBA?f.RGB:e===f.HSLA?f.HSL:e===f.HSVA?f.HSV:e}var Fe=1,ee=Fe*2;function Ze(e,r,n){let t=n?Ae.l.preview.size:r.preview.size,o=e-ee,s=r.gap*3;return Math.max(o-s-t,0)}function er(e){let r=e-ee;return{width:Math.max(r,0),height:Math.max(Math.floor(r/1.8),0)}}export{Me as a,Be as b,Ee as c,Ge as d,Re as e,xe as f,_e as g,Ie as h,Ae as i,qe as j,Ne as k,Ve as l,We as m,T as n,E as o,Oe as p,Xe as q,Pe as r,N as s,Ue as t,De as u,V as v,g as w,Je as x,Ke as y,Qe as z,Te as A,Ye as B,Ze as C,er as D};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{a as m,b as s,c as t,d as x}from"./LWAXFXVK.js";var r={width:{medium:a(x.max),small:a(t.max),xsmall:a(s.max),xxsmall:a(m.max)}};function a(l){return parseInt(l)}export{r as a};
3
+ v3.0.2 */
4
+ import{a as m,b as s,c as t,d as x}from"./G57AKIT2.js";var r={width:{medium:a(x.max),small:a(t.max),xsmall:a(s.max),xxsmall:a(m.max)}};function a(l){return parseInt(l)}export{r as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{a as d,b as p}from"./X6EDNQN2.js";import{n as c}from"./NLK3OCCK.js";import{b as s}from"./6OPQR7PL.js";import"./OLP7ABVK.js";import{J as l,e as n,f as o,v as i,w as r,x as t}from"./D7X7U5LL.js";var e={container:"container",dividerContainer:"divider-container",divider:"divider"},u=n`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([kind=brand]){--calcite-internal-split-button-background: var(--calcite-color-brand);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([kind=danger]){--calcite-internal-split-button-background: var(--calcite-color-status-danger);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([kind=neutral]){--calcite-internal-split-button-background: var(--calcite-color-foreground-3);--calcite-internal-split-button-divider: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-split-button-background: var(--calcite-color-inverse);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([appearance=transparent]){--calcite-internal-split-button-background: transparent}:host([appearance=transparent]):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand)}:host([appearance=transparent]):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger)}:host([appearance=transparent]):host([kind=neutral]){--calcite-internal-split-button-divider: var(--calcite-color-text-1)}:host([appearance=transparent]):host([kind=inverse]){--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline]):host([kind=danger]),:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline]):host([kind=inverse]){--calcite-internal-split-button-background: transparent}:host([appearance=outline-fill]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-background: var(--calcite-color-background)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand)}:host([appearance=outline]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger)}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-split-button-divider: var(--calcite-color-border-1)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-divider: var(--calcite-color-inverse)}.container{display:flex;align-items:stretch}.container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}.divider-container{display:flex;inline-size:1px;align-items:stretch;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;background-color:var(--calcite-internal-split-button-background)}.divider{margin-block:.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]) .divider-container,:host([appearance=outline]) .divider-container{border-block:1px solid var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]):hover .divider-container,:host([appearance=outline]):hover .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]:hover) .divider-container,:host([appearance=outline]:hover) .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]:focus-within):host([kind=brand]),:host([appearance=outline]:focus-within):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand-press)}:host([appearance=outline-fill]:focus-within):host([kind=danger]),:host([appearance=outline]:focus-within):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill]:focus-within) .divider-container,:host([appearance=outline]:focus-within) .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]):host([appearance=outline-fill]) .divider-container{background-color:var(--calcite-color-background)}:host([disabled]):host([appearance=outline]) .divider-container{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends r{constructor(){super(...arguments),this.active=!1,this.appearance="solid",this.disabled=!1,this.dropdownIconType="chevron",this.kind="brand",this.loading=!1,this.overlayPositioning="absolute",this.placement="bottom-end",this.scale="m",this.width="auto",this.calciteSplitButtonPrimaryClick=i({cancelable:!1}),this.calciteSplitButtonSecondaryClick=i({cancelable:!1})}static{this.properties={active:7,appearance:3,disabled:7,dropdownIconType:3,dropdownLabel:3,flipPlacements:0,kind:3,loading:7,overlayPositioning:3,placement:3,primaryIconEnd:3,primaryIconFlipRtl:3,primaryIconStart:3,primaryLabel:3,primaryText:3,scale:3,width:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=u}get dropdownIcon(){return this.dropdownIconType==="chevron"?"chevronDown":this.dropdownIconType==="caret"?"caretDown":this.dropdownIconType==="ellipsis"?"ellipsis":"handle-vertical"}async setFocus(){await s(this),c(this.el)}load(){}updated(){d(this)}loaded(){}calciteSplitButtonPrimaryClickHandler(){this.calciteSplitButtonPrimaryClick.emit()}calciteSplitButtonSecondaryClickHandler(){this.calciteSplitButtonSecondaryClick.emit()}render(){let h=this.width==="auto"?"auto":"full";return p({disabled:this.disabled,children:o`<div class=${t(e.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconEnd=${this.primaryIconEnd?this.primaryIconEnd:null} .iconFlipRtl=${this.primaryIconFlipRtl?this.primaryIconFlipRtl:null} .iconStart=${this.primaryIconStart?this.primaryIconStart:null} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .scale=${this.scale} split-child=primary type=button .width=${h}>${this.primaryText}</calcite-button><div class=${t(e.dividerContainer)}><div class=${t(e.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .widthScale=${this.scale}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconStart=${this.dropdownIcon} .kind=${this.kind} .label=${this.dropdownLabel} .scale=${this.scale} slot=trigger split-child=secondary type=button></calcite-button><slot></slot></calcite-dropdown></div>`})}};l("calcite-split-button",a);export{a as SplitButton};
3
+ v3.0.2 */
4
+ import{a as d,b as p}from"./WRT5VFG2.js";import{n as c}from"./GO4QOK2G.js";import{b as s}from"./PBIOUIAG.js";import"./P7S34RN4.js";import{J as l,e as n,f as o,v as i,w as r,x as t}from"./63TOND25.js";var e={container:"container",dividerContainer:"divider-container",divider:"divider"},u=n`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([kind=brand]){--calcite-internal-split-button-background: var(--calcite-color-brand);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([kind=danger]){--calcite-internal-split-button-background: var(--calcite-color-status-danger);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([kind=neutral]){--calcite-internal-split-button-background: var(--calcite-color-foreground-3);--calcite-internal-split-button-divider: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-split-button-background: var(--calcite-color-inverse);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([appearance=transparent]){--calcite-internal-split-button-background: transparent}:host([appearance=transparent]):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand)}:host([appearance=transparent]):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger)}:host([appearance=transparent]):host([kind=neutral]){--calcite-internal-split-button-divider: var(--calcite-color-text-1)}:host([appearance=transparent]):host([kind=inverse]){--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline]):host([kind=danger]),:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline]):host([kind=inverse]){--calcite-internal-split-button-background: transparent}:host([appearance=outline-fill]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-background: var(--calcite-color-background)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand)}:host([appearance=outline]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger)}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-split-button-divider: var(--calcite-color-border-1)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-divider: var(--calcite-color-inverse)}.container{display:flex;align-items:stretch}.container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}.divider-container{display:flex;inline-size:1px;align-items:stretch;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;background-color:var(--calcite-internal-split-button-background)}.divider{margin-block:.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]) .divider-container,:host([appearance=outline]) .divider-container{border-block:1px solid var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]):hover .divider-container,:host([appearance=outline]):hover .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]:hover) .divider-container,:host([appearance=outline]:hover) .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]:focus-within):host([kind=brand]),:host([appearance=outline]:focus-within):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand-press)}:host([appearance=outline-fill]:focus-within):host([kind=danger]),:host([appearance=outline]:focus-within):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill]:focus-within) .divider-container,:host([appearance=outline]:focus-within) .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]):host([appearance=outline-fill]) .divider-container{background-color:var(--calcite-color-background)}:host([disabled]):host([appearance=outline]) .divider-container{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends r{constructor(){super(...arguments),this.active=!1,this.appearance="solid",this.disabled=!1,this.dropdownIconType="chevron",this.kind="brand",this.loading=!1,this.overlayPositioning="absolute",this.placement="bottom-end",this.scale="m",this.width="auto",this.calciteSplitButtonPrimaryClick=i({cancelable:!1}),this.calciteSplitButtonSecondaryClick=i({cancelable:!1})}static{this.properties={active:7,appearance:3,disabled:7,dropdownIconType:3,dropdownLabel:3,flipPlacements:0,kind:3,loading:7,overlayPositioning:3,placement:3,primaryIconEnd:3,primaryIconFlipRtl:3,primaryIconStart:3,primaryLabel:3,primaryText:3,scale:3,width:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=u}get dropdownIcon(){return this.dropdownIconType==="chevron"?"chevronDown":this.dropdownIconType==="caret"?"caretDown":this.dropdownIconType==="ellipsis"?"ellipsis":"handle-vertical"}async setFocus(){await s(this),c(this.el)}load(){}updated(){d(this)}loaded(){}calciteSplitButtonPrimaryClickHandler(){this.calciteSplitButtonPrimaryClick.emit()}calciteSplitButtonSecondaryClickHandler(){this.calciteSplitButtonSecondaryClick.emit()}render(){let h=this.width==="auto"?"auto":"full";return p({disabled:this.disabled,children:o`<div class=${t(e.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconEnd=${this.primaryIconEnd?this.primaryIconEnd:null} .iconFlipRtl=${this.primaryIconFlipRtl?this.primaryIconFlipRtl:null} .iconStart=${this.primaryIconStart?this.primaryIconStart:null} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .scale=${this.scale} split-child=primary type=button .width=${h}>${this.primaryText}</calcite-button><div class=${t(e.dividerContainer)}><div class=${t(e.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .widthScale=${this.scale}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconStart=${this.dropdownIcon} .kind=${this.kind} .label=${this.dropdownLabel} .scale=${this.scale} slot=trigger split-child=secondary type=button></calcite-button><slot></slot></calcite-dropdown></div>`})}};l("calcite-split-button",a);export{a as SplitButton};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{a as b,b as g}from"./X6EDNQN2.js";import{a as f}from"./RSI5VQHT.js";import{a as h,b as p}from"./QV6PXGLB.js";import{e as m}from"./NLK3OCCK.js";import{b as u}from"./6OPQR7PL.js";import"./OLP7ABVK.js";import{C as r,J as d,e as c,f as o,j as s,w as a,x as i}from"./D7X7U5LL.js";var e={contentCell:"content-cell",numberCell:"number-cell",footerCell:"footer-cell",selectionCell:"selection-cell",selectedCell:"selected-cell",assistiveText:"assistive-text",lastCell:"last-cell",staticCell:"static-cell"},C=c`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{--calcite-internal-table-cell-background: var(--calcite-table-cell-background, transparent);display:contents}:host([alignment=center]) td:not(.selection-cell):not(.number-cell){text-align:center}:host([alignment=end]) td:not(.selection-cell):not(.number-cell){text-align:end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}td{white-space:normal;text-align:start;vertical-align:middle;color:var(--calcite-color-text-1);background:var(--calcite-internal-table-cell-background);font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:1px solid var(--calcite-color-border-3);padding:var(--calcite-internal-table-cell-padding)}td:not(.static-cell){outline-color:transparent}td:not(.static-cell):focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}td.start.content-cell{vertical-align:top}td.end.content-cell{vertical-align:bottom}td.last-cell{border-inline-end:0}.number-cell{background-color:var(--calcite-color-foreground-2)}.footer-cell{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);border-block-start:1px solid var(--calcite-color-border-3)}.number-cell,.selection-cell{text-align:center;border-inline-end:1px solid var(--calcite-color-border-3);inline-size:2rem;min-inline-size:2rem}.selection-cell{color:var(--calcite-color-text-3);inset-inline-start:2rem}.selection-cell:not(.footer-cell){cursor:pointer}.selected-cell:not(.number-cell):not(.footer-cell){--calcite-internal-table-cell-background: var(--calcite-color-foreground-current)}.selection-cell.selected-cell{box-shadow:inset .25rem 0 0 0 var(--calcite-color-brand);color:var(--calcite-color-brand)}.selection-cell.selected-cell calcite-icon{color:var(--calcite-color-brand)}.calcite--rtl.selection-cell.selected-cell{box-shadow:inset -.25rem 0 0 0 var(--calcite-color-brand)}.selection-cell{vertical-align:middle}.selection-cell ::slotted(calcite-icon){pointer-events:none;margin-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,n=class extends a{constructor(){super(...arguments),this.containerEl=h(),this.contentsText="",this.focused=!1,this.selectionText="",this.alignment="start",this.interactionMode="interactive",this.messages=f(),this.parentRowAlignment="start",this.scale="m"}static{this.properties={contentsText:16,focused:16,selectionText:16,alignment:3,colSpan:11,disabled:5,interactionMode:1,lastCell:5,messageOverrides:0,numberCell:5,parentRowAlignment:1,parentRowIsSelected:5,parentRowPositionLocalized:1,parentRowType:1,positionInRow:9,readCellContentsToAT:5,rowSpan:11,scale:1,selectionCell:5}}static{this.styles=C}async setFocus(){await u(this),this.containerEl.value.focus()}async load(){this.updateScreenReaderContentsText(),this.updateScreenReaderSelectionText()}willUpdate(t){t.has("parentRowIsSelected")&&this.updateScreenReaderSelectionText()}updated(){b(this)}loaded(){}updateScreenReaderSelectionText(){let t=`${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.selected} ${this.messages?.keyboardDeselect}`,l=`${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.unselected} ${this.messages?.keyboardSelect}`;this.selectionText=this.parentRowIsSelected?t:l}updateScreenReaderContentsText(){this.contentsText=this.el.textContent}onContainerBlur(){this.focused=!1}onContainerFocus(){this.focused=!0}render(){let t=m(this.el),l=this.disabled||this.interactionMode==="static"&&(!this.selectionCell||this.selectionCell&&this.parentRowType==="foot");return g({disabled:this.disabled,children:o`<td class=${i({[e.footerCell]:this.parentRowType==="foot",[e.contentCell]:!this.numberCell&&!this.selectionCell,[e.numberCell]:this.numberCell,[e.selectionCell]:this.selectionCell,[e.selectedCell]:this.parentRowIsSelected,[e.lastCell]:this.lastCell&&(!this.rowSpan||this.colSpan&&!!this.rowSpan),[r.rtl]:t==="rtl",[e.staticCell]:l,[this.parentRowAlignment]:this.parentRowAlignment==="start"||this.parentRowAlignment==="end"})} colSpan=${this.colSpan??s} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} .role=${this.interactionMode==="interactive"?"gridcell":"cell"} rowSpan=${this.rowSpan??s} .tabIndex=${l?-1:0} ${p(this.containerEl)}>${(this.selectionCell||this.readCellContentsToAT)&&o`<span .ariaLive=${this.focused?"polite":"off"} class=${i(e.assistiveText)}>${this.selectionCell&&this.selectionText||""}${this.readCellContentsToAT&&!this.selectionCell&&this.contentsText||""}</span>`||""}<slot @slotchange=${this.updateScreenReaderContentsText}></slot></td>`})}};d("calcite-table-cell",n);export{n as TableCell};
3
+ v3.0.2 */
4
+ import{a as b,b as g}from"./WRT5VFG2.js";import{a as f}from"./SMJSXUYT.js";import{a as h,b as p}from"./FC7N6LLB.js";import{e as m}from"./GO4QOK2G.js";import{b as u}from"./PBIOUIAG.js";import"./P7S34RN4.js";import{C as r,J as d,e as c,f as o,j as s,w as a,x as i}from"./63TOND25.js";var e={contentCell:"content-cell",numberCell:"number-cell",footerCell:"footer-cell",selectionCell:"selection-cell",selectedCell:"selected-cell",assistiveText:"assistive-text",lastCell:"last-cell",staticCell:"static-cell"},C=c`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{--calcite-internal-table-cell-background: var(--calcite-table-cell-background, transparent);display:contents}:host([alignment=center]) td:not(.selection-cell):not(.number-cell){text-align:center}:host([alignment=end]) td:not(.selection-cell):not(.number-cell){text-align:end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}td{white-space:normal;text-align:start;vertical-align:middle;color:var(--calcite-color-text-1);background:var(--calcite-internal-table-cell-background);font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:1px solid var(--calcite-color-border-3);padding:var(--calcite-internal-table-cell-padding)}td:not(.static-cell){outline-color:transparent}td:not(.static-cell):focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}td.start.content-cell{vertical-align:top}td.end.content-cell{vertical-align:bottom}td.last-cell{border-inline-end:0}.number-cell{background-color:var(--calcite-color-foreground-2)}.footer-cell{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);border-block-start:1px solid var(--calcite-color-border-3)}.number-cell,.selection-cell{text-align:center;border-inline-end:1px solid var(--calcite-color-border-3);inline-size:2rem;min-inline-size:2rem}.selection-cell{color:var(--calcite-color-text-3);inset-inline-start:2rem}.selection-cell:not(.footer-cell){cursor:pointer}.selected-cell:not(.number-cell):not(.footer-cell){--calcite-internal-table-cell-background: var(--calcite-color-foreground-current)}.selection-cell.selected-cell{box-shadow:inset .25rem 0 0 0 var(--calcite-color-brand);color:var(--calcite-color-brand)}.selection-cell.selected-cell calcite-icon{color:var(--calcite-color-brand)}.calcite--rtl.selection-cell.selected-cell{box-shadow:inset -.25rem 0 0 0 var(--calcite-color-brand)}.selection-cell{vertical-align:middle}.selection-cell ::slotted(calcite-icon){pointer-events:none;margin-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,n=class extends a{constructor(){super(...arguments),this.containerEl=h(),this.contentsText="",this.focused=!1,this.selectionText="",this.alignment="start",this.interactionMode="interactive",this.messages=f(),this.parentRowAlignment="start",this.scale="m"}static{this.properties={contentsText:16,focused:16,selectionText:16,alignment:3,colSpan:11,disabled:5,interactionMode:1,lastCell:5,messageOverrides:0,numberCell:5,parentRowAlignment:1,parentRowIsSelected:5,parentRowPositionLocalized:1,parentRowType:1,positionInRow:9,readCellContentsToAT:5,rowSpan:11,scale:1,selectionCell:5}}static{this.styles=C}async setFocus(){await u(this),this.containerEl.value.focus()}async load(){this.updateScreenReaderContentsText(),this.updateScreenReaderSelectionText()}willUpdate(t){t.has("parentRowIsSelected")&&this.updateScreenReaderSelectionText()}updated(){b(this)}loaded(){}updateScreenReaderSelectionText(){let t=`${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.selected} ${this.messages?.keyboardDeselect}`,l=`${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.unselected} ${this.messages?.keyboardSelect}`;this.selectionText=this.parentRowIsSelected?t:l}updateScreenReaderContentsText(){this.contentsText=this.el.textContent}onContainerBlur(){this.focused=!1}onContainerFocus(){this.focused=!0}render(){let t=m(this.el),l=this.disabled||this.interactionMode==="static"&&(!this.selectionCell||this.selectionCell&&this.parentRowType==="foot");return g({disabled:this.disabled,children:o`<td class=${i({[e.footerCell]:this.parentRowType==="foot",[e.contentCell]:!this.numberCell&&!this.selectionCell,[e.numberCell]:this.numberCell,[e.selectionCell]:this.selectionCell,[e.selectedCell]:this.parentRowIsSelected,[e.lastCell]:this.lastCell&&(!this.rowSpan||this.colSpan&&!!this.rowSpan),[r.rtl]:t==="rtl",[e.staticCell]:l,[this.parentRowAlignment]:this.parentRowAlignment==="start"||this.parentRowAlignment==="end"})} colSpan=${this.colSpan??s} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} .role=${this.interactionMode==="interactive"?"gridcell":"cell"} rowSpan=${this.rowSpan??s} .tabIndex=${l?-1:0} ${p(this.containerEl)}>${(this.selectionCell||this.readCellContentsToAT)&&o`<span .ariaLive=${this.focused?"polite":"off"} class=${i(e.assistiveText)}>${this.selectionCell&&this.selectionText||""}${this.readCellContentsToAT&&!this.selectionCell&&this.contentsText||""}</span>`||""}<slot @slotchange=${this.updateScreenReaderContentsText}></slot></td>`})}};d("calcite-table-cell",n);export{n as TableCell};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{b as _}from"./EB432BS5.js";import"./MCZED6UJ.js";var l={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xE7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xE7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xED %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){var s;return e===1||e===3?s="r":e===2?s="n":e===4?s="t":s="\xE8",""+e+s}};_.locale(l,null,!0);var a=l;export{a as default};
3
+ v3.0.2 */
4
+ import{b as _}from"./AG3OBGY5.js";import"./B4RFHTW2.js";var l={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xE7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xE7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xED %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){var s;return e===1||e===3?s="r":e===2?s="n":e===4?s="t":s="\xE8",""+e+s}};_.locale(l,null,!0);var a=l;export{a as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{b as _}from"./EB432BS5.js";import"./MCZED6UJ.js";var r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var a=e===1?"er":"";return""+e+a}};_.locale(r,null,!0);var s=r;export{s as default};
3
+ v3.0.2 */
4
+ import{b as _}from"./AG3OBGY5.js";import"./B4RFHTW2.js";var r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var a=e===1?"er":"";return""+e+a}};_.locale(r,null,!0);var s=r;export{s as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{a as g,b as p,d as L,f as D,g as k,h as I,j as T,l as H,m as S,o as x,p as E}from"./AQANFQEK.js";import{b as h,c as v}from"./MVBR6FNF.js";import{b as d}from"./FYUK2GME.js";import{a as C}from"./HMZA4X6S.js";import"./4GUL5QXY.js";import{b}from"./5YBMD5MK.js";import{a as A}from"./RSI5VQHT.js";import{b as f}from"./QV6PXGLB.js";import{e as V}from"./NLK3OCCK.js";import{b as $}from"./6OPQR7PL.js";import"./OLP7ABVK.js";import{J as U,e as F,f as m,v as y,w as P,x as o}from"./D7X7U5LL.js";var t={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonFractionalSecondDown:"button--fractionalSecond-down",buttonFractionalSecondUp:"button--fractionalSecond-up",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",decimalSeparator:"decimal-separator",delimiter:"delimiter",fractionalSecond:"fractionalSecond",hour:"hour",hourSuffix:"hour-suffix",input:"input",inputFocus:"inputFocus",meridiem:"meridiem",minute:"minute",minuteSuffix:"minute-suffix",second:"second",secondSuffix:"second-suffix",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},W=F`:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-color-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:var(--calcite-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-color-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-color-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-2);z-index:var(--calcite-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;outline-offset:0}.time-picker .input.inputFocus,.time-picker .input:hover.inputFocus{box-shadow:inset 0 0 0 2px var(--calcite-color-brand);z-index:var(--calcite-z-index-header)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:.75rem;padding-block:.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}`;function G(w){return w.charAt(0).toUpperCase()+w.slice(1)}var z=class extends P{constructor(){super(),this.pointerActivated=!1,this.localizedDecimalSeparator=".",this.hourFormat="user",this.messages=A(),this.scale="m",this.step=60,this.value=null,this.calciteTimePickerChange=y({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.listen("pointerdown",this.pointerDownHandler)}static{this.properties={activeEl:16,effectiveHourFormat:16,fractionalSecond:16,hour:16,localizedDecimalSeparator:16,localizedFractionalSecond:16,localizedHour:16,localizedHourSuffix:16,localizedMeridiem:16,localizedMinute:16,localizedMinuteSuffix:16,localizedSecond:16,localizedSecondSuffix:16,meridiem:16,minute:16,second:16,showFractionalSecond:16,showSecond:16,hourFormat:3,messageOverrides:0,numberingSystem:1,scale:3,step:11,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=W}async setFocus(){await $(this),this.el?.focus()}connectedCallback(){super.connectedCallback(),this.updateLocale(),this.toggleSecond()}async load(){}willUpdate(e){e.has("step")&&(this.hasUpdated||this.step!==60)&&this.toggleSecond(),e.has("value")&&(this.hasUpdated||this.value!==null)&&this.setValue(this.value),(e.has("hourFormat")||e.has("messages"))&&this.updateLocale()}loaded(){}blurHandler(){this.activeEl=void 0,this.pointerActivated=!1}keyDownHandler(e){this.pointerActivated=!1;let{defaultPrevented:i,key:a}=e;if(!i)switch(this.activeEl){case this.hourEl:a==="ArrowRight"&&(this.focusPart("minute"),e.preventDefault());break;case this.minuteEl:switch(a){case"ArrowLeft":this.focusPart("hour"),e.preventDefault();break;case"ArrowRight":this.step!==60?(this.focusPart("second"),e.preventDefault()):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.secondEl:switch(a){case"ArrowLeft":this.focusPart("minute"),e.preventDefault();break;case"ArrowRight":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.fractionalSecondEl:switch(a){case"ArrowLeft":this.focusPart("second"),e.preventDefault();break;case"ArrowRight":this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.meridiemEl:switch(a){case"ArrowLeft":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.step!==60?(this.focusPart("second"),e.preventDefault()):(this.focusPart("minute"),e.preventDefault());break}break}}pointerDownHandler(){this.pointerActivated=!0}async focusPart(e){await $(this),this[`${e||"hour"}El`]?.focus()}decrementHour(){let e=this.hour?parseInt(this.hour)===0?23:parseInt(this.hour)-1:0;this.setValuePart("hour",e)}decrementMeridiem(){let e=this.meridiem==="PM"?"AM":"PM";this.setValuePart("meridiem",e)}decrementMinuteOrSecond(e){let i;if(d(this[e])){let a=parseInt(this[e]);i=a===0?59:a-1}else i=59;this.setValuePart(e,i)}decrementMinute(){this.decrementMinuteOrSecond("minute")}decrementSecond(){this.decrementMinuteOrSecond("second")}focusHandler(e){this.pointerActivated||(this.activeEl=e.currentTarget)}fractionalSecondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=h(this.step),s=parseInt(this.fractionalSecond),n=s.toString().length,r;n>=a?r=i.padStart(a,"0"):n<a&&(r=`${s}${i}`.padStart(a,"0")),this.setValuePart("fractionalSecond",parseFloat(`0.${r}`))}else switch(i){case"Backspace":case"Delete":this.setValuePart("fractionalSecond",null);break;case"ArrowDown":e.preventDefault(),this.nudgeFractionalSecond("down");break;case"ArrowUp":e.preventDefault(),this.nudgeFractionalSecond("up");break;case" ":e.preventDefault();break}}fractionalSecondDownClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("down")}fractionalSecondUpClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("up")}hourDownClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.decrementHour()}hourKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.hour))switch(this.effectiveHourFormat){case"12":s=this.hour==="01"&&a>=0&&a<=2?`1${a}`:a;break;case"24":this.hour==="01"?s=`1${a}`:this.hour==="02"&&a>=0&&a<=3?s=`2${a}`:s=a;break}else s=a;this.setValuePart("hour",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":e.preventDefault(),this.decrementHour();break;case"ArrowUp":e.preventDefault(),this.incrementHour();break;case" ":e.preventDefault();break}}hourUpClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.incrementHour()}incrementMeridiem(){let e=this.meridiem==="AM"?"PM":"AM";this.setValuePart("meridiem",e)}incrementHour(){let e=d(this.hour)?this.hour==="23"?0:parseInt(this.hour)+1:1;this.setValuePart("hour",e)}incrementMinuteOrSecond(e){let i=d(this[e])?this[e]==="59"?0:parseInt(this[e])+1:0;this.setValuePart(e,i)}incrementMinute(){this.incrementMinuteOrSecond("minute")}incrementSecond(){this.incrementMinuteOrSecond("second")}inputClickHandler(e){this.activeEl=e.target}meridiemUpClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.incrementMeridiem()}meridiemKeyDownHandler(e){switch(e.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":e.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":e.preventDefault(),this.decrementMeridiem();break;case" ":e.preventDefault();break}}meridiemDownClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.decrementMeridiem()}minuteDownClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.decrementMinute()}minuteUpClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.incrementMinute()}minuteKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.minute)&&this.minute.startsWith("0")){let n=parseInt(this.minute);s=n>g?a:`${n}${a}`}else s=a;this.setValuePart("minute",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":e.preventDefault(),this.decrementMinute();break;case"ArrowUp":e.preventDefault(),this.incrementMinute();break;case" ":e.preventDefault();break}}nudgeFractionalSecond(e){let i=v(this.step),a=h(this.step),s=parseInt(this.fractionalSecond),n=parseFloat(`0.${this.fractionalSecond}`),r,l,c,u;e==="up"&&(r=isNaN(s)?0:n+i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0?p(c,a):"".padStart(a,"0")),e==="down"&&(r=isNaN(s)||s===0?1-i:n-i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0&&Math.sign(c)===1?p(c,a):"".padStart(a,"0")),this.setValuePart("fractionalSecond",u)}sanitizeValue(e){let{hour:i,minute:a,second:s,fractionalSecond:n}=E(e);if(n){let r=this.sanitizeFractionalSecond(n);return`${i}:${a}:${s}.${r}`}return H(e)&&e}sanitizeFractionalSecond(e){return e&&h(this.step)!==e.length?parseFloat(`0.${e}`).toFixed(h(this.step)).replace("0.",""):e}secondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.second)&&this.second.startsWith("0")){let n=parseInt(this.second);s=n>g?a:`${n}${a}`}else s=a;this.setValuePart("second",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":e.preventDefault(),this.decrementSecond();break;case"ArrowUp":e.preventDefault(),this.incrementSecond();break;case" ":e.preventDefault();break}}secondDownClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.decrementSecond()}secondUpClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.incrementSecond()}setHourEl(e){this.hourEl=e}setMeridiemEl(e){this.meridiemEl=e}setMinuteEl(e){this.minuteEl=e}setSecondEl(e){this.secondEl=e}setFractionalSecondEl(e){this.fractionalSecondEl=e}setValue(e){if(H(e)){let{hour:i,minute:a,second:s,fractionalSecond:n}=E(e),{effectiveHourFormat:r,messages:{_lang:l},numberingSystem:c}=this,{localizedHour:u,localizedHourSuffix:K,localizedMinute:O,localizedMinuteSuffix:_,localizedSecond:B,localizedDecimalSeparator:N,localizedFractionalSecond:R,localizedSecondSuffix:j,localizedMeridiem:M}=x({value:e,locale:l,numberingSystem:c,hour12:r==="12"});this.hour=i,this.minute=a,this.second=s,this.fractionalSecond=this.sanitizeFractionalSecond(n),this.localizedHour=u,this.localizedHourSuffix=K,this.localizedMinute=O,this.localizedMinuteSuffix=_,this.localizedSecond=B,this.localizedDecimalSeparator=N,this.localizedFractionalSecond=R,this.localizedSecondSuffix=j,M&&(this.localizedMeridiem=M,this.meridiem=I(this.hour))}else this.hour=null,this.fractionalSecond=null,this.localizedHour=null,this.localizedHourSuffix=k("hour",this.messages._lang,this.numberingSystem),this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=k("minute",this.messages._lang,this.numberingSystem),this.localizedSecond=null,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.localizedFractionalSecond=null,this.localizedSecondSuffix=k("second",this.messages._lang,this.numberingSystem),this.meridiem=null,this.minute=null,this.second=null,this.value=null}setValuePart(e,i){let{effectiveHourFormat:a,messages:{_lang:s},numberingSystem:n}=this,r=a==="12";if(e==="meridiem"){if(this.meridiem=i,d(this.hour)){let u=parseInt(this.hour);switch(i){case"AM":u>=12&&(this.hour=p(u-12));break;case"PM":u<12&&(this.hour=p(u+12));break}this.localizedHour=S({value:this.hour,part:"hour",locale:s,numberingSystem:n,hour12:r})}}else if(e==="fractionalSecond"){let u=h(this.step);typeof i=="number"?this.fractionalSecond=i===0?"".padStart(u,"0"):p(i,u):this.fractionalSecond=i,this.localizedFractionalSecond=S({value:this.fractionalSecond,part:"fractionalSecond",locale:s,numberingSystem:n,hour12:r})}else this[e]=typeof i=="number"?p(i):i,this[`localized${G(e)}`]=S({value:this[e],part:e,locale:s,numberingSystem:n,hour12:r});let l=!1,c;this.hour&&this.minute?(c=`${this.hour}:${this.minute}`,this.showSecond&&(c=`${c}:${this.second??"00"}`,this.showFractionalSecond&&this.fractionalSecond&&(c=`${c}.${this.fractionalSecond}`))):c=null,this.value!==c&&(l=!0),this.value=c,this.localizedMeridiem=this.value?x({hour12:r,locale:s,numberingSystem:n,value:this.value})?.localizedMeridiem||null:S({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:n}),l&&this.calciteTimePickerChange.emit()}toggleSecond(){this.showSecond=this.step<60,this.showFractionalSecond=h(this.step)>0}updateLocale(){this.effectiveHourFormat=this.hourFormat==="user"?L(this.messages._lang):this.hourFormat,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.meridiemOrder=T(this.messages._lang),this.setValue(this.sanitizeValue(this.value))}render(){let e=d(this.hour),i=C(this.scale),a=d(this.minute),s=d(this.second),n=d(this.fractionalSecond),r=this.messages._lang!=="bg"&&this.localizedSecondSuffix,l=this.effectiveHourFormat==="12";return m`<div class=${o({[t.timePicker]:!0,[t.showMeridiem]:l,[t.showSecond]:this.showSecond,[t[`scale-${this.scale}`]]:!0})} dir=ltr><div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.hourUp} class=${o({[t.button]:!0,[t.buttonHourUp]:!0,[t.buttonTopLeft]:!0})} @click=${this.hourUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.hour} aria-valuemax=23 aria-valuemin=1 .ariaValueNow=${e&&parseInt(this.hour)||"0"} .ariaValueText=${this.hour} class=${o({[t.input]:!0,[t.hour]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.hourEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.hourKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setHourEl)}>${this.localizedHour||"--"}</span><span .ariaLabel=${this.messages.hourDown} class=${o({[t.button]:!0,[t.buttonHourDown]:!0,[t.buttonBottomLeft]:!0})} @click=${this.hourDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div><span class=${o({[t.delimiter]:!0,[t.hourSuffix]:!0})}>${this.localizedHourSuffix}</span><div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.minuteUp} class=${o({[t.button]:!0,[t.buttonMinuteUp]:!0})} @click=${this.minuteUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.minute} aria-valuemax=12 aria-valuemin=1 .ariaValueNow=${a&&parseInt(this.minute)||"0"} .ariaValueText=${this.minute} class=${o({[t.input]:!0,[t.minute]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.minuteEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.minuteKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMinuteEl)}>${this.localizedMinute||"--"}</span><span .ariaLabel=${this.messages.minuteDown} class=${o({[t.button]:!0,[t.buttonMinuteDown]:!0})} @click=${this.minuteDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>${this.showSecond&&m`<span class=${o({[t.delimiter]:!0,[t.minuteSuffix]:!0})}>${this.localizedMinuteSuffix}</span>`||""}${this.showSecond&&m`<div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.secondUp} class=${o({[t.button]:!0,[t.buttonSecondUp]:!0})} @click=${this.secondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.second} aria-valuemax=59 aria-valuemin=0 .ariaValueNow=${s&&parseInt(this.second)||"0"} .ariaValueText=${this.second} class=${o({[t.input]:!0,[t.second]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.secondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.secondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setSecondEl)}>${this.localizedSecond||"--"}</span><span .ariaLabel=${this.messages.secondDown} class=${o({[t.button]:!0,[t.buttonSecondDown]:!0})} @click=${this.secondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${this.showFractionalSecond&&m`<span class=${o({[t.delimiter]:!0,[t.decimalSeparator]:!0})}>${this.localizedDecimalSeparator}</span>`||""}${this.showFractionalSecond&&m`<div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.fractionalSecondUp} class=${o({[t.button]:!0,[t.buttonFractionalSecondUp]:!0})} @click=${this.fractionalSecondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.fractionalSecond} aria-valuemax=999 aria-valuemin=1 .ariaValueNow=${n&&parseInt(this.fractionalSecond)||"0"} .ariaValueText=${this.localizedFractionalSecond} class=${o({[t.input]:!0,[t.fractionalSecond]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.fractionalSecondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.fractionalSecondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setFractionalSecondEl)}>${this.localizedFractionalSecond||"--"}</span><span .ariaLabel=${this.messages.fractionalSecondDown} class=${o({[t.button]:!0,[t.buttonFractionalSecondDown]:!0})} @click=${this.fractionalSecondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${r&&m`<span class=${o({[t.delimiter]:!0,[t.secondSuffix]:!0})}>${this.localizedSecondSuffix}</span>`||""}${l&&m`<div class=${o({[t.column]:!0,[t.meridiemStart]:this.meridiemOrder===0||V(this.el)==="rtl"})} role=group><span .ariaLabel=${this.messages.meridiemUp} class=${o({[t.button]:!0,[t.buttonMeridiemUp]:!0,[t.buttonTopRight]:!0})} @click=${this.meridiemUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.meridiem} aria-valuemax=2 aria-valuemin=1 .ariaValueNow=${this.meridiem==="PM"&&"2"||"1"} .ariaValueText=${this.meridiem} class=${o({[t.input]:!0,[t.meridiem]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.meridiemEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.meridiemKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMeridiemEl)}>${this.localizedMeridiem||"--"}</span><span .ariaLabel=${this.messages.meridiemDown} class=${o({[t.button]:!0,[t.buttonMeridiemDown]:!0,[t.buttonBottomRight]:!0})} @click=${this.meridiemDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}</div>`}};U("calcite-time-picker",z);export{z as TimePicker};
3
+ v3.0.2 */
4
+ import{a as g,b as p,d as L,f as D,g as k,h as I,j as T,l as H,m as S,o as x,p as E}from"./R4SFKVAB.js";import{b as h,c as v}from"./5LT4TL2A.js";import{b as d}from"./2XQRDBOF.js";import{a as C}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{b}from"./R4WJ47LZ.js";import{a as A}from"./SMJSXUYT.js";import{b as f}from"./FC7N6LLB.js";import{e as V}from"./GO4QOK2G.js";import{b as $}from"./PBIOUIAG.js";import"./P7S34RN4.js";import{J as U,e as F,f as m,v as y,w as P,x as o}from"./63TOND25.js";var t={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonFractionalSecondDown:"button--fractionalSecond-down",buttonFractionalSecondUp:"button--fractionalSecond-up",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",decimalSeparator:"decimal-separator",delimiter:"delimiter",fractionalSecond:"fractionalSecond",hour:"hour",hourSuffix:"hour-suffix",input:"input",inputFocus:"inputFocus",meridiem:"meridiem",minute:"minute",minuteSuffix:"minute-suffix",second:"second",secondSuffix:"second-suffix",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},W=F`:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-color-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:var(--calcite-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-color-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-color-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-2);z-index:var(--calcite-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;outline-offset:0}.time-picker .input.inputFocus,.time-picker .input:hover.inputFocus{box-shadow:inset 0 0 0 2px var(--calcite-color-brand);z-index:var(--calcite-z-index-header)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:.75rem;padding-block:.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}`;function G(w){return w.charAt(0).toUpperCase()+w.slice(1)}var z=class extends P{constructor(){super(),this.pointerActivated=!1,this.localizedDecimalSeparator=".",this.hourFormat="user",this.messages=A(),this.scale="m",this.step=60,this.value=null,this.calciteTimePickerChange=y({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.listen("pointerdown",this.pointerDownHandler)}static{this.properties={activeEl:16,effectiveHourFormat:16,fractionalSecond:16,hour:16,localizedDecimalSeparator:16,localizedFractionalSecond:16,localizedHour:16,localizedHourSuffix:16,localizedMeridiem:16,localizedMinute:16,localizedMinuteSuffix:16,localizedSecond:16,localizedSecondSuffix:16,meridiem:16,minute:16,second:16,showFractionalSecond:16,showSecond:16,hourFormat:3,messageOverrides:0,numberingSystem:1,scale:3,step:11,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=W}async setFocus(){await $(this),this.el?.focus()}connectedCallback(){super.connectedCallback(),this.updateLocale(),this.toggleSecond()}async load(){}willUpdate(e){e.has("step")&&(this.hasUpdated||this.step!==60)&&this.toggleSecond(),e.has("value")&&(this.hasUpdated||this.value!==null)&&this.setValue(this.value),(e.has("hourFormat")||e.has("messages"))&&this.updateLocale()}loaded(){}blurHandler(){this.activeEl=void 0,this.pointerActivated=!1}keyDownHandler(e){this.pointerActivated=!1;let{defaultPrevented:i,key:a}=e;if(!i)switch(this.activeEl){case this.hourEl:a==="ArrowRight"&&(this.focusPart("minute"),e.preventDefault());break;case this.minuteEl:switch(a){case"ArrowLeft":this.focusPart("hour"),e.preventDefault();break;case"ArrowRight":this.step!==60?(this.focusPart("second"),e.preventDefault()):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.secondEl:switch(a){case"ArrowLeft":this.focusPart("minute"),e.preventDefault();break;case"ArrowRight":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.fractionalSecondEl:switch(a){case"ArrowLeft":this.focusPart("second"),e.preventDefault();break;case"ArrowRight":this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.meridiemEl:switch(a){case"ArrowLeft":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.step!==60?(this.focusPart("second"),e.preventDefault()):(this.focusPart("minute"),e.preventDefault());break}break}}pointerDownHandler(){this.pointerActivated=!0}async focusPart(e){await $(this),this[`${e||"hour"}El`]?.focus()}decrementHour(){let e=this.hour?parseInt(this.hour)===0?23:parseInt(this.hour)-1:0;this.setValuePart("hour",e)}decrementMeridiem(){let e=this.meridiem==="PM"?"AM":"PM";this.setValuePart("meridiem",e)}decrementMinuteOrSecond(e){let i;if(d(this[e])){let a=parseInt(this[e]);i=a===0?59:a-1}else i=59;this.setValuePart(e,i)}decrementMinute(){this.decrementMinuteOrSecond("minute")}decrementSecond(){this.decrementMinuteOrSecond("second")}focusHandler(e){this.pointerActivated||(this.activeEl=e.currentTarget)}fractionalSecondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=h(this.step),s=parseInt(this.fractionalSecond),n=s.toString().length,r;n>=a?r=i.padStart(a,"0"):n<a&&(r=`${s}${i}`.padStart(a,"0")),this.setValuePart("fractionalSecond",parseFloat(`0.${r}`))}else switch(i){case"Backspace":case"Delete":this.setValuePart("fractionalSecond",null);break;case"ArrowDown":e.preventDefault(),this.nudgeFractionalSecond("down");break;case"ArrowUp":e.preventDefault(),this.nudgeFractionalSecond("up");break;case" ":e.preventDefault();break}}fractionalSecondDownClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("down")}fractionalSecondUpClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("up")}hourDownClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.decrementHour()}hourKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.hour))switch(this.effectiveHourFormat){case"12":s=this.hour==="01"&&a>=0&&a<=2?`1${a}`:a;break;case"24":this.hour==="01"?s=`1${a}`:this.hour==="02"&&a>=0&&a<=3?s=`2${a}`:s=a;break}else s=a;this.setValuePart("hour",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":e.preventDefault(),this.decrementHour();break;case"ArrowUp":e.preventDefault(),this.incrementHour();break;case" ":e.preventDefault();break}}hourUpClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.incrementHour()}incrementMeridiem(){let e=this.meridiem==="AM"?"PM":"AM";this.setValuePart("meridiem",e)}incrementHour(){let e=d(this.hour)?this.hour==="23"?0:parseInt(this.hour)+1:1;this.setValuePart("hour",e)}incrementMinuteOrSecond(e){let i=d(this[e])?this[e]==="59"?0:parseInt(this[e])+1:0;this.setValuePart(e,i)}incrementMinute(){this.incrementMinuteOrSecond("minute")}incrementSecond(){this.incrementMinuteOrSecond("second")}inputClickHandler(e){this.activeEl=e.target}meridiemUpClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.incrementMeridiem()}meridiemKeyDownHandler(e){switch(e.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":e.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":e.preventDefault(),this.decrementMeridiem();break;case" ":e.preventDefault();break}}meridiemDownClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.decrementMeridiem()}minuteDownClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.decrementMinute()}minuteUpClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.incrementMinute()}minuteKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.minute)&&this.minute.startsWith("0")){let n=parseInt(this.minute);s=n>g?a:`${n}${a}`}else s=a;this.setValuePart("minute",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":e.preventDefault(),this.decrementMinute();break;case"ArrowUp":e.preventDefault(),this.incrementMinute();break;case" ":e.preventDefault();break}}nudgeFractionalSecond(e){let i=v(this.step),a=h(this.step),s=parseInt(this.fractionalSecond),n=parseFloat(`0.${this.fractionalSecond}`),r,l,c,u;e==="up"&&(r=isNaN(s)?0:n+i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0?p(c,a):"".padStart(a,"0")),e==="down"&&(r=isNaN(s)||s===0?1-i:n-i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0&&Math.sign(c)===1?p(c,a):"".padStart(a,"0")),this.setValuePart("fractionalSecond",u)}sanitizeValue(e){let{hour:i,minute:a,second:s,fractionalSecond:n}=E(e);if(n){let r=this.sanitizeFractionalSecond(n);return`${i}:${a}:${s}.${r}`}return H(e)&&e}sanitizeFractionalSecond(e){return e&&h(this.step)!==e.length?parseFloat(`0.${e}`).toFixed(h(this.step)).replace("0.",""):e}secondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.second)&&this.second.startsWith("0")){let n=parseInt(this.second);s=n>g?a:`${n}${a}`}else s=a;this.setValuePart("second",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":e.preventDefault(),this.decrementSecond();break;case"ArrowUp":e.preventDefault(),this.incrementSecond();break;case" ":e.preventDefault();break}}secondDownClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.decrementSecond()}secondUpClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.incrementSecond()}setHourEl(e){this.hourEl=e}setMeridiemEl(e){this.meridiemEl=e}setMinuteEl(e){this.minuteEl=e}setSecondEl(e){this.secondEl=e}setFractionalSecondEl(e){this.fractionalSecondEl=e}setValue(e){if(H(e)){let{hour:i,minute:a,second:s,fractionalSecond:n}=E(e),{effectiveHourFormat:r,messages:{_lang:l},numberingSystem:c}=this,{localizedHour:u,localizedHourSuffix:K,localizedMinute:O,localizedMinuteSuffix:_,localizedSecond:B,localizedDecimalSeparator:N,localizedFractionalSecond:R,localizedSecondSuffix:j,localizedMeridiem:M}=x({value:e,locale:l,numberingSystem:c,hour12:r==="12"});this.hour=i,this.minute=a,this.second=s,this.fractionalSecond=this.sanitizeFractionalSecond(n),this.localizedHour=u,this.localizedHourSuffix=K,this.localizedMinute=O,this.localizedMinuteSuffix=_,this.localizedSecond=B,this.localizedDecimalSeparator=N,this.localizedFractionalSecond=R,this.localizedSecondSuffix=j,M&&(this.localizedMeridiem=M,this.meridiem=I(this.hour))}else this.hour=null,this.fractionalSecond=null,this.localizedHour=null,this.localizedHourSuffix=k("hour",this.messages._lang,this.numberingSystem),this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=k("minute",this.messages._lang,this.numberingSystem),this.localizedSecond=null,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.localizedFractionalSecond=null,this.localizedSecondSuffix=k("second",this.messages._lang,this.numberingSystem),this.meridiem=null,this.minute=null,this.second=null,this.value=null}setValuePart(e,i){let{effectiveHourFormat:a,messages:{_lang:s},numberingSystem:n}=this,r=a==="12";if(e==="meridiem"){if(this.meridiem=i,d(this.hour)){let u=parseInt(this.hour);switch(i){case"AM":u>=12&&(this.hour=p(u-12));break;case"PM":u<12&&(this.hour=p(u+12));break}this.localizedHour=S({value:this.hour,part:"hour",locale:s,numberingSystem:n,hour12:r})}}else if(e==="fractionalSecond"){let u=h(this.step);typeof i=="number"?this.fractionalSecond=i===0?"".padStart(u,"0"):p(i,u):this.fractionalSecond=i,this.localizedFractionalSecond=S({value:this.fractionalSecond,part:"fractionalSecond",locale:s,numberingSystem:n,hour12:r})}else this[e]=typeof i=="number"?p(i):i,this[`localized${G(e)}`]=S({value:this[e],part:e,locale:s,numberingSystem:n,hour12:r});let l=!1,c;this.hour&&this.minute?(c=`${this.hour}:${this.minute}`,this.showSecond&&(c=`${c}:${this.second??"00"}`,this.showFractionalSecond&&this.fractionalSecond&&(c=`${c}.${this.fractionalSecond}`))):c=null,this.value!==c&&(l=!0),this.value=c,this.localizedMeridiem=this.value?x({hour12:r,locale:s,numberingSystem:n,value:this.value})?.localizedMeridiem||null:S({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:n}),l&&this.calciteTimePickerChange.emit()}toggleSecond(){this.showSecond=this.step<60,this.showFractionalSecond=h(this.step)>0}updateLocale(){this.effectiveHourFormat=this.hourFormat==="user"?L(this.messages._lang):this.hourFormat,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.meridiemOrder=T(this.messages._lang),this.setValue(this.sanitizeValue(this.value))}render(){let e=d(this.hour),i=C(this.scale),a=d(this.minute),s=d(this.second),n=d(this.fractionalSecond),r=this.messages._lang!=="bg"&&this.localizedSecondSuffix,l=this.effectiveHourFormat==="12";return m`<div class=${o({[t.timePicker]:!0,[t.showMeridiem]:l,[t.showSecond]:this.showSecond,[t[`scale-${this.scale}`]]:!0})} dir=ltr><div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.hourUp} class=${o({[t.button]:!0,[t.buttonHourUp]:!0,[t.buttonTopLeft]:!0})} @click=${this.hourUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.hour} aria-valuemax=23 aria-valuemin=1 .ariaValueNow=${e&&parseInt(this.hour)||"0"} .ariaValueText=${this.hour} class=${o({[t.input]:!0,[t.hour]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.hourEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.hourKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setHourEl)}>${this.localizedHour||"--"}</span><span .ariaLabel=${this.messages.hourDown} class=${o({[t.button]:!0,[t.buttonHourDown]:!0,[t.buttonBottomLeft]:!0})} @click=${this.hourDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div><span class=${o({[t.delimiter]:!0,[t.hourSuffix]:!0})}>${this.localizedHourSuffix}</span><div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.minuteUp} class=${o({[t.button]:!0,[t.buttonMinuteUp]:!0})} @click=${this.minuteUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.minute} aria-valuemax=12 aria-valuemin=1 .ariaValueNow=${a&&parseInt(this.minute)||"0"} .ariaValueText=${this.minute} class=${o({[t.input]:!0,[t.minute]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.minuteEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.minuteKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMinuteEl)}>${this.localizedMinute||"--"}</span><span .ariaLabel=${this.messages.minuteDown} class=${o({[t.button]:!0,[t.buttonMinuteDown]:!0})} @click=${this.minuteDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>${this.showSecond&&m`<span class=${o({[t.delimiter]:!0,[t.minuteSuffix]:!0})}>${this.localizedMinuteSuffix}</span>`||""}${this.showSecond&&m`<div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.secondUp} class=${o({[t.button]:!0,[t.buttonSecondUp]:!0})} @click=${this.secondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.second} aria-valuemax=59 aria-valuemin=0 .ariaValueNow=${s&&parseInt(this.second)||"0"} .ariaValueText=${this.second} class=${o({[t.input]:!0,[t.second]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.secondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.secondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setSecondEl)}>${this.localizedSecond||"--"}</span><span .ariaLabel=${this.messages.secondDown} class=${o({[t.button]:!0,[t.buttonSecondDown]:!0})} @click=${this.secondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${this.showFractionalSecond&&m`<span class=${o({[t.delimiter]:!0,[t.decimalSeparator]:!0})}>${this.localizedDecimalSeparator}</span>`||""}${this.showFractionalSecond&&m`<div class=${o(t.column)} role=group><span .ariaLabel=${this.messages.fractionalSecondUp} class=${o({[t.button]:!0,[t.buttonFractionalSecondUp]:!0})} @click=${this.fractionalSecondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.fractionalSecond} aria-valuemax=999 aria-valuemin=1 .ariaValueNow=${n&&parseInt(this.fractionalSecond)||"0"} .ariaValueText=${this.localizedFractionalSecond} class=${o({[t.input]:!0,[t.fractionalSecond]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.fractionalSecondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.fractionalSecondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setFractionalSecondEl)}>${this.localizedFractionalSecond||"--"}</span><span .ariaLabel=${this.messages.fractionalSecondDown} class=${o({[t.button]:!0,[t.buttonFractionalSecondDown]:!0})} @click=${this.fractionalSecondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${r&&m`<span class=${o({[t.delimiter]:!0,[t.secondSuffix]:!0})}>${this.localizedSecondSuffix}</span>`||""}${l&&m`<div class=${o({[t.column]:!0,[t.meridiemStart]:this.meridiemOrder===0||V(this.el)==="rtl"})} role=group><span .ariaLabel=${this.messages.meridiemUp} class=${o({[t.button]:!0,[t.buttonMeridiemUp]:!0,[t.buttonTopRight]:!0})} @click=${this.meridiemUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.meridiem} aria-valuemax=2 aria-valuemin=1 .ariaValueNow=${this.meridiem==="PM"&&"2"||"1"} .ariaValueText=${this.meridiem} class=${o({[t.input]:!0,[t.meridiem]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.meridiemEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.meridiemKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMeridiemEl)}>${this.localizedMeridiem||"--"}</span><span .ariaLabel=${this.messages.meridiemDown} class=${o({[t.button]:!0,[t.buttonMeridiemDown]:!0,[t.buttonBottomRight]:!0})} @click=${this.meridiemDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}</div>`}};U("calcite-time-picker",z);export{z as TimePicker};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.1 */
4
- import{b as a}from"./EB432BS5.js";import"./MCZED6UJ.js";var _={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xC7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xF6nce",s:"birka\xE7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xFCn",dd:"%d g\xFCn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(r){return r+"."}};a.locale(_,null,!0);var e=_;export{e as default};
3
+ v3.0.2 */
4
+ import{b as a}from"./AG3OBGY5.js";import"./B4RFHTW2.js";var _={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xC7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xF6nce",s:"birka\xE7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xFCn",dd:"%d g\xFCn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(r){return r+"."}};a.locale(_,null,!0);var e=_;export{e as default};