@esri/calcite-components 3.3.0-next.2 → 3.3.0-next.3

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 (337) hide show
  1. package/dist/calcite/{DVUSVDXP.js → 23O735X7.js} +2 -2
  2. package/dist/calcite/{TCXIIHOB.js → 2GZ5KDMB.js} +2 -2
  3. package/dist/calcite/{HINQN7DO.js → 2QGBU3QE.js} +2 -2
  4. package/dist/calcite/{MN7KZY4D.js → 2TV7LE74.js} +2 -2
  5. package/dist/calcite/{YSB73TCR.js → 36YM7WLT.js} +2 -2
  6. package/dist/calcite/{TNSHM4G5.js → 37UGADH6.js} +1 -1
  7. package/dist/calcite/{RCMZURAC.js → 3BU3B7G4.js} +2 -2
  8. package/dist/calcite/{LP2QN77F.js → 3FHAC5E6.js} +2 -2
  9. package/dist/calcite/{6DAOHZDS.js → 3FUZSFQV.js} +2 -2
  10. package/dist/calcite/{UMXWZDH2.js → 3K6KJFHZ.js} +2 -2
  11. package/dist/calcite/{GLDRUPBR.js → 3P6Y7L65.js} +2 -2
  12. package/dist/calcite/{UZPT2CDZ.js → 3UYFQ4D5.js} +2 -2
  13. package/dist/calcite/{Z4WNZG4T.js → 3WNNG5VI.js} +2 -2
  14. package/dist/calcite/{DY4Y4ZA7.js → 4GGRM7HA.js} +2 -2
  15. package/dist/calcite/{XAWEJ7WQ.js → 4MVCUT3O.js} +2 -2
  16. package/dist/calcite/{UU3HHSES.js → 4QJYID23.js} +2 -2
  17. package/dist/calcite/{6TKJFOMG.js → 4RHVH6AD.js} +1 -1
  18. package/dist/calcite/{A2NAXNDR.js → 4TEHKOSW.js} +2 -2
  19. package/dist/calcite/{ASBC5EK3.js → 4V4ZRGSC.js} +2 -2
  20. package/dist/calcite/{TCB4B6FI.js → 4WVFFWMW.js} +2 -2
  21. package/dist/calcite/{42P7F2AW.js → 5462NYWD.js} +1 -1
  22. package/dist/calcite/{3TN5O3V3.js → 5537I47Z.js} +2 -2
  23. package/dist/calcite/{6SUPNFJI.js → 5BQI6UUO.js} +2 -2
  24. package/dist/calcite/{3KJM2WZ3.js → 5DEOTGXN.js} +2 -2
  25. package/dist/calcite/{RKAWHFZD.js → 5FNKEQEP.js} +2 -2
  26. package/dist/calcite/{V6BR3SOV.js → 5SMQ2FKM.js} +2 -2
  27. package/dist/calcite/{PC2X4M3Y.js → 5VDZXF3P.js} +2 -2
  28. package/dist/calcite/{XNW4MDSX.js → 5XEXV4VE.js} +2 -2
  29. package/dist/calcite/{H2TJKHXK.js → 5XO455YV.js} +2 -2
  30. package/dist/calcite/{NKQQSF6G.js → 6FA6L6RG.js} +2 -2
  31. package/dist/calcite/6IWDITJJ.js +4 -0
  32. package/dist/calcite/{UOMNHHLH.js → 6UBYML3K.js} +2 -2
  33. package/dist/calcite/{26DY2OVS.js → 6XBUZT4H.js} +2 -2
  34. package/dist/calcite/{RUGXNI74.js → 7FDK7BMC.js} +1 -1
  35. package/dist/calcite/{SRKX3V64.js → 7GBYO4UV.js} +2 -2
  36. package/dist/calcite/{FF3M3OIA.js → 7SS4NBKV.js} +2 -2
  37. package/dist/calcite/{Q7GWXGTY.js → 7VNELD3S.js} +2 -2
  38. package/dist/calcite/{4OY3PDAU.js → A6NVO2ZG.js} +2 -2
  39. package/dist/calcite/{HTRVQQUY.js → AFN7FPPQ.js} +2 -2
  40. package/dist/calcite/{XX64YQOT.js → AJBSOM7T.js} +2 -2
  41. package/dist/calcite/{ZVRHMYO4.js → AKVUN7R2.js} +2 -2
  42. package/dist/calcite/{KC3O23SG.js → ALCIERVY.js} +2 -2
  43. package/dist/calcite/{L2X5NTJN.js → BCHJMPAF.js} +2 -2
  44. package/dist/calcite/{PMOYPBI2.js → BKJCZWUL.js} +2 -2
  45. package/dist/calcite/{EECLWIX6.js → BLZ7AOE4.js} +2 -2
  46. package/dist/calcite/{2RIN57D4.js → BSS542ZE.js} +2 -2
  47. package/dist/calcite/{FMZ4MWB7.js → C43XFCDS.js} +2 -2
  48. package/dist/calcite/{TJ62ATDF.js → C7KJJBJU.js} +2 -2
  49. package/dist/calcite/{P3DW4EVB.js → CACDRV4L.js} +2 -2
  50. package/dist/calcite/{IQVS3C3I.js → CEKPGXKE.js} +2 -2
  51. package/dist/calcite/{3NKG57QA.js → CKXI7HHN.js} +2 -2
  52. package/dist/calcite/{ZBZCYB3C.js → D5ND7FA7.js} +2 -2
  53. package/dist/calcite/{FEBC75CQ.js → DCCYA4VU.js} +2 -2
  54. package/dist/calcite/{4FSLQ5NU.js → DEFMOZ6C.js} +2 -2
  55. package/dist/calcite/{4NA5QKQK.js → DLPL7VPM.js} +2 -2
  56. package/dist/calcite/{MU7HUKCD.js → DRGATGH2.js} +2 -2
  57. package/dist/calcite/{OPSJMXYF.js → DSG576XN.js} +2 -2
  58. package/dist/calcite/{KOGQYBZL.js → DUPXT55M.js} +2 -2
  59. package/dist/calcite/{C6DDLY3A.js → EPLHCVZB.js} +2 -2
  60. package/dist/calcite/{HDHMANAP.js → EYMHT6BA.js} +1 -1
  61. package/dist/calcite/{URK7S3KK.js → FLPYI2QL.js} +2 -2
  62. package/dist/calcite/{DBND25OB.js → FQPGOAC6.js} +2 -2
  63. package/dist/calcite/{Y4D5NAZT.js → G2GLVL34.js} +2 -2
  64. package/dist/calcite/{DATYIQLA.js → G4M4XSPP.js} +1 -1
  65. package/dist/calcite/{JWJ4XLOO.js → G4XWJTBW.js} +2 -2
  66. package/dist/calcite/{I5YH35NV.js → G53N73BQ.js} +2 -2
  67. package/dist/calcite/{3KBUXY5F.js → GFUTJUID.js} +2 -2
  68. package/dist/calcite/{X3WSXY5X.js → GGYJUYD7.js} +1 -1
  69. package/dist/calcite/{4ZPAESXE.js → GLNILL3A.js} +2 -2
  70. package/dist/calcite/{FQ6WNJGV.js → H2QMNW27.js} +2 -2
  71. package/dist/calcite/{PKGDIBMJ.js → H3KF5SNR.js} +1 -1
  72. package/dist/calcite/{H6WMXDCP.js → HCHXX3GA.js} +2 -2
  73. package/dist/calcite/{O3SJZU5E.js → HCM4OVJ2.js} +2 -2
  74. package/dist/calcite/{GOWFVVVM.js → HDUQVMN5.js} +2 -2
  75. package/dist/calcite/{EXCXYKJM.js → HJPXA7ZK.js} +2 -2
  76. package/dist/calcite/{Z7X5M2G2.js → HQTTGU5J.js} +2 -2
  77. package/dist/calcite/{VYNR7DNZ.js → HVAVYXKX.js} +2 -2
  78. package/dist/calcite/{PEGDN4K3.js → HXJN22WV.js} +1 -1
  79. package/dist/calcite/{HGUNLJJ5.js → HXYGZELB.js} +2 -2
  80. package/dist/calcite/{GU5VWAMA.js → HZEOPHPT.js} +2 -2
  81. package/dist/calcite/{VGRZ5RZV.js → I2MUZTLY.js} +2 -2
  82. package/dist/calcite/{JBWVX3AW.js → IHHH6ICM.js} +1 -1
  83. package/dist/calcite/{LXYG7UXC.js → ILEQ62RN.js} +2 -2
  84. package/dist/calcite/{TDQVRAIX.js → IU4E3RKZ.js} +2 -2
  85. package/dist/calcite/{QYJUIRJT.js → IVWEXANT.js} +2 -2
  86. package/dist/calcite/{7MWU6DJZ.js → J3VMWX7I.js} +1 -1
  87. package/dist/calcite/{XXDEBSDI.js → J5XQ2VBJ.js} +2 -2
  88. package/dist/calcite/{PNZFAGXW.js → JC4NZ2NF.js} +2 -2
  89. package/dist/calcite/{K3ND7JFU.js → JHRZHWPN.js} +2 -2
  90. package/dist/calcite/{YU5JXQZ4.js → JI75AJTE.js} +2 -2
  91. package/dist/calcite/{I2WNYP3N.js → JWMUS7NY.js} +2 -2
  92. package/dist/calcite/{J6UIGWEW.js → K3J3Y56D.js} +2 -2
  93. package/dist/calcite/{NRTHIIW7.js → KGJ7UYEZ.js} +2 -2
  94. package/dist/calcite/{ZOAHNVK6.js → KI4MQSGL.js} +2 -2
  95. package/dist/calcite/{PHK2G6JF.js → KKV4CWTQ.js} +1 -1
  96. package/dist/calcite/{TT5BB2JZ.js → KLMVEX54.js} +2 -2
  97. package/dist/calcite/{7ODU4JLK.js → KVXAIH3J.js} +2 -2
  98. package/dist/calcite/{GIWKRV7P.js → L7OV2JTK.js} +2 -2
  99. package/dist/calcite/{3PSL7KX7.js → LAUHCVQT.js} +2 -2
  100. package/dist/calcite/{LVVHR5SF.js → LCAQV7TQ.js} +2 -2
  101. package/dist/calcite/{XMMWBQGA.js → LCKVHTFM.js} +2 -2
  102. package/dist/calcite/{IKPOSEYP.js → LIVHBWSL.js} +2 -2
  103. package/dist/calcite/{HGQ5GYHT.js → LIVRQBF6.js} +2 -2
  104. package/dist/calcite/{K5D2WTHE.js → LKFLCMOE.js} +2 -2
  105. package/dist/calcite/{52GW5XUK.js → LQSWB3VP.js} +2 -2
  106. package/dist/calcite/{MDEEFDD6.js → LRNVJIYG.js} +2 -2
  107. package/dist/calcite/{TQKSLM6G.js → LYJDWGCW.js} +2 -2
  108. package/dist/calcite/{IQPXJVP5.js → M2BBUU2B.js} +2 -2
  109. package/dist/calcite/{VH6OIQ3B.js → MMJIDKY6.js} +2 -2
  110. package/dist/calcite/{YOGPIEEO.js → MWRI5PRA.js} +2 -2
  111. package/dist/calcite/{22GWENTD.js → MYOMVJ32.js} +2 -2
  112. package/dist/calcite/{2HCKHH75.js → ND2ZCZXZ.js} +1 -1
  113. package/dist/calcite/{I55UFREE.js → NQSUI7PJ.js} +2 -2
  114. package/dist/calcite/{2ODDGZUC.js → NXO4AFXL.js} +2 -2
  115. package/dist/calcite/{GX52PMMQ.js → OAZIFPMH.js} +2 -2
  116. package/dist/calcite/{6QNBOZS7.js → OKUVSWPU.js} +1 -1
  117. package/dist/calcite/{7EUXNIM7.js → ONF45NTS.js} +2 -2
  118. package/dist/calcite/{3BUJQJRC.js → OT3NEYSM.js} +2 -2
  119. package/dist/calcite/{DKB2HN7O.js → PE3W7MPW.js} +1 -1
  120. package/dist/calcite/{STBZPUVF.js → PH2FCEVQ.js} +2 -2
  121. package/dist/calcite/{MX3H3Y5G.js → PY5GS3M3.js} +2 -2
  122. package/dist/calcite/{4BA2OTAH.js → PZBSSDJB.js} +1 -1
  123. package/dist/calcite/{53X6VR7Y.js → Q3YC3MR5.js} +2 -2
  124. package/dist/calcite/{NIYZOHBJ.js → Q5T2CF7O.js} +1 -1
  125. package/dist/calcite/{O6FWGVIH.js → QA3XZXSM.js} +2 -2
  126. package/dist/calcite/{62WA7G6Y.js → QLYEWGAZ.js} +2 -2
  127. package/dist/calcite/{YOJQNEEG.js → QMOFZW5V.js} +2 -2
  128. package/dist/calcite/{XM5Y2IYF.js → QOTZD23G.js} +2 -2
  129. package/dist/calcite/{FNLLEMBV.js → QQLUSFD4.js} +2 -2
  130. package/dist/calcite/{LGCVXVMZ.js → QSILJFNG.js} +1 -1
  131. package/dist/calcite/{7R5YBIR7.js → QWCL5YFL.js} +1 -1
  132. package/dist/calcite/{JYFBXOFV.js → R47HLBKB.js} +2 -2
  133. package/dist/calcite/{US3LEK32.js → R54PVNMV.js} +2 -2
  134. package/dist/calcite/{EDPY2DTB.js → R6QB7JUM.js} +2 -2
  135. package/dist/calcite/{DENPXS43.js → RCO43DO4.js} +2 -2
  136. package/dist/calcite/{2GL2U3PH.js → SFE6BHQB.js} +2 -2
  137. package/dist/calcite/{EJHWUTBH.js → SN4HZD6F.js} +2 -2
  138. package/dist/calcite/{BMNRODSL.js → STMN57ZO.js} +2 -2
  139. package/dist/calcite/{EOJHNWIH.js → TOTHTFAR.js} +2 -2
  140. package/dist/calcite/{MXTPVPE4.js → TR6QANNH.js} +2 -2
  141. package/dist/calcite/{G2QJAP7I.js → TRNCF56P.js} +1 -1
  142. package/dist/calcite/{JGZOFBBE.js → UFPO5QTZ.js} +2 -2
  143. package/dist/calcite/{2L7WUJ6H.js → UOGVCH7N.js} +2 -2
  144. package/dist/calcite/{JUT2ZFYQ.js → UQE6JFXX.js} +2 -2
  145. package/dist/calcite/{RGFFFOAS.js → UV24XOCH.js} +2 -2
  146. package/dist/calcite/{VLGEO7MO.js → UWTU7OK2.js} +2 -2
  147. package/dist/calcite/{AG6WGMFB.js → V7SUWAE4.js} +2 -2
  148. package/dist/calcite/{HPDD27FI.js → VHRZRZL5.js} +2 -2
  149. package/dist/calcite/{VTPGF5HN.js → VHYSK7Y7.js} +2 -2
  150. package/dist/calcite/{5Y5FIDOK.js → VKBKJUGF.js} +2 -2
  151. package/dist/calcite/{4E576A4Q.js → VM7UBDLI.js} +2 -2
  152. package/dist/calcite/{2KOPCKR5.js → VQHPVWGV.js} +2 -2
  153. package/dist/calcite/{JOSFZADL.js → VTB4B3Y3.js} +1 -1
  154. package/dist/calcite/{YYHTUQ63.js → VWPRSI5A.js} +2 -2
  155. package/dist/calcite/{E3VMW235.js → W37GRZ5L.js} +1 -1
  156. package/dist/calcite/{B3CAWAVC.js → WEUY4XTR.js} +2 -2
  157. package/dist/calcite/{LWLVW7SJ.js → WJXPTUWY.js} +2 -2
  158. package/dist/calcite/WYEJSORH.js +4 -0
  159. package/dist/calcite/{5ZI5VQJT.js → X3VHFVRJ.js} +2 -2
  160. package/dist/calcite/{4Y77ISA3.js → X5JTD7GH.js} +2 -2
  161. package/dist/calcite/{JOYH2F2L.js → X6FWLWMR.js} +2 -2
  162. package/dist/calcite/{JRXL4V7I.js → XLPJNQSS.js} +2 -2
  163. package/dist/calcite/{I3IGO6N6.js → XWNTBWME.js} +2 -2
  164. package/dist/calcite/{4DP3DIY3.js → XYNXGHHQ.js} +2 -2
  165. package/dist/calcite/{4CYY4OLG.js → XZQZUFAH.js} +2 -2
  166. package/dist/calcite/{CLZ7BAOE.js → Y3HO4IVB.js} +2 -2
  167. package/dist/calcite/{GKOY5PRO.js → YD2E3P3Q.js} +2 -2
  168. package/dist/calcite/{XLJXI57N.js → YMNI5NLJ.js} +2 -2
  169. package/dist/calcite/{7VIXEPCN.js → YSXGBSP5.js} +2 -2
  170. package/dist/calcite/{FJ4IAWXC.js → Z3P6IS4Q.js} +2 -2
  171. package/dist/calcite/{C5JUYPFW.js → ZUF75NL7.js} +2 -2
  172. package/dist/calcite/calcite.esm.js +2 -2
  173. package/dist/chunks/ExpandToggle.js +1 -1
  174. package/dist/chunks/FloatingArrow.js +1 -1
  175. package/dist/chunks/Heading.js +1 -1
  176. package/dist/chunks/Validation.js +1 -1
  177. package/dist/chunks/XButton.js +1 -1
  178. package/dist/chunks/_sortable.js +1 -1
  179. package/dist/chunks/array.js +1 -1
  180. package/dist/chunks/component.js +1 -1
  181. package/dist/chunks/core.js +1 -1
  182. package/dist/chunks/date.js +1 -1
  183. package/dist/chunks/dom.js +1 -1
  184. package/dist/chunks/dynamicClasses.js +1 -1
  185. package/dist/chunks/filter.js +1 -1
  186. package/dist/chunks/floating-ui.js +1 -1
  187. package/dist/chunks/form.js +1 -1
  188. package/dist/chunks/global.js +1 -1
  189. package/dist/chunks/guid.js +1 -1
  190. package/dist/chunks/input.js +1 -1
  191. package/dist/chunks/interact.min.js +1 -1
  192. package/dist/chunks/interactive.js +1 -1
  193. package/dist/chunks/key.js +1 -1
  194. package/dist/chunks/label.js +1 -1
  195. package/dist/chunks/locale.js +1 -1
  196. package/dist/chunks/logger.js +1 -1
  197. package/dist/chunks/math.js +1 -1
  198. package/dist/chunks/observers.js +1 -1
  199. package/dist/chunks/openCloseComponent.js +1 -1
  200. package/dist/chunks/resources.js +1 -1
  201. package/dist/chunks/resources2.js +1 -1
  202. package/dist/chunks/resources3.js +1 -1
  203. package/dist/chunks/resources4.js +1 -1
  204. package/dist/chunks/resources5.js +1 -1
  205. package/dist/chunks/resources6.js +1 -1
  206. package/dist/chunks/resources7.js +1 -1
  207. package/dist/chunks/responsive.js +1 -1
  208. package/dist/chunks/runtime.js +4 -4
  209. package/dist/chunks/sortableComponent.js +1 -1
  210. package/dist/chunks/text.js +1 -1
  211. package/dist/chunks/time.js +1 -1
  212. package/dist/chunks/useFocusTrap.js +1 -1
  213. package/dist/chunks/usePreventDocumentScroll.js +1 -1
  214. package/dist/chunks/useT9n.js +1 -1
  215. package/dist/chunks/utils.js +1 -1
  216. package/dist/chunks/utils2.js +1 -1
  217. package/dist/chunks/utils3.js +1 -1
  218. package/dist/chunks/utils4.js +1 -1
  219. package/dist/components/calcite-accordion/customElement.js +1 -1
  220. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  221. package/dist/components/calcite-action/customElement.js +1 -1
  222. package/dist/components/calcite-action-bar/customElement.js +1 -1
  223. package/dist/components/calcite-action-group/customElement.js +1 -1
  224. package/dist/components/calcite-action-menu/customElement.js +1 -1
  225. package/dist/components/calcite-action-pad/customElement.js +1 -1
  226. package/dist/components/calcite-alert/customElement.js +1 -1
  227. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  228. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  229. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  230. package/dist/components/calcite-avatar/customElement.js +1 -1
  231. package/dist/components/calcite-block/customElement.js +1 -1
  232. package/dist/components/calcite-block-group/customElement.js +1 -1
  233. package/dist/components/calcite-block-section/customElement.js +1 -1
  234. package/dist/components/calcite-button/customElement.js +1 -1
  235. package/dist/components/calcite-card/customElement.js +1 -1
  236. package/dist/components/calcite-card-group/customElement.js +1 -1
  237. package/dist/components/calcite-carousel/customElement.js +1 -1
  238. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  239. package/dist/components/calcite-checkbox/customElement.js +1 -1
  240. package/dist/components/calcite-chip/customElement.js +1 -1
  241. package/dist/components/calcite-chip-group/customElement.js +1 -1
  242. package/dist/components/calcite-color-picker/customElement.js +1 -1
  243. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  244. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  245. package/dist/components/calcite-combobox/customElement.js +1 -1
  246. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  247. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  248. package/dist/components/calcite-date-picker/customElement.js +1 -1
  249. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  250. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  251. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  252. package/dist/components/calcite-dialog/customElement.js +1 -1
  253. package/dist/components/calcite-dropdown/customElement.js +1 -1
  254. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  255. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  256. package/dist/components/calcite-fab/customElement.js +1 -1
  257. package/dist/components/calcite-filter/customElement.js +1 -1
  258. package/dist/components/calcite-flow/customElement.js +1 -1
  259. package/dist/components/calcite-flow-item/customElement.js +1 -1
  260. package/dist/components/calcite-graph/customElement.js +1 -1
  261. package/dist/components/calcite-handle/customElement.js +1 -1
  262. package/dist/components/calcite-icon/customElement.js +1 -1
  263. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  264. package/dist/components/calcite-input/customElement.js +1 -1
  265. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  266. package/dist/components/calcite-input-message/customElement.js +1 -1
  267. package/dist/components/calcite-input-number/customElement.js +1 -1
  268. package/dist/components/calcite-input-text/customElement.js +1 -1
  269. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  270. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  271. package/dist/components/calcite-label/customElement.js +1 -1
  272. package/dist/components/calcite-link/customElement.js +1 -1
  273. package/dist/components/calcite-list/customElement.js +1 -1
  274. package/dist/components/calcite-list-item/customElement.js +1 -1
  275. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  276. package/dist/components/calcite-loader/customElement.js +1 -1
  277. package/dist/components/calcite-menu/customElement.js +1 -1
  278. package/dist/components/calcite-menu-item/customElement.js +1 -1
  279. package/dist/components/calcite-meter/customElement.js +1 -1
  280. package/dist/components/calcite-modal/customElement.js +1 -1
  281. package/dist/components/calcite-navigation/customElement.js +1 -1
  282. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  283. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  284. package/dist/components/calcite-notice/customElement.js +1 -1
  285. package/dist/components/calcite-option/customElement.js +1 -1
  286. package/dist/components/calcite-option-group/customElement.js +1 -1
  287. package/dist/components/calcite-pagination/customElement.js +1 -1
  288. package/dist/components/calcite-panel/customElement.js +1 -1
  289. package/dist/components/calcite-popover/customElement.js +1 -1
  290. package/dist/components/calcite-progress/customElement.js +1 -1
  291. package/dist/components/calcite-radio-button/customElement.js +1 -1
  292. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  293. package/dist/components/calcite-rating/customElement.js +1 -1
  294. package/dist/components/calcite-scrim/customElement.js +1 -1
  295. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  296. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  297. package/dist/components/calcite-select/customElement.js +1 -1
  298. package/dist/components/calcite-sheet/customElement.js +2 -2
  299. package/dist/components/calcite-shell/customElement.js +1 -1
  300. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  301. package/dist/components/calcite-shell-panel/customElement.js +2 -2
  302. package/dist/components/calcite-slider/customElement.js +1 -1
  303. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  304. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  305. package/dist/components/calcite-split-button/customElement.js +1 -1
  306. package/dist/components/calcite-stack/customElement.js +1 -1
  307. package/dist/components/calcite-stepper/customElement.js +1 -1
  308. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  309. package/dist/components/calcite-switch/customElement.js +1 -1
  310. package/dist/components/calcite-tab/customElement.js +1 -1
  311. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  312. package/dist/components/calcite-tab-title/customElement.js +1 -1
  313. package/dist/components/calcite-table/customElement.js +1 -1
  314. package/dist/components/calcite-table-cell/customElement.js +1 -1
  315. package/dist/components/calcite-table-header/customElement.js +1 -1
  316. package/dist/components/calcite-table-row/customElement.js +1 -1
  317. package/dist/components/calcite-tabs/customElement.js +1 -1
  318. package/dist/components/calcite-text-area/customElement.js +1 -1
  319. package/dist/components/calcite-tile/customElement.js +1 -1
  320. package/dist/components/calcite-tile-group/customElement.js +1 -1
  321. package/dist/components/calcite-tile-select/customElement.js +1 -1
  322. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  323. package/dist/components/calcite-time-picker/customElement.js +1 -1
  324. package/dist/components/calcite-tip/customElement.js +1 -1
  325. package/dist/components/calcite-tip-group/customElement.js +1 -1
  326. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  327. package/dist/components/calcite-tooltip/customElement.js +1 -1
  328. package/dist/components/calcite-tree/customElement.js +1 -1
  329. package/dist/components/calcite-tree-item/customElement.js +1 -1
  330. package/dist/docs/api.json +1 -1
  331. package/dist/docs/docs.json +1 -1
  332. package/dist/docs/web-types.json +1 -1
  333. package/dist/index.js +1 -1
  334. package/dist/loader.js +1 -1
  335. package/package.json +2 -2
  336. package/dist/calcite/LP2WL74P.js +0 -4
  337. package/dist/calcite/QGUZBJ2N.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.3.0-next.2 */
