@esri/calcite-components 6.0.0-next.46 → 6.0.0-next.47

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 (232) hide show
  1. package/dist/cdn/{XBLARWUV.js → 25SNGF6A.js} +1 -1
  2. package/dist/cdn/{JWRYVJUD.js → 2K2SS5WB.js} +1 -1
  3. package/dist/cdn/{RAL4RKII.js → 2O6TUC4L.js} +1 -1
  4. package/dist/cdn/{NMXY6OTC.js → 2T2PV7GZ.js} +1 -1
  5. package/dist/cdn/{2GWNPJCU.js → 36J6QQRK.js} +1 -1
  6. package/dist/cdn/{KYY36XYF.js → 3BVJNWQR.js} +1 -1
  7. package/dist/cdn/{ZSDVPK3W.js → 3FH2K6DN.js} +1 -1
  8. package/dist/cdn/{ODAW3SA7.js → 3JE3O6I4.js} +1 -1
  9. package/dist/cdn/{RJF6IZCZ.js → 4LLBWDWM.js} +1 -1
  10. package/dist/cdn/{F66DZIMH.js → 4XI7L4LA.js} +1 -1
  11. package/dist/cdn/{QGJSQ5BP.js → 4YHXQEWX.js} +1 -1
  12. package/dist/cdn/{O4JIA7J3.js → 4ZNTG3SG.js} +1 -1
  13. package/dist/cdn/{KIXUBI7A.js → 5VT4DNXP.js} +1 -1
  14. package/dist/cdn/{MIF5NSHB.js → 7FP3C3G7.js} +1 -1
  15. package/dist/cdn/{SUSGEJSH.js → 7LEDAYR7.js} +1 -1
  16. package/dist/cdn/{G5HQCWN7.js → 7PW5EN4S.js} +1 -1
  17. package/dist/cdn/{NJU4CJ3L.js → 7SKASZJ2.js} +1 -1
  18. package/dist/cdn/{HP7XESXK.js → A2WZGKSB.js} +1 -1
  19. package/dist/cdn/{AZQPYZKF.js → A6DBNE6U.js} +1 -1
  20. package/dist/cdn/{IIOT34VO.js → A7IJALIC.js} +1 -1
  21. package/dist/cdn/{CO5B7PPE.js → ADT2WKCD.js} +1 -1
  22. package/dist/cdn/{JPQSSQMW.js → ARZBOBX3.js} +1 -1
  23. package/dist/cdn/{NIHGJTFV.js → AVCJAE5R.js} +1 -1
  24. package/dist/cdn/{2KWXVHHR.js → AWYDSBYZ.js} +1 -1
  25. package/dist/cdn/{ASXRPCJB.js → BGPK6T7V.js} +1 -1
  26. package/dist/cdn/{EQPAUP6B.js → BSJIVNZA.js} +1 -1
  27. package/dist/cdn/{QOMOSGUU.js → BYNOESIT.js} +1 -1
  28. package/dist/cdn/{QHOUOQ7P.js → BZDLIPDY.js} +1 -1
  29. package/dist/cdn/{RUNVW545.js → C435RQW4.js} +1 -1
  30. package/dist/cdn/{CTB7NMOP.js → C4LVVY5D.js} +1 -1
  31. package/dist/cdn/{FJCH3FFF.js → CJXX6DKY.js} +1 -1
  32. package/dist/cdn/{IK4CWSF6.js → CR5VILMB.js} +1 -1
  33. package/dist/cdn/{X3C3OD2R.js → CV5RRQ4L.js} +1 -1
  34. package/dist/cdn/{TKL65RYS.js → CWS7XFIF.js} +1 -1
  35. package/dist/cdn/{7BC364WX.js → D55JAGGJ.js} +1 -1
  36. package/dist/cdn/{FAXIOVEV.js → DAQ5NJ2T.js} +1 -1
  37. package/dist/cdn/{EED4H4ZJ.js → DDCEYU5I.js} +1 -1
  38. package/dist/cdn/{BEJMUC3W.js → DJAB7EV2.js} +1 -1
  39. package/dist/cdn/{E4JAEOLX.js → DJUBDTAA.js} +1 -1
  40. package/dist/cdn/{P2UJWGW4.js → DYX3P3RT.js} +1 -1
  41. package/dist/cdn/{5UQFY5XR.js → EDMY4ZQ7.js} +1 -1
  42. package/dist/cdn/{NTFEJXLW.js → EKM66NKZ.js} +1 -1
  43. package/dist/cdn/{SEE32DST.js → EM45DQMY.js} +1 -1
  44. package/dist/cdn/{54PEVOT6.js → ETWZWHCS.js} +1 -1
  45. package/dist/cdn/{H66QM7TN.js → FGRUPOWX.js} +1 -1
  46. package/dist/cdn/{C72PAGEU.js → FGVK23LY.js} +1 -1
  47. package/dist/cdn/{B2XYWKFW.js → G6VD4D77.js} +1 -1
  48. package/dist/cdn/{NGUD2GI2.js → GK2PIYTF.js} +1 -1
  49. package/dist/cdn/{LZQMZ4TH.js → GMOY5VNK.js} +1 -1
  50. package/dist/cdn/{7Y4TF3AX.js → GNDIDKEV.js} +1 -1
  51. package/dist/cdn/{UQ47HQRD.js → GOXS34HG.js} +1 -1
  52. package/dist/cdn/{MGE7JFNC.js → GRHVUCTC.js} +1 -1
  53. package/dist/cdn/{AM4VPYFA.js → GU2ZZO67.js} +1 -1
  54. package/dist/cdn/{UXX5OZY4.js → GY2B763O.js} +1 -1
  55. package/dist/cdn/{RS35OTCN.js → H7BM6DGY.js} +1 -1
  56. package/dist/cdn/{WATCY47J.js → HG2GAIZC.js} +1 -1
  57. package/dist/cdn/{ULQAU2WE.js → HORFBENW.js} +1 -1
  58. package/dist/cdn/{MJAK65JX.js → HQT4PC6K.js} +1 -1
  59. package/dist/cdn/{TPKYOVSE.js → HUZXXP7H.js} +1 -1
  60. package/dist/cdn/{URSEMICR.js → I5PKABOQ.js} +1 -1
  61. package/dist/cdn/{BEMPSWZH.js → I6AV34LI.js} +1 -1
  62. package/dist/cdn/{XC67A255.js → I6PXCEI7.js} +1 -1
  63. package/dist/cdn/{G6CL2TZP.js → IGDI4W46.js} +1 -1
  64. package/dist/cdn/{JB7WHUVP.js → ITZ4ZBHV.js} +1 -1
  65. package/dist/cdn/{YE4HKJGD.js → IX4RZDNN.js} +1 -1
  66. package/dist/cdn/{IGECXJY5.js → IY7IBKIZ.js} +1 -1
  67. package/dist/cdn/{TYQDJ37Y.js → J4X6LBE4.js} +1 -1
  68. package/dist/cdn/{4MGMV2CD.js → JBNQOMHU.js} +1 -1
  69. package/dist/cdn/{SUCUYWQ7.js → JIDPP75H.js} +1 -1
  70. package/dist/cdn/{QSTP2DBA.js → JIE4Z6BV.js} +1 -1
  71. package/dist/cdn/{ZKZOZFRF.js → JSNQUR4X.js} +1 -1
  72. package/dist/cdn/JTVZJXGN.js +2 -0
  73. package/dist/cdn/{C44U3WON.js → JWSUEQNN.js} +1 -1
  74. package/dist/cdn/{U2TTDPZH.js → KGP3ZKOJ.js} +1 -1
  75. package/dist/cdn/{JPHW77RB.js → KYZ3NOQO.js} +1 -1
  76. package/dist/cdn/{RXPYPA6O.js → L7Q36D6I.js} +1 -1
  77. package/dist/cdn/{E4VTC53J.js → LA6AJHOW.js} +1 -1
  78. package/dist/cdn/{FTJK6UTW.js → MF2RU4S2.js} +1 -1
  79. package/dist/cdn/{M5M3XMFB.js → MIJDVGQF.js} +1 -1
  80. package/dist/cdn/{OTYTHQIX.js → MREB3C45.js} +1 -1
  81. package/dist/cdn/{55WOTGCY.js → MVKQTMGK.js} +1 -1
  82. package/dist/cdn/{ZOMN64VJ.js → MZ3THECV.js} +1 -1
  83. package/dist/cdn/{USBY7JLW.js → N4BIIFRE.js} +1 -1
  84. package/dist/cdn/{FSK7PPUB.js → N7KXWM3F.js} +1 -1
  85. package/dist/cdn/{YSQHGDQV.js → NZ4K2ZYH.js} +1 -1
  86. package/dist/cdn/{TAAPGIQQ.js → O3QAXI5C.js} +1 -1
  87. package/dist/cdn/{R2Z7T5ZQ.js → OC7LUWSJ.js} +1 -1
  88. package/dist/cdn/{66SOCFAT.js → OIHKVYAG.js} +1 -1
  89. package/dist/cdn/{NMC27PMN.js → OR6HW6JU.js} +1 -1
  90. package/dist/cdn/{POONBKJM.js → OZFZB5DC.js} +1 -1
  91. package/dist/cdn/{M246Q4H5.js → P2UGAKIT.js} +1 -1
  92. package/dist/cdn/{NDBTQ5YZ.js → PAFE4RKI.js} +1 -1
  93. package/dist/cdn/{LI2FQWYL.js → PQHN7HHW.js} +1 -1
  94. package/dist/cdn/{54B35BBQ.js → Q6ONJSIN.js} +1 -1
  95. package/dist/cdn/{WUI7B3LN.js → QF6SF7UX.js} +1 -1
  96. package/dist/cdn/{BXSGEW7M.js → R3TVNHNA.js} +1 -1
  97. package/dist/cdn/{EKFFSBPC.js → RHSBPRH7.js} +1 -1
  98. package/dist/cdn/{LVWYQI77.js → RMW4ZMMT.js} +1 -1
  99. package/dist/cdn/{UCY2RQLZ.js → RRL7QGPG.js} +1 -1
  100. package/dist/cdn/{UTJ56NOT.js → S7NWDVQQ.js} +1 -1
  101. package/dist/cdn/{W7XV5RWX.js → SBRB36TL.js} +1 -1
  102. package/dist/cdn/{DIUDA6T3.js → SRZN3VWR.js} +1 -1
  103. package/dist/cdn/{AU5DLGII.js → SXF4IHLX.js} +1 -1
  104. package/dist/cdn/{MYDKINOW.js → T6D3NCCB.js} +1 -1
  105. package/dist/cdn/{QCX2TEX2.js → TMKZ7Z2H.js} +1 -1
  106. package/dist/cdn/{GBHV7UB7.js → TWLRXMWR.js} +1 -1
  107. package/dist/cdn/{MYJTLWCJ.js → U75YXQHG.js} +1 -1
  108. package/dist/cdn/{UUTZWRQT.js → UGGGMWUW.js} +1 -1
  109. package/dist/cdn/{6LBEX6AB.js → ULENI4TW.js} +1 -1
  110. package/dist/cdn/{JWIWU772.js → UUSDHPHV.js} +1 -1
  111. package/dist/cdn/{ZITMW4EK.js → VI5PNBMA.js} +1 -1
  112. package/dist/cdn/{RUNPPOC4.js → VJWTZOIB.js} +1 -1
  113. package/dist/cdn/{URG7T4ER.js → VWU5TGFO.js} +1 -1
  114. package/dist/cdn/{J22KIVYJ.js → W7OO4WX5.js} +1 -1
  115. package/dist/cdn/{SR5TE6K2.js → WBPGBBFS.js} +1 -1
  116. package/dist/cdn/{JMWJKQE3.js → WBQJHFGR.js} +1 -1
  117. package/dist/cdn/{R4REM7OQ.js → WYNHF2HN.js} +1 -1
  118. package/dist/cdn/{6Q7QR4UU.js → WZA2RJDU.js} +1 -1
  119. package/dist/cdn/{PJDRQM5E.js → XCCEUIEM.js} +1 -1
  120. package/dist/cdn/{57HPNYPL.js → XDJH3AOD.js} +1 -1
  121. package/dist/cdn/{THHKY4JC.js → XNZJMTBL.js} +1 -1
  122. package/dist/cdn/{DJOEMGW5.js → XONWXPKL.js} +1 -1
  123. package/dist/cdn/{536Q3W3O.js → XSI4QYHY.js} +1 -1
  124. package/dist/cdn/{IWVHGBUR.js → XSJCN3KK.js} +1 -1
  125. package/dist/cdn/{VSU7RAOV.js → XT4MNKTE.js} +1 -1
  126. package/dist/cdn/{GZ2WKK2P.js → XVOO4NYP.js} +1 -1
  127. package/dist/cdn/{3RH67CDR.js → YELXBHC2.js} +1 -1
  128. package/dist/cdn/{5KXWCZAS.js → YMYSO7W5.js} +1 -1
  129. package/dist/cdn/{6WE4QYUX.js → YSKZAWFQ.js} +1 -1
  130. package/dist/cdn/{5DYLNIMS.js → YSXXJBPK.js} +1 -1
  131. package/dist/cdn/{NSQK4DWU.js → YUSDYF2W.js} +1 -1
  132. package/dist/cdn/{6AKTAHUS.js → YUWDS22O.js} +1 -1
  133. package/dist/cdn/{GMFI7KCV.js → ZBSWXZB4.js} +1 -1
  134. package/dist/cdn/{IQLO5XRY.js → ZCZ5GPMM.js} +1 -1
  135. package/dist/cdn/{UTUIW3MD.js → ZFJ744XQ.js} +1 -1
  136. package/dist/cdn/{I267WTBZ.js → ZGSGTFHH.js} +1 -1
  137. package/dist/cdn/{CIMM5EHR.js → ZV5F7RFE.js} +1 -1
  138. package/dist/cdn/assets/input-time-zone/t9n/messages.ar.json +1 -1
  139. package/dist/cdn/assets/input-time-zone/t9n/messages.bg.json +1 -1
  140. package/dist/cdn/assets/input-time-zone/t9n/messages.bs.json +1 -1
  141. package/dist/cdn/assets/input-time-zone/t9n/messages.ca.json +1 -1
  142. package/dist/cdn/assets/input-time-zone/t9n/messages.cs.json +1 -1
  143. package/dist/cdn/assets/input-time-zone/t9n/messages.da.json +1 -1
  144. package/dist/cdn/assets/input-time-zone/t9n/messages.de.json +1 -1
  145. package/dist/cdn/assets/input-time-zone/t9n/messages.el.json +1 -1
  146. package/dist/cdn/assets/input-time-zone/t9n/messages.es.json +1 -1
  147. package/dist/cdn/assets/input-time-zone/t9n/messages.et.json +1 -1
  148. package/dist/cdn/assets/input-time-zone/t9n/messages.fi.json +1 -1
  149. package/dist/cdn/assets/input-time-zone/t9n/messages.fr.json +1 -1
  150. package/dist/cdn/assets/input-time-zone/t9n/messages.he.json +1 -1
  151. package/dist/cdn/assets/input-time-zone/t9n/messages.hr.json +1 -1
  152. package/dist/cdn/assets/input-time-zone/t9n/messages.hu.json +1 -1
  153. package/dist/cdn/assets/input-time-zone/t9n/messages.id.json +1 -1
  154. package/dist/cdn/assets/input-time-zone/t9n/messages.it.json +1 -1
  155. package/dist/cdn/assets/input-time-zone/t9n/messages.ja.json +1 -1
  156. package/dist/cdn/assets/input-time-zone/t9n/messages.ko.json +1 -1
  157. package/dist/cdn/assets/input-time-zone/t9n/messages.lt.json +1 -1
  158. package/dist/cdn/assets/input-time-zone/t9n/messages.lv.json +1 -1
  159. package/dist/cdn/assets/input-time-zone/t9n/messages.nl.json +1 -1
  160. package/dist/cdn/assets/input-time-zone/t9n/messages.no.json +1 -1
  161. package/dist/cdn/assets/input-time-zone/t9n/messages.pl.json +1 -1
  162. package/dist/cdn/assets/input-time-zone/t9n/messages.pt-BR.json +1 -1
  163. package/dist/cdn/assets/input-time-zone/t9n/messages.pt-PT.json +1 -1
  164. package/dist/cdn/assets/input-time-zone/t9n/messages.ro.json +1 -1
  165. package/dist/cdn/assets/input-time-zone/t9n/messages.ru.json +1 -1
  166. package/dist/cdn/assets/input-time-zone/t9n/messages.sk.json +1 -1
  167. package/dist/cdn/assets/input-time-zone/t9n/messages.sl.json +1 -1
  168. package/dist/cdn/assets/input-time-zone/t9n/messages.sr.json +1 -1
  169. package/dist/cdn/assets/input-time-zone/t9n/messages.sv.json +1 -1
  170. package/dist/cdn/assets/input-time-zone/t9n/messages.th.json +1 -1
  171. package/dist/cdn/assets/input-time-zone/t9n/messages.tr.json +1 -1
  172. package/dist/cdn/assets/input-time-zone/t9n/messages.uk.json +1 -1
  173. package/dist/cdn/assets/input-time-zone/t9n/messages.vi.json +1 -1
  174. package/dist/cdn/assets/input-time-zone/t9n/messages.zh-CN.json +1 -1
  175. package/dist/cdn/assets/input-time-zone/t9n/messages.zh-HK.json +1 -1
  176. package/dist/cdn/assets/input-time-zone/t9n/messages.zh-TW.json +1 -1
  177. package/dist/cdn/assets/table/t9n/messages.ar.json +1 -1
  178. package/dist/cdn/assets/table/t9n/messages.bg.json +1 -1
  179. package/dist/cdn/assets/table/t9n/messages.bs.json +1 -1
  180. package/dist/cdn/assets/table/t9n/messages.ca.json +1 -1
  181. package/dist/cdn/assets/table/t9n/messages.cs.json +1 -1
  182. package/dist/cdn/assets/table/t9n/messages.da.json +1 -1
  183. package/dist/cdn/assets/table/t9n/messages.de.json +1 -1
  184. package/dist/cdn/assets/table/t9n/messages.el.json +1 -1
  185. package/dist/cdn/assets/table/t9n/messages.es.json +1 -1
  186. package/dist/cdn/assets/table/t9n/messages.et.json +1 -1
  187. package/dist/cdn/assets/table/t9n/messages.fi.json +1 -1
  188. package/dist/cdn/assets/table/t9n/messages.fr.json +1 -1
  189. package/dist/cdn/assets/table/t9n/messages.he.json +1 -1
  190. package/dist/cdn/assets/table/t9n/messages.hr.json +1 -1
  191. package/dist/cdn/assets/table/t9n/messages.hu.json +1 -1
  192. package/dist/cdn/assets/table/t9n/messages.id.json +1 -1
  193. package/dist/cdn/assets/table/t9n/messages.it.json +1 -1
  194. package/dist/cdn/assets/table/t9n/messages.ja.json +1 -1
  195. package/dist/cdn/assets/table/t9n/messages.ko.json +1 -1
  196. package/dist/cdn/assets/table/t9n/messages.lt.json +1 -1
  197. package/dist/cdn/assets/table/t9n/messages.lv.json +1 -1
  198. package/dist/cdn/assets/table/t9n/messages.nl.json +1 -1
  199. package/dist/cdn/assets/table/t9n/messages.no.json +1 -1
  200. package/dist/cdn/assets/table/t9n/messages.pl.json +1 -1
  201. package/dist/cdn/assets/table/t9n/messages.pt-BR.json +1 -1
  202. package/dist/cdn/assets/table/t9n/messages.pt-PT.json +1 -1
  203. package/dist/cdn/assets/table/t9n/messages.ro.json +1 -1
  204. package/dist/cdn/assets/table/t9n/messages.ru.json +1 -1
  205. package/dist/cdn/assets/table/t9n/messages.sk.json +1 -1
  206. package/dist/cdn/assets/table/t9n/messages.sl.json +1 -1
  207. package/dist/cdn/assets/table/t9n/messages.sr.json +1 -1
  208. package/dist/cdn/assets/table/t9n/messages.sv.json +1 -1
  209. package/dist/cdn/assets/table/t9n/messages.th.json +1 -1
  210. package/dist/cdn/assets/table/t9n/messages.tr.json +1 -1
  211. package/dist/cdn/assets/table/t9n/messages.uk.json +1 -1
  212. package/dist/cdn/assets/table/t9n/messages.vi.json +1 -1
  213. package/dist/cdn/assets/table/t9n/messages.zh-CN.json +1 -1
  214. package/dist/cdn/assets/table/t9n/messages.zh-HK.json +1 -1
  215. package/dist/cdn/assets/table/t9n/messages.zh-TW.json +1 -1
  216. package/dist/cdn/index.js +1 -1
  217. package/dist/chunks/runtime.js +3 -3
  218. package/dist/components/calcite-combobox-item/customElement.d.ts +1 -0
  219. package/dist/components/calcite-combobox-item-group/customElement.d.ts +1 -0
  220. package/dist/components/calcite-shell-panel/customElement.d.ts +2 -11
  221. package/dist/components/calcite-shell-panel/customElement.js +5 -5
  222. package/dist/docs/api.json +1 -1
  223. package/dist/docs/docs.json +1 -1
  224. package/dist/docs/translations.json +1 -1
  225. package/dist/docs/web-types.json +1 -1
  226. package/dist/loader.js +1 -1
  227. package/dist/types/lumina.d.ts +1 -1
  228. package/dist/types/preact.d.ts +1 -1
  229. package/dist/types/react.d.ts +1 -1
  230. package/dist/types/stencil.d.ts +1 -1
  231. package/package.json +1 -1
  232. package/dist/cdn/KR5QRAZM.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{d as t}from"./ICVHIOLT.js";import{a as y}from"./3RH67CDR.js";import{a as v}from"./LZQMZ4TH.js";import{a as k}from"./JB7WHUVP.js";import{e as w}from"./E4VTC53J.js";import"./57HPNYPL.js";import{E as d,F as p,G as m,H as g,T as $,g as u,h as r,l as b,p as a}from"./WATCY47J.js";var L={backButton:"back-button"},B={backLeft:"chevron-left",backRight:"chevron-right"},o={actionBar:"action-bar",alerts:"alerts",contentTop:"content-top",contentBottom:"content-bottom",headerTop:"header-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",description:"description",heading:"heading",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start"},A=u`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}calcite-panel{--calcite-panel-background-color: var(--calcite-flow-background-color);--calcite-panel-border-color: var(--calcite-flow-border-color, var(--calcite-flow-item-header-border-block-end));--calcite-panel-corner-radius: var(--calcite-flow-corner-radius);--calcite-panel-description-text-color: var(--calcite-flow-description-text-color);--calcite-panel-footer-background-color: var(--calcite-flow-footer-background-color);--calcite-panel-footer-space: var(--calcite-flow-footer-space, var(--calcite-flow-item-footer-padding));--calcite-panel-header-action-background-color-hover: var(--calcite-flow-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-flow-header-action-background-color-press);--calcite-panel-header-action-background-color: var(--calcite-flow-header-action-background-color);--calcite-panel-header-action-indicator-color: var(--calcite-flow-header-action-indicator-color);--calcite-panel-header-action-text-color-press: var(--calcite-flow-header-action-text-color-press);--calcite-panel-header-action-text-color: var(--calcite-flow-header-action-text-color);--calcite-panel-header-background-color: var(--calcite-flow-header-background-color);--calcite-panel-header-content-space: var(--calcite-flow-header-content-space);--calcite-panel-header-top-space: var(--calcite-flow-header-top-space);--calcite-panel-heading-text-color: var(--calcite-flow-heading-text-color);--calcite-panel-icon-color: var(--calcite-flow-icon-color);--calcite-panel-space: var(--calcite-flow-space);--calcite-panel-content-top-space: var(--calcite-flow-content-top-space);--calcite-panel-content-bottom-space: var(--calcite-flow-content-bottom-space)}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends m{constructor(){super(...arguments),this.backButtonRef=d(),this.containerRef=d(),this.direction=w(),this.messages=k(),this.interactiveContainer=y(this),this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.iconFlipRtl=!1,this.loading=!1,this.focusTrapDisabled=!1,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale="m",this.selected=!1,this.showBackButton=!1,this.topLayerDisabled=!1,this.calciteFlowItemBack=a(),this.calciteFlowItemClose=a({cancelable:!1}),this.calciteFlowItemCollapse=a({cancelable:!1}),this.calciteFlowItemExpand=a({cancelable:!1}),this.calciteFlowItemScroll=a({cancelable:!1}),this.calciteFlowItemToggle=a({cancelable:!1}),this.calciteInternalFlowItemChange=a({cancelable:!1})}static{this.properties={beforeBack:[0,{},{attribute:!1}],beforeClose:[0,{},{attribute:!1}],closable:[7,{},{reflect:!0,type:Boolean}],closed:[7,{},{reflect:!0,type:Boolean}],collapseDirection:1,collapsed:[7,{},{reflect:!0,type:Boolean}],collapsible:[7,{},{reflect:!0,type:Boolean}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],loading:[7,{},{reflect:!0,type:Boolean}],focusTrapDisabled:[5,{},{type:Boolean}],focusTrapOptions:[0,{},{attribute:!1}],menuOpen:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}],selected:[7,{},{reflect:!0,type:Boolean}],showBackButton:[5,{},{type:Boolean}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=A}async scrollContentTo(e){await this.containerRef.value?.scrollContentTo(e)}async setFocus(e){return this.containerRef.value?.setFocus(e)}async updateFocusTrapElements(e){this.containerRef.value?.updateFocusTrapElements(e)}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.calciteInternalFlowItemChange.emit(),e.has("collapsed")&&this.hasUpdated&&(this.collapsed?this.calciteFlowItemCollapse.emit():this.calciteFlowItemExpand.emit())}handleInternalPanelScroll(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.calciteFlowItemScroll.emit())}handleInternalPanelClose(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.closed=!0,this.calciteFlowItemClose.emit())}handleInternalPanelToggle(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.collapsed=e.target.collapsed,this.calciteFlowItemToggle.emit())}backButtonClick(){this.calciteFlowItemBack.emit()}renderBackButton(){let e=this.direction==="rtl",{showBackButton:c,backButtonClick:s,messages:i}=this,l=i.back,n=e?B.backRight:B.backLeft;return c?v("flow-back-button",r`<calcite-action class=${g(L.backButton)} .icon=${n} @click=${s} .scale=${this.scale} slot=${o.headerActionsStart} .text=${l} title=${l??b} ${p(this.backButtonRef)}></calcite-action>`):null}render(){let{collapsed:e,collapseDirection:c,collapsible:s,closable:i,closed:l,description:n,disabled:f,heading:T,headingLevel:C,loading:I,menuOpen:F,messageOverrides:x,overlayPositioning:S,beforeClose:R,icon:P,iconFlipRtl:D,focusTrapDisabled:E,focusTrapOptions:O}=this;return this.interactiveContainer({disabled:f,children:r`<calcite-panel .beforeClose=${R} .closable=${i} .closed=${l} .collapsed=${e} .collapseDirection=${c} .collapsible=${s} .description=${n} .disabled=${f} .focusTrapDisabled=${E} focus-trap-enabled-by-parent .focusTrapOptions=${O} .heading=${T} .headingLevel=${C} .icon=${P} .iconFlipRtl=${D} .loading=${I} .menuOpen=${F} .messageOverrides=${x} @calcitePanelClose=${this.handleInternalPanelClose} @calcitePanelScroll=${this.handleInternalPanelScroll} @calcitePanelToggle=${this.handleInternalPanelToggle} .overlayPositioning=${S} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} ${p(this.containerRef)}>${this.renderBackButton()}<slot name=${o.actionBar} slot=${t.actionBar}></slot><slot name=${o.alerts} slot=${t.alerts}></slot><slot name=${o.headerActionsStart} slot=${t.headerActionsStart}></slot><slot name=${o.headerActionsEnd} slot=${t.headerActionsEnd}></slot><slot name=${o.headerTop} slot=${t.headerTop}></slot><slot name=${o.description} slot=${t.description}></slot><slot name=${o.heading} slot=${t.heading}></slot><slot name=${o.headerContent} slot=${t.headerContent}></slot><slot name=${o.headerMenuActions} slot=${t.headerMenuActions}></slot><slot name=${o.fab} slot=${t.fab}></slot><slot name=${o.contentTop} slot=${t.contentTop}></slot><slot name=${o.contentBottom} slot=${t.contentBottom}></slot><slot name=${o.footerStart} slot=${t.footerStart}></slot><slot name=${o.footer} slot=${t.footer}></slot><slot name=${o.footerEnd} slot=${t.footerEnd}></slot><slot></slot></calcite-panel>`})}};$("calcite-flow-item",h);export{h as FlowItem};
2
+ import{d as t}from"./ICVHIOLT.js";import{a as y}from"./YELXBHC2.js";import{a as v}from"./GMOY5VNK.js";import{a as k}from"./ITZ4ZBHV.js";import{e as w}from"./LA6AJHOW.js";import"./XDJH3AOD.js";import{E as d,F as p,G as m,H as g,T as $,g as u,h as r,l as b,p as a}from"./HG2GAIZC.js";var L={backButton:"back-button"},B={backLeft:"chevron-left",backRight:"chevron-right"},o={actionBar:"action-bar",alerts:"alerts",contentTop:"content-top",contentBottom:"content-bottom",headerTop:"header-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",description:"description",heading:"heading",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start"},A=u`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}calcite-panel{--calcite-panel-background-color: var(--calcite-flow-background-color);--calcite-panel-border-color: var(--calcite-flow-border-color, var(--calcite-flow-item-header-border-block-end));--calcite-panel-corner-radius: var(--calcite-flow-corner-radius);--calcite-panel-description-text-color: var(--calcite-flow-description-text-color);--calcite-panel-footer-background-color: var(--calcite-flow-footer-background-color);--calcite-panel-footer-space: var(--calcite-flow-footer-space, var(--calcite-flow-item-footer-padding));--calcite-panel-header-action-background-color-hover: var(--calcite-flow-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-flow-header-action-background-color-press);--calcite-panel-header-action-background-color: var(--calcite-flow-header-action-background-color);--calcite-panel-header-action-indicator-color: var(--calcite-flow-header-action-indicator-color);--calcite-panel-header-action-text-color-press: var(--calcite-flow-header-action-text-color-press);--calcite-panel-header-action-text-color: var(--calcite-flow-header-action-text-color);--calcite-panel-header-background-color: var(--calcite-flow-header-background-color);--calcite-panel-header-content-space: var(--calcite-flow-header-content-space);--calcite-panel-header-top-space: var(--calcite-flow-header-top-space);--calcite-panel-heading-text-color: var(--calcite-flow-heading-text-color);--calcite-panel-icon-color: var(--calcite-flow-icon-color);--calcite-panel-space: var(--calcite-flow-space);--calcite-panel-content-top-space: var(--calcite-flow-content-top-space);--calcite-panel-content-bottom-space: var(--calcite-flow-content-bottom-space)}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends m{constructor(){super(...arguments),this.backButtonRef=d(),this.containerRef=d(),this.direction=w(),this.messages=k(),this.interactiveContainer=y(this),this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.iconFlipRtl=!1,this.loading=!1,this.focusTrapDisabled=!1,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale="m",this.selected=!1,this.showBackButton=!1,this.topLayerDisabled=!1,this.calciteFlowItemBack=a(),this.calciteFlowItemClose=a({cancelable:!1}),this.calciteFlowItemCollapse=a({cancelable:!1}),this.calciteFlowItemExpand=a({cancelable:!1}),this.calciteFlowItemScroll=a({cancelable:!1}),this.calciteFlowItemToggle=a({cancelable:!1}),this.calciteInternalFlowItemChange=a({cancelable:!1})}static{this.properties={beforeBack:[0,{},{attribute:!1}],beforeClose:[0,{},{attribute:!1}],closable:[7,{},{reflect:!0,type:Boolean}],closed:[7,{},{reflect:!0,type:Boolean}],collapseDirection:1,collapsed:[7,{},{reflect:!0,type:Boolean}],collapsible:[7,{},{reflect:!0,type:Boolean}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],loading:[7,{},{reflect:!0,type:Boolean}],focusTrapDisabled:[5,{},{type:Boolean}],focusTrapOptions:[0,{},{attribute:!1}],menuOpen:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}],selected:[7,{},{reflect:!0,type:Boolean}],showBackButton:[5,{},{type:Boolean}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=A}async scrollContentTo(e){await this.containerRef.value?.scrollContentTo(e)}async setFocus(e){return this.containerRef.value?.setFocus(e)}async updateFocusTrapElements(e){this.containerRef.value?.updateFocusTrapElements(e)}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.calciteInternalFlowItemChange.emit(),e.has("collapsed")&&this.hasUpdated&&(this.collapsed?this.calciteFlowItemCollapse.emit():this.calciteFlowItemExpand.emit())}handleInternalPanelScroll(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.calciteFlowItemScroll.emit())}handleInternalPanelClose(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.closed=!0,this.calciteFlowItemClose.emit())}handleInternalPanelToggle(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.collapsed=e.target.collapsed,this.calciteFlowItemToggle.emit())}backButtonClick(){this.calciteFlowItemBack.emit()}renderBackButton(){let e=this.direction==="rtl",{showBackButton:c,backButtonClick:s,messages:i}=this,l=i.back,n=e?B.backRight:B.backLeft;return c?v("flow-back-button",r`<calcite-action class=${g(L.backButton)} .icon=${n} @click=${s} .scale=${this.scale} slot=${o.headerActionsStart} .text=${l} title=${l??b} ${p(this.backButtonRef)}></calcite-action>`):null}render(){let{collapsed:e,collapseDirection:c,collapsible:s,closable:i,closed:l,description:n,disabled:f,heading:T,headingLevel:C,loading:I,menuOpen:F,messageOverrides:x,overlayPositioning:S,beforeClose:R,icon:P,iconFlipRtl:D,focusTrapDisabled:E,focusTrapOptions:O}=this;return this.interactiveContainer({disabled:f,children:r`<calcite-panel .beforeClose=${R} .closable=${i} .closed=${l} .collapsed=${e} .collapseDirection=${c} .collapsible=${s} .description=${n} .disabled=${f} .focusTrapDisabled=${E} focus-trap-enabled-by-parent .focusTrapOptions=${O} .heading=${T} .headingLevel=${C} .icon=${P} .iconFlipRtl=${D} .loading=${I} .menuOpen=${F} .messageOverrides=${x} @calcitePanelClose=${this.handleInternalPanelClose} @calcitePanelScroll=${this.handleInternalPanelScroll} @calcitePanelToggle=${this.handleInternalPanelToggle} .overlayPositioning=${S} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} ${p(this.containerRef)}>${this.renderBackButton()}<slot name=${o.actionBar} slot=${t.actionBar}></slot><slot name=${o.alerts} slot=${t.alerts}></slot><slot name=${o.headerActionsStart} slot=${t.headerActionsStart}></slot><slot name=${o.headerActionsEnd} slot=${t.headerActionsEnd}></slot><slot name=${o.headerTop} slot=${t.headerTop}></slot><slot name=${o.description} slot=${t.description}></slot><slot name=${o.heading} slot=${t.heading}></slot><slot name=${o.headerContent} slot=${t.headerContent}></slot><slot name=${o.headerMenuActions} slot=${t.headerMenuActions}></slot><slot name=${o.fab} slot=${t.fab}></slot><slot name=${o.contentTop} slot=${t.contentTop}></slot><slot name=${o.contentBottom} slot=${t.contentBottom}></slot><slot name=${o.footerStart} slot=${t.footerStart}></slot><slot name=${o.footer} slot=${t.footer}></slot><slot name=${o.footerEnd} slot=${t.footerEnd}></slot><slot></slot></calcite-panel>`})}};$("calcite-flow-item",h);export{h as FlowItem};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b as o}from"./E4VTC53J.js";import{H as r,h as i}from"./WATCY47J.js";var l={container:"interaction-container"},d=({children:e,disabled:t})=>i`<div class=${r(l.container)} .inert=${t}>${e}</div>`,k=o((e,t)=>(t.onUpdated(()=>f(e)),d));function u(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function a(e){e.target.disabled&&e.preventDefault()}var c=["mousedown","mouseup","click"];function s(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}var n={capture:!0};function f(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),v(e);return}m(e),e.el.removeAttribute("aria-disabled")}function v(e){e.el.click=u,b(e.el)}function b(e){e.addEventListener("pointerdown",a,n),c.forEach(t=>e.addEventListener(t,s,n))}function m(e){delete e.el.click,E(e.el)}function E(e){e.removeEventListener("pointerdown",a,n),c.forEach(t=>e.removeEventListener(t,s,n))}export{k as a};
2
+ import{b as o}from"./LA6AJHOW.js";import{H as r,h as i}from"./HG2GAIZC.js";var l={container:"interaction-container"},d=({children:e,disabled:t})=>i`<div class=${r(l.container)} .inert=${t}>${e}</div>`,k=o((e,t)=>(t.onUpdated(()=>f(e)),d));function u(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function a(e){e.target.disabled&&e.preventDefault()}var c=["mousedown","mouseup","click"];function s(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}var n={capture:!0};function f(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),v(e);return}m(e),e.el.removeAttribute("aria-disabled")}function v(e){e.el.click=u,b(e.el)}function b(e){e.addEventListener("pointerdown",a,n),c.forEach(t=>e.addEventListener(t,s,n))}function m(e){delete e.el.click,E(e.el)}function E(e){e.removeEventListener("pointerdown",a,n),c.forEach(t=>e.removeEventListener(t,s,n))}export{k as a};
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b as ae}from"./E4VTC53J.js";import{a as j,b as re,c as ne,d as C,e as G,f as ie,q as oe}from"./ET5BRIOF.js";import{R as te}from"./WATCY47J.js";function V(n,e){(e==null||e>n.length)&&(e=n.length);for(var i=0,o=Array(e);i<e;i++)o[i]=n[i];return o}function he(n){if(Array.isArray(n))return V(n)}function ue(n,e){var i=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!i){if(Array.isArray(n)||(i=fe(n))||e){i&&(n=i);var o=0,y=function(){};return{s:y,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(h){throw h},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ import{b as ae}from"./LA6AJHOW.js";import{a as j,b as re,c as ne,d as C,e as G,f as ie,q as oe}from"./ET5BRIOF.js";import{R as te}from"./HG2GAIZC.js";function V(n,e){(e==null||e>n.length)&&(e=n.length);for(var i=0,o=Array(e);i<e;i++)o[i]=n[i];return o}function he(n){if(Array.isArray(n))return V(n)}function ue(n,e){var i=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!i){if(Array.isArray(n)||(i=fe(n))||e){i&&(n=i);var o=0,y=function(){};return{s:y,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(h){throw h},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,t=!0,b=!1;return{s:function(){i=i.call(n)},n:function(){var h=i.next();return t=h.done,h},e:function(h){b=!0,s=h},f:function(){try{t||i.return==null||i.return()}finally{if(b)throw s}}}}function ge(n,e,i){return(e=ke(e))in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Te(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function we(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(y){return Object.getOwnPropertyDescriptor(n,y).enumerable})),i.push.apply(i,o)}return i}function ce(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?se(Object(i),!0).forEach(function(o){ge(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):se(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Fe(n){return he(n)||Te(n)||fe(n)||we()}function Ne(n,e){if(typeof n!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function ke(n){var e=Ne(n,"string");return typeof e=="symbol"?e:e+""}function fe(n,e){if(n){if(typeof n=="string")return V(n,e);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?V(n,e):void 0}}var O=new WeakMap,U=function(e){var i=e?.preexistingTrap;if(i){var o=O.get(i);o===1?O.delete(i):O.set(i,o-1),e.preexistingTrap=void 0}},k={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,i){var o=k.getActiveTrap(e);i!==o&&k.pauseTrap(e);var y=e.indexOf(i);y===-1||e.splice(y,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),k.unpauseTrap(e)},pauseTrap:function(e){var i=k.getActiveTrap(e);i?._setPausedState(!0)},unpauseTrap:function(e){var i=k.getActiveTrap(e);i&&!i._isManuallyPaused()&&i._setPausedState(!1)}},Ee=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},De=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},B=function(e){return e?.key==="Tab"||e?.keyCode===9},Ae=function(e){return B(e)&&!e.shiftKey},Se=function(e){return B(e)&&e.shiftKey},le=function(e){return setTimeout(e,0)},K=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),y=1;y<i;y++)o[y-1]=arguments[y];return typeof e=="function"?e.apply(void 0,o):e},M=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Pe=[],de=function(e,i){var o=i?.document||document,y=i?.trapStack||Pe,s=ce({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Ae,isKeyBackward:Se},i),t={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,subtreeIsolated:!1,activation:void 0,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,unpausing:void 0,recentNavEvent:void 0},b,h=function(a,r,u){return a&&a[r]!==void 0?a[r]:s[u||r]},E=function(a,r){var u=typeof r?.composedPath=="function"?r.composedPath():void 0;return t.containerGroups.findIndex(function(f){var d=f.container,l=f.tabbableNodes;return d.contains(a)||u?.includes(d)||l.find(function(c){return c===a})})},A=function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=r.hasFallback,f=u===void 0?!1:u,d=r.params,l=d===void 0?[]:d,c=s[a];if(typeof c=="function"&&(c=c.apply(void 0,Fe(l))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw new Error("`".concat(a,"` was specified but was not a node, or did not return a node"))}var v=c;if(typeof c=="string"){try{v=o.querySelector(c)}catch(p){throw new Error("`".concat(a,'` appears to be an invalid selector; error="').concat(p.message,'"'),{cause:p})}if(!v&&!f)throw new Error("`".concat(a,"` as selector refers to no known node"))}return v},S=function(a){var r=a.activeElement;return r?r.shadowRoot&&r.shadowRoot.activeElement!==null?S(r.shadowRoot):r:null},D=function(){var a=A("initialFocus",{hasFallback:!0});if(a===!1)return!1;if(a===void 0||a&&!G(a,s.tabbableOptions)){var r=S(o);if(E(r)>=0)a=r;else{var u=t.tabbableGroups[0],f=u&&u.firstTabbableNode;a=f||A("fallbackFocus")}}else a===null&&(a=A("fallbackFocus"));if(!a)throw new Error("Your focus-trap needs to have at least one focusable element");return a},R=function(){if(t.containerGroups=t.containers.map(function(a){var r=re(a,s.tabbableOptions),u=ne(a,s.tabbableOptions),f=r.length>0?r[0]:void 0,d=r.length>0?r[r.length-1]:void 0,l=u.find(function(p){return C(p)}),c=u.slice().reverse().find(function(p){return C(p)}),v=!!r.find(function(p){return j(p)>0});return{container:a,tabbableNodes:r,focusableNodes:u,posTabIndexesFound:v,firstTabbableNode:f,lastTabbableNode:d,firstDomTabbableNode:l,lastDomTabbableNode:c,nextTabbableNode:function(g){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,w=r.indexOf(g);return w<0?T?u.slice(u.indexOf(g)+1).find(function(N){return C(N)}):u.slice(0,u.indexOf(g)).reverse().find(function(N){return C(N)}):r[w+(T?1:-1)]}}}),t.tabbableGroups=t.containerGroups.filter(function(a){return a.tabbableNodes.length>0}),t.tabbableGroups.length<=0&&!A("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(t.containerGroups.find(function(a){return a.posTabIndexesFound})&&t.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},F=function(a){if(a!==!1){if(a===S(o)){t.mostRecentlyFocusedNode=a;return}if(!a||!a.focus){F(D());return}a.focus({preventScroll:!!s.preventScroll}),t.mostRecentlyFocusedNode=a,Ee(a)&&a.select()}},x=function(a){var r=A("setReturnFocus",{params:[a]});return r||(r===!1?!1:a)},Y=function(a){var r=a.target,u=a.event,f=a.isBackward,d=f===void 0?!1:f;r=r||M(u),R();var l=null;if(t.tabbableGroups.length>0){var c=E(r,u),v=c>=0?t.containerGroups[c]:void 0;if(c<0)d?l=t.tabbableGroups[t.tabbableGroups.length-1].lastTabbableNode:l=t.tabbableGroups[0].firstTabbableNode;else if(d){var p=t.tabbableGroups.findIndex(function(I){var W=I.firstTabbableNode;return r===W});if(p<0&&(v.container===r||G(r,s.tabbableOptions)&&!C(r,s.tabbableOptions)&&!v.nextTabbableNode(r,!1))&&(p=Math.max(0,t.tabbableGroups.findIndex(function(I){return t.containerGroups.indexOf(I)>=c}))),p>=0){var g=p===0?t.tabbableGroups.length-1:p-1,T=t.tabbableGroups[g];l=j(r)>=0?T.lastTabbableNode:T.lastDomTabbableNode}else B(u)||(l=v.nextTabbableNode(r,!1))}else{var w=t.tabbableGroups.findIndex(function(I){var W=I.lastTabbableNode;return r===W});if(w<0&&(v.container===r||G(r,s.tabbableOptions)&&!C(r,s.tabbableOptions)&&!v.nextTabbableNode(r))){var N=t.tabbableGroups.findIndex(function(I){return t.containerGroups.indexOf(I)>c});w=N>0?N-1:t.tabbableGroups.length-1}if(w>=0){var P=w===t.tabbableGroups.length-1?0:w+1,ee=t.tabbableGroups[P];l=j(r)>=0?ee.firstTabbableNode:ee.firstDomTabbableNode}else B(u)||(l=v.nextTabbableNode(r))}}else l=A("fallbackFocus");return l},_=function(a){var r=M(a);if(!(E(r,a)>=0)){if(K(s.clickOutsideDeactivates,a)){b.deactivate({returnFocus:s.returnFocusOnDeactivate});return}K(s.allowOutsideClick,a)||a.preventDefault()}},z=function(a){var r=M(a),u=E(r,a)>=0;if(u||r instanceof Document)u&&(t.mostRecentlyFocusedNode=r);else{a.stopImmediatePropagation();var f,d=!0;if(t.mostRecentlyFocusedNode)if(j(t.mostRecentlyFocusedNode)>0){var l=E(t.mostRecentlyFocusedNode),c=t.containerGroups[l].tabbableNodes;if(c.length>0){var v=c.findIndex(function(p){return p===t.mostRecentlyFocusedNode});v>=0&&(s.isKeyForward(t.recentNavEvent)?v+1<c.length&&(f=c[v+1],d=!1):v-1>=0&&(f=c[v-1],d=!1))}}else t.containerGroups.some(function(p){return p.tabbableNodes.some(function(g){return j(g)>0})})||(d=!1);else d=!1;d&&(f=Y({target:t.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(t.recentNavEvent)})),F(f||t.mostRecentlyFocusedNode||D())}t.recentNavEvent=void 0},pe=function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t.recentNavEvent=a;var u=Y({event:a,isBackward:r});u&&(B(a)&&a.preventDefault(),F(u))},J=function(a){(s.isKeyForward(a)||s.isKeyBackward(a))&&pe(a,s.isKeyBackward(a))},Q=function(a){De(a)&&K(s.escapeDeactivates,a)!==!1&&(a.preventDefault(),b.deactivate())},X=function(a){var r=M(a);E(r,a)>=0||K(s.clickOutsideDeactivates,a)||K(s.allowOutsideClick,a)||(a.preventDefault(),a.stopImmediatePropagation())},Z=function(){if(t.active&&(k.activateTrap(y,b),!t.paused)){var a;if(s.delayInitialFocus)a=new Promise(function(r){t.delayInitialFocusTimer=le(function(){F(D()),r()})});else if(F(D()),!t.active||t.paused)return;return o.addEventListener("focusin",z,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",X,{capture:!0,passive:!1}),o.addEventListener("keydown",J,{capture:!0,passive:!1}),o.addEventListener("keydown",Q),a}},ye=function(a){t.active&&!t.paused&&b._setSubtreeIsolation(!1),t.adjacentElements.clear(),t.alreadySilent.clear();var r=new Set,u=new Set,f=ue(a),d;try{for(f.s();!(d=f.n()).done;){var l=d.value;r.add(l);for(var c=typeof ShadowRoot<"u"&&l.getRootNode()instanceof ShadowRoot,v=l;v;){r.add(v);var p=v.parentElement,g=[];p?g=p.children:!p&&c&&(g=v.getRootNode().children,p=v.getRootNode().host,c=typeof ShadowRoot<"u"&&p.getRootNode()instanceof ShadowRoot);var T=ue(g),w;try{for(T.s();!(w=T.n()).done;){var N=w.value;u.add(N)}}catch(P){T.e(P)}finally{T.f()}v=p}}}catch(P){f.e(P)}finally{f.f()}r.forEach(function(P){u.delete(P)}),t.adjacentElements=u},$=function(){if(t.active)return o.removeEventListener("focusin",z,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",X,!0),o.removeEventListener("keydown",J,!0),o.removeEventListener("keydown",Q),b},me=function(a){var r=t.mostRecentlyFocusedNode;if(r){var u=a.some(function(d){var l=Array.from(d.removedNodes);return l.some(function(c){return c===r||typeof c.contains=="function"&&c.contains(r)})});if(u&&t.containers.some(function(d){return d?.isConnected})){R();var f=D();F(f)}}},q=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(me):void 0,L=function(){q&&(q.disconnect(),t.active&&!t.paused&&t.containers.map(function(a){q.observe(a,{subtree:!0,childList:!0})}))};return b={get active(){return t.active},get paused(){return t.paused},activate:function(a){if(t.active)return this;var r={};t.activation=r;var u=h(a,"onActivate"),f=h(a,"onPostActivate"),d=h(a,"checkCanFocusTrap"),l=k.getActiveTrap(y),c=!1;if(l&&!l.paused){var v;(v=l._setSubtreeIsolation)===null||v===void 0||v.call(l,!1),c=!0,r.preexistingTrap=l,O.set(l,(O.get(l)||0)+1)}try{d||R(),t.active=!0,t.paused=!1,t.nodeFocusedBeforeActivation=S(o),u?.({trap:b});var p=function(){if(!(!t.active||t.activation!==r)){d&&R();var w=function(){!t.active||t.activation!==r||(t.paused||b._setSubtreeIsolation(!0),L(),f?.({trap:b}))};U(r);var N=Z();N?N.then(w):w()}};if(d)return d(t.containers.concat()).then(p,p),this;p()}catch(T){if(U(r),l===k.getActiveTrap(y)&&c&&!O.has(l)){var g;(g=l._setSubtreeIsolation)===null||g===void 0||g.call(l,!0)}throw T}return this},deactivate:function(a){var r;if(!t.active)return this;var u=ce({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},a);clearTimeout(t.delayInitialFocusTimer),t.delayInitialFocusTimer=void 0,t.unpausing=void 0,t.paused||b._setSubtreeIsolation(!1),t.alreadySilent.clear(),$(),t.active=!1,t.paused=!1,L(),k.deactivateTrap(y,b);var f=(r=t.activation)===null||r===void 0?void 0:r.preexistingTrap;if(U(t.activation),!O.has(f)&&f===k.getActiveTrap(y)&&f!==null&&f!==void 0&&f.active&&!f.paused){var d;(d=f._setSubtreeIsolation)===null||d===void 0||d.call(f,!0)}var l=h(u,"onDeactivate"),c=h(u,"onPostDeactivate"),v=h(u,"checkCanReturnFocus"),p=h(u,"delayReturnFocus"),g=h(u,"returnFocus","returnFocusOnDeactivate");l?.({trap:b});var T=function(){g&&F(x(t.nodeFocusedBeforeActivation)),c?.({trap:b})},w=function(){p&&g?le(T):T()};return g&&v?(v(x(t.nodeFocusedBeforeActivation)).then(w,w),this):(w(),this)},pause:function(a){return t.active?(t.manuallyPaused=!0,this._setPausedState(!0,a)):this},unpause:function(a){return t.active?(t.manuallyPaused=!1,y[y.length-1]!==this?this:this._setPausedState(!1,a)):this},updateContainerElements:function(a){var r=[].concat(a).filter(Boolean);return t.containers=r.map(function(u){return typeof u=="string"?o.querySelector(u):u}),s.isolateSubtrees&&ye(t.containers),t.active&&(R(),t.paused||b._setSubtreeIsolation(!0)),L(),this}},Object.defineProperties(b,{_isManuallyPaused:{value:function(){return t.manuallyPaused}},_setPausedState:{value:function(a,r){if(t.paused===a)return this;if(t.paused=a,a){var u=h(r,"onPause"),f=h(r,"onPostPause");u?.({trap:b}),t.unpausing=void 0,$(),b._setSubtreeIsolation(!1),L(),f?.({trap:b})}else{var d=h(r,"onUnpause"),l=h(r,"onPostUnpause"),c={};if(t.unpausing=c,d?.({trap:b}),t.unpausing!==c)return this;var v=function(){if(!(!t.active||t.paused)){R();var g=function(){t.unpausing===c&&(O.has(b)||b._setSubtreeIsolation(!0),L(),l?.({trap:b}))},T=Z();T?T.then(g):g()}};v()}return this}},_setSubtreeIsolation:{value:function(a){if(s.isolateSubtrees){if(t.subtreeIsolated===a)return;t.subtreeIsolated=a,t.adjacentElements.forEach(function(r){var u;a?s.isolateSubtrees==="aria-hidden"?((r.ariaHidden==="true"||((u=r.getAttribute("aria-hidden"))===null||u===void 0?void 0:u.toLowerCase())==="true")&&t.alreadySilent.add(r),r.setAttribute("aria-hidden","true")):((r.inert||r.hasAttribute("inert"))&&t.alreadySilent.add(r),r.setAttribute("inert",!0)):t.alreadySilent.has(r)||(s.isolateSubtrees==="aria-hidden"?r.removeAttribute("aria-hidden"):r.removeAttribute("inert"))})}}}}),b.updateContainerElements(e),b};function ve(n,{focusTrapOptions:e},i){return!e?.extraContainers&&!i?n:[n,...be(e?.extraContainers),...be(i)]}function be(n=[]){return Array.isArray(n)?n:[n]}var H=new WeakSet;function Oe(n,e){let i=e&&e!==document.body&&e!==document.documentElement;return!H.has(n)&&i&&oe(e),!1}function Re(n,e){let i=e?.fallbackFocus||n,o=e?.clickOutsideDeactivates??!0,y;return{fallbackFocus:i,...e,document:n.ownerDocument,tabbableOptions:ie,trapStack:te().focusTrapStack,clickOutsideDeactivates:s=>(H.has(n)||H.add(n),typeof o=="function"?o(s):o),onActivate:s=>{e?.escapeDeactivates&&(y=new AbortController,n.addEventListener("keydown",t=>{if(t.key==="Escape"){let b=e?.escapeDeactivates;(typeof b=="function"?b(t):b??!0)&&s.trap.deactivate()}},{signal:y.signal})),e?.onActivate?.(s)},onDeactivate:s=>{y?.abort(),y=void 0,e?.onDeactivate?.(s)},onPostDeactivate:()=>{H.delete(n)},setReturnFocus:s=>{let t=typeof e?.setReturnFocus=="function"?e.setReturnFocus(s):e?.setReturnFocus;return t===void 0?Oe(n,s):t}}}var xe=(n={})=>ae((e,i)=>{let o,y,s,t=!1,b=n.focusTrapOptions,h=()=>n.triggerProp?!!e[n.triggerProp]:!0,E=()=>n.triggerProp?h():t,A=()=>typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled,S=()=>{let F=y||e.el;F.isConnected&&(o||(s||=ve(F,e),o=de(s,Re(F,{...b,...e.focusTrapOptions}))),A()&&o.activate())},D=()=>{o?.deactivate()};return i.onConnected(()=>{o&&E()&&S()}),i.onUpdate(F=>{if(!(!e.hasUpdated||!F.has("focusTrapDisabled"))){if(e.focusTrapDisabled||!h()){D();return}E()&&S()}}),i.onDisconnected(()=>D()),{get _instance(){},activate:()=>{t=!0,S()},deactivate:()=>{t=!1,D()},overrideFocusTrapEl:F=>{if(o)throw new Error("Focus trap already created");y=F},setExtraContainers:F=>{let x=y||e.el;s=ve(x,e,F)},updateContainerElements:()=>o?.updateContainerElements(s)}});export{xe as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{c as z}from"./AU5A2EFG.js";import{b as w}from"./WTNYMVTD.js";import{a as C}from"./3RH67CDR.js";import{a as d,b as m}from"./FDHY2TZA.js";import{a as T}from"./CASNTUXN.js";import{a as g}from"./LZQMZ4TH.js";import{a as y}from"./JB7WHUVP.js";import{c as I}from"./2IM7ZZ7U.js";import{a as h}from"./VMHJHFFS.js";import{e as x}from"./E4VTC53J.js";import"./57HPNYPL.js";import{g as k}from"./ET5BRIOF.js";import{E as p,F as r,G as v,H as a,K as l,T as f,g as u,h as n,p as i}from"./WATCY47J.js";var c={close:"close",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:s=>`scale-${s}`,selectedIndicator:"selected-indicator"},F="calcite-tab-title",S={host:s=>`${F}-${s}`},H=I("calcite-tab-title"),O=u`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);display:block;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{display:flex;align-items:center;justify-content:center;block-size:100%;margin-block-end:var(--calcite-space-base);position:relative;box-sizing:border-box}.scale-s{--calcite-internal-tab-title-close-padding: var(--calcite-theme-space-none, var(--calcite-spacing-none));--calcite-internal-tab-title-close-margin-start: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.scale-s .content{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);padding-block:var(--calcite-space-2xs)}.scale-m{--calcite-internal-tab-title-close-padding: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-tab-title-close-margin-start: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.scale-m .content{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);padding-block:var(--calcite-space-sm)}.scale-l{--calcite-internal-tab-title-close-padding: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-tab-title-close-margin-start: var(--calcite-theme-space-xs, var(--calcite-spacing-xs))}.scale-l .content{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);padding-block:var(--calcite-space-sm-plus)}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:var(--calcite-space-2xs)}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{justify-content:center;margin-block:0;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{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;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);position:relative;box-sizing:border-box;align-content:center;cursor:pointer;display:flex;outline-color:transparent;block-size:100%;justify-content:space-between;padding-inline:0;inline-size:100%;color:var(--calcite-tab-text-color, var(--calcite-color-text-3));background-color:var(--calcite-tab-background-color, transparent)}.selected-indicator{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;position:absolute;display:block;block-size:var(--calcite-space-base);inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}:host([bordered][selected]) .container:after{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;position:absolute;display:block;block-size:var(--calcite-space-base);inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:focus) .container:after{background:transparent}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2))}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([selected]:focus) .selected-indicator{block-size:4px}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{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}.container{color:var(--calcite-tab-text-color, var(--calcite-color-text-3))}.container .icon-start{color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.container .icon-end{color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.container:hover,.container:active,:host([selected]) .container{color:var(--calcite-tab-text-color-press, var(--calcite-color-text-1))}.container:hover .icon-start,.container:active .icon-start,:host([selected]) .container .icon-start{color:var(--calcite-tab-icon-color-start-press, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.container:hover .icon-end,.container:active .icon-end,:host([selected]) .container .icon-end{color:var(--calcite-tab-icon-color-end-press, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.content--has-text{padding:var(--calcite-space-2xs)}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([bordered]) .container{border-color:transparent;border-inline-width:var(--calcite-theme-space-px, var(--calcite-spacing-px));border-inline-style:solid}:host([bordered]) .container.container--bottom{border-block-start-style:solid;border-block-start-width:1px}:host([bordered]) .container.container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([bordered]) .container:not(.container--bottom){border-block-end-style:solid;border-block-end-width:1px}:host([bordered]) .container .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-theme-space-base, var(--calcite-spacing-base)))}:host([bordered]) .container:host(:not([selected])) .container{box-shadow:0 2px 0 0 transparent}:host([bordered]) .container:host(:not([selected])):host(:hover) .container:not(.container--bottom){border-block-end-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered]) .container:host(:not([selected])):host(:hover):host(:not(:focus)) .selected-indicator{box-shadow:inset 0 var(--calcite-internal-tab-shadow-length) var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered]) .container:host(:not([selected])):host(:hover):host(:not(:focus)) :not(.container--bottom){--calcite-internal-tab-shadow-length: 1px}:host([bordered]) .container:host(:not([selected])):host(:hover):host(:not(:focus)) .container--bottom{--calcite-internal-tab-shadow-length: -1px}:host([bordered]) .container:hover{background-color:var(--calcite-tab-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)));border-block-end-color:var(--calcite-color-border-1)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator,:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-tab-accent-color-press, var(--calcite-color-brand))}:host([closed]){display:none}:host([selected][bordered]) .container{border-inline-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([selected][bordered]) .container:after{background-color:var(--calcite-tab-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}:host([selected][bordered]) .container:hover,:host([selected][bordered]) .container:active{background:transparent}:host(:focus) .container{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host(:focus) .container:focus-within{outline-color:transparent}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:var(--calcite-space-md)}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:var(--calcite-space-sm)}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:var(--calcite-space-lg)}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}.close{--calcite-internal-action-spacing: var(--calcite-internal-tab-title-close-padding);--calcite-internal-action-min-height: unset;--calcite-action-text-color: var(--calcite-tab-close-icon-color);--calcite-action-text-color-press: var(--calcite-tab-close-icon-color-press);--calcite-action-background-color: var(--calcite-tab-close-icon-background-color);--calcite-action-background-color-press: var(--calcite-tab-close-icon-background-color-press);--calcite-action-background-color-hover: var(--calcite-tab-close-icon-background-color-hover);margin:auto;margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm)) var(--calcite-internal-tab-title-close-margin-start)}@media(forced-colors:active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.selected-indicator{background-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}`,b=class extends v{constructor(){super(),this._closed=!1,this.closeButtonRef=p(),this.direction=x(),this.guid=S.host(T()),this.mutationObserver=d("mutation",()=>this.updateHasText()),this.parentTabsEl=null,this.resizeObserver=d("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.messages=y(),this.interactiveContainer=C(this),this.controls=null,this.hasText=!1,this.bordered=!1,this.closable=!1,this.disabled=!1,this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleCloseChange=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:[16,{},{state:!0}],hasText:[16,{},{state:!0}],beforeClose:[0,{},{attribute:!1}],bordered:[7,{},{reflect:!0,type:Boolean}],closable:[7,{},{reflect:!0,type:Boolean}],closed:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],iconEnd:[3,{},{reflect:!0}],iconFlipRtl:[3,{},{reflect:!0}],iconStart:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],position:1,scale:1,selected:[7,{},{reflect:!0,type:Boolean}],tab:[3,{},{reflect:!0}]}}static{this.styles=O}get closed(){return this._closed}set closed(e){(e!==this._closed||!e&&this.closeRequest)&&this.setClosedState(e)}async activateTab(e=!0){if(this.disabled||this.closed)return;let t={tab:this.tab,userTriggered:e};this.calciteInternalTabsActivate.emit(t),e&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(k(this.el.parentElement.children).filter(H),this.el)}_updateAriaInfo(e=[],t=[]){this.controls=e[t.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("closed")&&this.hasUpdated&&this.calciteInternalTabTitleCloseChange.emit(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(e){e.composedPath().find(z)===this.parentTabsEl&&(this.tab?this.selected=this.tab===e.detail.tab:this.getTabIndex().then(o=>{this.selected=o===e.detail.tab}),e.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(e){switch(e.key){case" ":case"Enter":e.composedPath().includes(this.closeButtonRef.value)||(this.activateTab(),e.preventDefault());break;case"ArrowRight":e.preventDefault(),this.direction==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":e.preventDefault(),this.direction==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":e.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":e.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.setClosedState(!0,!0)}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setContainerRef(e){m(this.resizeObserver,this.containerEl,e),this.containerEl=e}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async setClosedState(e,t=!1){if(!e){this.closeRequest=void 0,this.updateClosedState(!1);return}if(this.closeRequest)return this.closeRequest;let o=Promise.resolve().then(async()=>{if(this.beforeClose)try{await this.beforeClose()}catch{return}this.closeRequest===o&&(this.updateClosedState(!0),t&&(this.calciteInternalTabsClose.emit({tab:this.tab}),requestAnimationFrame(()=>this.calciteTabsClose.emit())))});this.closeRequest=o;try{await o}finally{this.closeRequest===o&&(this.closeRequest=void 0)}}updateClosedState(e){let t=this._closed;this._closed=e,this.requestUpdate("closed",t)}render(){let{el:e,closed:t}=this,o=e.id||this.guid,E=n`<calcite-icon class=${a({[c.titleIcon]:!0,[c.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${h(this.scale)}></calcite-icon>`,R=n`<calcite-icon class=${a({[c.titleIcon]:!0,[c.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${h(this.scale)}></calcite-icon>`;return l(this.el,"aria-controls",this.controls),this.el.ariaSelected=w(this.selected),l(this.el,"id",o),this.el.role="tab",l(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),this.interactiveContainer({disabled:this.disabled,children:n`<div class=${a({[c.container]:!0,[c.containerBottom]:this.position==="bottom",[c.iconPresent]:!!this.iconStart||!!this.iconEnd,[c.scale(this.scale)]:!0})} .hidden=${t} ${r(this.setContainerRef)}><div class=${a({[c.content]:!0,[c.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?R:null}</div>${this.renderCloseButton()}<div class=${a(c.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:e,messages:t}=this;return e?g("close-button",n`<calcite-action class=${a(c.close)} icon=x @click=${this.closeClickHandler} .scale=${this.scale} .text=${t.close} ${r(this.closeButtonRef)}></calcite-action>`):null}};f("calcite-tab-title",b);export{b as TabTitle};
2
+ import{c as z}from"./AU5A2EFG.js";import{b as w}from"./WTNYMVTD.js";import{a as C}from"./YELXBHC2.js";import{a as d,b as m}from"./FDHY2TZA.js";import{a as T}from"./CASNTUXN.js";import{a as g}from"./GMOY5VNK.js";import{a as y}from"./ITZ4ZBHV.js";import{c as I}from"./2IM7ZZ7U.js";import{a as h}from"./VMHJHFFS.js";import{e as x}from"./LA6AJHOW.js";import"./XDJH3AOD.js";import{g as k}from"./ET5BRIOF.js";import{E as p,F as r,G as v,H as a,K as l,T as f,g as u,h as n,p as i}from"./HG2GAIZC.js";var c={close:"close",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:s=>`scale-${s}`,selectedIndicator:"selected-indicator"},F="calcite-tab-title",S={host:s=>`${F}-${s}`},H=I("calcite-tab-title"),O=u`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);display:block;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{display:flex;align-items:center;justify-content:center;block-size:100%;margin-block-end:var(--calcite-space-base);position:relative;box-sizing:border-box}.scale-s{--calcite-internal-tab-title-close-padding: var(--calcite-theme-space-none, var(--calcite-spacing-none));--calcite-internal-tab-title-close-margin-start: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.scale-s .content{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);padding-block:var(--calcite-space-2xs)}.scale-m{--calcite-internal-tab-title-close-padding: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-tab-title-close-margin-start: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.scale-m .content{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);padding-block:var(--calcite-space-sm)}.scale-l{--calcite-internal-tab-title-close-padding: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-tab-title-close-margin-start: var(--calcite-theme-space-xs, var(--calcite-spacing-xs))}.scale-l .content{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);padding-block:var(--calcite-space-sm-plus)}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:var(--calcite-space-2xs)}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{justify-content:center;margin-block:0;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{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;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);position:relative;box-sizing:border-box;align-content:center;cursor:pointer;display:flex;outline-color:transparent;block-size:100%;justify-content:space-between;padding-inline:0;inline-size:100%;color:var(--calcite-tab-text-color, var(--calcite-color-text-3));background-color:var(--calcite-tab-background-color, transparent)}.selected-indicator{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;position:absolute;display:block;block-size:var(--calcite-space-base);inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}:host([bordered][selected]) .container:after{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;position:absolute;display:block;block-size:var(--calcite-space-base);inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:focus) .container:after{background:transparent}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2))}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([selected]:focus) .selected-indicator{block-size:4px}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{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}.container{color:var(--calcite-tab-text-color, var(--calcite-color-text-3))}.container .icon-start{color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.container .icon-end{color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.container:hover,.container:active,:host([selected]) .container{color:var(--calcite-tab-text-color-press, var(--calcite-color-text-1))}.container:hover .icon-start,.container:active .icon-start,:host([selected]) .container .icon-start{color:var(--calcite-tab-icon-color-start-press, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.container:hover .icon-end,.container:active .icon-end,:host([selected]) .container .icon-end{color:var(--calcite-tab-icon-color-end-press, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}.content--has-text{padding:var(--calcite-space-2xs)}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([bordered]) .container{border-color:transparent;border-inline-width:var(--calcite-theme-space-px, var(--calcite-spacing-px));border-inline-style:solid}:host([bordered]) .container.container--bottom{border-block-start-style:solid;border-block-start-width:1px}:host([bordered]) .container.container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([bordered]) .container:not(.container--bottom){border-block-end-style:solid;border-block-end-width:1px}:host([bordered]) .container .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-theme-space-base, var(--calcite-spacing-base)))}:host([bordered]) .container:host(:not([selected])) .container{box-shadow:0 2px 0 0 transparent}:host([bordered]) .container:host(:not([selected])):host(:hover) .container:not(.container--bottom){border-block-end-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered]) .container:host(:not([selected])):host(:hover):host(:not(:focus)) .selected-indicator{box-shadow:inset 0 var(--calcite-internal-tab-shadow-length) var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered]) .container:host(:not([selected])):host(:hover):host(:not(:focus)) :not(.container--bottom){--calcite-internal-tab-shadow-length: 1px}:host([bordered]) .container:host(:not([selected])):host(:hover):host(:not(:focus)) .container--bottom{--calcite-internal-tab-shadow-length: -1px}:host([bordered]) .container:hover{background-color:var(--calcite-tab-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)));border-block-end-color:var(--calcite-color-border-1)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator,:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-tab-accent-color-press, var(--calcite-color-brand))}:host([closed]){display:none}:host([selected][bordered]) .container{border-inline-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([selected][bordered]) .container:after{background-color:var(--calcite-tab-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}:host([selected][bordered]) .container:hover,:host([selected][bordered]) .container:active{background:transparent}:host(:focus) .container{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host(:focus) .container:focus-within{outline-color:transparent}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:var(--calcite-space-md)}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:var(--calcite-space-sm)}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:var(--calcite-space-lg)}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}.close{--calcite-internal-action-spacing: var(--calcite-internal-tab-title-close-padding);--calcite-internal-action-min-height: unset;--calcite-action-text-color: var(--calcite-tab-close-icon-color);--calcite-action-text-color-press: var(--calcite-tab-close-icon-color-press);--calcite-action-background-color: var(--calcite-tab-close-icon-background-color);--calcite-action-background-color-press: var(--calcite-tab-close-icon-background-color-press);--calcite-action-background-color-hover: var(--calcite-tab-close-icon-background-color-hover);margin:auto;margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm)) var(--calcite-internal-tab-title-close-margin-start)}@media(forced-colors:active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.selected-indicator{background-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}`,b=class extends v{constructor(){super(),this._closed=!1,this.closeButtonRef=p(),this.direction=x(),this.guid=S.host(T()),this.mutationObserver=d("mutation",()=>this.updateHasText()),this.parentTabsEl=null,this.resizeObserver=d("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.messages=y(),this.interactiveContainer=C(this),this.controls=null,this.hasText=!1,this.bordered=!1,this.closable=!1,this.disabled=!1,this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleCloseChange=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:[16,{},{state:!0}],hasText:[16,{},{state:!0}],beforeClose:[0,{},{attribute:!1}],bordered:[7,{},{reflect:!0,type:Boolean}],closable:[7,{},{reflect:!0,type:Boolean}],closed:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],iconEnd:[3,{},{reflect:!0}],iconFlipRtl:[3,{},{reflect:!0}],iconStart:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],position:1,scale:1,selected:[7,{},{reflect:!0,type:Boolean}],tab:[3,{},{reflect:!0}]}}static{this.styles=O}get closed(){return this._closed}set closed(e){(e!==this._closed||!e&&this.closeRequest)&&this.setClosedState(e)}async activateTab(e=!0){if(this.disabled||this.closed)return;let t={tab:this.tab,userTriggered:e};this.calciteInternalTabsActivate.emit(t),e&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(k(this.el.parentElement.children).filter(H),this.el)}_updateAriaInfo(e=[],t=[]){this.controls=e[t.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("closed")&&this.hasUpdated&&this.calciteInternalTabTitleCloseChange.emit(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(e){e.composedPath().find(z)===this.parentTabsEl&&(this.tab?this.selected=this.tab===e.detail.tab:this.getTabIndex().then(o=>{this.selected=o===e.detail.tab}),e.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(e){switch(e.key){case" ":case"Enter":e.composedPath().includes(this.closeButtonRef.value)||(this.activateTab(),e.preventDefault());break;case"ArrowRight":e.preventDefault(),this.direction==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":e.preventDefault(),this.direction==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":e.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":e.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.setClosedState(!0,!0)}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setContainerRef(e){m(this.resizeObserver,this.containerEl,e),this.containerEl=e}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async setClosedState(e,t=!1){if(!e){this.closeRequest=void 0,this.updateClosedState(!1);return}if(this.closeRequest)return this.closeRequest;let o=Promise.resolve().then(async()=>{if(this.beforeClose)try{await this.beforeClose()}catch{return}this.closeRequest===o&&(this.updateClosedState(!0),t&&(this.calciteInternalTabsClose.emit({tab:this.tab}),requestAnimationFrame(()=>this.calciteTabsClose.emit())))});this.closeRequest=o;try{await o}finally{this.closeRequest===o&&(this.closeRequest=void 0)}}updateClosedState(e){let t=this._closed;this._closed=e,this.requestUpdate("closed",t)}render(){let{el:e,closed:t}=this,o=e.id||this.guid,E=n`<calcite-icon class=${a({[c.titleIcon]:!0,[c.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${h(this.scale)}></calcite-icon>`,R=n`<calcite-icon class=${a({[c.titleIcon]:!0,[c.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${h(this.scale)}></calcite-icon>`;return l(this.el,"aria-controls",this.controls),this.el.ariaSelected=w(this.selected),l(this.el,"id",o),this.el.role="tab",l(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),this.interactiveContainer({disabled:this.disabled,children:n`<div class=${a({[c.container]:!0,[c.containerBottom]:this.position==="bottom",[c.iconPresent]:!!this.iconStart||!!this.iconEnd,[c.scale(this.scale)]:!0})} .hidden=${t} ${r(this.setContainerRef)}><div class=${a({[c.content]:!0,[c.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?R:null}</div>${this.renderCloseButton()}<div class=${a(c.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:e,messages:t}=this;return e?g("close-button",n`<calcite-action class=${a(c.close)} icon=x @click=${this.closeClickHandler} .scale=${this.scale} .text=${t.close} ${r(this.closeButtonRef)}></calcite-action>`):null}};f("calcite-tab-title",b);export{b as TabTitle};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{c as m}from"./AU5A2EFG.js";import{a as h}from"./CASNTUXN.js";import{c as p}from"./2IM7ZZ7U.js";import{g as b}from"./ET5BRIOF.js";import{G as r,H as a,K as i,T as d,g as n,h as o}from"./WATCY47J.js";var s={container:"container",content:"content",scale:t=>`scale-${t}`},u={tabTitleId:t=>`calcite-tab-title-${t}`},y=p("calcite-tab"),g=n`:host{display:none}:host,.container,.content{block-size:100%;inline-size:100%}:host([selected]),:host([selected]) .container{display:flex;flex-direction:column}.content{box-sizing:border-box;padding-block:var(--calcite-tab-content-space-y, var(--calcite-internal-tab-content-space-y))}.scale-s{--calcite-internal-tab-content-space-y: .25rem;font-size:var(--calcite-font-size-sm);line-height:1rem}.scale-m{--calcite-internal-tab-content-space-y: .5rem;font-size:var(--calcite-font-size);line-height:1rem}.scale-l{--calcite-internal-tab-content-space-y: var(--calcite-space-sm-plus);font-size:var(--calcite-font-size-md);line-height:1.25rem}.container{outline-color:transparent;display:none;block-size:100%;inline-size:100%;overflow:auto}.container:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends r{constructor(){super(),this.guid=u.tabTitleId(h()),this.parentTabsEl=null,this.scale="m",this.selected=!1,this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler)}static{this.properties={labeledBy:[16,{},{state:!0}],scale:1,selected:[7,{},{reflect:!0,type:Boolean}],tab:[3,{},{reflect:!0}]}}static{this.styles=g}async getTabIndex(){return Array.prototype.indexOf.call(b(this.el.parentElement.children).filter(y),this.el)}_updateAriaInfo(e=[],l=[]){this.labeledBy=l[e.indexOf(this.el.id)]||void 0}connectedCallback(){super.connectedCallback(),this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){super.disconnectedCallback(),document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}internalTabChangeHandler(e){e.composedPath().find(m)===this.parentTabsEl&&(this.tab?this.selected=this.tab===e.detail.tab:this.getTabIndex().then(f=>{this.selected=f===e.detail.tab}),e.stopPropagation())}render(){let e=this.el.id||this.guid;return i(this.el,"aria-labelledby",this.labeledBy),i(this.el,"id",e),o`<div class=${a({[s.container]:!0,[s.scale(this.scale)]:!0})} role=tabpanel .tabIndex=${this.selected?0:-1}><section class=${a(s.content)}><slot></slot></section></div>`}};d("calcite-tab",c);export{c as Tab};
2
+ import{c as m}from"./AU5A2EFG.js";import{a as h}from"./CASNTUXN.js";import{c as p}from"./2IM7ZZ7U.js";import{g as b}from"./ET5BRIOF.js";import{G as r,H as a,K as i,T as d,g as n,h as o}from"./HG2GAIZC.js";var s={container:"container",content:"content",scale:t=>`scale-${t}`},u={tabTitleId:t=>`calcite-tab-title-${t}`},y=p("calcite-tab"),g=n`:host{display:none}:host,.container,.content{block-size:100%;inline-size:100%}:host([selected]),:host([selected]) .container{display:flex;flex-direction:column}.content{box-sizing:border-box;padding-block:var(--calcite-tab-content-space-y, var(--calcite-internal-tab-content-space-y))}.scale-s{--calcite-internal-tab-content-space-y: .25rem;font-size:var(--calcite-font-size-sm);line-height:1rem}.scale-m{--calcite-internal-tab-content-space-y: .5rem;font-size:var(--calcite-font-size);line-height:1rem}.scale-l{--calcite-internal-tab-content-space-y: var(--calcite-space-sm-plus);font-size:var(--calcite-font-size-md);line-height:1.25rem}.container{outline-color:transparent;display:none;block-size:100%;inline-size:100%;overflow:auto}.container:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends r{constructor(){super(),this.guid=u.tabTitleId(h()),this.parentTabsEl=null,this.scale="m",this.selected=!1,this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler)}static{this.properties={labeledBy:[16,{},{state:!0}],scale:1,selected:[7,{},{reflect:!0,type:Boolean}],tab:[3,{},{reflect:!0}]}}static{this.styles=g}async getTabIndex(){return Array.prototype.indexOf.call(b(this.el.parentElement.children).filter(y),this.el)}_updateAriaInfo(e=[],l=[]){this.labeledBy=l[e.indexOf(this.el.id)]||void 0}connectedCallback(){super.connectedCallback(),this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){super.disconnectedCallback(),document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}internalTabChangeHandler(e){e.composedPath().find(m)===this.parentTabsEl&&(this.tab?this.selected=this.tab===e.detail.tab:this.getTabIndex().then(f=>{this.selected=f===e.detail.tab}),e.stopPropagation())}render(){let e=this.el.id||this.guid;return i(this.el,"aria-labelledby",this.labeledBy),i(this.el,"id",e),o`<div class=${a({[s.container]:!0,[s.scale(this.scale)]:!0})} role=tabpanel .tabIndex=${this.selected?0:-1}><section class=${a(s.content)}><slot></slot></section></div>`}};d("calcite-tab",c);export{c as Tab};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b as l}from"./E4VTC53J.js";var d=s=>l(e=>{function i(r){let{form:t}=e.elementInternals;if(!(r.defaultPrevented||e.disabled||s?.disabled?.()||!t||e.type==="button")){if(e.type==="submit"){t.requestSubmit();return}t.reset()}}e.listen("luminaFormAssociatedCallback",({detail:[r]})=>{r?e.el.addEventListener("click",i):e.el.removeEventListener("click",i)})});export{d as a};
2
+ import{b as l}from"./LA6AJHOW.js";var d=s=>l(e=>{function i(r){let{form:t}=e.elementInternals;if(!(r.defaultPrevented||e.disabled||s?.disabled?.()||!t||e.type==="button")){if(e.type==="submit"){t.requestSubmit();return}t.reset()}}e.listen("luminaFormAssociatedCallback",({detail:[r]})=>{r?e.el.addEventListener("click",i):e.el.removeEventListener("click",i)})});export{d as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{t as i}from"./ET5BRIOF.js";import{G as a,H as o,K as n,L as l,T as r,g as s,h as e}from"./WATCY47J.js";var h={inputMessageIcon:"calcite-input-message-icon"},u={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},d=s`:host{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;color:var(--calcite-color-text-1);box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-full);margin-block-start:var(--calcite-input-message-spacing, var(--calcite-input-message-spacing-value, var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))))}.calcite-input-message-icon{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;pointer-events:none;display:inline-flex;flex-shrink:var(--calcite-space-none);margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-danger))))}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-success))))}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-brand))))}:host([scale=s]){font-size:var(--calcite-font-size-relative-xs);line-height:var(--calcite-font-line-height-xs)}:host([scale=m]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=l]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends a{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:l},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}]}}static{this.styles=d}connectedCallback(){super.connectedCallback(),this.requestedIcon=i(u,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=i(u,this.icon,this.status))}render(){let t=this.el.hidden;return n(this.el,"calcite-hydrated-hidden",t),e`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(t){return t&&e`<calcite-icon class=${o(h.inputMessageIcon)} .flipRtl=${this.iconFlipRtl} .icon=${t} scale=s></calcite-icon>`}};r("calcite-input-message",c);export{c as InputMessage};
2
+ import{t as i}from"./ET5BRIOF.js";import{G as a,H as o,K as n,L as l,T as r,g as s,h as e}from"./HG2GAIZC.js";var h={inputMessageIcon:"calcite-input-message-icon"},u={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},d=s`:host{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;color:var(--calcite-color-text-1);box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-full);margin-block-start:var(--calcite-input-message-spacing, var(--calcite-input-message-spacing-value, var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))))}.calcite-input-message-icon{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;pointer-events:none;display:inline-flex;flex-shrink:var(--calcite-space-none);margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-danger))))}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-success))))}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-brand))))}:host([scale=s]){font-size:var(--calcite-font-size-relative-xs);line-height:var(--calcite-font-line-height-xs)}:host([scale=m]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=l]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends a{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:l},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}]}}static{this.styles=d}connectedCallback(){super.connectedCallback(),this.requestedIcon=i(u,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=i(u,this.icon,this.status))}render(){let t=this.el.hidden;return n(this.el,"calcite-hydrated-hidden",t),e`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(t){return t&&e`<calcite-icon class=${o(h.inputMessageIcon)} .flipRtl=${this.iconFlipRtl} .icon=${t} scale=s></calcite-icon>`}};r("calcite-input-message",c);export{c as InputMessage};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as e}from"./FR6PIDS2.js";import{a as m}from"./C72PAGEU.js";import"./RXPYPA6O.js";import{a as s}from"./LZQMZ4TH.js";import"./2IM7ZZ7U.js";import{a as u}from"./XC67A255.js";import"./VMHJHFFS.js";import"./E4VTC53J.js";import"./57HPNYPL.js";import"./ET5BRIOF.js";import{G as p,H as a,J as n,T as f,g as h,h as i}from"./WATCY47J.js";var x=h`:host{display:inline-flex}:host([scale=s]){--calcite-internal-navigation-logo-padding-inline: var(--calcite-space-md);--calcite-internal-navigation-logo-image-size: 1.75rem;--calcite-internal-navigation-logo-heading-font-size: var(--calcite-font-size-relative-base);--calcite-internal-navigation-logo-heading-standalone-font-size: var(--calcite-font-size-1);--calcite-internal-navigation-logo-description-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-navigation-logo-heading-line-height: var(--calcite-space-lg);--calcite-internal-navigation-logo-description-line-height: var(--calcite-space-lg)}:host([scale=m]){--calcite-internal-navigation-logo-padding-inline: var(--calcite-space-lg);--calcite-internal-navigation-logo-image-size: 1.75rem;--calcite-internal-navigation-logo-heading-font-size: var(--calcite-font-size-relative-md);--calcite-internal-navigation-logo-heading-standalone-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-navigation-logo-description-font-size: var(--calcite-font-size-relative-base);--calcite-internal-navigation-logo-heading-line-height: var(--calcite-space-xl);--calcite-internal-navigation-logo-description-line-height: var(--calcite-space-lg)}:host([scale=l]){--calcite-internal-navigation-logo-padding-inline: var(--calcite-space-xl);--calcite-internal-navigation-logo-image-size: 2.75rem;--calcite-internal-navigation-logo-heading-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-navigation-logo-heading-standalone-font-size: var(--calcite-font-size-relative-2xl);--calcite-internal-navigation-logo-description-font-size: var(--calcite-font-size-relative-lg);--calcite-internal-navigation-logo-heading-line-height: var(--calcite-space-2xl);--calcite-internal-navigation-logo-description-line-height: var(--calcite-space-2xl)}.container{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);display:flex;margin:var(--calcite-space-none);align-items:center;justify-content:center;background-color:var(--calcite-navigation-background-color, var(--calcite-internal-navigation-logo-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))));border-block-end:2px solid var(--calcite-color-transparent)}.container--link{outline-color:var(--calcite-color-transparent);cursor:pointer;text-decoration-line:none}:host(:focus) .container--link{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.image{block-size:var(--calcite-internal-navigation-logo-image-size)}.image,.icon{display:flex;margin:var(--calcite-space-none);color:var(--calcite-navigation-logo-text-color, var(--calcite-icon-color, var(--calcite-internal-navigation-logo-text-color, var(--calcite-ui-icon-color, inherit))));padding-inline:var(--calcite-internal-navigation-logo-padding-inline)}.image~.icon{padding-inline-start:var(--calcite-space-none)}.image~.text-container,.icon~.text-container{padding-inline-start:var(--calcite-space-none)}:host([href]:hover),:host([href]:focus){--calcite-internal-navigation-logo-background-color: var( --calcite-theme-color-surface-3, var(--calcite-color-foreground-2) )}:host([href]:active){--calcite-internal-navigation-logo-background-color: var( --calcite-theme-color-surface-4, var(--calcite-color-foreground-3) )}:host([active]) .container{border-block-end-color:var(--calcite-navigation-accent-color, var(--calcite-color-brand))}:host([active]),:host([href]:active){--calcite-internal-navigation-logo-text-color: var(--calcite-color-brand)}.text-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:column;text-align:start;margin-block-start:var(--calcite-space-base);padding-inline:var(--calcite-internal-navigation-logo-padding-inline)}.heading{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-inline-start:var(--calcite-space-none);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-navigation-logo-heading-text-color, var(--calcite-color-text-1));font-size:var(--calcite-internal-navigation-logo-heading-font-size);padding-block-start:var(--calcite-space-2xs);line-height:var(--calcite-internal-navigation-logo-heading-line-height)}.standalone{font-size:var(--calcite-internal-navigation-logo-heading-standalone-font-size);padding-block-start:0}.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-navigation-logo-text-color, var(--calcite-color-text-2));font-size:var(--calcite-internal-navigation-logo-description-font-size);line-height:var(--calcite-internal-navigation-logo-description-line-height)}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends p{constructor(){super(...arguments),this.focusSetter=u()(this).setFocus,this.active=!1,this.iconFlipRtl=!1,this.scale="m"}static{this.properties={active:[7,{},{reflect:!0,type:Boolean}],description:1,heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],href:[3,{},{reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],label:1,rel:[3,{},{reflect:!0}],target:[3,{},{reflect:!0}],thumbnail:1,scale:[3,{},{reflect:!0}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=x}async setFocus(t){return this.focusSetter(()=>this.href?this.el:void 0,t)}renderIcon(){return i`<calcite-icon class=${a(e.icon)} .flipRtl=${this.iconFlipRtl} .icon=${this.icon} .scale=${this.scale==="s"?"m":"l"}></calcite-icon>`}renderHeaderContent(){let{heading:t,headingLevel:o,description:c}=this,l=t?s(e.heading,m({class:{[e.heading]:!0,[e.standalone]:!this.description},level:o,children:t})):null,r=c?s(e.description,i`<span class=${a(e.description)}>${c}</span>`):null;return l||r?s(e.textContainer,i`<div class=${a(e.textContainer)}>${l}${r}</div>`):null}render(){let{icon:t,href:o,label:c,rel:l,target:r,thumbnail:v}=this,d=i`${v&&i`<img alt=${(c||"")??n} class=${a(e.image)} src=${v??n}>`||""}${t&&this.renderIcon()||""}${this.renderHeaderContent()}`;return o?i`<a class=${a({[e.container]:!0,[e.containerLink]:!0})} href=${o??n} rel=${l??n} target=${r??n}>${d}</a>`:i`<div class=${a(e.container)}>${d}</div>`}};f("calcite-navigation-logo",g);export{g as NavigationLogo};
2
+ import{a as e}from"./FR6PIDS2.js";import{a as m}from"./FGVK23LY.js";import"./L7Q36D6I.js";import{a as s}from"./GMOY5VNK.js";import"./2IM7ZZ7U.js";import{a as u}from"./I6PXCEI7.js";import"./VMHJHFFS.js";import"./LA6AJHOW.js";import"./XDJH3AOD.js";import"./ET5BRIOF.js";import{G as p,H as a,J as n,T as f,g as h,h as i}from"./HG2GAIZC.js";var x=h`:host{display:inline-flex}:host([scale=s]){--calcite-internal-navigation-logo-padding-inline: var(--calcite-space-md);--calcite-internal-navigation-logo-image-size: 1.75rem;--calcite-internal-navigation-logo-heading-font-size: var(--calcite-font-size-relative-base);--calcite-internal-navigation-logo-heading-standalone-font-size: var(--calcite-font-size-1);--calcite-internal-navigation-logo-description-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-navigation-logo-heading-line-height: var(--calcite-space-lg);--calcite-internal-navigation-logo-description-line-height: var(--calcite-space-lg)}:host([scale=m]){--calcite-internal-navigation-logo-padding-inline: var(--calcite-space-lg);--calcite-internal-navigation-logo-image-size: 1.75rem;--calcite-internal-navigation-logo-heading-font-size: var(--calcite-font-size-relative-md);--calcite-internal-navigation-logo-heading-standalone-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-navigation-logo-description-font-size: var(--calcite-font-size-relative-base);--calcite-internal-navigation-logo-heading-line-height: var(--calcite-space-xl);--calcite-internal-navigation-logo-description-line-height: var(--calcite-space-lg)}:host([scale=l]){--calcite-internal-navigation-logo-padding-inline: var(--calcite-space-xl);--calcite-internal-navigation-logo-image-size: 2.75rem;--calcite-internal-navigation-logo-heading-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-navigation-logo-heading-standalone-font-size: var(--calcite-font-size-relative-2xl);--calcite-internal-navigation-logo-description-font-size: var(--calcite-font-size-relative-lg);--calcite-internal-navigation-logo-heading-line-height: var(--calcite-space-2xl);--calcite-internal-navigation-logo-description-line-height: var(--calcite-space-2xl)}.container{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);display:flex;margin:var(--calcite-space-none);align-items:center;justify-content:center;background-color:var(--calcite-navigation-background-color, var(--calcite-internal-navigation-logo-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))));border-block-end:2px solid var(--calcite-color-transparent)}.container--link{outline-color:var(--calcite-color-transparent);cursor:pointer;text-decoration-line:none}:host(:focus) .container--link{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.image{block-size:var(--calcite-internal-navigation-logo-image-size)}.image,.icon{display:flex;margin:var(--calcite-space-none);color:var(--calcite-navigation-logo-text-color, var(--calcite-icon-color, var(--calcite-internal-navigation-logo-text-color, var(--calcite-ui-icon-color, inherit))));padding-inline:var(--calcite-internal-navigation-logo-padding-inline)}.image~.icon{padding-inline-start:var(--calcite-space-none)}.image~.text-container,.icon~.text-container{padding-inline-start:var(--calcite-space-none)}:host([href]:hover),:host([href]:focus){--calcite-internal-navigation-logo-background-color: var( --calcite-theme-color-surface-3, var(--calcite-color-foreground-2) )}:host([href]:active){--calcite-internal-navigation-logo-background-color: var( --calcite-theme-color-surface-4, var(--calcite-color-foreground-3) )}:host([active]) .container{border-block-end-color:var(--calcite-navigation-accent-color, var(--calcite-color-brand))}:host([active]),:host([href]:active){--calcite-internal-navigation-logo-text-color: var(--calcite-color-brand)}.text-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:column;text-align:start;margin-block-start:var(--calcite-space-base);padding-inline:var(--calcite-internal-navigation-logo-padding-inline)}.heading{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-inline-start:var(--calcite-space-none);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-navigation-logo-heading-text-color, var(--calcite-color-text-1));font-size:var(--calcite-internal-navigation-logo-heading-font-size);padding-block-start:var(--calcite-space-2xs);line-height:var(--calcite-internal-navigation-logo-heading-line-height)}.standalone{font-size:var(--calcite-internal-navigation-logo-heading-standalone-font-size);padding-block-start:0}.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-navigation-logo-text-color, var(--calcite-color-text-2));font-size:var(--calcite-internal-navigation-logo-description-font-size);line-height:var(--calcite-internal-navigation-logo-description-line-height)}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends p{constructor(){super(...arguments),this.focusSetter=u()(this).setFocus,this.active=!1,this.iconFlipRtl=!1,this.scale="m"}static{this.properties={active:[7,{},{reflect:!0,type:Boolean}],description:1,heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],href:[3,{},{reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],label:1,rel:[3,{},{reflect:!0}],target:[3,{},{reflect:!0}],thumbnail:1,scale:[3,{},{reflect:!0}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=x}async setFocus(t){return this.focusSetter(()=>this.href?this.el:void 0,t)}renderIcon(){return i`<calcite-icon class=${a(e.icon)} .flipRtl=${this.iconFlipRtl} .icon=${this.icon} .scale=${this.scale==="s"?"m":"l"}></calcite-icon>`}renderHeaderContent(){let{heading:t,headingLevel:o,description:c}=this,l=t?s(e.heading,m({class:{[e.heading]:!0,[e.standalone]:!this.description},level:o,children:t})):null,r=c?s(e.description,i`<span class=${a(e.description)}>${c}</span>`):null;return l||r?s(e.textContainer,i`<div class=${a(e.textContainer)}>${l}${r}</div>`):null}render(){let{icon:t,href:o,label:c,rel:l,target:r,thumbnail:v}=this,d=i`${v&&i`<img alt=${(c||"")??n} class=${a(e.image)} src=${v??n}>`||""}${t&&this.renderIcon()||""}${this.renderHeaderContent()}`;return o?i`<a class=${a({[e.container]:!0,[e.containerLink]:!0})} href=${o??n} rel=${l??n} target=${r??n}>${d}</a>`:i`<div class=${a(e.container)}>${d}</div>`}};f("calcite-navigation-logo",g);export{g as NavigationLogo};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{F as d,H as o,h as n,l as s}from"./WATCY47J.js";var a={container:"inline-edit--container",enableEditing:"enable-editing",confirmChanges:"confirm-changes",cancelEditing:"cancel-editing"},I=({cancelEditingLabel:i,confirmChangesLabel:t,inlineEditing:e,enableEditingLabel:c,enableEditingButtonRef:$,loading:l,onCancelEditing:p,onConfirmChanges:g,onEnableEditing:m,scale:r,showControls:E})=>n`<div class=${o(a.container)}>${!e&&n`<calcite-action .ariaLabel=${c} class=${o(a.enableEditing)} icon=pencil @click=${m} .scale=${r} .text=${c} title=${c??s} type=button ${d($)}></calcite-action>`||""}${E&&[n`<calcite-action .ariaLabel=${t} class=${o(a.confirmChanges)} .disabled=${l} icon=check .loading=${l} @click=${g} .scale=${r} .text=${t} title=${t??s} type=button></calcite-action>`,n`<calcite-action .ariaLabel=${i} class=${o(a.cancelEditing)} .disabled=${l} icon=x @click=${p} .scale=${r} .text=${i} title=${i??s} type=button></calcite-action>`]||""}</div>`,h={editButton:"edit-button",input:"input"},u=class{constructor(t){this.options=t,this.valuePriorToEditing=""}enable(t=h.input){this.captureValuePriorToEditing(),this.options.setInlineEditing(!0),requestAnimationFrame(()=>{this.options.setFocus(t)}),this.options.emitEnableEditingChange()}setCaretPosition(t,e){e===h.editButton&&t&&t.selectionStart!==null&&t.setSelectionRange(t.value.length,t.value.length)}captureValuePriorToEditing(){this.valuePriorToEditing=this.options.getValue()}disable(){this.options.setInlineEditing(!1)}cancelEditing(){this.options.restoreValue(this.valuePriorToEditing),this.disable(),this.options.emitCancel(),this.options.emitEnableEditingChange()}async confirm(t,e){if(t){e?.(!0);try{await t()}finally{e?.(!1)}}this.options.commitValue(),this.disable(),this.options.emitConfirm(),this.options.emitEnableEditingChange()}},T={fromAttribute(i){return i===null?!1:i==="controls-disabled"?i:!0},toAttribute(i){return i===!1?null:i===!0?"":i}};export{a,I as b,h as c,u as d,T as e};
2
+ import{F as d,H as o,h as n,l as s}from"./HG2GAIZC.js";var a={container:"inline-edit--container",enableEditing:"enable-editing",confirmChanges:"confirm-changes",cancelEditing:"cancel-editing"},I=({cancelEditingLabel:i,confirmChangesLabel:t,inlineEditing:e,enableEditingLabel:c,enableEditingButtonRef:$,loading:l,onCancelEditing:p,onConfirmChanges:g,onEnableEditing:m,scale:r,showControls:E})=>n`<div class=${o(a.container)}>${!e&&n`<calcite-action .ariaLabel=${c} class=${o(a.enableEditing)} icon=pencil @click=${m} .scale=${r} .text=${c} title=${c??s} type=button ${d($)}></calcite-action>`||""}${E&&[n`<calcite-action .ariaLabel=${t} class=${o(a.confirmChanges)} .disabled=${l} icon=check .loading=${l} @click=${g} .scale=${r} .text=${t} title=${t??s} type=button></calcite-action>`,n`<calcite-action .ariaLabel=${i} class=${o(a.cancelEditing)} .disabled=${l} icon=x @click=${p} .scale=${r} .text=${i} title=${i??s} type=button></calcite-action>`]||""}</div>`,h={editButton:"edit-button",input:"input"},u=class{constructor(t){this.options=t,this.valuePriorToEditing=""}enable(t=h.input){this.captureValuePriorToEditing(),this.options.setInlineEditing(!0),requestAnimationFrame(()=>{this.options.setFocus(t)}),this.options.emitEnableEditingChange()}setCaretPosition(t,e){e===h.editButton&&t&&t.selectionStart!==null&&t.setSelectionRange(t.value.length,t.value.length)}captureValuePriorToEditing(){this.valuePriorToEditing=this.options.getValue()}disable(){this.options.setInlineEditing(!1)}cancelEditing(){this.options.restoreValue(this.valuePriorToEditing),this.disable(),this.options.emitCancel(),this.options.emitEnableEditingChange()}async confirm(t,e){if(t){e?.(!0);try{await t()}finally{e?.(!1)}}this.options.commitValue(),this.disable(),this.options.emitConfirm(),this.options.emitEnableEditingChange()}},T={fromAttribute(i){return i===null?!1:i==="controls-disabled"?i:!0},toAttribute(i){return i===!1?null:i===!0?"":i}};export{a,I as b,h as c,u as d,T as e};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as S}from"./XN5GTOTE.js";import{a as T}from"./TYQDJ37Y.js";import{b as l,c as w}from"./RXPYPA6O.js";import{a as $}from"./NSQK4DWU.js";import{b as E,c as C}from"./WTNYMVTD.js";import{a as z}from"./3RH67CDR.js";import{a as c,b as f}from"./FDHY2TZA.js";import{a as y}from"./JB7WHUVP.js";import{a as x}from"./XC67A255.js";import{a as i}from"./VMHJHFFS.js";import{c as m}from"./E4VTC53J.js";import"./57HPNYPL.js";import{x as k}from"./ET5BRIOF.js";import{E as p,F as r,G as h,H as n,J as a,L as v,T as g,g as b,h as o}from"./WATCY47J.js";var e={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},A=b`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, var(--calcite-corner-radius)))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;appearance:none;box-sizing:border-box;cursor:pointer;display:flex;outline-color:transparent;font-family:inherit;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));block-size:100%;align-items:center;justify-content:center;text-decoration-line:none;position:relative;-webkit-user-select:none;user-select:none;text-align:center;inline-size:100%;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, var(--calcite-corner-radius)));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-hover, var(--calcite-color-transparent)))}:host a:focus,:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host a:active,:host button:active{background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-press, var(--calcite-color-transparent)))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon--start,.icon--end{color:var(--calcite-button-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]){--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-background-color-hover: var(--calcite-color-brand-hover);--calcite-internal-button-background-color-press: var(--calcite-color-brand-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=danger]){--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color-hover: var(--calcite-color-status-danger-hover);--calcite-internal-button-background-color-press: var(--calcite-color-status-danger-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=neutral]){--calcite-internal-button-background-color: var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3));--calcite-internal-button-background-color-hover: var( --calcite-theme-color-surface-3, var(--calcite-color-foreground-2) );--calcite-internal-button-background-color-press: var( --calcite-theme-color-surface-2, var(--calcite-color-foreground-1) );--calcite-internal-button-loader-color: var(--calcite-color-text-1);--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-background-color-hover: var(--calcite-color-inverse-hover);--calcite-internal-button-background-color-press: var(--calcite-color-inverse-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([appearance=outline-fill]){--calcite-internal-button-background-color: var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));--calcite-internal-button-background-color-hover: var( --calcite-theme-color-surface-3, var(--calcite-color-foreground-2) );--calcite-internal-button-background-color-press: var( --calcite-theme-color-surface-4, var(--calcite-color-foreground-3) )}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]){--calcite-internal-button-background-color-hover: var(--calcite-color-border-2);--calcite-internal-button-background-color-press: var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button,:host([appearance=outline-fill][split-child=primary]) a,:host([appearance=outline][split-child=primary]) a{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button,:host([appearance=outline-fill][split-child=secondary]) a,:host([appearance=outline][split-child=secondary]) a{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=inverse]) button calcite-loader,:host([appearance=transparent][kind=inverse]) a calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);inline-size:var(--calcite-space-2xl);min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);inline-size:var(--calcite-space-3xl);min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);inline-size:var(--calcite-space-4xl);min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: var(--calcite-space-sm-plus)}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-space-2xl)}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-space-3xl)}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-space-4xl)}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends h{constructor(){super(),this.attributeWatch=m(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentRef=p(),this.mutationObserver=c("mutation",()=>this.updateHasContent()),this.resizeObserver=c("resize",()=>this.setTooltipText()),this.focusSetter=x()(this).setFocus,this.messages=y(),this.interactiveContainer=z(this),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto",$({disabled:()=>!!this.href})(this),T(this)}static{this.properties={hasContent:[16,{},{state:!0}],tooltipText:[16,{},{state:!0}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],aria:[0,{},{attribute:!1}],disabled:[7,{},{reflect:!0,type:Boolean}],download:[3,{converter:v},{reflect:!0}],form:[3,{},{reflect:!0}],href:[3,{},{reflect:!0}],iconEnd:[3,{},{reflect:!0}],iconFlipRtl:[3,{},{reflect:!0}],iconStart:[3,{},{reflect:!0}],kind:[3,{},{reflect:!0}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],name:[3,{},{reflect:!0}],rel:[3,{},{reflect:!0}],round:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],splitChild:[3,{},{reflect:!0}],target:[3,{},{reflect:!0}],type:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}]}}static{this.formAssociated=!0}static{this.styles=A}async setFocus(t){return this.focusSetter(()=>this.childEl,t)}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver()}async load(){this.updateHasContent()}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=k(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.setFocus()}setTooltipText(){let{contentRef:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||void 0)}setChildEl(t){f(this.resizeObserver,this.childEl,t),this.childEl=t}render(){let t=this.href?"a":"button",d=this.href?l`a`:l`button`,O=this.loading?o`<div class=${n(e.buttonLoader)}><calcite-loader class=${n(this.loading?e.loadingIn:e.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,u=!this.iconStart&&!this.iconEnd,R=o`<calcite-icon class=${n({[e.icon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${i(this.scale)}></calcite-icon>`,F=o`<calcite-icon class=${n({[e.icon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${i(this.scale)}></calcite-icon>`,L=o`<span class=${n(e.content)} ${r(this.contentRef)}><slot></slot></span>`;return this.interactiveContainer({disabled:this.disabled,children:w`<${d} .ariaBusy=${E(this.loading,void 0)} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:void 0} .ariaLabel=${this.loading?this.messages.loading:S(this)||void 0} .ariaLive=${C(this.aria?.live)} class=${n({[e.buttonPadding]:u,[e.buttonPaddingShrunk]:!u,[e.contentSlotted]:this.hasContent,[e.iconStartEmpty]:!this.iconStart,[e.iconEndEmpty]:!this.iconEnd})} data-testid=button-control .disabled=${t==="button"?this.disabled:void 0} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||void 0:void 0)??a} href=${(t==="a"?this.href:void 0)??a} name=${(t==="button"?this.name:void 0)??a} rel=${(t==="a"?this.rel:void 0)??a} tabindex=${(this.disabled?-1:void 0)??a} target=${(t==="a"?this.target:void 0)??a} title=${this.tooltipText??a} type=${(t==="button"?this.type:void 0)??a} ${r(this.setChildEl)}>${O}${this.iconStart?R:null}${this.hasContent?L:null}${this.iconEnd?F:null}</${d}>`})}};g("calcite-button",s);export{s as Button};
2
+ import{a as S}from"./XN5GTOTE.js";import{a as T}from"./J4X6LBE4.js";import{b as l,c as w}from"./L7Q36D6I.js";import{a as $}from"./YUSDYF2W.js";import{b as E,c as C}from"./WTNYMVTD.js";import{a as z}from"./YELXBHC2.js";import{a as c,b as f}from"./FDHY2TZA.js";import{a as y}from"./ITZ4ZBHV.js";import{a as x}from"./I6PXCEI7.js";import{a as i}from"./VMHJHFFS.js";import{c as m}from"./LA6AJHOW.js";import"./XDJH3AOD.js";import{x as k}from"./ET5BRIOF.js";import{E as p,F as r,G as h,H as n,J as a,L as v,T as g,g as b,h as o}from"./HG2GAIZC.js";var e={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},A=b`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, var(--calcite-corner-radius)))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;appearance:none;box-sizing:border-box;cursor:pointer;display:flex;outline-color:transparent;font-family:inherit;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));block-size:100%;align-items:center;justify-content:center;text-decoration-line:none;position:relative;-webkit-user-select:none;user-select:none;text-align:center;inline-size:100%;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, var(--calcite-corner-radius)));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-hover, var(--calcite-color-transparent)))}:host a:focus,:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host a:active,:host button:active{background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-press, var(--calcite-color-transparent)))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon--start,.icon--end{color:var(--calcite-button-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]){--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-background-color-hover: var(--calcite-color-brand-hover);--calcite-internal-button-background-color-press: var(--calcite-color-brand-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=danger]){--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color-hover: var(--calcite-color-status-danger-hover);--calcite-internal-button-background-color-press: var(--calcite-color-status-danger-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=neutral]){--calcite-internal-button-background-color: var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3));--calcite-internal-button-background-color-hover: var( --calcite-theme-color-surface-3, var(--calcite-color-foreground-2) );--calcite-internal-button-background-color-press: var( --calcite-theme-color-surface-2, var(--calcite-color-foreground-1) );--calcite-internal-button-loader-color: var(--calcite-color-text-1);--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-background-color-hover: var(--calcite-color-inverse-hover);--calcite-internal-button-background-color-press: var(--calcite-color-inverse-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([appearance=outline-fill]){--calcite-internal-button-background-color: var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));--calcite-internal-button-background-color-hover: var( --calcite-theme-color-surface-3, var(--calcite-color-foreground-2) );--calcite-internal-button-background-color-press: var( --calcite-theme-color-surface-4, var(--calcite-color-foreground-3) )}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]){--calcite-internal-button-background-color-hover: var(--calcite-color-border-2);--calcite-internal-button-background-color-press: var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button,:host([appearance=outline-fill][split-child=primary]) a,:host([appearance=outline][split-child=primary]) a{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button,:host([appearance=outline-fill][split-child=secondary]) a,:host([appearance=outline][split-child=secondary]) a{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=inverse]) button calcite-loader,:host([appearance=transparent][kind=inverse]) a calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);inline-size:var(--calcite-space-2xl);min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);inline-size:var(--calcite-space-3xl);min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);inline-size:var(--calcite-space-4xl);min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: var(--calcite-space-sm-plus)}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-space-2xl)}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-space-3xl)}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);block-size:var(--calcite-space-4xl)}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends h{constructor(){super(),this.attributeWatch=m(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentRef=p(),this.mutationObserver=c("mutation",()=>this.updateHasContent()),this.resizeObserver=c("resize",()=>this.setTooltipText()),this.focusSetter=x()(this).setFocus,this.messages=y(),this.interactiveContainer=z(this),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto",$({disabled:()=>!!this.href})(this),T(this)}static{this.properties={hasContent:[16,{},{state:!0}],tooltipText:[16,{},{state:!0}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],aria:[0,{},{attribute:!1}],disabled:[7,{},{reflect:!0,type:Boolean}],download:[3,{converter:v},{reflect:!0}],form:[3,{},{reflect:!0}],href:[3,{},{reflect:!0}],iconEnd:[3,{},{reflect:!0}],iconFlipRtl:[3,{},{reflect:!0}],iconStart:[3,{},{reflect:!0}],kind:[3,{},{reflect:!0}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],name:[3,{},{reflect:!0}],rel:[3,{},{reflect:!0}],round:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],splitChild:[3,{},{reflect:!0}],target:[3,{},{reflect:!0}],type:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}]}}static{this.formAssociated=!0}static{this.styles=A}async setFocus(t){return this.focusSetter(()=>this.childEl,t)}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver()}async load(){this.updateHasContent()}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=k(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.setFocus()}setTooltipText(){let{contentRef:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||void 0)}setChildEl(t){f(this.resizeObserver,this.childEl,t),this.childEl=t}render(){let t=this.href?"a":"button",d=this.href?l`a`:l`button`,O=this.loading?o`<div class=${n(e.buttonLoader)}><calcite-loader class=${n(this.loading?e.loadingIn:e.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,u=!this.iconStart&&!this.iconEnd,R=o`<calcite-icon class=${n({[e.icon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${i(this.scale)}></calcite-icon>`,F=o`<calcite-icon class=${n({[e.icon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${i(this.scale)}></calcite-icon>`,L=o`<span class=${n(e.content)} ${r(this.contentRef)}><slot></slot></span>`;return this.interactiveContainer({disabled:this.disabled,children:w`<${d} .ariaBusy=${E(this.loading,void 0)} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:void 0} .ariaLabel=${this.loading?this.messages.loading:S(this)||void 0} .ariaLive=${C(this.aria?.live)} class=${n({[e.buttonPadding]:u,[e.buttonPaddingShrunk]:!u,[e.contentSlotted]:this.hasContent,[e.iconStartEmpty]:!this.iconStart,[e.iconEndEmpty]:!this.iconEnd})} data-testid=button-control .disabled=${t==="button"?this.disabled:void 0} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||void 0:void 0)??a} href=${(t==="a"?this.href:void 0)??a} name=${(t==="button"?this.name:void 0)??a} rel=${(t==="a"?this.rel:void 0)??a} tabindex=${(this.disabled?-1:void 0)??a} target=${(t==="a"?this.target:void 0)??a} title=${this.tooltipText??a} type=${(t==="button"?this.type:void 0)??a} ${r(this.setChildEl)}>${O}${this.iconStart?R:null}${this.hasContent?L:null}${this.iconEnd?F:null}</${d}>`})}};g("calcite-button",s);export{s as Button};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{g as e}from"./WATCY47J.js";var i=e`.screen-reader-text{position:absolute;inline-size:var(--calcite-border-width-sm);block-size:var(--calcite-border-width-sm);padding:0;margin:calc(-1 * var(--calcite-border-width-sm));overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;export{i as a};
2
+ import{g as e}from"./HG2GAIZC.js";var i=e`.screen-reader-text{position:absolute;inline-size:var(--calcite-border-width-sm);block-size:var(--calcite-border-width-sm);padding:0;margin:calc(-1 * var(--calcite-border-width-sm));overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;export{i as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as F}from"./I267WTBZ.js";import{a as T}from"./NSQK4DWU.js";import{b as y}from"./WTNYMVTD.js";import{a as L}from"./3RH67CDR.js";import{a as w}from"./FDHY2TZA.js";import{a as I}from"./CASNTUXN.js";import{a as i,b as S}from"./Y2QT4M6Q.js";import{a as m}from"./LZQMZ4TH.js";import{a as R}from"./JB7WHUVP.js";import"./2IM7ZZ7U.js";import{a as B}from"./XC67A255.js";import{a as C}from"./VMHJHFFS.js";import"./E4VTC53J.js";import"./57HPNYPL.js";import"./ET5BRIOF.js";import{E as p,F as l,G as z,H as a,J as r,M as x,T as E,g as k,h as t}from"./WATCY47J.js";var O=k`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host{display:flex;background-color:var(--calcite-color-transparent);cursor:pointer;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-corner-radius-xs))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.button{outline-color:var(--calcite-color-transparent);position:relative;margin:var(--calcite-space-none);display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)));color:var(--calcite-action-text-color-press, var(--calcite-color-text-1))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:var(--calcite-space-none);display:flex;align-items:center;justify-content:center}.text-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:inline-size;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin:var(--calcite-space-none);inline-size:var(--calcite-space-none);opacity:0;transition-timing-function:var(--calcite-animation-easing-function)}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:var(--calcite-opacity-full)}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)));color:var(--calcite-action-text-color-press, var(--calcite-color-text-1))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px;--calcite-loader-progress-color-inline: var(--calcite-action-loader-color)}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-color-transparent-press))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;transition-timing-function:var(--calcite-animation-easing-function);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-color-transparent-press))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{inline-size:var(--calcite-space-lg);margin-inline:var(--calcite-space-2xs);position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}`,$=class extends z{constructor(){super(),this.guid=I(),this.buttonRef=p(),this.buttonId=S.button(this.guid),this.mutationObserver=w("mutation",()=>this.requestUpdate()),this.messages=R({blocking:!0}),this.focusSetter=B()(this).setFocus,this.indicatorRef=p(),this.interactiveContainer=L(this),this.labelElRef=p(),this.active=!1,this.appearance="transparent",this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.overflowDisabled=!1,this.scale="m",this.width="auto",this.textEnabled=!1,this.type="button",T()(this)}static{this.properties={aria:[0,{},{attribute:!1}],active:[7,{},{reflect:!0,type:Boolean}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],disabled:[7,{},{reflect:!0,type:Boolean}],dragHandle:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],indicator:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],overflowDisabled:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}],text:1,textEnabled:[7,{},{reflect:!0,type:Boolean}],type:[3,{},{reflect:!0}],selectionAppearance:[3,{},{reflect:!0}]}}static{this.formAssociated=!0}static{this.styles=[O,F]}async setFocus(e){return this.focusSetter(()=>this.buttonRef.value,e)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}getAccessibleLabel(){let e=this.label||this.text||"";return this.indicator?this.messages.indicatorLabel.replace("{label}",e):e}getLabelledByElements(){let e=[...this.labelElRef.value?[this.labelElRef.value]:[],...this.aria?.labelledByElements??[]];return e.length?e:void 0}renderTextContainer(){let{text:e,textEnabled:c}=this,o={[i.textContainer]:!0,[i.textContainerVisible]:c};return e?m("text-container",t`<div aria-hidden=true class=${a(o)}>${e}</div>`):null}renderIndicatorText(){let{indicator:e,messages:c,buttonId:o}=this;return t`<div aria-labelledby=${o??r} aria-live=polite class=${a(x.screenReaderText)} role=region ${l(this.indicatorRef)}>${e?c.indicator:null}</div>`}renderIconContainer(){let{loading:e,icon:c,scale:o,el:f,iconFlipRtl:s,indicator:d}=this,u=o==="l"?"l":"m",h=e?t`<calcite-loader inline .label=${this.messages.loading} .scale=${u}></calcite-loader>`:null,b=c?t`<calcite-icon class=${a({[i.indicatorWithIcon]:d})} .flipRtl=${s} .icon=${c} .scale=${C(this.scale)}></calcite-icon>`:null,n=h||b,g=n||f.children?.length,v=t`<div class=${a({[i.slotContainer]:!0,[i.slotContainerHidden]:e})}><slot></slot></div>`;return g?m("icon-container",t`<div aria-hidden=true class=${a(i.iconContainer)}>${n}${v}</div>`):null}renderLabel(){let e=this.getAccessibleLabel();return e?t`<span class=${a(x.screenReaderText)} ${l(this.labelElRef)}>${e}</span>`:null}renderButton(){let{disabled:e,icon:c,loading:o,textEnabled:f,indicator:s,indicatorRef:d,buttonId:u}=this,h=this.getLabelledByElements(),b={[i.button]:!0,[i.buttonTextVisible]:f},n=t`${this.renderIconContainer()}${this.renderTextContainer()}${!c&&s&&m("indicator-no-icon",t`<div class=${a(i.indicatorWithoutIcon)}></div>`)||""}${this.renderLabel()}`,g=s&&d.value?[d.value]:[],v=[...this.aria?.controlsElements??[],...g];return this.dragHandle?t`<span .ariaBusy=${y(o,void 0)} .ariaControlsElements=${v} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${this.aria?.label} .ariaLabelledByElements=${h} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${a(b)} id=${u??r} role=button tabindex=${(e?void 0:0)??r} ${l(this.buttonRef)}>${n}</span>`:t`<button .ariaBusy=${y(o,void 0)} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${v} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${this.aria?.label} .ariaLabelledByElements=${h} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${a(b)} .disabled=${e} id=${u??r} .role=${this.aria?.role} type=${this.type??r} ${l(this.buttonRef)}>${n}</button>`}render(){return this.interactiveContainer({disabled:this.disabled,children:t`${this.renderButton()}${this.renderIndicatorText()}`})}};E("calcite-action",$);export{$ as Action};
2
+ import{a as F}from"./ZGSGTFHH.js";import{a as T}from"./YUSDYF2W.js";import{b as y}from"./WTNYMVTD.js";import{a as L}from"./YELXBHC2.js";import{a as w}from"./FDHY2TZA.js";import{a as I}from"./CASNTUXN.js";import{a as i,b as S}from"./Y2QT4M6Q.js";import{a as m}from"./GMOY5VNK.js";import{a as R}from"./ITZ4ZBHV.js";import"./2IM7ZZ7U.js";import{a as B}from"./I6PXCEI7.js";import{a as C}from"./VMHJHFFS.js";import"./LA6AJHOW.js";import"./XDJH3AOD.js";import"./ET5BRIOF.js";import{E as p,F as l,G as z,H as a,J as r,M as x,T as E,g as k,h as t}from"./HG2GAIZC.js";var O=k`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host{display:flex;background-color:var(--calcite-color-transparent);cursor:pointer;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-corner-radius-xs))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.button{outline-color:var(--calcite-color-transparent);position:relative;margin:var(--calcite-space-none);display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)));color:var(--calcite-action-text-color-press, var(--calcite-color-text-1))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:var(--calcite-space-none);display:flex;align-items:center;justify-content:center}.text-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:inline-size;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin:var(--calcite-space-none);inline-size:var(--calcite-space-none);opacity:0;transition-timing-function:var(--calcite-animation-easing-function)}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:var(--calcite-opacity-full)}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)));color:var(--calcite-action-text-color-press, var(--calcite-color-text-1))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px;--calcite-loader-progress-color-inline: var(--calcite-action-loader-color)}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-color-transparent-press))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;transition-timing-function:var(--calcite-animation-easing-function);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-color-transparent-press))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{inline-size:var(--calcite-space-lg);margin-inline:var(--calcite-space-2xs);position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:var(--calcite-space-sm);inline-size:var(--calcite-space-sm);border-radius:var(--calcite-corner-radius-pill);inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}`,$=class extends z{constructor(){super(),this.guid=I(),this.buttonRef=p(),this.buttonId=S.button(this.guid),this.mutationObserver=w("mutation",()=>this.requestUpdate()),this.messages=R({blocking:!0}),this.focusSetter=B()(this).setFocus,this.indicatorRef=p(),this.interactiveContainer=L(this),this.labelElRef=p(),this.active=!1,this.appearance="transparent",this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.overflowDisabled=!1,this.scale="m",this.width="auto",this.textEnabled=!1,this.type="button",T()(this)}static{this.properties={aria:[0,{},{attribute:!1}],active:[7,{},{reflect:!0,type:Boolean}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],disabled:[7,{},{reflect:!0,type:Boolean}],dragHandle:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],indicator:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],overflowDisabled:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}],text:1,textEnabled:[7,{},{reflect:!0,type:Boolean}],type:[3,{},{reflect:!0}],selectionAppearance:[3,{},{reflect:!0}]}}static{this.formAssociated=!0}static{this.styles=[O,F]}async setFocus(e){return this.focusSetter(()=>this.buttonRef.value,e)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}getAccessibleLabel(){let e=this.label||this.text||"";return this.indicator?this.messages.indicatorLabel.replace("{label}",e):e}getLabelledByElements(){let e=[...this.labelElRef.value?[this.labelElRef.value]:[],...this.aria?.labelledByElements??[]];return e.length?e:void 0}renderTextContainer(){let{text:e,textEnabled:c}=this,o={[i.textContainer]:!0,[i.textContainerVisible]:c};return e?m("text-container",t`<div aria-hidden=true class=${a(o)}>${e}</div>`):null}renderIndicatorText(){let{indicator:e,messages:c,buttonId:o}=this;return t`<div aria-labelledby=${o??r} aria-live=polite class=${a(x.screenReaderText)} role=region ${l(this.indicatorRef)}>${e?c.indicator:null}</div>`}renderIconContainer(){let{loading:e,icon:c,scale:o,el:f,iconFlipRtl:s,indicator:d}=this,u=o==="l"?"l":"m",h=e?t`<calcite-loader inline .label=${this.messages.loading} .scale=${u}></calcite-loader>`:null,b=c?t`<calcite-icon class=${a({[i.indicatorWithIcon]:d})} .flipRtl=${s} .icon=${c} .scale=${C(this.scale)}></calcite-icon>`:null,n=h||b,g=n||f.children?.length,v=t`<div class=${a({[i.slotContainer]:!0,[i.slotContainerHidden]:e})}><slot></slot></div>`;return g?m("icon-container",t`<div aria-hidden=true class=${a(i.iconContainer)}>${n}${v}</div>`):null}renderLabel(){let e=this.getAccessibleLabel();return e?t`<span class=${a(x.screenReaderText)} ${l(this.labelElRef)}>${e}</span>`:null}renderButton(){let{disabled:e,icon:c,loading:o,textEnabled:f,indicator:s,indicatorRef:d,buttonId:u}=this,h=this.getLabelledByElements(),b={[i.button]:!0,[i.buttonTextVisible]:f},n=t`${this.renderIconContainer()}${this.renderTextContainer()}${!c&&s&&m("indicator-no-icon",t`<div class=${a(i.indicatorWithoutIcon)}></div>`)||""}${this.renderLabel()}`,g=s&&d.value?[d.value]:[],v=[...this.aria?.controlsElements??[],...g];return this.dragHandle?t`<span .ariaBusy=${y(o,void 0)} .ariaControlsElements=${v} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${this.aria?.label} .ariaLabelledByElements=${h} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${a(b)} id=${u??r} role=button tabindex=${(e?void 0:0)??r} ${l(this.buttonRef)}>${n}</span>`:t`<button .ariaBusy=${y(o,void 0)} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${v} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${this.aria?.label} .ariaLabelledByElements=${h} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${a(b)} .disabled=${e} id=${u??r} .role=${this.aria?.role} type=${this.type??r} ${l(this.buttonRef)}>${n}</button>`}render(){return this.interactiveContainer({disabled:this.disabled,children:t`${this.renderButton()}${this.renderIndicatorText()}`})}};E("calcite-action",$);export{$ as Action};