4
- import{a as o}from"./DKB2HN7O.js";import{c as m}from"./UU3HHSES.js";import{b as c}from"./ZOAHNVK6.js";import{s as d}from"./BMNRODSL.js";import"./6TKJFOMG.js";import{E as l,F as i,R as r,c as n,d as s}from"./GX52PMMQ.js";var h={scrim:"scrim",content:"content"},u={s:72,l:480},p=n`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends l{constructor(){super(...arguments),this.resizeObserver=o("resize",()=>this.handleResize()),this.messages=m(),this.hasContent=!1,this.loading=!1}static{this.properties={hasContent:[16,{},{state:!0}],loaderScale:[16,{},{state:!0}],loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}]}}static{this.styles=p}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=d(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<u.s?"s":e>=u.l?"l":"m"}handleResize(){let{loaderEl:e,el:t}=this;e&&(this.loaderScale=this.getScale(Math.min(t.clientHeight,t.clientWidth)??0))}render(){let{hasContent:e,loading:t,messages:f}=this;return s`<div class=${i(h.scrim)}>${t?s`<calcite-loader .label=${f.loading} .scale=${this.loaderScale} ${c(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${i(h.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};r("calcite-scrim",a);export{a as Scrim};
3
+ v3.3.0-next.3 */
4
+ import{a as o}from"./PE3W7MPW.js";import{c as m}from"./4QJYID23.js";import{b as c}from"./KI4MQSGL.js";import{s as d}from"./STMN57ZO.js";import"./4RHVH6AD.js";import{E as l,F as i,R as r,c as n,d as s}from"./OAZIFPMH.js";var h={scrim:"scrim",content:"content"},u={s:72,l:480},p=n`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends l{constructor(){super(...arguments),this.resizeObserver=o("resize",()=>this.handleResize()),this.messages=m(),this.hasContent=!1,this.loading=!1}static{this.properties={hasContent:[16,{},{state:!0}],loaderScale:[16,{},{state:!0}],loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}]}}static{this.styles=p}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=d(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<u.s?"s":e>=u.l?"l":"m"}handleResize(){let{loaderEl:e,el:t}=this;e&&(this.loaderScale=this.getScale(Math.min(t.clientHeight,t.clientWidth)??0))}render(){let{hasContent:e,loading:t,messages:f}=this;return s`<div class=${i(h.scrim)}>${t?s`<calcite-loader .label=${f.loading} .scale=${this.loaderScale} ${c(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${i(h.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};r("calcite-scrim",a);export{a as Scrim};
@@ -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.3.0-next.2 */
4
- import{a,b as r}from"./JOYH2F2L.js";import{a as l}from"./Q7GWXGTY.js";import{E as o,R as i,c as t,d as s}from"./GX52PMMQ.js";var d=t`: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:flex;flex-wrap:wrap}:host ::slotted(calcite-tile-select){margin-block-end:1px;margin-inline-end:1px}:host([layout=vertical]){flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends o{constructor(){super(...arguments),this.disabled=!1,this.layout="horizontal"}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}]}}static{this.styles=d}load(){l.deprecated("component",{name:"tile-select-group",removalVersion:4,suggested:["tile","tile-group"]})}updated(){a(this)}render(){return r({disabled:this.disabled,children:s`<slot></slot>`})}};i("calcite-tile-select-group",e);export{e as TileSelectGroup};
3
+ v3.3.0-next.3 */
4
+ import{a,b as r}from"./X6FWLWMR.js";import{a as l}from"./7VNELD3S.js";import{E as o,R as i,c as t,d as s}from"./OAZIFPMH.js";var d=t`: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:flex;flex-wrap:wrap}:host ::slotted(calcite-tile-select){margin-block-end:1px;margin-inline-end:1px}:host([layout=vertical]){flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends o{constructor(){super(...arguments),this.disabled=!1,this.layout="horizontal"}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}]}}static{this.styles=d}load(){l.deprecated("component",{name:"tile-select-group",removalVersion:4,suggested:["tile","tile-group"]})}updated(){a(this)}render(){return r({disabled:this.disabled,children:s`<slot></slot>`})}};i("calcite-tile-select-group",e);export{e as TileSelectGroup};
@@ -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.3.0-next.2 */
4
- import{c as b}from"./UU3HHSES.js";import{a as x}from"./6TKJFOMG.js";import{E as u,F as l,G as z,I as k,R as y,c as h,d as r,e as p,h as f}from"./GX52PMMQ.js";var a={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},w=h`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,m=class extends u{constructor(){super(...arguments),this.messages=b({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:n,label:s,text:c,type:i,value:v}=this,o=e.id||x(),t=i!=="indeterminate",d=Math.floor(v);return this.el.ariaLabel=s,this.el.ariaValueMax=t?"100":void 0,this.el.ariaValueMin=t?"0":void 0,this.el.ariaValueNow=t?d.toString():void 0,k(this.el,"id",o),this.el.role="progressbar",r`<div class=${l(a.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!n&&t&&r`<div class=${l(a.percentage)}>${this.formatValue()}</div>`||""}</div>${!n&&c&&r`<div class=${l(a.text)}>${c}</div>`||""}`}renderRing(e){let{inline:n,scale:s,value:c}=this,i=n?this.getInlineSize(s):this.getSize(s),o=i*.45,t;if(e==="progress"){let d=2*o*Math.PI,g=(this.type.startsWith("determinate")?c:24)/100*d,$=d-g;t={"stroke-dasharray":`${g} ${$}`}}return r`<svg aria-hidden=true class=${l({[a.ring]:!0,[a.trackRing]:e==="track",[a.progressRing]:e==="progress"})} style=${z(t)} viewBox=${`0 0 ${i} ${i}`}>${p`<circle cx=${i/2} cy=${i/2} r=${o??f} />`}</svg>`}};y("calcite-loader",m);export{m as Loader};
3
+ v3.3.0-next.3 */
4
+ import{c as b}from"./4QJYID23.js";import{a as x}from"./4RHVH6AD.js";import{E as u,F as l,G as z,I as k,R as y,c as h,d as r,e as p,h as f}from"./OAZIFPMH.js";var a={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},w=h`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,m=class extends u{constructor(){super(...arguments),this.messages=b({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:n,label:s,text:c,type:i,value:v}=this,o=e.id||x(),t=i!=="indeterminate",d=Math.floor(v);return this.el.ariaLabel=s,this.el.ariaValueMax=t?"100":void 0,this.el.ariaValueMin=t?"0":void 0,this.el.ariaValueNow=t?d.toString():void 0,k(this.el,"id",o),this.el.role="progressbar",r`<div class=${l(a.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!n&&t&&r`<div class=${l(a.percentage)}>${this.formatValue()}</div>`||""}</div>${!n&&c&&r`<div class=${l(a.text)}>${c}</div>`||""}`}renderRing(e){let{inline:n,scale:s,value:c}=this,i=n?this.getInlineSize(s):this.getSize(s),o=i*.45,t;if(e==="progress"){let d=2*o*Math.PI,g=(this.type.startsWith("determinate")?c:24)/100*d,$=d-g;t={"stroke-dasharray":`${g} ${$}`}}return r`<svg aria-hidden=true class=${l({[a.ring]:!0,[a.trackRing]:e==="track",[a.progressRing]:e==="progress"})} style=${z(t)} viewBox=${`0 0 ${i} ${i}`}>${p`<circle cx=${i/2} cy=${i/2} r=${o??f} />`}</svg>`}};y("calcite-loader",m);export{m as Loader};
@@ -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.3.0-next.2 */
4
- import{k as f}from"./FNLLEMBV.js";function m(t,n,e){if(!t)return;let r=t.getTime(),a=!(n instanceof Date)||r>=n.getTime(),o=!(e instanceof Date)||r<=e.getTime();return a&&o}function p(t,n,e){if(!(t instanceof Date))return null;let r=t.getTime(),a=n instanceof Date&&r<n.getTime(),o=e instanceof Date&&r>e.getTime();return a?n:o?e:t}function O(t,n=!1){if(t instanceof Date)return t;if(!t||typeof t!="string")return null;let e=t.split(/[: T-]/).map(parseFloat),r=new Date(e[0],(e[1]||1)-1,e[2]||1);if(r.setFullYear(e[0]),isNaN(r.getTime()))throw new Error(`Invalid ISO 8601 date: "${t}"`);return n?T(r):r}function w(t,n){if(!n)return null;let{separator:e}=n,r=y(t,n),{day:a,month:o}=r,s=M(r.year,n),i=new Date(s,o,a);i.setFullYear(s);let c=a>0,u=o>-1,l=!isNaN(i.getTime()),D=t.split(e).filter(d=>d).length>2,h=s.toString().length>0;return c&&u&&l&&D&&h?i:null}function M(t,n){return g(t,n,"read")}function I(t,n){return g(t,n,"write")}function g(t,n,e){if(n["default-calendar"]!=="buddhist")return t;let a=543*(e==="read"?-1:1);return t+a}function F(t,n){let{separator:e,unitOrder:r}=n,a=S(r),o=t.split(e).map(u=>f.delocalize(u)),s=o[a.indexOf("d")],i=o[a.indexOf("m")],c=o[a.indexOf("y")];return{day:s,month:i,year:c}}function x(t){if(t instanceof Date){let n=String(t.getMonth()+1).padStart(2,"0"),e=String(t.getDate()).padStart(2,"0");return`${String(t.getFullYear()).padStart(4,"0")}-${n}-${e}`}return""}function E(t){let n=t.split("-");return{day:n[2],month:n[1],year:n[0]}}function v(t,n){return t instanceof Date&&n instanceof Date&&t.getDate()===n.getDate()&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()}function A(t){let n=t.getMonth(),e=new Date(t);return e.setMonth(n-1),n===e.getMonth()?new Date(t.getFullYear(),n,0):e}function C(t,n){let e=new Date(t);return e.setMonth(n),e}function L(t,n,e){let r=new Date(t);return r.setDate(1),m(r,n,e)?r:p(r,n,e)}function N(t){let n=t.getMonth(),e=new Date(t);return e.setMonth(n+1),(n+2)%7===e.getMonth()%7?new Date(t.getFullYear(),n+2,0):e}function y(t,n){let{day:e,month:r,year:a}=F(t,n);return{day:parseInt(e),month:parseInt(r)-1,year:parseInt(a)}}function S(t){let n=["d","m","y"],e=t.toLowerCase();return n.sort((r,a)=>e.indexOf(r)-e.indexOf(a))}function R(t,n){let e=t.getTime(),r=n.getTime();return(e-r)/(1e3*3600*24)}function T(t){return t.setHours(23,59,59,999),t}function _(t,n){return t&&n&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()}export{m as a,p as b,O as c,w as d,M as e,I as f,F as g,x as h,E as i,v as j,A as k,C as l,L as m,N as n,S as o,R as p,_ as q};
3
+ v3.3.0-next.3 */
4
+ import{k as f}from"./QQLUSFD4.js";function m(t,n,e){if(!t)return;let r=t.getTime(),a=!(n instanceof Date)||r>=n.getTime(),o=!(e instanceof Date)||r<=e.getTime();return a&&o}function p(t,n,e){if(!(t instanceof Date))return null;let r=t.getTime(),a=n instanceof Date&&r<n.getTime(),o=e instanceof Date&&r>e.getTime();return a?n:o?e:t}function O(t,n=!1){if(t instanceof Date)return t;if(!t||typeof t!="string")return null;let e=t.split(/[: T-]/).map(parseFloat),r=new Date(e[0],(e[1]||1)-1,e[2]||1);if(r.setFullYear(e[0]),isNaN(r.getTime()))throw new Error(`Invalid ISO 8601 date: "${t}"`);return n?T(r):r}function w(t,n){if(!n)return null;let{separator:e}=n,r=y(t,n),{day:a,month:o}=r,s=M(r.year,n),i=new Date(s,o,a);i.setFullYear(s);let c=a>0,u=o>-1,l=!isNaN(i.getTime()),D=t.split(e).filter(d=>d).length>2,h=s.toString().length>0;return c&&u&&l&&D&&h?i:null}function M(t,n){return g(t,n,"read")}function I(t,n){return g(t,n,"write")}function g(t,n,e){if(n["default-calendar"]!=="buddhist")return t;let a=543*(e==="read"?-1:1);return t+a}function F(t,n){let{separator:e,unitOrder:r}=n,a=S(r),o=t.split(e).map(u=>f.delocalize(u)),s=o[a.indexOf("d")],i=o[a.indexOf("m")],c=o[a.indexOf("y")];return{day:s,month:i,year:c}}function x(t){if(t instanceof Date){let n=String(t.getMonth()+1).padStart(2,"0"),e=String(t.getDate()).padStart(2,"0");return`${String(t.getFullYear()).padStart(4,"0")}-${n}-${e}`}return""}function E(t){let n=t.split("-");return{day:n[2],month:n[1],year:n[0]}}function v(t,n){return t instanceof Date&&n instanceof Date&&t.getDate()===n.getDate()&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()}function A(t){let n=t.getMonth(),e=new Date(t);return e.setMonth(n-1),n===e.getMonth()?new Date(t.getFullYear(),n,0):e}function C(t,n){let e=new Date(t);return e.setMonth(n),e}function L(t,n,e){let r=new Date(t);return r.setDate(1),m(r,n,e)?r:p(r,n,e)}function N(t){let n=t.getMonth(),e=new Date(t);return e.setMonth(n+1),(n+2)%7===e.getMonth()%7?new Date(t.getFullYear(),n+2,0):e}function y(t,n){let{day:e,month:r,year:a}=F(t,n);return{day:parseInt(e),month:parseInt(r)-1,year:parseInt(a)}}function S(t){let n=["d","m","y"],e=t.toLowerCase();return n.sort((r,a)=>e.indexOf(r)-e.indexOf(a))}function R(t,n){let e=t.getTime(),r=n.getTime();return(e-r)/(1e3*3600*24)}function T(t){return t.setHours(23,59,59,999),t}function _(t,n){return t&&n&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()}export{m as a,p as b,O as c,w as d,M as e,I as f,F as g,x as h,E as i,v as j,A as k,C as l,L as m,N as n,S as o,R as p,_ as q};
@@ -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.3.0-next.2 */
4
- import{e as S,i as I,j as H}from"./I2WNYP3N.js";import{b as l}from"./TCB4B6FI.js";import{a as k,b as z}from"./JOYH2F2L.js";import{a}from"./MDEEFDD6.js";import{s as w}from"./BMNRODSL.js";import{a as h,b as y}from"./EOJHNWIH.js";import"./Q7GWXGTY.js";import{a as $}from"./6TKJFOMG.js";import{E as x,F as i,G as v,R as C,c as f,d as o,h as g,q as d}from"./GX52PMMQ.js";var t={active:"label--active",centerContent:"center-content",container:"container",iconCustom:"icon--custom",description:"description",icon:"icon",label:"label",scale:b=>`scale--${b}`,shortText:"short-text",single:"label--single",textContainer:"text-container",heading:"heading"},c={checked:"check-square-f",circle:"circle",indeterminate:"minus-square-f",selectedSingle:"circle-inset-large",unchecked:"square"},L={contentEnd:"content-end",contentStart:"content-start"},_=f`: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([hidden]){display:none}[hidden]{display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-internal-combobox-item-spacing-unit-s: .25rem;--calcite-internal-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-xs)}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-internal-combobox-item-spacing-unit-s: .375rem;--calcite-internal-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-sm)}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-internal-combobox-item-spacing-unit-s: .625rem;--calcite-internal-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-selector-icon-size: 1.5rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size)}.container{--calcite-combobox-item-indent-value: calc( var(--calcite-internal-combobox-item-spacing-unit-l) * var(--calcite-combobox-item-spacing-indent-multiplier) )}:host(:focus){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host,ul{margin:0;display:flex;flex-direction:column;padding:0}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;text-decoration-line:none;transition-timing-function:cubic-bezier(.4,0,.2,1);outline-color:transparent;word-wrap:break-word;word-break:break-word;justify-content:space-around;gap:var(--calcite-internal-combobox-item-spacing-unit-l);padding-block:var(--calcite-internal-combobox-item-spacing-unit-s);padding-inline-end:var(--calcite-internal-combobox-item-spacing-unit-l);padding-inline-start:var(--calcite-combobox-item-indent-value);color:var(--calcite-combobox-text-color, var(--calcite-color-text-3));transition-duration:var(--calcite-animation-timing)}:host([disabled]) .label{cursor:default}.label--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))))}.label:hover{background-color:var(--calcite-combobox-item-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}.label:active{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-3))}:host([selected]) .label,.label:active{color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}:host([selected]) .label .description,:host([selected]) .label .short-text,.label:active .description,.label:active .short-text{color:var(--calcite-combobox-description-text-color-press, var(--calcite-color-text-2))}.icon{display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-color-border-input)}:host([selected]) .icon,:host([indeterminate]) .icon{color:var(--calcite-combobox-selected-icon-color, var(--calcite-color-brand))}.icon--custom{margin-block-start:-1px}.center-content{display:flex;flex-direction:column;flex-grow:1;padding-block:0}.description{font-size:var(--calcite-internal-combobox-item-description-font-size)}.short-text{white-space:nowrap}.heading{color:var(--calcite-combobox-heading-text-color, var(--calcite-color-text-1))}.description,.short-text{color:var(--calcite-combobox-description-text-color, var(--calcite-color-text-3))}:host([selected]) .heading{font-weight:var(--calcite-font-weight-medium)}.heading,.description,.short-text{line-height:var(--calcite-font-line-height-relative-snug)}:host([item-hidden]){display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}`,m=class extends x{constructor(){super(...arguments),this._selected=!1,this.hasContent=!1,this.active=!1,this.disabled=!1,this.guid=$(),this.iconFlipRtl=!1,this.scale="m",this.selectionMode="multiple",this.itemHidden=!1,this.indeterminate=!1,this.calciteComboboxItemChange=d({cancelable:!1}),this.calciteInternalComboboxItemChange=d({cancelable:!1})}static{this.properties={hasContent:[16,{},{state:!0}],active:[7,{},{reflect:!0,type:Boolean}],ancestors:[0,{},{attribute:!1}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],filterDisabled:[7,{},{reflect:!0,type:Boolean}],filterTextMatchPattern:[2,{},{reflect:!0,attribute:!1}],guid:[3,{},{reflect:!0}],heading:1,icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],label:1,metadata:[0,{},{attribute:!1}],scale:1,selected:[7,{},{reflect:!0,type:Boolean}],selectionMode:[3,{},{reflect:!0}],shortHeading:1,textLabel:[3,{},{reflect:!0}],value:1,itemHidden:[7,{},{reflect:!0,type:Boolean}],indeterminate:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=_}get selected(){return this._selected}set selected(e){let n=this._selected;e!==n&&(this._selected=e,this.emitItemChange())}connectedCallback(){super.connectedCallback(),this.ancestors=S(this.el)}load(){y(this,"value","textLabel")}willUpdate(e){this.hasUpdated&&(e.has("disabled")||e.has("heading")||e.has("label")||e.has("textLabel"))&&this.emitItemChange()}updated(){k(this)}emitItemChange(){this.calciteInternalComboboxItemChange.emit()}handleDefaultSlotChange(e){this.hasContent=w(e)}toggleSelected(){let e=this.selectionMode==="single-persist";this.disabled||e&&this.selected||(this.selected=!this.selected,this.calciteComboboxItemChange.emit())}itemClickHandler(){this.toggleSelected()}renderIcon(e){return this.icon?a("icon",o`<calcite-icon class=${i({[t.iconCustom]:!!this.icon})} .flipRtl=${this.iconFlipRtl} .icon=${this.icon||e} .scale=${h(this.scale)}></calcite-icon>`):null}renderSelectIndicator(e){return a("indicator",o`<calcite-icon class=${i({[t.icon]:!0})} .flipRtl=${this.iconFlipRtl} .icon=${e} .scale=${h(this.scale)}></calcite-icon>`)}renderChildren(){return a("default-slot-container",o`<ul .hidden=${!this.hasContent}><slot @slotchange=${this.handleDefaultSlotChange}></slot></ul>`)}render(){let{disabled:e,heading:n,label:M,textLabel:B,value:R,filterTextMatchPattern:s,description:u,shortHeading:p}=this,r=H(this.selectionMode),T=e||r?void 0:c.checked,E=r?this.selected?c.selectedSingle:c.circle:this.indeterminate?c.indeterminate:this.selected?c.checked:c.unchecked,q=n||B,D=M||R,F={[t.label]:!0,[t.active]:this.active,[t.single]:r},P=I(this.el);return this.el.ariaHidden="true",this.el.ariaLabel=D,z({disabled:e,children:o`<div class=${i({[t.container]:!0,[t.scale(this.scale)]:!0})} style=${v({"--calcite-combobox-item-spacing-indent-multiplier":`${P}`})}><li class=${i(F)} id=${this.guid??g} @click=${this.itemClickHandler}>${this.renderSelectIndicator(E)}<slot name=${L.contentStart}></slot>${this.renderIcon(T)}<div class=${i(t.centerContent)}><div class=${i(t.heading)}>${l({text:q,pattern:s})}</div>${u?o`<div class=${i(t.description)}>${l({text:u,pattern:s})}</div>`:null}</div>${p?o`<div class=${i(t.shortText)}>${l({text:p,pattern:s})}</div>`:null}<slot name=${L.contentEnd}></slot></li>${this.renderChildren()}</div>`})}};C("calcite-combobox-item",m);export{m as ComboboxItem};
3
+ v3.3.0-next.3 */
4
+ import{e as S,i as I,j as H}from"./JWMUS7NY.js";import{b as l}from"./4WVFFWMW.js";import{a as k,b as z}from"./X6FWLWMR.js";import{a}from"./LRNVJIYG.js";import{s as w}from"./STMN57ZO.js";import{a as h,b as y}from"./TOTHTFAR.js";import"./7VNELD3S.js";import{a as $}from"./4RHVH6AD.js";import{E as x,F as i,G as v,R as C,c as f,d as o,h as g,q as d}from"./OAZIFPMH.js";var t={active:"label--active",centerContent:"center-content",container:"container",iconCustom:"icon--custom",description:"description",icon:"icon",label:"label",scale:b=>`scale--${b}`,shortText:"short-text",single:"label--single",textContainer:"text-container",heading:"heading"},c={checked:"check-square-f",circle:"circle",indeterminate:"minus-square-f",selectedSingle:"circle-inset-large",unchecked:"square"},L={contentEnd:"content-end",contentStart:"content-start"},_=f`: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([hidden]){display:none}[hidden]{display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-internal-combobox-item-spacing-unit-s: .25rem;--calcite-internal-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-xs)}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-internal-combobox-item-spacing-unit-s: .375rem;--calcite-internal-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-sm)}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-internal-combobox-item-spacing-unit-s: .625rem;--calcite-internal-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-selector-icon-size: 1.5rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size)}.container{--calcite-combobox-item-indent-value: calc( var(--calcite-internal-combobox-item-spacing-unit-l) * var(--calcite-combobox-item-spacing-indent-multiplier) )}:host(:focus){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host,ul{margin:0;display:flex;flex-direction:column;padding:0}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;text-decoration-line:none;transition-timing-function:cubic-bezier(.4,0,.2,1);outline-color:transparent;word-wrap:break-word;word-break:break-word;justify-content:space-around;gap:var(--calcite-internal-combobox-item-spacing-unit-l);padding-block:var(--calcite-internal-combobox-item-spacing-unit-s);padding-inline-end:var(--calcite-internal-combobox-item-spacing-unit-l);padding-inline-start:var(--calcite-combobox-item-indent-value);color:var(--calcite-combobox-text-color, var(--calcite-color-text-3));transition-duration:var(--calcite-animation-timing)}:host([disabled]) .label{cursor:default}.label--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))))}.label:hover{background-color:var(--calcite-combobox-item-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}.label:active{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-3))}:host([selected]) .label,.label:active{color:var(--calcite-combobox-text-color-hover, var(--calcite-color-text-1))}:host([selected]) .label .description,:host([selected]) .label .short-text,.label:active .description,.label:active .short-text{color:var(--calcite-combobox-description-text-color-press, var(--calcite-color-text-2))}.icon{display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-color-border-input)}:host([selected]) .icon,:host([indeterminate]) .icon{color:var(--calcite-combobox-selected-icon-color, var(--calcite-color-brand))}.icon--custom{margin-block-start:-1px}.center-content{display:flex;flex-direction:column;flex-grow:1;padding-block:0}.description{font-size:var(--calcite-internal-combobox-item-description-font-size)}.short-text{white-space:nowrap}.heading{color:var(--calcite-combobox-heading-text-color, var(--calcite-color-text-1))}.description,.short-text{color:var(--calcite-combobox-description-text-color, var(--calcite-color-text-3))}:host([selected]) .heading{font-weight:var(--calcite-font-weight-medium)}.heading,.description,.short-text{line-height:var(--calcite-font-line-height-relative-snug)}:host([item-hidden]){display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}`,m=class extends x{constructor(){super(...arguments),this._selected=!1,this.hasContent=!1,this.active=!1,this.disabled=!1,this.guid=$(),this.iconFlipRtl=!1,this.scale="m",this.selectionMode="multiple",this.itemHidden=!1,this.indeterminate=!1,this.calciteComboboxItemChange=d({cancelable:!1}),this.calciteInternalComboboxItemChange=d({cancelable:!1})}static{this.properties={hasContent:[16,{},{state:!0}],active:[7,{},{reflect:!0,type:Boolean}],ancestors:[0,{},{attribute:!1}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],filterDisabled:[7,{},{reflect:!0,type:Boolean}],filterTextMatchPattern:[2,{},{reflect:!0,attribute:!1}],guid:[3,{},{reflect:!0}],heading:1,icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],label:1,metadata:[0,{},{attribute:!1}],scale:1,selected:[7,{},{reflect:!0,type:Boolean}],selectionMode:[3,{},{reflect:!0}],shortHeading:1,textLabel:[3,{},{reflect:!0}],value:1,itemHidden:[7,{},{reflect:!0,type:Boolean}],indeterminate:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=_}get selected(){return this._selected}set selected(e){let n=this._selected;e!==n&&(this._selected=e,this.emitItemChange())}connectedCallback(){super.connectedCallback(),this.ancestors=S(this.el)}load(){y(this,"value","textLabel")}willUpdate(e){this.hasUpdated&&(e.has("disabled")||e.has("heading")||e.has("label")||e.has("textLabel"))&&this.emitItemChange()}updated(){k(this)}emitItemChange(){this.calciteInternalComboboxItemChange.emit()}handleDefaultSlotChange(e){this.hasContent=w(e)}toggleSelected(){let e=this.selectionMode==="single-persist";this.disabled||e&&this.selected||(this.selected=!this.selected,this.calciteComboboxItemChange.emit())}itemClickHandler(){this.toggleSelected()}renderIcon(e){return this.icon?a("icon",o`<calcite-icon class=${i({[t.iconCustom]:!!this.icon})} .flipRtl=${this.iconFlipRtl} .icon=${this.icon||e} .scale=${h(this.scale)}></calcite-icon>`):null}renderSelectIndicator(e){return a("indicator",o`<calcite-icon class=${i({[t.icon]:!0})} .flipRtl=${this.iconFlipRtl} .icon=${e} .scale=${h(this.scale)}></calcite-icon>`)}renderChildren(){return a("default-slot-container",o`<ul .hidden=${!this.hasContent}><slot @slotchange=${this.handleDefaultSlotChange}></slot></ul>`)}render(){let{disabled:e,heading:n,label:M,textLabel:B,value:R,filterTextMatchPattern:s,description:u,shortHeading:p}=this,r=H(this.selectionMode),T=e||r?void 0:c.checked,E=r?this.selected?c.selectedSingle:c.circle:this.indeterminate?c.indeterminate:this.selected?c.checked:c.unchecked,q=n||B,D=M||R,F={[t.label]:!0,[t.active]:this.active,[t.single]:r},P=I(this.el);return this.el.ariaHidden="true",this.el.ariaLabel=D,z({disabled:e,children:o`<div class=${i({[t.container]:!0,[t.scale(this.scale)]:!0})} style=${v({"--calcite-combobox-item-spacing-indent-multiplier":`${P}`})}><li class=${i(F)} id=${this.guid??g} @click=${this.itemClickHandler}>${this.renderSelectIndicator(E)}<slot name=${L.contentStart}></slot>${this.renderIcon(T)}<div class=${i(t.centerContent)}><div class=${i(t.heading)}>${l({text:q,pattern:s})}</div>${u?o`<div class=${i(t.description)}>${l({text:u,pattern:s})}</div>`:null}</div>${p?o`<div class=${i(t.shortText)}>${l({text:p,pattern:s})}</div>`:null}<slot name=${L.contentEnd}></slot></li>${this.renderChildren()}</div>`})}};C("calcite-combobox-item",m);export{m as ComboboxItem};
@@ -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.3.0-next.2 */
3
+ v3.3.0-next.3 */
4
4
  function we(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var n=we;var We=typeof global=="object"&&global&&global.Object===Object&&global,A=We;var Re=typeof self=="object"&&self&&self.Object===Object&&self,Le=A||Re||Function("return this")(),g=Le;var ke=function(){return g.Date.now()},O=ke;var Fe=/\s/;function Pe(e){for(var t=e.length;t--&&Fe.test(e.charAt(t)););return t}var D=Pe;var Me=/^\s+/;function Ne(e){return e&&e.slice(0,D(e)+1).replace(Me,"")}var q=Ne;var Ce=g.Symbol,i=Ce;var G=Object.prototype,Ue=G.hasOwnProperty,De=G.toString,T=i?i.toStringTag:void 0;function qe(e){var t=Ue.call(e,T),r=e[T];try{e[T]=void 0;var o=!0}catch{}var f=De.call(e);return o&&(t?e[T]=r:delete e[T]),f}var z=qe;var Ge=Object.prototype,ze=Ge.toString;function Ke(e){return ze.call(e)}var K=Ke;var _e="[object Null]",$e="[object Undefined]",_=i?i.toStringTag:void 0;function Ve(e){return e==null?e===void 0?$e:_e:_&&_ in Object(e)?z(e):K(e)}var c=Ve;function Xe(e){return e!=null&&typeof e=="object"}var y=Xe;var He="[object Symbol]";function Je(e){return typeof e=="symbol"||y(e)&&c(e)==He}var v=Je;var $=NaN,Ye=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,Ze=/^0o[0-7]+$/i,et=parseInt;function tt(e){if(typeof e=="number")return e;if(v(e))return $;if(n(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=q(e);var r=Qe.test(e);return r||Ze.test(e)?et(e.slice(2),r?2:8):Ye.test(e)?$:+e}var R=tt;var rt="Expected a function",ot=Math.max,at=Math.min;function ft(e,t,r){var o,f,d,m,s,l,u=0,M=!1,b=!1,B=!0;if(typeof e!="function")throw new TypeError(rt);t=R(t)||0,n(r)&&(M=!!r.leading,b="maxWait"in r,d=b?ot(R(r.maxWait)||0,t):d,B="trailing"in r?!!r.trailing:B);function w(p){var x=o,h=f;return o=f=void 0,u=p,m=e.apply(h,x),m}function ve(p){return u=p,s=setTimeout(I,t),M?w(p):m}function Se(p){var x=p-l,h=p-u,U=t-x;return b?at(U,d-h):U}function N(p){var x=p-l,h=p-u;return l===void 0||x>=t||x<0||b&&h>=d}function I(){var p=O();if(N(p))return C(p);s=setTimeout(I,Se(p))}function C(p){return s=void 0,B&&o?w(p):(o=f=void 0,m)}function Ee(){s!==void 0&&clearTimeout(s),u=0,o=l=f=s=void 0}function Be(){return s===void 0?m:C(O())}function W(){var p=O(),x=N(p);if(o=arguments,f=this,l=p,x){if(s===void 0)return ve(l);if(b)return clearTimeout(s),s=setTimeout(I,t),w(l)}return s===void 0&&(s=setTimeout(I,t)),m}return W.cancel=Ee,W.flush=Be,W}var L=ft;function st(e,t){for(var r=-1,o=e==null?0:e.length,f=Array(o);++r<o;)f[r]=t(e[r],r,e);return f}var V=st;var pt=Array.isArray,S=pt;var ut=1/0,X=i?i.prototype:void 0,H=X?X.toString:void 0;function J(e){if(typeof e=="string")return e;if(S(e))return V(e,J)+"";if(v(e))return H?H.call(e):"";var t=e+"";return t=="0"&&1/e==-ut?"-0":t}var Y=J;function mt(e){return e==null?"":Y(e)}var Q=mt;var Z=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(Z.source);function dt(e){return e=Q(e),e&&lt.test(e)?e.replace(Z,"\\$&"):e}var nt=dt;var it="Expected a function";function xt(e,t,r){var o=!0,f=!0;if(typeof e!="function")throw new TypeError(it);return n(r)&&(o="leading"in r?!!r.leading:o,f="trailing"in r?!!r.trailing:f),L(e,t,{leading:o,maxWait:t,trailing:f})}var ct=xt;function yt(e){return e}var ee=yt;var gt="[object AsyncFunction]",bt="[object Function]",ht="[object GeneratorFunction]",Tt="[object Proxy]";function jt(e){if(!n(e))return!1;var t=c(e);return t==bt||t==ht||t==gt||t==Tt}var te=jt;var It=9007199254740991,At=/^(?:0|[1-9]\d*)$/;function Ot(e,t){var r=typeof e;return t=t??It,!!t&&(r=="number"||r!="symbol"&&At.test(e))&&e>-1&&e%1==0&&e<t}var re=Ot;var vt=9007199254740991;function St(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vt}var E=St;function Et(e){return e!=null&&E(e.length)&&!te(e)}var oe=Et;var Bt=Object.prototype;function wt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bt;return e===r}var ae=wt;function Wt(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var fe=Wt;var Rt="[object Arguments]";function Lt(e){return y(e)&&c(e)==Rt}var k=Lt;var se=Object.prototype,kt=se.hasOwnProperty,Ft=se.propertyIsEnumerable,Pt=k(function(){return arguments}())?k:function(e){return y(e)&&kt.call(e,"callee")&&!Ft.call(e,"callee")},pe=Pt;function Mt(){return!1}var ue=Mt;var de=typeof exports=="object"&&exports&&!exports.nodeType&&exports,me=de&&typeof module=="object"&&module&&!module.nodeType&&module,Nt=me&&me.exports===de,le=Nt?g.Buffer:void 0,Ct=le?le.isBuffer:void 0,Ut=Ct||ue,ne=Ut;var Dt="[object Arguments]",qt="[object Array]",Gt="[object Boolean]",zt="[object Date]",Kt="[object Error]",_t="[object Function]",$t="[object Map]",Vt="[object Number]",Xt="[object Object]",Ht="[object RegExp]",Jt="[object Set]",Yt="[object String]",Qt="[object WeakMap]",Zt="[object ArrayBuffer]",er="[object DataView]",tr="[object Float32Array]",rr="[object Float64Array]",or="[object Int8Array]",ar="[object Int16Array]",fr="[object Int32Array]",sr="[object Uint8Array]",pr="[object Uint8ClampedArray]",ur="[object Uint16Array]",mr="[object Uint32Array]",a={};a[tr]=a[rr]=a[or]=a[ar]=a[fr]=a[sr]=a[pr]=a[ur]=a[mr]=!0;a[Dt]=a[qt]=a[Zt]=a[Gt]=a[er]=a[zt]=a[Kt]=a[_t]=a[$t]=a[Vt]=a[Xt]=a[Ht]=a[Jt]=a[Yt]=a[Qt]=!1;function lr(e){return y(e)&&E(e.length)&&!!a[c(e)]}var ie=lr;function dr(e){return function(t){return e(t)}}var xe=dr;var ce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=ce&&typeof module=="object"&&module&&!module.nodeType&&module,nr=j&&j.exports===ce,F=nr&&A.process,ir=function(){try{var e=j&&j.require&&j.require("util").types;return e||F&&F.binding&&F.binding("util")}catch{}}(),P=ir;var ye=P&&P.isTypedArray,xr=ye?xe(ye):ie,ge=xr;var cr=Object.prototype,yr=cr.hasOwnProperty;function gr(e,t){var r=S(e),o=!r&&pe(e),f=!r&&!o&&ne(e),d=!r&&!o&&!f&&ge(e),m=r||o||f||d,s=m?fe(e.length,String):[],l=s.length;for(var u in e)(t||yr.call(e,u))&&!(m&&(u=="length"||f&&(u=="offset"||u=="parent")||d&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||re(u,l)))&&s.push(u);return s}var be=gr;function br(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var he=br;var hr=Object.prototype,Tr=hr.hasOwnProperty;function jr(e){if(!n(e))return he(e);var t=ae(e),r=[];for(var o in e)o=="constructor"&&(t||!Tr.call(e,o))||r.push(o);return r}var Te=jr;function Ir(e){return oe(e)?be(e,!0):Te(e)}var je=Ir;function Ar(e){return function(t,r,o){for(var f=-1,d=Object(t),m=o(t),s=m.length;s--;){var l=m[e?s:++f];if(r(d[l],l,d)===!1)break}return t}}var Ie=Ar;var Or=Ie(),Ae=Or;function vr(e){return typeof e=="function"?e:ee}var Oe=vr;function Sr(e,t){return e==null?e:Ae(e,Oe(t),je)}var Er=Sr;export{L as a,nt as b,Er as c,ct 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.3.0-next.2 */
4
- import{a as g,b as l,e as O,f as W,k as x,l as b,n as y,o as F,q as p}from"./MN7KZY4D.js";import{k as d}from"./FNLLEMBV.js";import{h as P,i as A,j as E}from"./PEGDN4K3.js";import{a as u}from"./6QNBOZS7.js";import{a as v,b as f}from"./ZOAHNVK6.js";import{i as w,k as I}from"./BMNRODSL.js";import"./6TKJFOMG.js";import{D as z,E as Y,F as r,R as S,c as D,d as s,h as $,q as C}from"./GX52PMMQ.js";var L=D`:host{display:block}.header{display:flex;block-size:100%;align-items:center;justify-content:space-between}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-spacing-sm);margin-inline-start:var(--calcite-spacing-sm-plus)}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-spacing-xxs)}:host([scale=l]){block-size:44px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-spacing-sm-plus)}.chevron{box-sizing:content-box;display:flex;block-size:100%;inline-size:100%;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;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;--calcite-internal-action-padding-block: 0;--calcite-action-background-color: var(--calcite-date-picker-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-date-picker-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-date-picker-header-action-background-color-press);--calcite-action-text-color: var(--calcite-date-picker-header-action-text-color);--calcite-action-text-color-press: var(--calcite-date-picker-header-action-text-color-press)}.chevron: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))))}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:1;gap:var(--calcite-spacing-xxs)}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{margin-inline:var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-date-picker-year-text-color, var(--calcite-color-text-1));font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{position:relative;display:inline-block;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;inline-size:44px}.year:hover{transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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))))}.month-select{--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-select-spacing-inline: var(--calcite-spacing-xxs);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-md));--calcite-select-text-color: var(--calcite-date-picker-month-select-text-color, var(--calcite-color-text-1));--calcite-select-icon-color: var(--calcite-date-picker-month-select-icon-color);--calcite-select-icon-color-hover: var(--calcite-date-picker-month-select-icon-color-hover);--calcite-internal-select-spacing-block: var(--calcite-spacing-xxs);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-xxs);--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-lg);--calcite-internal-select-font-weight: var(--calcite-font-weight-medium)}:host([scale=s]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-base);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size));--calcite-internal-select-spacing-block: var(--calcite-spacing-base);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-base);--calcite-internal-select-block-size: 24px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-sm);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-lg));--calcite-internal-select-spacing-block: var(--calcite-spacing-sm);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 44px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`,o={header:"header",chevron:"chevron",chevronContainer:"chevron-container",monthYearContainer:"month-year-container",monthPicker:"month-select",rangeCalendar:"range-calendar",suffix:"suffix",yearContainer:"year-container"},R={chevronLeft:"chevron-left",chevronRight:"chevron-right"},K=16,k=class extends Y{constructor(){super(...arguments),this.monthPickerEl=v(),this.yearInputEl=v(),this.calciteInternalDatePickerMonthHeaderSelectChange=C({cancelable:!1})}static{this.properties={nextMonthDate:[16,{},{state:!0}],prevMonthDate:[16,{},{state:!0}],activeDate:[0,{},{attribute:!1}],headingLevel:[9,{},{type:Number}],localeData:[0,{},{attribute:!1}],max:[0,{},{attribute:!1}],messages:[0,{},{attribute:!1}],min:[0,{},{attribute:!1}],monthStyle:1,position:1,scale:[3,{},{reflect:!0}],selectedDate:[0,{},{attribute:!1}]}}static{this.styles=L}connectedCallback(){super.connectedCallback(),this.setNextPrevMonthDates()}load(){this.parentDatePickerEl=I(this.el,"calcite-date-picker")}willUpdate(e){this.hasUpdated&&(e.has("activeDate")||e.has("localeData"))&&this.setYearSelectMenuWidth(),this.hasUpdated&&e.has("scale")&&this.setYearSelectWidthOffset(),(e.has("min")||e.has("max")||e.has("activeDate"))&&this.setNextPrevMonthDates()}loaded(){this.setYearSelectWidthOffset()}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=l(y(this.activeDate),this.min,this.max),this.prevMonthDate=l(x(this.activeDate),this.min,this.max))}onYearKey(e){let t=this.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault(),this.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault(),this.setYear({localizedYear:t,offset:1});break}}formatCalendarYear(e){return d.localize(`${W(e,this.localeData)}`)}parseCalendarYear(e){return d.localize(`${O(Number(d.delocalize(e)),this.localeData)}`)}onYearChange(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value)})}onYearInput(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value),commit:!1})}prevMonthClick(e){this.handleArrowClick(e,this.prevMonthDate)}prevMonthKeydown(e){u(e.key)&&this.prevMonthClick(e)}nextMonthClick(e){this.handleArrowClick(e,this.nextMonthDate)}nextMonthKeydown(e){u(e.key)&&this.nextMonthClick(e)}async handleArrowClick(e,t){e.preventDefault(),await this.handlePenultimateValidMonth(e),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(t)}handleMonthChange(e){let t=e.target,{abbreviated:a,wide:n}=this.localeData.months,i=(this.monthStyle==="wide"?n:a).indexOf(t.value),h=b(this.activeDate,i);g(h,this.min,this.max)||(h=l(h,this.min,this.max)),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(h),this.setYearSelectMenuWidth()}getInRangeDate({localizedYear:e,offset:t=0}){let{min:a,max:n,activeDate:c}=this,i=Number(d.delocalize(e)),h=i.toString().length,m=isNaN(i)?!1:i+t,N=m&&(!a||a.getFullYear()<=m)&&(!n||n.getFullYear()>=m);if(m&&N&&h===e.length){let M=new Date(c);return M.setFullYear(m),l(M,a,n)}}setYear({localizedYear:e,commit:t=!0,offset:a=0}){let{yearInputEl:{value:n},activeDate:c}=this,i=this.getInRangeDate({localizedYear:e,offset:a});i&&this.calciteInternalDatePickerMonthHeaderSelectChange.emit(i),t&&(n.value=this.formatCalendarYear((i||c).getFullYear()))}setYearSelectWidthOffset(){this.yearSelectWidthOffset=K+3*parseInt(this.getYearSelectPadding()),this.setYearSelectMenuWidth()}setYearSelectMenuWidth(){let e=this.monthPickerEl.value;e&&requestAnimationFrame(()=>{let t=getComputedStyle(e),a=`${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize}/${t.lineHeight} ${t.fontFamily}`,c=this.localeData.months[this.monthStyle][this.activeDate.getMonth()],i=Math.ceil(w(c,a));e.style.width=`${i+this.yearSelectWidthOffset}px`})}isMonthInRange(e){let t=b(this.activeDate,e);return!this.min&&!this.max||g(t,this.min,this.max)?!0:p(t,this.max)||p(t,this.min)}async handlePenultimateValidMonth(e){let n=e.target.getAttribute("data-direction")==="left",c;if(n&&this.min){let i=l(x(this.activeDate),this.min,this.max);c=p(i,this.min)}else if(this.max){let i=l(y(this.activeDate),this.min,this.max);c=p(i,this.max)}if(c)if(this.position)this.yearInputEl.value.focus();else{let i=n?this.nextMonthAction:this.prevMonthAction;i.disabled=!1,await i.setFocus()}}getPx(e){let t=Number(e.replace(/[rem|px]/g,"")),a=16;return e.includes("rem")?`${t*a}px`:`${t}px`}getYearSelectPadding(){let e;switch(this.scale){case"l":e=E;break;case"s":e=P;break;default:e=A;break}return this.getPx(e)}render(){return s`<div class=${r(o.header)}>${this.renderContent()}</div>`}renderContent(){let{localeData:e,activeDate:t}=this;if(!t||!e)return null;if(this.parentDatePickerEl){let{numberingSystem:c,lang:i}=this.parentDatePickerEl;d.numberFormatOptions={useGrouping:!1,...c&&{numberingSystem:c},...i&&{locale:i}}}let a=F(e.unitOrder),n=a.indexOf("y")<a.indexOf("m");return s`${this.position&&s`<div class=${r({[o.chevronContainer]:!0})}>${this.position==="start"&&this.renderChevron("left")||""}</div>`||""}<div class=${r({[o.monthYearContainer]:!0,[o.rangeCalendar]:!!this.position})}>${this.renderMonthYearContainer(n)}</div>${!this.position&&s`<div class=${r({[o.chevronContainer]:!0})}>${this.renderChevron("left")}</div>`||""}<div class=${r({[o.chevronContainer]:!0})}>${this.position!=="start"&&this.renderChevron("right")||""}</div>`}renderMonthYearContainer(e){return e?[this.renderYearInput(),this.renderMonthPicker()]:[this.renderMonthPicker(),this.renderYearInput()]}renderMonthPicker(){let e=this.activeDate.getMonth(),t=this.localeData.months[this.monthStyle];return s`<calcite-select class=${r(o.monthPicker)} .label=${this.messages.monthMenu} @calciteSelectChange=${this.handleMonthChange} width=auto ${f(this.monthPickerEl)}>${t.map((a,n)=>s`<calcite-option .disabled=${!this.isMonthInRange(n)} .selected=${n===e} .value=${a}>${a}</calcite-option>`)}</calcite-select>`}renderYearInput(){let e=this.localeData.year?.suffix,t=this.formatCalendarYear(this.activeDate.getFullYear());return s`<span class=${r(o.yearContainer)}><input .ariaLabel=${this.messages.year} class=${r({year:!0})} inputmode=numeric maxlength=4 minlength=1 @change=${this.onYearChange} @input=${this.onYearInput} @keydown=${this.onYearKey} pattern=\\d* type=text .value=${z(t??"")} ${f(this.yearInputEl)}>${e&&s`<span class=${r(o.suffix)}>${e}</span>`||""}</span>`}renderChevron(e){let t=e==="right",a=p(t?this.nextMonthDate:this.prevMonthDate,this.activeDate)||!g(this.activeDate,this.min,this.max);return s`<calcite-action alignment=center .ariaDisabled=${a} .ariaLabel=${t?this.messages.nextMonth:this.messages.prevMonth} class=${r(o.chevron)} compact data-direction=${e??$} .disabled=${a} .icon=${t?R.chevronRight:R.chevronLeft} icon-flip-rtl @click=${t?this.nextMonthClick:this.prevMonthClick} @keydown=${t?this.nextMonthKeydown:this.prevMonthKeydown} role=button .scale=${this.scale==="l"?"l":"m"} .text=${t?this.messages.nextMonth:this.messages.prevMonth} ${f(n=>t?this.nextMonthAction=n:this.prevMonthAction=n)}></calcite-action>`}};S("calcite-date-picker-month-header",k);export{k as DatePickerMonthHeader};
3
+ v3.3.0-next.3 */
4
+ import{a as g,b as l,e as O,f as W,k as x,l as b,n as y,o as F,q as p}from"./2TV7LE74.js";import{k as d}from"./QQLUSFD4.js";import{h as P,i as A,j as E}from"./HXJN22WV.js";import{a as u}from"./OKUVSWPU.js";import{a as v,b as f}from"./KI4MQSGL.js";import{i as w,k as I}from"./STMN57ZO.js";import"./4RHVH6AD.js";import{D as z,E as Y,F as r,R as S,c as D,d as s,h as $,q as C}from"./OAZIFPMH.js";var L=D`:host{display:block}.header{display:flex;block-size:100%;align-items:center;justify-content:space-between}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-spacing-sm);margin-inline-start:var(--calcite-spacing-sm-plus)}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-spacing-xxs)}:host([scale=l]){block-size:44px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-spacing-sm-plus)}.chevron{box-sizing:content-box;display:flex;block-size:100%;inline-size:100%;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;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;--calcite-internal-action-padding-block: 0;--calcite-action-background-color: var(--calcite-date-picker-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-date-picker-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-date-picker-header-action-background-color-press);--calcite-action-text-color: var(--calcite-date-picker-header-action-text-color);--calcite-action-text-color-press: var(--calcite-date-picker-header-action-text-color-press)}.chevron: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))))}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:1;gap:var(--calcite-spacing-xxs)}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{margin-inline:var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-date-picker-year-text-color, var(--calcite-color-text-1));font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{position:relative;display:inline-block;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;inline-size:44px}.year:hover{transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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))))}.month-select{--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-select-spacing-inline: var(--calcite-spacing-xxs);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-md));--calcite-select-text-color: var(--calcite-date-picker-month-select-text-color, var(--calcite-color-text-1));--calcite-select-icon-color: var(--calcite-date-picker-month-select-icon-color);--calcite-select-icon-color-hover: var(--calcite-date-picker-month-select-icon-color-hover);--calcite-internal-select-spacing-block: var(--calcite-spacing-xxs);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-xxs);--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-lg);--calcite-internal-select-font-weight: var(--calcite-font-weight-medium)}:host([scale=s]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-base);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size));--calcite-internal-select-spacing-block: var(--calcite-spacing-base);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-base);--calcite-internal-select-block-size: 24px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-sm);--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-lg));--calcite-internal-select-spacing-block: var(--calcite-spacing-sm);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 44px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`,o={header:"header",chevron:"chevron",chevronContainer:"chevron-container",monthYearContainer:"month-year-container",monthPicker:"month-select",rangeCalendar:"range-calendar",suffix:"suffix",yearContainer:"year-container"},R={chevronLeft:"chevron-left",chevronRight:"chevron-right"},K=16,k=class extends Y{constructor(){super(...arguments),this.monthPickerEl=v(),this.yearInputEl=v(),this.calciteInternalDatePickerMonthHeaderSelectChange=C({cancelable:!1})}static{this.properties={nextMonthDate:[16,{},{state:!0}],prevMonthDate:[16,{},{state:!0}],activeDate:[0,{},{attribute:!1}],headingLevel:[9,{},{type:Number}],localeData:[0,{},{attribute:!1}],max:[0,{},{attribute:!1}],messages:[0,{},{attribute:!1}],min:[0,{},{attribute:!1}],monthStyle:1,position:1,scale:[3,{},{reflect:!0}],selectedDate:[0,{},{attribute:!1}]}}static{this.styles=L}connectedCallback(){super.connectedCallback(),this.setNextPrevMonthDates()}load(){this.parentDatePickerEl=I(this.el,"calcite-date-picker")}willUpdate(e){this.hasUpdated&&(e.has("activeDate")||e.has("localeData"))&&this.setYearSelectMenuWidth(),this.hasUpdated&&e.has("scale")&&this.setYearSelectWidthOffset(),(e.has("min")||e.has("max")||e.has("activeDate"))&&this.setNextPrevMonthDates()}loaded(){this.setYearSelectWidthOffset()}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=l(y(this.activeDate),this.min,this.max),this.prevMonthDate=l(x(this.activeDate),this.min,this.max))}onYearKey(e){let t=this.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault(),this.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault(),this.setYear({localizedYear:t,offset:1});break}}formatCalendarYear(e){return d.localize(`${W(e,this.localeData)}`)}parseCalendarYear(e){return d.localize(`${O(Number(d.delocalize(e)),this.localeData)}`)}onYearChange(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value)})}onYearInput(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value),commit:!1})}prevMonthClick(e){this.handleArrowClick(e,this.prevMonthDate)}prevMonthKeydown(e){u(e.key)&&this.prevMonthClick(e)}nextMonthClick(e){this.handleArrowClick(e,this.nextMonthDate)}nextMonthKeydown(e){u(e.key)&&this.nextMonthClick(e)}async handleArrowClick(e,t){e.preventDefault(),await this.handlePenultimateValidMonth(e),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(t)}handleMonthChange(e){let t=e.target,{abbreviated:a,wide:n}=this.localeData.months,i=(this.monthStyle==="wide"?n:a).indexOf(t.value),h=b(this.activeDate,i);g(h,this.min,this.max)||(h=l(h,this.min,this.max)),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(h),this.setYearSelectMenuWidth()}getInRangeDate({localizedYear:e,offset:t=0}){let{min:a,max:n,activeDate:c}=this,i=Number(d.delocalize(e)),h=i.toString().length,m=isNaN(i)?!1:i+t,N=m&&(!a||a.getFullYear()<=m)&&(!n||n.getFullYear()>=m);if(m&&N&&h===e.length){let M=new Date(c);return M.setFullYear(m),l(M,a,n)}}setYear({localizedYear:e,commit:t=!0,offset:a=0}){let{yearInputEl:{value:n},activeDate:c}=this,i=this.getInRangeDate({localizedYear:e,offset:a});i&&this.calciteInternalDatePickerMonthHeaderSelectChange.emit(i),t&&(n.value=this.formatCalendarYear((i||c).getFullYear()))}setYearSelectWidthOffset(){this.yearSelectWidthOffset=K+3*parseInt(this.getYearSelectPadding()),this.setYearSelectMenuWidth()}setYearSelectMenuWidth(){let e=this.monthPickerEl.value;e&&requestAnimationFrame(()=>{let t=getComputedStyle(e),a=`${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize}/${t.lineHeight} ${t.fontFamily}`,c=this.localeData.months[this.monthStyle][this.activeDate.getMonth()],i=Math.ceil(w(c,a));e.style.width=`${i+this.yearSelectWidthOffset}px`})}isMonthInRange(e){let t=b(this.activeDate,e);return!this.min&&!this.max||g(t,this.min,this.max)?!0:p(t,this.max)||p(t,this.min)}async handlePenultimateValidMonth(e){let n=e.target.getAttribute("data-direction")==="left",c;if(n&&this.min){let i=l(x(this.activeDate),this.min,this.max);c=p(i,this.min)}else if(this.max){let i=l(y(this.activeDate),this.min,this.max);c=p(i,this.max)}if(c)if(this.position)this.yearInputEl.value.focus();else{let i=n?this.nextMonthAction:this.prevMonthAction;i.disabled=!1,await i.setFocus()}}getPx(e){let t=Number(e.replace(/[rem|px]/g,"")),a=16;return e.includes("rem")?`${t*a}px`:`${t}px`}getYearSelectPadding(){let e;switch(this.scale){case"l":e=E;break;case"s":e=P;break;default:e=A;break}return this.getPx(e)}render(){return s`<div class=${r(o.header)}>${this.renderContent()}</div>`}renderContent(){let{localeData:e,activeDate:t}=this;if(!t||!e)return null;if(this.parentDatePickerEl){let{numberingSystem:c,lang:i}=this.parentDatePickerEl;d.numberFormatOptions={useGrouping:!1,...c&&{numberingSystem:c},...i&&{locale:i}}}let a=F(e.unitOrder),n=a.indexOf("y")<a.indexOf("m");return s`${this.position&&s`<div class=${r({[o.chevronContainer]:!0})}>${this.position==="start"&&this.renderChevron("left")||""}</div>`||""}<div class=${r({[o.monthYearContainer]:!0,[o.rangeCalendar]:!!this.position})}>${this.renderMonthYearContainer(n)}</div>${!this.position&&s`<div class=${r({[o.chevronContainer]:!0})}>${this.renderChevron("left")}</div>`||""}<div class=${r({[o.chevronContainer]:!0})}>${this.position!=="start"&&this.renderChevron("right")||""}</div>`}renderMonthYearContainer(e){return e?[this.renderYearInput(),this.renderMonthPicker()]:[this.renderMonthPicker(),this.renderYearInput()]}renderMonthPicker(){let e=this.activeDate.getMonth(),t=this.localeData.months[this.monthStyle];return s`<calcite-select class=${r(o.monthPicker)} .label=${this.messages.monthMenu} @calciteSelectChange=${this.handleMonthChange} width=auto ${f(this.monthPickerEl)}>${t.map((a,n)=>s`<calcite-option .disabled=${!this.isMonthInRange(n)} .selected=${n===e} .value=${a}>${a}</calcite-option>`)}</calcite-select>`}renderYearInput(){let e=this.localeData.year?.suffix,t=this.formatCalendarYear(this.activeDate.getFullYear());return s`<span class=${r(o.yearContainer)}><input .ariaLabel=${this.messages.year} class=${r({year:!0})} inputmode=numeric maxlength=4 minlength=1 @change=${this.onYearChange} @input=${this.onYearInput} @keydown=${this.onYearKey} pattern=\\d* type=text .value=${z(t??"")} ${f(this.yearInputEl)}>${e&&s`<span class=${r(o.suffix)}>${e}</span>`||""}</span>`}renderChevron(e){let t=e==="right",a=p(t?this.nextMonthDate:this.prevMonthDate,this.activeDate)||!g(this.activeDate,this.min,this.max);return s`<calcite-action alignment=center .ariaDisabled=${a} .ariaLabel=${t?this.messages.nextMonth:this.messages.prevMonth} class=${r(o.chevron)} compact data-direction=${e??$} .disabled=${a} .icon=${t?R.chevronRight:R.chevronLeft} icon-flip-rtl @click=${t?this.nextMonthClick:this.prevMonthClick} @keydown=${t?this.nextMonthKeydown:this.prevMonthKeydown} role=button .scale=${this.scale==="l"?"l":"m"} .text=${t?this.messages.nextMonth:this.messages.prevMonth} ${f(n=>t?this.nextMonthAction=n:this.prevMonthAction=n)}></calcite-action>`}};S("calcite-date-picker-month-header",k);export{k as DatePickerMonthHeader};
@@ -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.3.0-next.2 */
4
- import{a as n}from"./MDEEFDD6.js";import{u as l,v as r}from"./BMNRODSL.js";import"./6TKJFOMG.js";import{E as u,F as i,R as w,c as g,d as t}from"./GX52PMMQ.js";var b=g`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--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);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}slot[name=modals]::slotted(calcite-modal){position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,s={main:"main",content:"content",contentBehind:"content--behind",contentBottom:"content-bottom",contentNonInteractive:"content--non-interactive",footer:"footer",positionedSlotWrapper:"positioned-slot-wrapper",contentBehindCenterContent:"center-content"},a={centerRow:"center-row",panelStart:"panel-start",panelEnd:"panel-end",panelTop:"panel-top",panelBottom:"panel-bottom",header:"header",footer:"footer",alerts:"alerts",sheets:"sheets",modals:"modals",dialogs:"dialogs"},d=class extends u{constructor(){super(),this.hasAlerts=!1,this.hasDialogs=!1,this.hasFooter=!1,this.hasHeader=!1,this.hasModals=!1,this.hasOnlyPanelBottom=!1,this.hasPanelBottom=!1,this.hasPanelTop=!1,this.hasSheets=!1,this.panelIsResizing=!1,this.contentBehind=!1,this.listen("calciteInternalShellPanelResizeStart",this.handleCalciteInternalShellPanelResizeStart),this.listen("calciteInternalShellPanelResizeEnd",this.handleCalciteInternalShellPanelResizeEnd)}static{this.properties={hasAlerts:[16,{},{state:!0}],hasDialogs:[16,{},{state:!0}],hasFooter:[16,{},{state:!0}],hasHeader:[16,{},{state:!0}],hasModals:[16,{},{state:!0}],hasOnlyPanelBottom:[16,{},{state:!0}],hasPanelBottom:[16,{},{state:!0}],hasPanelTop:[16,{},{state:!0}],hasSheets:[16,{},{state:!0}],panelIsResizing:[16,{},{state:!0}],contentBehind:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=b}willUpdate(e){(e.has("hasPanelTop")&&(this.hasUpdated||this.hasPanelTop!==!1)||e.has("hasPanelBottom")&&(this.hasUpdated||this.hasPanelBottom!==!1))&&(this.hasOnlyPanelBottom=!this.hasPanelTop&&this.hasPanelBottom)}handleCalciteInternalShellPanelResizeStart(e){this.panelIsResizing=!0,e.stopPropagation()}handleCalciteInternalShellPanelResizeEnd(e){this.panelIsResizing=!1,e.stopPropagation()}handleHeaderSlotChange(e){this.hasHeader=!!l(e)}handleFooterSlotChange(e){this.hasFooter=!!l(e)}handleAlertsSlotChange(e){this.hasAlerts=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-ALERT"&&(o.embedded=!0)})}handleSheetsSlotChange(e){this.hasSheets=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-SHEET"&&(o.embedded=!0)})}handleModalsSlotChange(e){this.hasModals=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-MODAL"&&(o.embedded=!0)})}handlePanelTopChange(e){this.hasPanelTop=l(e)}handlePanelBottomChange(e){this.hasPanelBottom=l(e)}handleDialogsSlotChange(e){this.hasDialogs=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-DIALOG"&&(o.embedded=!0)})}renderHeader(){return t`<div .hidden=${!this.hasHeader}>${n("header",t`<slot name=${a.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`}renderFooter(){return n("footer",t`<div class=${i(s.footer)} .hidden=${!this.hasFooter}><slot name=${a.footer} @slotchange=${this.handleFooterSlotChange}></slot></div>`)}renderAlerts(){return t`<div .hidden=${!this.hasAlerts}>${n("alerts",t`<slot name=${a.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</div>`}renderSheets(){return t`<div .hidden=${!this.hasSheets}>${n("sheets",t`<slot name=${a.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`}renderModals(){return t`<div .hidden=${!this.hasModals}>${n("modals",t`<slot name=${a.modals} @slotchange=${this.handleModalsSlotChange}></slot>`)}</div>`}renderDialogs(){return t`<div .hidden=${!this.hasDialogs}>${n("dialogs",t`<slot name=${a.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`}renderContent(){let{panelIsResizing:e}=this,o=n("default-slot",t`<slot></slot>`),h=e?t`<div class=${i(s.contentNonInteractive)}>${o}</div>`:o,c=n("center-row-slot",t`<slot name=${a.centerRow}></slot>`),p=n("panel-bottom-slot",t`<slot name=${a.panelBottom} @slotchange=${this.handlePanelBottomChange}></slot>`),m=n("panel-top-slot",t`<slot name=${a.panelTop} @slotchange=${this.handlePanelTopChange}></slot>`),f="content-container";return this.contentBehind?[n(f,t`<div class=${i({[s.content]:!0,[s.contentBehind]:!0})}>${h}</div>`),t`<div class=${i({[s.contentBehindCenterContent]:!0,[s.contentBottom]:this.hasOnlyPanelBottom})}>${m}${p}${c}</div>`]:[n(f,t`<div class=${i({[s.content]:!0,[s.contentBottom]:this.hasOnlyPanelBottom})}>${m}${h}${p}${c}</div>`)]}renderMain(){return t`<div class=${i(s.main)}><slot name=${a.panelStart}></slot>${this.renderContent()}<slot name=${a.panelEnd}></slot></div>`}renderPositionedSlots(){return t`<div class=${i(s.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderModals()}${this.renderDialogs()}${this.renderSheets()}</div>`}render(){return t`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`}};w("calcite-shell",d);export{d as Shell};
3
+ v3.3.0-next.3 */
4
+ import{a as n}from"./LRNVJIYG.js";import{u as l,v as r}from"./STMN57ZO.js";import"./4RHVH6AD.js";import{E as u,F as i,R as w,c as g,d as t}from"./OAZIFPMH.js";var b=g`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--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);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}slot[name=modals]::slotted(calcite-modal){position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,s={main:"main",content:"content",contentBehind:"content--behind",contentBottom:"content-bottom",contentNonInteractive:"content--non-interactive",footer:"footer",positionedSlotWrapper:"positioned-slot-wrapper",contentBehindCenterContent:"center-content"},a={centerRow:"center-row",panelStart:"panel-start",panelEnd:"panel-end",panelTop:"panel-top",panelBottom:"panel-bottom",header:"header",footer:"footer",alerts:"alerts",sheets:"sheets",modals:"modals",dialogs:"dialogs"},d=class extends u{constructor(){super(),this.hasAlerts=!1,this.hasDialogs=!1,this.hasFooter=!1,this.hasHeader=!1,this.hasModals=!1,this.hasOnlyPanelBottom=!1,this.hasPanelBottom=!1,this.hasPanelTop=!1,this.hasSheets=!1,this.panelIsResizing=!1,this.contentBehind=!1,this.listen("calciteInternalShellPanelResizeStart",this.handleCalciteInternalShellPanelResizeStart),this.listen("calciteInternalShellPanelResizeEnd",this.handleCalciteInternalShellPanelResizeEnd)}static{this.properties={hasAlerts:[16,{},{state:!0}],hasDialogs:[16,{},{state:!0}],hasFooter:[16,{},{state:!0}],hasHeader:[16,{},{state:!0}],hasModals:[16,{},{state:!0}],hasOnlyPanelBottom:[16,{},{state:!0}],hasPanelBottom:[16,{},{state:!0}],hasPanelTop:[16,{},{state:!0}],hasSheets:[16,{},{state:!0}],panelIsResizing:[16,{},{state:!0}],contentBehind:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=b}willUpdate(e){(e.has("hasPanelTop")&&(this.hasUpdated||this.hasPanelTop!==!1)||e.has("hasPanelBottom")&&(this.hasUpdated||this.hasPanelBottom!==!1))&&(this.hasOnlyPanelBottom=!this.hasPanelTop&&this.hasPanelBottom)}handleCalciteInternalShellPanelResizeStart(e){this.panelIsResizing=!0,e.stopPropagation()}handleCalciteInternalShellPanelResizeEnd(e){this.panelIsResizing=!1,e.stopPropagation()}handleHeaderSlotChange(e){this.hasHeader=!!l(e)}handleFooterSlotChange(e){this.hasFooter=!!l(e)}handleAlertsSlotChange(e){this.hasAlerts=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-ALERT"&&(o.embedded=!0)})}handleSheetsSlotChange(e){this.hasSheets=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-SHEET"&&(o.embedded=!0)})}handleModalsSlotChange(e){this.hasModals=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-MODAL"&&(o.embedded=!0)})}handlePanelTopChange(e){this.hasPanelTop=l(e)}handlePanelBottomChange(e){this.hasPanelBottom=l(e)}handleDialogsSlotChange(e){this.hasDialogs=!!l(e),r(e)?.map(o=>{o.tagName==="CALCITE-DIALOG"&&(o.embedded=!0)})}renderHeader(){return t`<div .hidden=${!this.hasHeader}>${n("header",t`<slot name=${a.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`}renderFooter(){return n("footer",t`<div class=${i(s.footer)} .hidden=${!this.hasFooter}><slot name=${a.footer} @slotchange=${this.handleFooterSlotChange}></slot></div>`)}renderAlerts(){return t`<div .hidden=${!this.hasAlerts}>${n("alerts",t`<slot name=${a.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</div>`}renderSheets(){return t`<div .hidden=${!this.hasSheets}>${n("sheets",t`<slot name=${a.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`}renderModals(){return t`<div .hidden=${!this.hasModals}>${n("modals",t`<slot name=${a.modals} @slotchange=${this.handleModalsSlotChange}></slot>`)}</div>`}renderDialogs(){return t`<div .hidden=${!this.hasDialogs}>${n("dialogs",t`<slot name=${a.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`}renderContent(){let{panelIsResizing:e}=this,o=n("default-slot",t`<slot></slot>`),h=e?t`<div class=${i(s.contentNonInteractive)}>${o}</div>`:o,c=n("center-row-slot",t`<slot name=${a.centerRow}></slot>`),p=n("panel-bottom-slot",t`<slot name=${a.panelBottom} @slotchange=${this.handlePanelBottomChange}></slot>`),m=n("panel-top-slot",t`<slot name=${a.panelTop} @slotchange=${this.handlePanelTopChange}></slot>`),f="content-container";return this.contentBehind?[n(f,t`<div class=${i({[s.content]:!0,[s.contentBehind]:!0})}>${h}</div>`),t`<div class=${i({[s.contentBehindCenterContent]:!0,[s.contentBottom]:this.hasOnlyPanelBottom})}>${m}${p}${c}</div>`]:[n(f,t`<div class=${i({[s.content]:!0,[s.contentBottom]:this.hasOnlyPanelBottom})}>${m}${h}${p}${c}</div>`)]}renderMain(){return t`<div class=${i(s.main)}><slot name=${a.panelStart}></slot>${this.renderContent()}<slot name=${a.panelEnd}></slot></div>`}renderPositionedSlots(){return t`<div class=${i(s.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderModals()}${this.renderDialogs()}${this.renderSheets()}</div>`}render(){return t`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`}};w("calcite-shell",d);export{d as Shell};
@@ -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.3.0-next.2 */
4
- import{b as p,c as d}from"./UU3HHSES.js";import{l as h,n as m,v as c,z as a}from"./BMNRODSL.js";import{d as f}from"./EOJHNWIH.js";import"./Q7GWXGTY.js";import"./6TKJFOMG.js";import{E as u,R as r,c as o,d as n}from"./GX52PMMQ.js";var y=o`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`,l=class extends u{constructor(){super(),this.attributeWatch=p(["role"],this.handleGlobalAttributesChanged),this.menuItems=[],this.messages=d(),this.layout="horizontal",this.listen("calciteInternalMenuItemKeyEvent",this.calciteInternalNavMenuItemKeyEvent)}static{this.properties={label:1,layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=y}async setFocus(){await f(this),m(this.menuItems[0])}willUpdate(e){e.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setMenuItemLayout(this.menuItems,this.layout)}handleGlobalAttributesChanged(){this.requestUpdate(),this.setMenuItemLayout(this.menuItems,this.layout)}calciteInternalNavMenuItemKeyEvent(e){let t=e.target,s=e.detail.children,i=e.detail.event.key;e.stopPropagation(),i==="ArrowDown"?t.layout==="vertical"?a(this.menuItems,t,"next",!1):e.detail.isSubmenuOpen&&s[0].setFocus():i==="ArrowUp"?this.layout==="vertical"?a(this.menuItems,t,"previous",!1):e.detail.isSubmenuOpen&&s[s.length-1].setFocus():i==="ArrowRight"?this.layout==="horizontal"?a(this.menuItems,t,"next",!1):e.detail.isSubmenuOpen&&s[0].setFocus():i==="ArrowLeft"?this.layout==="horizontal"?a(this.menuItems,t,"previous",!1):e.detail.isSubmenuOpen&&this.focusParentElement(e.target):i==="Escape"&&this.focusParentElement(e.target),e.preventDefault()}handleMenuSlotChange(e){this.menuItems=c(e),this.setMenuItemLayout(this.menuItems,this.layout)}focusParentElement(e){let t=e.parentElement;t&&(h(t),t.open=!1)}setMenuItemLayout(e,t){e.forEach(s=>{s.layout=t,this.getEffectiveRole()==="menubar"&&(s.isTopLevelItem=!0,s.topLevelMenuLayout=this.layout)})}getEffectiveRole(){return this.el.role||"menubar"}render(){return n`<ul .ariaLabel=${this.label} .role=${this.getEffectiveRole()}><slot @slotchange=${this.handleMenuSlotChange}></slot></ul>`}};r("calcite-menu",l);export{l as Menu};
3
+ v3.3.0-next.3 */
4
+ import{b as p,c as d}from"./4QJYID23.js";import{l as h,n as m,v as c,z as a}from"./STMN57ZO.js";import{d as f}from"./TOTHTFAR.js";import"./7VNELD3S.js";import"./4RHVH6AD.js";import{E as u,R as r,c as o,d as n}from"./OAZIFPMH.js";var y=o`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`,l=class extends u{constructor(){super(),this.attributeWatch=p(["role"],this.handleGlobalAttributesChanged),this.menuItems=[],this.messages=d(),this.layout="horizontal",this.listen("calciteInternalMenuItemKeyEvent",this.calciteInternalNavMenuItemKeyEvent)}static{this.properties={label:1,layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=y}async setFocus(){await f(this),m(this.menuItems[0])}willUpdate(e){e.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setMenuItemLayout(this.menuItems,this.layout)}handleGlobalAttributesChanged(){this.requestUpdate(),this.setMenuItemLayout(this.menuItems,this.layout)}calciteInternalNavMenuItemKeyEvent(e){let t=e.target,s=e.detail.children,i=e.detail.event.key;e.stopPropagation(),i==="ArrowDown"?t.layout==="vertical"?a(this.menuItems,t,"next",!1):e.detail.isSubmenuOpen&&s[0].setFocus():i==="ArrowUp"?this.layout==="vertical"?a(this.menuItems,t,"previous",!1):e.detail.isSubmenuOpen&&s[s.length-1].setFocus():i==="ArrowRight"?this.layout==="horizontal"?a(this.menuItems,t,"next",!1):e.detail.isSubmenuOpen&&s[0].setFocus():i==="ArrowLeft"?this.layout==="horizontal"?a(this.menuItems,t,"previous",!1):e.detail.isSubmenuOpen&&this.focusParentElement(e.target):i==="Escape"&&this.focusParentElement(e.target),e.preventDefault()}handleMenuSlotChange(e){this.menuItems=c(e),this.setMenuItemLayout(this.menuItems,this.layout)}focusParentElement(e){let t=e.parentElement;t&&(h(t),t.open=!1)}setMenuItemLayout(e,t){e.forEach(s=>{s.layout=t,this.getEffectiveRole()==="menubar"&&(s.isTopLevelItem=!0,s.topLevelMenuLayout=this.layout)})}getEffectiveRole(){return this.el.role||"menubar"}render(){return n`<ul .ariaLabel=${this.label} .role=${this.getEffectiveRole()}><slot @slotchange=${this.handleMenuSlotChange}></slot></ul>`}};r("calcite-menu",l);export{l as Menu};
@@ -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.3.0-next.2 */
4
- import{c as f,d as y}from"./GIWKRV7P.js";import{a as u}from"./DKB2HN7O.js";import"./42P7F2AW.js";import{c as b}from"./UU3HHSES.js";import"./ZOAHNVK6.js";import"./LGCVXVMZ.js";import{n as h,v as g}from"./BMNRODSL.js";import{d as x}from"./EOJHNWIH.js";import{a as m}from"./Q7GWXGTY.js";import"./6TKJFOMG.js";import{E as d,F as i,R as p,c as r,d as a,q as c}from"./GX52PMMQ.js";var v={actionGroupEnd:"action-group--end",container:"container"},O={expandTooltip:"expand-tooltip"},L=r`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:block}@keyframes in{0%{opacity:0}to{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, .125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px}.container{display:inline-flex;flex-direction:column;overflow:hidden;--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);gap:var(--calcite-action-pad-items-space, 0);border-radius:calc(var(--calcite-action-pad-corner-radius, .125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px}:host([hidden]){display:none}[hidden]{display:none}`,n=class extends d{constructor(){super(),this.mutationObserver=u("mutation",()=>this.updateGroups()),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.messages=b(),this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overlayPositioning="absolute",this.scale="m",this.calciteActionPadToggle=c({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:[16,{},{state:!0}],actionsEndGroupLabel:1,expandDisabled:[7,{},{reflect:!0,type:Boolean}],expanded:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],position:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=L}async setFocus(){await x(this),h(this.el)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){m.deprecated("component",{name:"action-pad",removalVersion:4,suggested:"action-bar"})}willUpdate(t){t.has("expanded")&&this.hasUpdated&&f({el:this.el,expanded:this.expanded}),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleTooltipSlotChange(t){let o=g(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,messages:e,el:w,position:T,toggleExpand:G,scale:s,layout:E,actionsEndGroupLabel:k,overlayPositioning:C}=this,l=o?null:y({collapseLabel:e.collapseLabel,collapseText:e.collapse,el:w,expandLabel:e.expandLabel,expandText:e.expand,expanded:t,position:T,scale:s,toggle:G,tooltip:this.expandTooltip});return l?a`<calcite-action-group class=${i(v.actionGroupEnd)} .label=${k} .layout=${E} .overlayPositioning=${C} .scale=${s}><slot name=${O.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${l}</calcite-action-group>`:null}render(){return a`<div class=${i(v.container)}><slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}</div>`}};p("calcite-action-pad",n);export{n as ActionPad};
3
+ v3.3.0-next.3 */
4
+ import{c as f,d as y}from"./L7OV2JTK.js";import{a as u}from"./PE3W7MPW.js";import"./5462NYWD.js";import{c as b}from"./4QJYID23.js";import"./KI4MQSGL.js";import"./QSILJFNG.js";import{n as h,v as g}from"./STMN57ZO.js";import{d as x}from"./TOTHTFAR.js";import{a as m}from"./7VNELD3S.js";import"./4RHVH6AD.js";import{E as d,F as i,R as p,c as r,d as a,q as c}from"./OAZIFPMH.js";var v={actionGroupEnd:"action-group--end",container:"container"},O={expandTooltip:"expand-tooltip"},L=r`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:block}@keyframes in{0%{opacity:0}to{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, .125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px}.container{display:inline-flex;flex-direction:column;overflow:hidden;--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);gap:var(--calcite-action-pad-items-space, 0);border-radius:calc(var(--calcite-action-pad-corner-radius, .125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px}:host([hidden]){display:none}[hidden]{display:none}`,n=class extends d{constructor(){super(),this.mutationObserver=u("mutation",()=>this.updateGroups()),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.messages=b(),this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overlayPositioning="absolute",this.scale="m",this.calciteActionPadToggle=c({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:[16,{},{state:!0}],actionsEndGroupLabel:1,expandDisabled:[7,{},{reflect:!0,type:Boolean}],expanded:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],position:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=L}async setFocus(){await x(this),h(this.el)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){m.deprecated("component",{name:"action-pad",removalVersion:4,suggested:"action-bar"})}willUpdate(t){t.has("expanded")&&this.hasUpdated&&f({el:this.el,expanded:this.expanded}),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleTooltipSlotChange(t){let o=g(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,messages:e,el:w,position:T,toggleExpand:G,scale:s,layout:E,actionsEndGroupLabel:k,overlayPositioning:C}=this,l=o?null:y({collapseLabel:e.collapseLabel,collapseText:e.collapse,el:w,expandLabel:e.expandLabel,expandText:e.expand,expanded:t,position:T,scale:s,toggle:G,tooltip:this.expandTooltip});return l?a`<calcite-action-group class=${i(v.actionGroupEnd)} .label=${k} .layout=${E} .overlayPositioning=${C} .scale=${s}><slot name=${O.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${l}</calcite-action-group>`:null}render(){return a`<div class=${i(v.container)}><slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}</div>`}};p("calcite-action-pad",n);export{n as ActionPad};
@@ -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.3.0-next.2 */
4
- import{e as E,f as R,g as $}from"./PEGDN4K3.js";var y={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]};var B=Object.create(null);for(let t in y)Object.hasOwn(y,t)&&(B[y[t]]=t);var g={to:{},get:{}};g.get=function(t){let n=t.slice(0,3).toLowerCase(),e,r;switch(n){case"hsl":{e=g.get.hsl(t),r="hsl";break}case"hwb":{e=g.get.hwb(t),r="hwb";break}default:{e=g.get.rgb(t),r="rgb";break}}return e?{model:r,value:e}:null};g.get.rgb=function(t){if(!t)return null;let n=/^#([a-f\d]{3,4})$/i,e=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^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+)$/,c=[0,0,0,1],a,l,h;if(a=t.match(e)){for(h=a[2],a=a[1],l=0;l<3;l++){let _=l*2;c[l]=Number.parseInt(a.slice(_,_+2),16)}h&&(c[3]=Number.parseInt(h,16)/255)}else if(a=t.match(n)){for(a=a[1],h=a[3],l=0;l<3;l++)c[l]=Number.parseInt(a[l]+a[l],16);h&&(c[3]=Number.parseInt(h+h,16)/255)}else if(a=t.match(r)){for(l=0;l<3;l++)c[l]=Number.parseInt(a[l+1],10);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(o)){for(l=0;l<3;l++)c[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(y,a[1])?(c=y[a[1]],c[3]=1,c):null:null;for(l=0;l<3;l++)c[l]=k(c[l],0,255);return c[3]=k(c[3],0,1),c};g.get.hsl=function(t){if(!t)return null;let n=/^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*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.get.hwb=function(t){if(!t)return null;let n=/^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*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.to.hex=function(...t){return"#"+H(t[0])+H(t[1])+H(t[2])+(t[3]<1?H(Math.round(t[3]*255)):"")};g.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};g.to.rgb.percent=function(...t){let n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};g.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};g.to.hwb=function(...t){let n="";return t.length>=4&&t[3]!==1&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};g.to.keyword=function(...t){return B[t.slice(0,3)]};function k(t,n,e){return Math.min(Math.max(n,t),e)}function H(t){let n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}var M=g;var T={};for(let t of Object.keys(y))T[y[t]]=t;var i={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},S=i,w=(6/29)**3;function x(t){let n=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,n),1)}function A(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(i)){if(!("channels"in i[t]))throw new Error("missing channels property: "+t);if(!("labels"in i[t]))throw new Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:n,labels:e}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:n}),Object.defineProperty(i[t],"labels",{value:e})}i.rgb.hsl=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(n,e,r),s=Math.max(n,e,r),c=s-o,a,l;switch(s){case o:{a=0;break}case n:{a=(e-r)/c;break}case e:{a=2+(r-n)/c;break}case r:{a=4+(n-e)/c;break}}a=Math.min(a*60,360),a<0&&(a+=360);let h=(o+s)/2;return s===o?l=0:h<=.5?l=c/(s+o):l=c/(2-s-o),[a,l*100,h*100]};i.rgb.hsv=function(t){let n,e,r,o,s,c=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(c,a,l),_=h-Math.min(c,a,l),v=function(Y){return(h-Y)/6/_+1/2};if(_===0)o=0,s=0;else{switch(s=_/h,n=v(c),e=v(a),r=v(l),h){case c:{o=r-e;break}case a:{o=1/3+n-r;break}case l:{o=2/3+e-n;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,h*100]};i.rgb.hwb=function(t){let n=t[0],e=t[1],r=t[2],o=i.rgb.hsl(t)[0],s=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[o,s*100,r*100]};i.rgb.oklab=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=Math.cbrt(.4122214708*n+.5363325363*e+.0514459929*r),s=Math.cbrt(.2119034982*n+.6806995451*e+.1073969566*r),c=Math.cbrt(.0883024619*n+.2817188376*e+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.rgb.cmyk=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(1-n,1-e,1-r),s=(1-n-o)/(1-o)||0,c=(1-e-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,c*100,a*100,o*100]};function J(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}i.rgb.keyword=function(t){let n=T[t];if(n)return n;let e=Number.POSITIVE_INFINITY,r;for(let o of Object.keys(y)){let s=y[o],c=J(t,s);c<e&&(e=c,r=o)}return r};i.keyword.rgb=function(t){return y[t]};i.rgb.xyz=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=n*.4124564+e*.3575761+r*.1804375,s=n*.2126729+e*.7151522+r*.072175,c=n*.0193339+e*.119192+r*.9503041;return[o*100,s*100,c*100]};i.rgb.lab=function(t){let n=i.rgb.xyz(t),e=n[0],r=n[1],o=n[2];e/=95.047,r/=100,o/=108.883,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116,o=o>w?o**(1/3):7.787*o+16/116;let s=116*r-16,c=500*(e-r),a=200*(r-o);return[s,c,a]};i.hsl.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o,s;if(e===0)return s=r*255,[s,s,s];let c=r<.5?r*(1+e):r+e-r*e,a=2*r-c,l=[0,0,0];for(let h=0;h<3;h++)o=n+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(c-a)*6*o:2*o<1?s=c:3*o<2?s=a+(c-a)*(2/3-o)*6:s=a,l[h]=s*255;return l};i.hsl.hsv=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=e,s=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,o*=s<=1?s:2-s;let c=(r+e)/2,a=r===0?2*o/(s+o):2*e/(r+e);return[n,a*100,c*100]};i.hsv.rgb=function(t){let n=t[0]/60,e=t[1]/100,r=t[2]/100,o=Math.floor(n)%6,s=n-Math.floor(n),c=255*r*(1-e),a=255*r*(1-e*s),l=255*r*(1-e*(1-s));switch(r*=255,o){case 0:return[r,l,c];case 1:return[a,r,c];case 2:return[c,r,l];case 3:return[c,a,r];case 4:return[l,c,r];case 5:return[r,c,a]}};i.hsv.hsl=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=Math.max(r,.01),s,c;c=(2-e)*r;let a=(2-e)*o;return s=e*o,s/=a<=1?a:2-a,s=s||0,c/=2,[n,s*100,c*100]};i.hwb.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o=e+r,s;o>1&&(e/=o,r/=o);let c=Math.floor(6*n),a=1-r;s=6*n-c,(c&1)!==0&&(s=1-s);let l=e+s*(a-e),h,_,v;switch(c){default:case 6:case 0:{h=a,_=l,v=e;break}case 1:{h=l,_=a,v=e;break}case 2:{h=e,_=a,v=l;break}case 3:{h=e,_=l,v=a;break}case 4:{h=l,_=e,v=a;break}case 5:{h=a,_=e,v=l;break}}return[h*255,_*255,v*255]};i.cmyk.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=t[3]/100,s=1-Math.min(1,n*(1-o)+o),c=1-Math.min(1,e*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,c*255,a*255]};i.xyz.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o,s,c;return o=n*3.2404542+e*-1.5371385+r*-.4985314,s=n*-.969266+e*1.8760108+r*.041556,c=n*.0556434+e*-.2040259+r*1.0572252,o=x(o),s=x(s),c=x(c),[o*255,s*255,c*255]};i.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];n/=95.047,e/=100,r/=108.883,n=n>w?n**(1/3):7.787*n+16/116,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116;let o=116*e-16,s=500*(n-e),c=200*(e-r);return[o,s,c]};i.xyz.oklab=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=Math.cbrt(.8189330101*n+.3618667424*e-.1288597137*r),s=Math.cbrt(.0329845436*n+.9293118715*e+.0361456387*r),c=Math.cbrt(.0482003018*n+.2643662691*e+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.oklab.oklch=function(t){return i.lab.lch(t)};i.oklab.xyz=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(.999999998*n+.396337792*e+.215803758*r)**3,s=(1.000000008*n-.105561342*e-.063854175*r)**3,c=(1.000000055*n-.089484182*e-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*c,l=-.040580178*o+1.11225687*s-.071676679*c,h=-.076381285*o-.421481978*s+1.58616322*c;return[a*100,l*100,h*100]};i.oklab.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(n+.3963377774*e+.2158037573*r)**3,s=(n-.1055613458*e-.0638541728*r)**3,c=(n-.0894841775*e-1.291485548*r)**3,a=x(4.0767416621*o-3.3077115913*s+.2309699292*c),l=x(-1.2684380046*o+2.6097574011*s-.3413193965*c),h=x(-.0041960863*o-.7034186147*s+1.707614701*c);return[a*255,l*255,h*255]};i.oklch.oklab=function(t){return i.lch.lab(t)};i.lab.xyz=function(t){let n=t[0],e=t[1],r=t[2],o,s,c;s=(n+16)/116,o=e/500+s,c=s-r/200;let a=s**3,l=o**3,h=c**3;return s=a>w?a:(s-16/116)/7.787,o=l>w?l:(o-16/116)/7.787,c=h>w?h:(c-16/116)/7.787,o*=95.047,s*=100,c*=108.883,[o,s,c]};i.lab.lch=function(t){let n=t[0],e=t[1],r=t[2],o;o=Math.atan2(r,e)*360/2/Math.PI,o<0&&(o+=360);let c=Math.sqrt(e*e+r*r);return[n,c,o]};i.lch.lab=function(t){let n=t[0],e=t[1],o=t[2]/360*2*Math.PI,s=e*Math.cos(o),c=e*Math.sin(o);return[n,s,c]};i.rgb.ansi16=function(t,n=null){let[e,r,o]=t,s=n===null?i.rgb.hsv(t)[2]:n;if(s=Math.round(s/50),s===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return s===2&&(c+=60),c};i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])};i.rgb.ansi256=function(t){let n=t[0],e=t[1],r=t[2];return n>>4===e>>4&&e>>4===r>>4?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)};i.ansi16.rgb=function(t){t=t[0];let n=t%10;if(n===0||n===7)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let e=(Math.trunc(t>50)+1)*.5,r=(n&1)*e*255,o=(n>>1&1)*e*255,s=(n>>2&1)*e*255;return[r,o,s]};i.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let n,e=Math.floor(t/36)/5*255,r=Math.floor((n=t%36)/6)/5*255,o=n%6/5*255;return[e,r,o]};i.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(e.length)+e};i.hex.rgb=function(t){let n=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!n)return[0,0,0];let e=n[0];n[0].length===3&&(e=[...e].map(a=>a+a).join(""));let r=Number.parseInt(e,16),o=r>>16&255,s=r>>8&255,c=r&255;return[o,s,c]};i.rgb.hcg=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,e),r),s=Math.min(Math.min(n,e),r),c=o-s,a,l=c<1?s/(1-c):0;return c<=0?a=0:o===n?a=(e-r)/c%6:o===e?a=2+(r-n)/c:a=4+(n-e)/c,a/=6,a%=1,[a*360,c*100,l*100]};i.hsl.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e),o=0;return r<1&&(o=(e-.5*r)/(1-r)),[t[0],r*100,o*100]};i.hsv.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=n*e,o=0;return r<1&&(o=(e-r)/(1-r)),[t[0],r*100,o*100]};i.hcg.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100;if(e===0)return[r*255,r*255,r*255];let o=[0,0,0],s=n%1*6,c=s%1,a=1-c,l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=c,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=c;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=c,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-e)*r,[(e*o[0]+l)*255,(e*o[1]+l)*255,(e*o[2]+l)*255]};i.hcg.hsv=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n),o=0;return r>0&&(o=n/r),[t[0],o*100,r*100]};i.hcg.hsl=function(t){let n=t[1]/100,r=t[2]/100*(1-n)+.5*n,o=0;return r>0&&r<.5?o=n/(2*r):r>=.5&&r<1&&(o=n/(2*(1-r))),[t[0],o*100,r*100]};i.hcg.hwb=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};i.hwb.hcg=function(t){let n=t[1]/100,r=1-t[2]/100,o=r-n,s=0;return o<1&&(s=(r-o)/(1-o)),[t[0],o*100,s*100]};i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};i.gray.hsl=function(t){return[0,0,t[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(t){return[0,100,t[0]]};i.gray.cmyk=function(t){return[0,0,0,t[0]]};i.gray.lab=function(t){return[t[0],0,0]};i.gray.hex=function(t){let n=Math.round(t[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".slice(r.length)+r};i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Z(){let t={},n=Object.keys(S);for(let{length:e}=n,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}function Q(t){let n=Z(),e=[t];for(n[t].distance=0;e.length>0;){let r=e.pop(),o=Object.keys(S[r]);for(let{length:s}=o,c=0;c<s;c++){let a=o[c],l=n[a];l.distance===-1&&(l.distance=n[r].distance+1,l.parent=r,e.unshift(a))}}return n}function V(t,n){return function(e){return n(t(e))}}function tt(t,n){let e=[n[t].parent,t],r=S[n[t].parent][t],o=n[t].parent;for(;n[o].parent;)e.unshift(n[o].parent),r=V(S[n[o].parent][o],r),o=n[o].parent;return r.conversion=e,r}function nt(t){let n=Q(t),e={},r=Object.keys(n);for(let{length:o}=r,s=0;s<o;s++){let c=r[s];n[c].parent!==null&&(e[c]=tt(c,n))}return e}var G=nt;var F={},et=Object.keys(S);function rt(t){let n=function(...e){let r=e[0];return r==null?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(n.conversion=t.conversion),n}function ot(t){let n=function(...e){let r=e[0];if(r==null)return r;r.length>1&&(e=r);let o=t(e);if(typeof o=="object")for(let{length:s}=o,c=0;c<s;c++)o[c]=Math.round(o[c]);return o};return"conversion"in t&&(n.conversion=t.conversion),n}for(let t of et){F[t]={},Object.defineProperty(F[t],"channels",{value:S[t].channels}),Object.defineProperty(F[t],"labels",{value:S[t].labels});let n=G(t),e=Object.keys(n);for(let r of e){let o=n[r];F[t][r]=ot(o),F[t][r].raw=rt(o)}}var m=F;var q=["keyword","gray","hex"],I={};for(let t of Object.keys(m))I[[...m[t].labels].sort().join("")]=t;var L={};function p(t,n){if(!(this instanceof p))return new p(t,n);if(n&&n in q&&(n=null),n&&!(n in m))throw new Error("Unknown model: "+n);let e,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof p)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let o=M.get(t);if(o===null)throw new Error("Unable to parse color from string: "+t);this.model=o.model,r=m[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(t.length>0){this.model=n||"rgb",r=m[this.model].channels;let o=Array.prototype.slice.call(t,0,r);this.color=O(o,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=o.sort().join("");if(!(s in I))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=I[s];let{labels:c}=m[this.model],a=[];for(e=0;e<c.length;e++)a.push(t[c[e]]);this.color=O(a)}if(L[this.model])for(r=m[this.model].channels,e=0;e<r;e++){let o=L[this.model][e];o&&(this.color[e]=o(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}p.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in M.to?this:this.rgb();n=n.round(typeof t=="number"?t:1);let e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to[n.model](...e)},percentString(t){let n=this.rgb().round(typeof t=="number"?t:1),e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to.rgb.percent(...e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:n}=m[this.model],{labels:e}=m[this.model];for(let r=0;r<n;r++)t[e[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new p([...this.color.map(ct(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new p([...this.color,Math.max(0,Math.min(1,t))],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,t=>(t%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(t){return t!==void 0?new p(t):m[this.model].keyword(this.color)},hex(t){return t!==void 0?new p(t):M.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new p(t);let n=this.rgb().round().color,e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),M.to.hex(...n)+e},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,n=[];for(let[e,r]of t.entries()){let o=r/255;n[e]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){let n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level(t){let n=this.contrast(t);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten(t){let n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken(t){let n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate(t){let n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate(t){let n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten(t){let n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken(t){let n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale(){let t=this.rgb().color,n=t[0]*.3+t[1]*.59+t[2]*.11;return p.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix(t,n){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let e=t.rgb(),r=this.rgb(),o=n===void 0?.5:n,s=2*o-1,c=e.alpha()-r.alpha(),a=((s*c===-1?s:(s+c)/(1+s*c))+1)/2,l=1-a;return p.rgb(a*e.red()+l*r.red(),a*e.green()+l*r.green(),a*e.blue()+l*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(let t of Object.keys(m)){if(q.includes(t))continue;let{channels:n}=m[t];p.prototype[t]=function(...e){return this.model===t?new p(this):e.length>0?new p(e,t):new p([...at(m[this.model][t].raw(this.color)),this.valpha],t)},p[t]=function(...e){let r=e[0];return typeof r=="number"&&(r=O(e,n)),new p(r,t)}}function st(t,n){return Number(t.toFixed(n))}function ct(t){return function(n){return st(n,t)}}function u(t,n,e){t=Array.isArray(t)?t:[t];for(let r of t)(L[r]||=[])[n]=e;return t=t[0],function(r){let o;return r!==void 0?(e&&(r=e(r)),o=this[t](),o.color[n]=r,o):(o=this[t]().color[n],e&&(o=e(o)),o)}}function b(t){return function(n){return Math.max(0,Math.min(t,n))}}function at(t){return Array.isArray(t)?t:[t]}function O(t,n){for(let e=0;e<n;e++)typeof t[e]!="number"&&(t[e]=0);return t}var W=p;var It={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"},Lt=W("#007AC2"),Ot="calcite-color-",zt={r:255,g:255,b:255},lt={h:360,s:100,v:100},Et=lt.h-1,Rt={min:0,max:100},it={s:{gap:parseInt(E),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(R),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt($),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},$t=1,Bt=/^[0-9A-F]$/i,ht=/^#[0-9A-F]{3}$/i,ut=/^#[0-9A-F]{6}$/i,ft=/^#[0-9A-F]{4}$/i,dt=/^#[0-9A-F]{8}$/i,Tt=t=>Number((t*100).toFixed()),Gt=t=>Number((t/100).toFixed(2));function j(t,n=!1){return z(t,n)||bt(t,n)}function D(t,n,e){return t?t.length===n&&e.test(t):!1}function z(t,n=!1){return D(t,n?5:4,n?ft:ht)}function bt(t,n=!1){return D(t,n?9:7,n?dt:ut)}function qt(t,n=!1,e=!1){if(t=t.toLowerCase(),t.startsWith("#")||(t=`#${t}`),z(t,n))return P(X(t,n));if(n&&e&&j(t,!1)){let r=z(t,!1);return P(X(`${t}${r?"f":"ff"}`,!0))}return t}function Wt(t,n=!1){return n?t.hexa():t.hex()}function P(t){let{r:n,g:e,b:r}=t,o=N(n),s=N(e),c=N(r),a="a"in t?N(t.a*255):"";return`#${o}${s}${c}${a}`.toLowerCase()}function N(t){return t.toString(16).padStart(2,"0")}function Pt(t){let n={...t,a:t.alpha??1};return delete n.alpha,n}function Xt(t){let n={...t,alpha:t.a??1};return delete n.a,n}function X(t,n=!1){if(!j(t,n))return null;t=t.replace("#","");let e,r,o,s;if(t.length===3||t.length===4){let[a,l,h,_]=t.split("");e=parseInt(`${a}${a}`,16),r=parseInt(`${l}${l}`,16),o=parseInt(`${h}${h}`,16),s=parseInt(`${_}${_}`,16)/255}else e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16),s=parseInt(t.slice(6,8),16)/255;return isNaN(s)?{r:e,g:r,b:o}:{r:e,g:r,b:o,a:s}}var U=t=>t,f=U({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=U({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function jt(t){if(typeof t=="string"){if(t.startsWith("#")){let{length:n}=t;if(n===4||n===7)return f.HEX;if(n===5||n===9)return f.HEXA}if(t.startsWith("rgba("))return f.RGBA_CSS;if(t.startsWith("rgb("))return f.RGB_CSS;if(t.startsWith("hsl("))return f.HSL_CSS;if(t.startsWith("hsla("))return f.HSLA_CSS}if(typeof t=="object"){if(C(t,"r","g","b"))return C(t,"a")?d.RGBA:d.RGB;if(C(t,"h","s","l"))return C(t,"a")?d.HSLA:d.HSL;if(C(t,"h","s","v"))return C(t,"a")?d.HSVA:d.HSV}return null}function C(t,...n){return n.every(e=>e&&t&&`${e}`in t)}function Dt(t,n){return t?.rgb().array().toString()===n?.rgb().array().toString()}function Ut(t){return t===f.HEXA||t===f.RGBA_CSS||t===f.HSLA_CSS||t===d.RGBA||t===d.HSLA||t===d.HSVA}function Kt(t){return t===f.HEX?f.HEXA:t===f.RGB_CSS?f.RGBA_CSS:t===f.HSL_CSS?f.HSLA_CSS:t===d.RGB?d.RGBA:t===d.HSL?d.HSLA:t===d.HSV?d.HSVA:t}function Yt(t){return t===f.HEXA?f.HEX:t===f.RGBA_CSS?f.RGB_CSS:t===f.HSLA_CSS?f.HSL_CSS:t===d.RGBA?d.RGB:t===d.HSLA?d.HSL:t===d.HSVA?d.HSV:t}var pt=1,K=pt*2;function Jt(t,n,e){let r=e?it.l.preview.size:n.preview.size,o=t-K,s=n.gap*3;return Math.max(o-s-r,0)}function Zt(t){let e=t-K;return{width:Math.max(e,0),height:Math.max(Math.floor(e/1.8),0)}}export{W as a,It as b,Lt as c,Ot as d,zt as e,lt as f,Et as g,Rt as h,it as i,$t as j,Bt as k,Tt as l,Gt as m,j as n,z as o,bt as p,qt as q,Wt as r,P as s,Pt as t,Xt as u,X as v,f as w,jt as x,Dt as y,Ut as z,Kt as A,Yt as B,Jt as C,Zt as D};
3
+ v3.3.0-next.3 */
4
+ import{e as E,f as R,g as $}from"./HXJN22WV.js";var y={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]};var B=Object.create(null);for(let t in y)Object.hasOwn(y,t)&&(B[y[t]]=t);var g={to:{},get:{}};g.get=function(t){let n=t.slice(0,3).toLowerCase(),e,r;switch(n){case"hsl":{e=g.get.hsl(t),r="hsl";break}case"hwb":{e=g.get.hwb(t),r="hwb";break}default:{e=g.get.rgb(t),r="rgb";break}}return e?{model:r,value:e}:null};g.get.rgb=function(t){if(!t)return null;let n=/^#([a-f\d]{3,4})$/i,e=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^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+)$/,c=[0,0,0,1],a,l,h;if(a=t.match(e)){for(h=a[2],a=a[1],l=0;l<3;l++){let _=l*2;c[l]=Number.parseInt(a.slice(_,_+2),16)}h&&(c[3]=Number.parseInt(h,16)/255)}else if(a=t.match(n)){for(a=a[1],h=a[3],l=0;l<3;l++)c[l]=Number.parseInt(a[l]+a[l],16);h&&(c[3]=Number.parseInt(h+h,16)/255)}else if(a=t.match(r)){for(l=0;l<3;l++)c[l]=Number.parseInt(a[l+1],10);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(o)){for(l=0;l<3;l++)c[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(c[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(y,a[1])?(c=y[a[1]],c[3]=1,c):null:null;for(l=0;l<3;l++)c[l]=k(c[l],0,255);return c[3]=k(c[3],0,1),c};g.get.hsl=function(t){if(!t)return null;let n=/^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*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.get.hwb=function(t){if(!t)return null;let n=/^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*)?\)$/,e=t.match(n);if(e){let r=Number.parseFloat(e[4]),o=(Number.parseFloat(e[1])%360+360)%360,s=k(Number.parseFloat(e[2]),0,100),c=k(Number.parseFloat(e[3]),0,100),a=k(Number.isNaN(r)?1:r,0,1);return[o,s,c,a]}return null};g.to.hex=function(...t){return"#"+H(t[0])+H(t[1])+H(t[2])+(t[3]<1?H(Math.round(t[3]*255)):"")};g.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};g.to.rgb.percent=function(...t){let n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};g.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};g.to.hwb=function(...t){let n="";return t.length>=4&&t[3]!==1&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};g.to.keyword=function(...t){return B[t.slice(0,3)]};function k(t,n,e){return Math.min(Math.max(n,t),e)}function H(t){let n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}var M=g;var T={};for(let t of Object.keys(y))T[y[t]]=t;var i={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},S=i,w=(6/29)**3;function x(t){let n=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,n),1)}function A(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(i)){if(!("channels"in i[t]))throw new Error("missing channels property: "+t);if(!("labels"in i[t]))throw new Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:n,labels:e}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:n}),Object.defineProperty(i[t],"labels",{value:e})}i.rgb.hsl=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(n,e,r),s=Math.max(n,e,r),c=s-o,a,l;switch(s){case o:{a=0;break}case n:{a=(e-r)/c;break}case e:{a=2+(r-n)/c;break}case r:{a=4+(n-e)/c;break}}a=Math.min(a*60,360),a<0&&(a+=360);let h=(o+s)/2;return s===o?l=0:h<=.5?l=c/(s+o):l=c/(2-s-o),[a,l*100,h*100]};i.rgb.hsv=function(t){let n,e,r,o,s,c=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(c,a,l),_=h-Math.min(c,a,l),v=function(Y){return(h-Y)/6/_+1/2};if(_===0)o=0,s=0;else{switch(s=_/h,n=v(c),e=v(a),r=v(l),h){case c:{o=r-e;break}case a:{o=1/3+n-r;break}case l:{o=2/3+e-n;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,h*100]};i.rgb.hwb=function(t){let n=t[0],e=t[1],r=t[2],o=i.rgb.hsl(t)[0],s=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[o,s*100,r*100]};i.rgb.oklab=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=Math.cbrt(.4122214708*n+.5363325363*e+.0514459929*r),s=Math.cbrt(.2119034982*n+.6806995451*e+.1073969566*r),c=Math.cbrt(.0883024619*n+.2817188376*e+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.rgb.cmyk=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.min(1-n,1-e,1-r),s=(1-n-o)/(1-o)||0,c=(1-e-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,c*100,a*100,o*100]};function J(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}i.rgb.keyword=function(t){let n=T[t];if(n)return n;let e=Number.POSITIVE_INFINITY,r;for(let o of Object.keys(y)){let s=y[o],c=J(t,s);c<e&&(e=c,r=o)}return r};i.keyword.rgb=function(t){return y[t]};i.rgb.xyz=function(t){let n=A(t[0]/255),e=A(t[1]/255),r=A(t[2]/255),o=n*.4124564+e*.3575761+r*.1804375,s=n*.2126729+e*.7151522+r*.072175,c=n*.0193339+e*.119192+r*.9503041;return[o*100,s*100,c*100]};i.rgb.lab=function(t){let n=i.rgb.xyz(t),e=n[0],r=n[1],o=n[2];e/=95.047,r/=100,o/=108.883,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116,o=o>w?o**(1/3):7.787*o+16/116;let s=116*r-16,c=500*(e-r),a=200*(r-o);return[s,c,a]};i.hsl.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o,s;if(e===0)return s=r*255,[s,s,s];let c=r<.5?r*(1+e):r+e-r*e,a=2*r-c,l=[0,0,0];for(let h=0;h<3;h++)o=n+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(c-a)*6*o:2*o<1?s=c:3*o<2?s=a+(c-a)*(2/3-o)*6:s=a,l[h]=s*255;return l};i.hsl.hsv=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=e,s=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,o*=s<=1?s:2-s;let c=(r+e)/2,a=r===0?2*o/(s+o):2*e/(r+e);return[n,a*100,c*100]};i.hsv.rgb=function(t){let n=t[0]/60,e=t[1]/100,r=t[2]/100,o=Math.floor(n)%6,s=n-Math.floor(n),c=255*r*(1-e),a=255*r*(1-e*s),l=255*r*(1-e*(1-s));switch(r*=255,o){case 0:return[r,l,c];case 1:return[a,r,c];case 2:return[c,r,l];case 3:return[c,a,r];case 4:return[l,c,r];case 5:return[r,c,a]}};i.hsv.hsl=function(t){let n=t[0],e=t[1]/100,r=t[2]/100,o=Math.max(r,.01),s,c;c=(2-e)*r;let a=(2-e)*o;return s=e*o,s/=a<=1?a:2-a,s=s||0,c/=2,[n,s*100,c*100]};i.hwb.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100,o=e+r,s;o>1&&(e/=o,r/=o);let c=Math.floor(6*n),a=1-r;s=6*n-c,(c&1)!==0&&(s=1-s);let l=e+s*(a-e),h,_,v;switch(c){default:case 6:case 0:{h=a,_=l,v=e;break}case 1:{h=l,_=a,v=e;break}case 2:{h=e,_=a,v=l;break}case 3:{h=e,_=l,v=a;break}case 4:{h=l,_=e,v=a;break}case 5:{h=a,_=e,v=l;break}}return[h*255,_*255,v*255]};i.cmyk.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=t[3]/100,s=1-Math.min(1,n*(1-o)+o),c=1-Math.min(1,e*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,c*255,a*255]};i.xyz.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o,s,c;return o=n*3.2404542+e*-1.5371385+r*-.4985314,s=n*-.969266+e*1.8760108+r*.041556,c=n*.0556434+e*-.2040259+r*1.0572252,o=x(o),s=x(s),c=x(c),[o*255,s*255,c*255]};i.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];n/=95.047,e/=100,r/=108.883,n=n>w?n**(1/3):7.787*n+16/116,e=e>w?e**(1/3):7.787*e+16/116,r=r>w?r**(1/3):7.787*r+16/116;let o=116*e-16,s=500*(n-e),c=200*(e-r);return[o,s,c]};i.xyz.oklab=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=Math.cbrt(.8189330101*n+.3618667424*e-.1288597137*r),s=Math.cbrt(.0329845436*n+.9293118715*e+.0361456387*r),c=Math.cbrt(.0482003018*n+.2643662691*e+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*c,l=1.9779984951*o-2.428592205*s+.4505937099*c,h=.0259040371*o+.7827717662*s-.808675766*c;return[a*100,l*100,h*100]};i.oklab.oklch=function(t){return i.lab.lch(t)};i.oklab.xyz=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(.999999998*n+.396337792*e+.215803758*r)**3,s=(1.000000008*n-.105561342*e-.063854175*r)**3,c=(1.000000055*n-.089484182*e-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*c,l=-.040580178*o+1.11225687*s-.071676679*c,h=-.076381285*o-.421481978*s+1.58616322*c;return[a*100,l*100,h*100]};i.oklab.rgb=function(t){let n=t[0]/100,e=t[1]/100,r=t[2]/100,o=(n+.3963377774*e+.2158037573*r)**3,s=(n-.1055613458*e-.0638541728*r)**3,c=(n-.0894841775*e-1.291485548*r)**3,a=x(4.0767416621*o-3.3077115913*s+.2309699292*c),l=x(-1.2684380046*o+2.6097574011*s-.3413193965*c),h=x(-.0041960863*o-.7034186147*s+1.707614701*c);return[a*255,l*255,h*255]};i.oklch.oklab=function(t){return i.lch.lab(t)};i.lab.xyz=function(t){let n=t[0],e=t[1],r=t[2],o,s,c;s=(n+16)/116,o=e/500+s,c=s-r/200;let a=s**3,l=o**3,h=c**3;return s=a>w?a:(s-16/116)/7.787,o=l>w?l:(o-16/116)/7.787,c=h>w?h:(c-16/116)/7.787,o*=95.047,s*=100,c*=108.883,[o,s,c]};i.lab.lch=function(t){let n=t[0],e=t[1],r=t[2],o;o=Math.atan2(r,e)*360/2/Math.PI,o<0&&(o+=360);let c=Math.sqrt(e*e+r*r);return[n,c,o]};i.lch.lab=function(t){let n=t[0],e=t[1],o=t[2]/360*2*Math.PI,s=e*Math.cos(o),c=e*Math.sin(o);return[n,s,c]};i.rgb.ansi16=function(t,n=null){let[e,r,o]=t,s=n===null?i.rgb.hsv(t)[2]:n;if(s=Math.round(s/50),s===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return s===2&&(c+=60),c};i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])};i.rgb.ansi256=function(t){let n=t[0],e=t[1],r=t[2];return n>>4===e>>4&&e>>4===r>>4?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)};i.ansi16.rgb=function(t){t=t[0];let n=t%10;if(n===0||n===7)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let e=(Math.trunc(t>50)+1)*.5,r=(n&1)*e*255,o=(n>>1&1)*e*255,s=(n>>2&1)*e*255;return[r,o,s]};i.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let n,e=Math.floor(t/36)/5*255,r=Math.floor((n=t%36)/6)/5*255,o=n%6/5*255;return[e,r,o]};i.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(e.length)+e};i.hex.rgb=function(t){let n=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!n)return[0,0,0];let e=n[0];n[0].length===3&&(e=[...e].map(a=>a+a).join(""));let r=Number.parseInt(e,16),o=r>>16&255,s=r>>8&255,c=r&255;return[o,s,c]};i.rgb.hcg=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,e),r),s=Math.min(Math.min(n,e),r),c=o-s,a,l=c<1?s/(1-c):0;return c<=0?a=0:o===n?a=(e-r)/c%6:o===e?a=2+(r-n)/c:a=4+(n-e)/c,a/=6,a%=1,[a*360,c*100,l*100]};i.hsl.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e),o=0;return r<1&&(o=(e-.5*r)/(1-r)),[t[0],r*100,o*100]};i.hsv.hcg=function(t){let n=t[1]/100,e=t[2]/100,r=n*e,o=0;return r<1&&(o=(e-r)/(1-r)),[t[0],r*100,o*100]};i.hcg.rgb=function(t){let n=t[0]/360,e=t[1]/100,r=t[2]/100;if(e===0)return[r*255,r*255,r*255];let o=[0,0,0],s=n%1*6,c=s%1,a=1-c,l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=c,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=c;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=c,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-e)*r,[(e*o[0]+l)*255,(e*o[1]+l)*255,(e*o[2]+l)*255]};i.hcg.hsv=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n),o=0;return r>0&&(o=n/r),[t[0],o*100,r*100]};i.hcg.hsl=function(t){let n=t[1]/100,r=t[2]/100*(1-n)+.5*n,o=0;return r>0&&r<.5?o=n/(2*r):r>=.5&&r<1&&(o=n/(2*(1-r))),[t[0],o*100,r*100]};i.hcg.hwb=function(t){let n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};i.hwb.hcg=function(t){let n=t[1]/100,r=1-t[2]/100,o=r-n,s=0;return o<1&&(s=(r-o)/(1-o)),[t[0],o*100,s*100]};i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};i.gray.hsl=function(t){return[0,0,t[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(t){return[0,100,t[0]]};i.gray.cmyk=function(t){return[0,0,0,t[0]]};i.gray.lab=function(t){return[t[0],0,0]};i.gray.hex=function(t){let n=Math.round(t[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".slice(r.length)+r};i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Z(){let t={},n=Object.keys(S);for(let{length:e}=n,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}function Q(t){let n=Z(),e=[t];for(n[t].distance=0;e.length>0;){let r=e.pop(),o=Object.keys(S[r]);for(let{length:s}=o,c=0;c<s;c++){let a=o[c],l=n[a];l.distance===-1&&(l.distance=n[r].distance+1,l.parent=r,e.unshift(a))}}return n}function V(t,n){return function(e){return n(t(e))}}function tt(t,n){let e=[n[t].parent,t],r=S[n[t].parent][t],o=n[t].parent;for(;n[o].parent;)e.unshift(n[o].parent),r=V(S[n[o].parent][o],r),o=n[o].parent;return r.conversion=e,r}function nt(t){let n=Q(t),e={},r=Object.keys(n);for(let{length:o}=r,s=0;s<o;s++){let c=r[s];n[c].parent!==null&&(e[c]=tt(c,n))}return e}var G=nt;var F={},et=Object.keys(S);function rt(t){let n=function(...e){let r=e[0];return r==null?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(n.conversion=t.conversion),n}function ot(t){let n=function(...e){let r=e[0];if(r==null)return r;r.length>1&&(e=r);let o=t(e);if(typeof o=="object")for(let{length:s}=o,c=0;c<s;c++)o[c]=Math.round(o[c]);return o};return"conversion"in t&&(n.conversion=t.conversion),n}for(let t of et){F[t]={},Object.defineProperty(F[t],"channels",{value:S[t].channels}),Object.defineProperty(F[t],"labels",{value:S[t].labels});let n=G(t),e=Object.keys(n);for(let r of e){let o=n[r];F[t][r]=ot(o),F[t][r].raw=rt(o)}}var m=F;var q=["keyword","gray","hex"],I={};for(let t of Object.keys(m))I[[...m[t].labels].sort().join("")]=t;var L={};function p(t,n){if(!(this instanceof p))return new p(t,n);if(n&&n in q&&(n=null),n&&!(n in m))throw new Error("Unknown model: "+n);let e,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof p)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let o=M.get(t);if(o===null)throw new Error("Unable to parse color from string: "+t);this.model=o.model,r=m[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(t.length>0){this.model=n||"rgb",r=m[this.model].channels;let o=Array.prototype.slice.call(t,0,r);this.color=O(o,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=o.sort().join("");if(!(s in I))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=I[s];let{labels:c}=m[this.model],a=[];for(e=0;e<c.length;e++)a.push(t[c[e]]);this.color=O(a)}if(L[this.model])for(r=m[this.model].channels,e=0;e<r;e++){let o=L[this.model][e];o&&(this.color[e]=o(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}p.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in M.to?this:this.rgb();n=n.round(typeof t=="number"?t:1);let e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to[n.model](...e)},percentString(t){let n=this.rgb().round(typeof t=="number"?t:1),e=n.valpha===1?n.color:[...n.color,this.valpha];return M.to.rgb.percent(...e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:n}=m[this.model],{labels:e}=m[this.model];for(let r=0;r<n;r++)t[e[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new p([...this.color.map(ct(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new p([...this.color,Math.max(0,Math.min(1,t))],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,t=>(t%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(t){return t!==void 0?new p(t):m[this.model].keyword(this.color)},hex(t){return t!==void 0?new p(t):M.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new p(t);let n=this.rgb().round().color,e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),M.to.hex(...n)+e},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,n=[];for(let[e,r]of t.entries()){let o=r/255;n[e]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){let n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level(t){let n=this.contrast(t);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten(t){let n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken(t){let n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate(t){let n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate(t){let n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten(t){let n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken(t){let n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale(){let t=this.rgb().color,n=t[0]*.3+t[1]*.59+t[2]*.11;return p.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix(t,n){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let e=t.rgb(),r=this.rgb(),o=n===void 0?.5:n,s=2*o-1,c=e.alpha()-r.alpha(),a=((s*c===-1?s:(s+c)/(1+s*c))+1)/2,l=1-a;return p.rgb(a*e.red()+l*r.red(),a*e.green()+l*r.green(),a*e.blue()+l*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(let t of Object.keys(m)){if(q.includes(t))continue;let{channels:n}=m[t];p.prototype[t]=function(...e){return this.model===t?new p(this):e.length>0?new p(e,t):new p([...at(m[this.model][t].raw(this.color)),this.valpha],t)},p[t]=function(...e){let r=e[0];return typeof r=="number"&&(r=O(e,n)),new p(r,t)}}function st(t,n){return Number(t.toFixed(n))}function ct(t){return function(n){return st(n,t)}}function u(t,n,e){t=Array.isArray(t)?t:[t];for(let r of t)(L[r]||=[])[n]=e;return t=t[0],function(r){let o;return r!==void 0?(e&&(r=e(r)),o=this[t](),o.color[n]=r,o):(o=this[t]().color[n],e&&(o=e(o)),o)}}function b(t){return function(n){return Math.max(0,Math.min(t,n))}}function at(t){return Array.isArray(t)?t:[t]}function O(t,n){for(let e=0;e<n;e++)typeof t[e]!="number"&&(t[e]=0);return t}var W=p;var It={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"},Lt=W("#007AC2"),Ot="calcite-color-",zt={r:255,g:255,b:255},lt={h:360,s:100,v:100},Et=lt.h-1,Rt={min:0,max:100},it={s:{gap:parseInt(E),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(R),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt($),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},$t=1,Bt=/^[0-9A-F]$/i,ht=/^#[0-9A-F]{3}$/i,ut=/^#[0-9A-F]{6}$/i,ft=/^#[0-9A-F]{4}$/i,dt=/^#[0-9A-F]{8}$/i,Tt=t=>Number((t*100).toFixed()),Gt=t=>Number((t/100).toFixed(2));function j(t,n=!1){return z(t,n)||bt(t,n)}function D(t,n,e){return t?t.length===n&&e.test(t):!1}function z(t,n=!1){return D(t,n?5:4,n?ft:ht)}function bt(t,n=!1){return D(t,n?9:7,n?dt:ut)}function qt(t,n=!1,e=!1){if(t=t.toLowerCase(),t.startsWith("#")||(t=`#${t}`),z(t,n))return P(X(t,n));if(n&&e&&j(t,!1)){let r=z(t,!1);return P(X(`${t}${r?"f":"ff"}`,!0))}return t}function Wt(t,n=!1){return n?t.hexa():t.hex()}function P(t){let{r:n,g:e,b:r}=t,o=N(n),s=N(e),c=N(r),a="a"in t?N(t.a*255):"";return`#${o}${s}${c}${a}`.toLowerCase()}function N(t){return t.toString(16).padStart(2,"0")}function Pt(t){let n={...t,a:t.alpha??1};return delete n.alpha,n}function Xt(t){let n={...t,alpha:t.a??1};return delete n.a,n}function X(t,n=!1){if(!j(t,n))return null;t=t.replace("#","");let e,r,o,s;if(t.length===3||t.length===4){let[a,l,h,_]=t.split("");e=parseInt(`${a}${a}`,16),r=parseInt(`${l}${l}`,16),o=parseInt(`${h}${h}`,16),s=parseInt(`${_}${_}`,16)/255}else e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16),s=parseInt(t.slice(6,8),16)/255;return isNaN(s)?{r:e,g:r,b:o}:{r:e,g:r,b:o,a:s}}var U=t=>t,f=U({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=U({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function jt(t){if(typeof t=="string"){if(t.startsWith("#")){let{length:n}=t;if(n===4||n===7)return f.HEX;if(n===5||n===9)return f.HEXA}if(t.startsWith("rgba("))return f.RGBA_CSS;if(t.startsWith("rgb("))return f.RGB_CSS;if(t.startsWith("hsl("))return f.HSL_CSS;if(t.startsWith("hsla("))return f.HSLA_CSS}if(typeof t=="object"){if(C(t,"r","g","b"))return C(t,"a")?d.RGBA:d.RGB;if(C(t,"h","s","l"))return C(t,"a")?d.HSLA:d.HSL;if(C(t,"h","s","v"))return C(t,"a")?d.HSVA:d.HSV}return null}function C(t,...n){return n.every(e=>e&&t&&`${e}`in t)}function Dt(t,n){return t?.rgb().array().toString()===n?.rgb().array().toString()}function Ut(t){return t===f.HEXA||t===f.RGBA_CSS||t===f.HSLA_CSS||t===d.RGBA||t===d.HSLA||t===d.HSVA}function Kt(t){return t===f.HEX?f.HEXA:t===f.RGB_CSS?f.RGBA_CSS:t===f.HSL_CSS?f.HSLA_CSS:t===d.RGB?d.RGBA:t===d.HSL?d.HSLA:t===d.HSV?d.HSVA:t}function Yt(t){return t===f.HEXA?f.HEX:t===f.RGBA_CSS?f.RGB_CSS:t===f.HSLA_CSS?f.HSL_CSS:t===d.RGBA?d.RGB:t===d.HSLA?d.HSL:t===d.HSVA?d.HSV:t}var pt=1,K=pt*2;function Jt(t,n,e){let r=e?it.l.preview.size:n.preview.size,o=t-K,s=n.gap*3;return Math.max(o-s-r,0)}function Zt(t){let e=t-K;return{width:Math.max(e,0),height:Math.max(Math.floor(e/1.8),0)}}export{W as a,It as b,Lt as c,Ot as d,zt as e,lt as f,Et as g,Rt as h,it as i,$t as j,Bt as k,Tt as l,Gt as m,j as n,z as o,bt as p,qt as q,Wt as r,P as s,Pt as t,Xt as u,X as v,f as w,jt as x,Dt as y,Ut as z,Kt as A,Yt as B,Jt as C,Zt 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.3.0-next.2 */
4
- import{a as c}from"./MDEEFDD6.js";import{b as l}from"./ZOAHNVK6.js";import{F as a,d as h,e,h as s}from"./GX52PMMQ.js";var d={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},m={width:12,height:6,strokeWidth:1},S=({floatingLayout:w,key:g,ref:f})=>{let{width:t,height:r,strokeWidth:o}=m,i=t/2,$=w==="vertical",n=`M0,0 H${t} L${t-i},${r} Q${i},${r} ${i},${r} Z`;return c(g,h`<svg aria-hidden=true class=${a(d.arrow)} height=${t} viewBox=${`0 0 ${t} ${t+($?0:o)}`} width=${t+($?o:0)} ${l(f)}>${e`${e`<path class=${a(d.arrowStroke)} d=${n??s} fill=none stroke-width=${o+1} />`||""}<path d=${n??s} stroke=none />`}</svg>`)};export{S as a};
3
+ v3.3.0-next.3 */
4
+ import{a as c}from"./LRNVJIYG.js";import{b as l}from"./KI4MQSGL.js";import{F as a,d as h,e,h as s}from"./OAZIFPMH.js";var d={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},m={width:12,height:6,strokeWidth:1},S=({floatingLayout:w,key:g,ref:f})=>{let{width:t,height:r,strokeWidth:o}=m,i=t/2,$=w==="vertical",n=`M0,0 H${t} L${t-i},${r} Q${i},${r} ${i},${r} Z`;return c(g,h`<svg aria-hidden=true class=${a(d.arrow)} height=${t} viewBox=${`0 0 ${t} ${t+($?0:o)}`} width=${t+($?o:0)} ${l(f)}>${e`${e`<path class=${a(d.arrowStroke)} d=${n??s} fill=none stroke-width=${o+1} />`||""}<path d=${n??s} stroke=none />`}</svg>`)};export{S 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.3.0-next.2 */
4
- import{a as _}from"./UZPT2CDZ.js";import{a as q}from"./TJ62ATDF.js";import{b as N}from"./5ZI5VQJT.js";import"./3BUJQJRC.js";import{c as m,d as T,e as R,f as U,g as S,h as I,i as g}from"./MU7HUKCD.js";import{a as O}from"./53X6VR7Y.js";import{a as c}from"./MDEEFDD6.js";import"./TNSHM4G5.js";import{a as H}from"./6QNBOZS7.js";import{a as k}from"./DKB2HN7O.js";import{c as z}from"./UU3HHSES.js";import{a as P,b as d}from"./ZOAHNVK6.js";import{j as A,n as B,r as D,y as F}from"./BMNRODSL.js";import{a as $,d as L}from"./EOJHNWIH.js";import"./Q7GWXGTY.js";import{a as C}from"./6TKJFOMG.js";import{E as y,F as a,I as w,R as x,c as E,d as l,q as s}from"./GX52PMMQ.js";var v=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:t}=this,i=e.find(r=>t.has(r));return t.get(i)},this.togglePopovers=e=>{let t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter(r=>r!==i&&r.autoClose&&r.open&&!t.includes(r)).forEach(r=>r.open=!1)},this.keyDownHandler=e=>{e.defaultPrevented||(e.key==="Escape"?this.closeAllPopovers():H(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{F(e)||e.defaultPrevented||this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},o={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"header-container",heading:"heading"},K="auto",j="aria-controls",M="aria-expanded",J=E`:host{display:contents;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.position-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-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}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`,V=new v,b=class extends y{constructor(){super(...arguments),this.closeButtonEl=P(),this.focusTrap=q({triggerProp:"open",focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:e=>(e.defaultPrevented||(this.open=!1,e.preventDefault()),!1)}})(this),this.guid=`calcite-popover-${C()}`,this.hasLoaded=!1,this.mutationObserver=k("mutation",()=>this.focusTrap.updateContainerElements()),this.transitionProp="opacity",this.messages=z(),this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.offsetDistance=g,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=K,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=s({cancelable:!1}),this.calcitePopoverBeforeOpen=s({cancelable:!1}),this.calcitePopoverClose=s({cancelable:!1}),this.calcitePopoverOpen=s({cancelable:!1})}static{this.properties={floatingLayout:[16,{},{state:!0}],referenceEl:[16,{},{state:!0}],autoClose:[7,{},{reflect:!0,type:Boolean}],closable:[7,{},{reflect:!0,type:Boolean}],flipDisabled:[7,{},{reflect:!0,type:Boolean}],flipPlacements:[0,{},{attribute:!1}],focusTrapDisabled:[7,{},{reflect:!0,type:Boolean}],focusTrapOptions:[0,{},{attribute:!1}],heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],label:1,messageOverrides:[0,{},{attribute:!1}],offsetDistance:[11,{},{type:Number,reflect:!0}],offsetSkidding:[11,{},{reflect:!0,type:Number}],open:[7,{},{reflect:!0,type:Boolean}],overlayPositioning:[3,{},{reflect:!0}],placement:[3,{},{reflect:!0}],pointerDisabled:[7,{},{reflect:!0,type:Boolean}],referenceElement:1,scale:[3,{},{reflect:!0}],triggerDisabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=J}async reposition(e=!1){let{referenceEl:t,placement:i,overlayPositioning:r,flipDisabled:p,filteredFlipPlacements:f,offsetDistance:n,offsetSkidding:h,arrowEl:u,floatingEl:G}=this;return R(this,{floatingEl:G,referenceEl:t,overlayPositioning:r,placement:i,flipDisabled:p,flipPlacements:f,offsetDistance:n,offsetSkidding:h,arrowEl:u,type:"popover"},e)}async setFocus(){await L(this),this.requestUpdate(),B(this.el)}async updateFocusTrapElements(){this.focusTrap.updateContainerElements()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}willUpdate(e){e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==g)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==K))&&this.reposition(!0),e.has("referenceElement")&&this.referenceElementHandler()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),I(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){O(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){e&&(this.transitionEl=e)}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?T(t,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),S(this);let{el:t,referenceElement:i,referenceEl:r}=this;e&&i&&!r&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(M,D(t))}addReferences(){let{referenceEl:e}=this;if(!e)return;let t=this.getId();"setAttribute"in e&&e.setAttribute(j,t),V.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(j),e.removeAttribute(M)),V.unregisterElement(e))}getReferenceElement(){let{referenceElement:e,el:t}=this;return(typeof e=="string"?A(t,{id:e}):e)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),U(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:t}=this;return t?c(o.closeButtonContainer,l`<div class=${a(o.closeButtonContainer)}><calcite-action appearance=transparent class=${a(o.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${d(this.closeButtonEl)}><calcite-icon icon=x .scale=${$(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:e,headingLevel:t}=this,i=e?N({class:o.heading,level:t,children:e}):null;return i?c(o.header,l`<div class=${a(o.header)}>${i}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:e,heading:t,label:i,open:r,pointerDisabled:p,floatingLayout:f}=this,n=e&&r,h=!n,u=p?null:c("floating-arrow",_({floatingLayout:f,ref:this.storeArrowEl}));return this.el.inert=h,this.el.ariaLabel=i,this.el.ariaLive="polite",w(this.el,"id",this.getId()),this.el.role="dialog",l`<div class=${a(o.positionContainer)} ${d(this.setFloatingEl)}><div class=${a({[o.container]:!0,[m.animation]:!0,[m.animationActive]:n})} ${d(this.setTransitionEl)}>${u}<div class=${a({[o.hasHeader]:!!t,[o.headerContainer]:!0})}>${this.renderHeader()}<div class=${a(o.content)}><slot></slot></div>${t?null:this.renderCloseButton()}</div></div></div>`}};x("calcite-popover",b);export{b as Popover};
3
+ v3.3.0-next.3 */
4
+ import{a as _}from"./3UYFQ4D5.js";import{a as q}from"./C7KJJBJU.js";import{b as N}from"./X3VHFVRJ.js";import"./OT3NEYSM.js";import{c as m,d as T,e as R,f as U,g as S,h as I,i as g}from"./DRGATGH2.js";import{a as O}from"./Q3YC3MR5.js";import{a as c}from"./LRNVJIYG.js";import"./37UGADH6.js";import{a as H}from"./OKUVSWPU.js";import{a as k}from"./PE3W7MPW.js";import{c as z}from"./4QJYID23.js";import{a as P,b as d}from"./KI4MQSGL.js";import{j as A,n as B,r as D,y as F}from"./STMN57ZO.js";import{a as $,d as L}from"./TOTHTFAR.js";import"./7VNELD3S.js";import{a as C}from"./4RHVH6AD.js";import{E as y,F as a,I as w,R as x,c as E,d as l,q as s}from"./OAZIFPMH.js";var v=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:t}=this,i=e.find(r=>t.has(r));return t.get(i)},this.togglePopovers=e=>{let t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter(r=>r!==i&&r.autoClose&&r.open&&!t.includes(r)).forEach(r=>r.open=!1)},this.keyDownHandler=e=>{e.defaultPrevented||(e.key==="Escape"?this.closeAllPopovers():H(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{F(e)||e.defaultPrevented||this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},o={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"header-container",heading:"heading"},K="auto",j="aria-controls",M="aria-expanded",J=E`:host{display:contents;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.position-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-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}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`,V=new v,b=class extends y{constructor(){super(...arguments),this.closeButtonEl=P(),this.focusTrap=q({triggerProp:"open",focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:e=>(e.defaultPrevented||(this.open=!1,e.preventDefault()),!1)}})(this),this.guid=`calcite-popover-${C()}`,this.hasLoaded=!1,this.mutationObserver=k("mutation",()=>this.focusTrap.updateContainerElements()),this.transitionProp="opacity",this.messages=z(),this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.offsetDistance=g,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=K,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=s({cancelable:!1}),this.calcitePopoverBeforeOpen=s({cancelable:!1}),this.calcitePopoverClose=s({cancelable:!1}),this.calcitePopoverOpen=s({cancelable:!1})}static{this.properties={floatingLayout:[16,{},{state:!0}],referenceEl:[16,{},{state:!0}],autoClose:[7,{},{reflect:!0,type:Boolean}],closable:[7,{},{reflect:!0,type:Boolean}],flipDisabled:[7,{},{reflect:!0,type:Boolean}],flipPlacements:[0,{},{attribute:!1}],focusTrapDisabled:[7,{},{reflect:!0,type:Boolean}],focusTrapOptions:[0,{},{attribute:!1}],heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],label:1,messageOverrides:[0,{},{attribute:!1}],offsetDistance:[11,{},{type:Number,reflect:!0}],offsetSkidding:[11,{},{reflect:!0,type:Number}],open:[7,{},{reflect:!0,type:Boolean}],overlayPositioning:[3,{},{reflect:!0}],placement:[3,{},{reflect:!0}],pointerDisabled:[7,{},{reflect:!0,type:Boolean}],referenceElement:1,scale:[3,{},{reflect:!0}],triggerDisabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=J}async reposition(e=!1){let{referenceEl:t,placement:i,overlayPositioning:r,flipDisabled:p,filteredFlipPlacements:f,offsetDistance:n,offsetSkidding:h,arrowEl:u,floatingEl:G}=this;return R(this,{floatingEl:G,referenceEl:t,overlayPositioning:r,placement:i,flipDisabled:p,flipPlacements:f,offsetDistance:n,offsetSkidding:h,arrowEl:u,type:"popover"},e)}async setFocus(){await L(this),this.requestUpdate(),B(this.el)}async updateFocusTrapElements(){this.focusTrap.updateContainerElements()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}willUpdate(e){e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==g)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==K))&&this.reposition(!0),e.has("referenceElement")&&this.referenceElementHandler()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),I(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){O(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){e&&(this.transitionEl=e)}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?T(t,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),S(this);let{el:t,referenceElement:i,referenceEl:r}=this;e&&i&&!r&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(M,D(t))}addReferences(){let{referenceEl:e}=this;if(!e)return;let t=this.getId();"setAttribute"in e&&e.setAttribute(j,t),V.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(j),e.removeAttribute(M)),V.unregisterElement(e))}getReferenceElement(){let{referenceElement:e,el:t}=this;return(typeof e=="string"?A(t,{id:e}):e)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),U(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:t}=this;return t?c(o.closeButtonContainer,l`<div class=${a(o.closeButtonContainer)}><calcite-action appearance=transparent class=${a(o.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${d(this.closeButtonEl)}><calcite-icon icon=x .scale=${$(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:e,headingLevel:t}=this,i=e?N({class:o.heading,level:t,children:e}):null;return i?c(o.header,l`<div class=${a(o.header)}>${i}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:e,heading:t,label:i,open:r,pointerDisabled:p,floatingLayout:f}=this,n=e&&r,h=!n,u=p?null:c("floating-arrow",_({floatingLayout:f,ref:this.storeArrowEl}));return this.el.inert=h,this.el.ariaLabel=i,this.el.ariaLive="polite",w(this.el,"id",this.getId()),this.el.role="dialog",l`<div class=${a(o.positionContainer)} ${d(this.setFloatingEl)}><div class=${a({[o.container]:!0,[m.animation]:!0,[m.animationActive]:n})} ${d(this.setTransitionEl)}>${u}<div class=${a({[o.hasHeader]:!!t,[o.headerContainer]:!0})}>${this.renderHeader()}<div class=${a(o.content)}><slot></slot></div>${t?null:this.renderCloseButton()}</div></div></div>`}};x("calcite-popover",b);export{b as Popover};