@esri/calcite-components 5.1.0-next.47 → 5.1.0-next.49

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 (206) hide show
  1. package/dist/cdn/{IPRIMN24.js → 22SX432M.js} +1 -1
  2. package/dist/cdn/{LK7JP4IQ.js → 26EJRTEG.js} +1 -1
  3. package/dist/cdn/27KX4B5G.js +2 -0
  4. package/dist/cdn/2BFU4RHK.js +2 -0
  5. package/dist/cdn/{MFBXYJTD.js → 2SBK5U66.js} +1 -1
  6. package/dist/cdn/{MQ3H66GR.js → 2T4KUJOM.js} +1 -1
  7. package/dist/cdn/{NWXSGNMN.js → 33HE675N.js} +1 -1
  8. package/dist/cdn/{FOF3RY67.js → 34I3N2XG.js} +1 -1
  9. package/dist/cdn/3CXAJ3GM.js +2 -0
  10. package/dist/cdn/42G5OIFP.js +2 -0
  11. package/dist/cdn/{F2UBIYUQ.js → 44THB6PN.js} +1 -1
  12. package/dist/cdn/{GBSFYGRF.js → 4JQ4OITV.js} +1 -1
  13. package/dist/cdn/{44VIIQSQ.js → 4SQDDLZG.js} +1 -1
  14. package/dist/cdn/{KH5CFT3W.js → 562472MQ.js} +1 -1
  15. package/dist/cdn/{6RSD2WAD.js → 5GBLT7PJ.js} +1 -1
  16. package/dist/cdn/{ORXV4MP6.js → 5GQC2FEW.js} +1 -1
  17. package/dist/cdn/{6VWICJ57.js → 5OM4MGAH.js} +1 -1
  18. package/dist/cdn/{NNXZEBOK.js → 5PO4GTCL.js} +1 -1
  19. package/dist/cdn/{EEVHJKWU.js → 5Q4TZKGL.js} +1 -1
  20. package/dist/cdn/{X2OAEIHM.js → 5UH2LDOM.js} +1 -1
  21. package/dist/cdn/{HIRC3NOV.js → 5UL5W56B.js} +1 -1
  22. package/dist/cdn/{KOZG3C2E.js → 5YWC632Q.js} +1 -1
  23. package/dist/cdn/{XAHDXNHK.js → 62DDKSJD.js} +1 -1
  24. package/dist/cdn/{BV3AUXUN.js → 6EIXBRWQ.js} +1 -1
  25. package/dist/cdn/{R2RDXXQS.js → 6GMP7CEX.js} +1 -1
  26. package/dist/cdn/{2RRIKYQB.js → 6H2LBE46.js} +1 -1
  27. package/dist/cdn/{DREKX7ID.js → 74VHEPX3.js} +1 -1
  28. package/dist/cdn/{RPLXZWIM.js → 7BYIHMS3.js} +1 -1
  29. package/dist/cdn/{AQQEKS5A.js → 7EGIAGGO.js} +1 -1
  30. package/dist/cdn/{WEFWSN33.js → 7KVXROJ4.js} +1 -1
  31. package/dist/cdn/7T3LFQX5.js +4 -0
  32. package/dist/cdn/{PI5E6IHE.js → 7UIWSJ36.js} +1 -1
  33. package/dist/cdn/7VOJMNEL.js +2 -0
  34. package/dist/cdn/{OSXJ5GXG.js → A6BYFUAB.js} +1 -1
  35. package/dist/cdn/{BZS7TCOB.js → ANT7M4PP.js} +1 -1
  36. package/dist/cdn/{RKSGXFWG.js → AXPCXW6J.js} +1 -1
  37. package/dist/cdn/{SVWZ6ENA.js → BATAW5TQ.js} +1 -1
  38. package/dist/cdn/{4UTFON2M.js → BF3CNTQ7.js} +1 -1
  39. package/dist/cdn/{CKCBKFJG.js → BFMU6BTZ.js} +1 -1
  40. package/dist/cdn/{YRBAS3NM.js → BJMK42XI.js} +1 -1
  41. package/dist/cdn/{P24AEA47.js → BKRZAU7X.js} +1 -1
  42. package/dist/cdn/{ZXWDGDXG.js → BTPPINNG.js} +1 -1
  43. package/dist/cdn/BVZOM3TM.js +3 -0
  44. package/dist/cdn/{QSDUMJWG.js → C6TLFPKH.js} +1 -1
  45. package/dist/cdn/{J5NLZPSL.js → CEYBZFIQ.js} +1 -1
  46. package/dist/cdn/{GLJZD4VK.js → CNJHG5PP.js} +1 -1
  47. package/dist/cdn/{VXOWL6G4.js → CRWD7XBU.js} +1 -1
  48. package/dist/cdn/{PLRFY32G.js → CYLEETR4.js} +1 -1
  49. package/dist/cdn/{YV3BOEJM.js → D2IR7MXY.js} +1 -1
  50. package/dist/cdn/{OFWPRZI5.js → D3VIFMI6.js} +1 -1
  51. package/dist/cdn/{6SWMJ5CU.js → DI6LEX3E.js} +1 -1
  52. package/dist/cdn/{NGK67HIF.js → DJUIFQRA.js} +1 -1
  53. package/dist/cdn/{6PY7N3NR.js → DQG7FOMS.js} +1 -1
  54. package/dist/cdn/{MNPEDHEZ.js → DUDZBFRD.js} +1 -1
  55. package/dist/cdn/{KW5LARJB.js → E7DR5ETF.js} +1 -1
  56. package/dist/cdn/{XUBJZN4C.js → EBYZGRIQ.js} +1 -1
  57. package/dist/cdn/{IRGUDITA.js → EPLVZJTN.js} +1 -1
  58. package/dist/cdn/{F5J6SN3R.js → EXFYSF5F.js} +1 -1
  59. package/dist/cdn/{2OYBSNJX.js → F45U3ZUC.js} +1 -1
  60. package/dist/cdn/FCJRCO2P.js +2 -0
  61. package/dist/cdn/{BUQJTUSJ.js → FTVWNINN.js} +1 -1
  62. package/dist/cdn/FYR5TQKZ.js +2 -0
  63. package/dist/cdn/{GYR7TPCE.js → GAE3QPJI.js} +1 -1
  64. package/dist/cdn/{GJH2YCF3.js → GFU4OZGZ.js} +1 -1
  65. package/dist/cdn/{BY2I3K7T.js → GL6MBV5C.js} +1 -1
  66. package/dist/cdn/{HDFMIYOW.js → GQFV4HZP.js} +1 -1
  67. package/dist/cdn/{PCTVIFM3.js → GT24NW3V.js} +1 -1
  68. package/dist/cdn/{5MWDTRFJ.js → H5LU4AUB.js} +1 -1
  69. package/dist/cdn/{7KXMKYSJ.js → H7VHHLD4.js} +1 -1
  70. package/dist/cdn/{4YDSOKD7.js → HFY4YEHE.js} +1 -1
  71. package/dist/cdn/{JVMVJYXN.js → HQGBDYIL.js} +1 -1
  72. package/dist/cdn/{EXD746H3.js → HQOT43VS.js} +1 -1
  73. package/dist/cdn/{UXDLXWJ3.js → HT2ZXCE7.js} +1 -1
  74. package/dist/cdn/{BZINQIWM.js → HVJ7ZYUC.js} +1 -1
  75. package/dist/cdn/{4D5MRLF7.js → IEQN4QLJ.js} +1 -1
  76. package/dist/cdn/{DG4IM44O.js → IPDRUE2N.js} +1 -1
  77. package/dist/cdn/{YMUGIO3D.js → IQA6BSEZ.js} +1 -1
  78. package/dist/cdn/{JD3XDCOC.js → J6YYC36M.js} +1 -1
  79. package/dist/cdn/{VQUISXAJ.js → JDWCEPI5.js} +1 -1
  80. package/dist/cdn/{3WURTEHN.js → JIC5EZNV.js} +1 -1
  81. package/dist/cdn/{MAF5LSXV.js → JXJOABPD.js} +1 -1
  82. package/dist/cdn/{RRPWPTMO.js → KGVKB5H5.js} +1 -1
  83. package/dist/cdn/{6RQH7MUJ.js → KRQX2WMK.js} +1 -1
  84. package/dist/cdn/KS7HVFFO.js +4 -0
  85. package/dist/cdn/{4NZE76XO.js → KU6H6IML.js} +1 -1
  86. package/dist/cdn/{5FFDH2W5.js → KWBPU2J5.js} +1 -1
  87. package/dist/cdn/{RBIOWT4W.js → L2X2FRRW.js} +1 -1
  88. package/dist/cdn/{GKRX75UH.js → L4WAZTMY.js} +1 -1
  89. package/dist/cdn/{3ODCLUTP.js → LYE3YD62.js} +1 -1
  90. package/dist/cdn/{IN7ACSNN.js → MG6WUGLY.js} +1 -1
  91. package/dist/cdn/{CSTNMYYL.js → MIX6BNWN.js} +1 -1
  92. package/dist/cdn/{T2KP3R67.js → MKKHTLCC.js} +1 -1
  93. package/dist/cdn/{6P2RLVOP.js → MOW3FKBV.js} +1 -1
  94. package/dist/cdn/{J2Q4HFNM.js → OCTC5LSB.js} +1 -1
  95. package/dist/cdn/{R4KAZZH6.js → ODRBTFGL.js} +1 -1
  96. package/dist/cdn/{U2JPLGDK.js → OZIFXBV3.js} +1 -1
  97. package/dist/cdn/{JF66MORZ.js → P3SYSP2O.js} +1 -1
  98. package/dist/cdn/{BW7L4MRP.js → P4KKQUII.js} +1 -1
  99. package/dist/cdn/PEPMEBOM.js +2 -0
  100. package/dist/cdn/{ILQ5BCS2.js → PWGZIYHG.js} +1 -1
  101. package/dist/cdn/{CBUQF2MA.js → PWOYDOTW.js} +1 -1
  102. package/dist/cdn/{KNKJEONQ.js → Q66W52U2.js} +1 -1
  103. package/dist/cdn/{PRKQ7MW7.js → Q6PWU5L3.js} +1 -1
  104. package/dist/cdn/{QWK353FG.js → QMAI4T7F.js} +1 -1
  105. package/dist/cdn/{N5Y264VM.js → QU5FK5F6.js} +1 -1
  106. package/dist/cdn/{DH4ZI3ZL.js → QVECF5A7.js} +1 -1
  107. package/dist/cdn/{OJCUFNDD.js → R4NDJXR3.js} +1 -1
  108. package/dist/cdn/{HPWTAFG2.js → R7ZSZ2JC.js} +1 -1
  109. package/dist/cdn/{3WVYWCHT.js → RRPAVMQZ.js} +1 -1
  110. package/dist/cdn/{2VTVQKOB.js → S4AUHXUP.js} +1 -1
  111. package/dist/cdn/{ZPHYVUDH.js → SY5OK3OO.js} +1 -1
  112. package/dist/cdn/{QAPJG52S.js → T7ONSGXM.js} +1 -1
  113. package/dist/cdn/{V45DUURX.js → T7PQGK5J.js} +1 -1
  114. package/dist/cdn/{3GCVUDFK.js → TNFBRRJO.js} +1 -1
  115. package/dist/cdn/{K5YCZRLY.js → U7SOU2M6.js} +1 -1
  116. package/dist/cdn/{JZ67XQNL.js → V2OHVQOE.js} +1 -1
  117. package/dist/cdn/{TYA7FWY5.js → V7M5VYRR.js} +1 -1
  118. package/dist/cdn/{ANHMRAGX.js → VEQQ2LIL.js} +1 -1
  119. package/dist/cdn/{J56NEEKN.js → VMH6WPL2.js} +1 -1
  120. package/dist/cdn/{CI6ZLPI3.js → VQ4PWNK5.js} +1 -1
  121. package/dist/cdn/{AJDNZBYB.js → VXCJYD4P.js} +1 -1
  122. package/dist/cdn/{64MRLJ4B.js → VY7IDSQN.js} +1 -1
  123. package/dist/cdn/{RVSHN52T.js → WFR63VAB.js} +1 -1
  124. package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
  125. package/dist/cdn/{TE2XSBE7.js → WK2U5XLD.js} +1 -1
  126. package/dist/cdn/{YC7K6FJA.js → WOMKZ253.js} +1 -1
  127. package/dist/cdn/{UBPQ7QFY.js → WRKLQLS3.js} +1 -1
  128. package/dist/cdn/{PQV425SQ.js → WU5CTNTH.js} +1 -1
  129. package/dist/cdn/WVECYIU6.js +2 -0
  130. package/dist/cdn/{DOTEXZJO.js → WXIGS77Y.js} +1 -1
  131. package/dist/cdn/{H5MWBHP6.js → WYLLFKLX.js} +1 -1
  132. package/dist/cdn/{XTBAHPWE.js → X3B5XHV4.js} +1 -1
  133. package/dist/cdn/{XR3V74KF.js → XBN3B526.js} +1 -1
  134. package/dist/cdn/{4IUQE7FN.js → XFK4MT53.js} +1 -1
  135. package/dist/cdn/{GJ47CTCF.js → XI3ASUE6.js} +1 -1
  136. package/dist/cdn/{EHVPXQQU.js → XLVDGPXT.js} +1 -1
  137. package/dist/cdn/{ZMEYZ5VP.js → XVCAQP7J.js} +1 -1
  138. package/dist/cdn/Y2V47B44.js +2 -0
  139. package/dist/cdn/{5H7HVHXY.js → Z3GNIVH4.js} +1 -1
  140. package/dist/cdn/{3GTPANY3.js → ZDQXRV6B.js} +1 -1
  141. package/dist/cdn/{3W7JPXLB.js → ZHH7WC5F.js} +1 -1
  142. package/dist/cdn/{BFBGUCIN.js → ZID6C4TA.js} +1 -1
  143. package/dist/cdn/{PTOBGARI.js → ZOAYKUJF.js} +1 -1
  144. package/dist/cdn/{HOVDI5HR.js → ZON3SXPK.js} +1 -1
  145. package/dist/cdn/assets/icon/buttons16.json +1 -0
  146. package/dist/cdn/assets/icon/buttons24.json +1 -0
  147. package/dist/cdn/assets/icon/buttons32.json +1 -0
  148. package/dist/cdn/assets/icon/entityTypes16.json +1 -0
  149. package/dist/cdn/assets/icon/entityTypes24.json +1 -0
  150. package/dist/cdn/assets/icon/entityTypes32.json +1 -0
  151. package/dist/cdn/index.js +1 -1
  152. package/dist/chunks/ExpandToggle.js +1 -1
  153. package/dist/chunks/component.js +1 -1
  154. package/dist/chunks/floating-ui.js +1 -1
  155. package/dist/chunks/runtime.js +4 -4
  156. package/dist/chunks/useFocusTrap.js +6 -2
  157. package/dist/chunks/useForm.js +4 -1
  158. package/dist/chunks/utils.js +6 -6
  159. package/dist/components/calcite-action-bar/customElement.js +8 -3
  160. package/dist/components/calcite-action-group/customElement.d.ts +6 -0
  161. package/dist/components/calcite-action-group/customElement.js +2 -1
  162. package/dist/components/calcite-action-pad/customElement.js +10 -5
  163. package/dist/components/calcite-alert/customElement.js +1 -1
  164. package/dist/components/calcite-checkbox/customElement.js +1 -1
  165. package/dist/components/calcite-color-picker/customElement.js +2 -2
  166. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  167. package/dist/components/calcite-combobox/customElement.js +13 -4
  168. package/dist/components/calcite-date-picker/customElement.js +1 -1
  169. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  170. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  171. package/dist/components/calcite-dialog/customElement.d.ts +1 -1
  172. package/dist/components/calcite-fab/customElement.js +1 -1
  173. package/dist/components/calcite-graph/customElement.js +1 -1
  174. package/dist/components/calcite-inline-editable/customElement.d.ts +1 -1
  175. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  176. package/dist/components/calcite-label/customElement.js +1 -1
  177. package/dist/components/calcite-link/customElement.js +2 -2
  178. package/dist/components/calcite-navigation-user/customElement.d.ts +1 -1
  179. package/dist/components/calcite-select/customElement.js +1 -1
  180. package/dist/components/calcite-sheet/customElement.d.ts +1 -1
  181. package/dist/components/calcite-shell-panel/customElement.d.ts +1 -1
  182. package/dist/docs/api.json +1 -1
  183. package/dist/docs/docs.json +1 -1
  184. package/dist/docs/supported-browsers.json +1 -1
  185. package/dist/docs/vscode.css-custom-data.json +1 -1
  186. package/dist/docs/vscode.html-custom-data.json +1 -1
  187. package/dist/docs/web-types.json +1 -1
  188. package/dist/loader.js +1 -1
  189. package/dist/types/lumina.d.ts +1 -1
  190. package/dist/types/preact.d.ts +1 -1
  191. package/dist/types/react.d.ts +1 -1
  192. package/dist/types/stencil.d.ts +1 -1
  193. package/package.json +7 -7
  194. package/dist/cdn/2EHFS2P4.js +0 -4
  195. package/dist/cdn/43FOW6DT.js +0 -2
  196. package/dist/cdn/5FO5KZF5.js +0 -2
  197. package/dist/cdn/5RX5WZO5.js +0 -2
  198. package/dist/cdn/72GKHQQ5.js +0 -3
  199. package/dist/cdn/AK5E3R6F.js +0 -2
  200. package/dist/cdn/DSNUEY33.js +0 -2
  201. package/dist/cdn/FHDPL2TA.js +0 -2
  202. package/dist/cdn/I5T7PU66.js +0 -2
  203. package/dist/cdn/O3EJK32B.js +0 -2
  204. package/dist/cdn/RQ7O54TL.js +0 -2
  205. package/dist/cdn/S4YI4IRV.js +0 -4
  206. package/dist/cdn/T4ABHD2F.js +0 -2
@@ -1,4 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as fe}from"./6SWMJ5CU.js";import{a as de,l as ve}from"./N5Y264VM.js";import{Q as le}from"./2EHFS2P4.js";var pe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],$=pe.join(","),he=typeof Element>"u",G=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!he&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r?.ownerDocument},Q=function(e,t){var n;t===void 0&&(t=!0);var u=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),c=u===""||u==="true",a=c||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Q(e.parentNode));return a},Ce=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},ye=function(e,t,n){if(Q(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll($));return t&&G.call(e,$)&&u.unshift(e),u=u.filter(n),u},ee=function(e,t,n){for(var u=[],c=Array.from(e);c.length;){var a=c.shift();if(!Q(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),f=l.length?l:a.children,p=ee(f,!0,n);n.flatten?u.push.apply(u,p):u.push({scopeParent:a,candidates:p})}else{var S=G.call(a,$);S&&n.filter(a)&&(t||!e.includes(a))&&u.push(a);var w=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),P=!Q(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(w&&P){var A=ee(w===!0?a.children:w.children,!0,n);n.flatten?u.push.apply(u,A):u.push({scopeParent:a,candidates:A})}else c.unshift.apply(c,a.children)}}return u},me=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},L=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ce(e))&&!me(e)?0:e.tabIndex},je=function(e,t){var n=L(e);return n<0&&t&&!me(e)?0:n},xe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ge=function(e){return e.tagName==="INPUT"},Le=function(e){return ge(e)&&e.type==="hidden"},Be=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},_e=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ge=function(e){if(!e.name)return!0;var t=e.form||J(e),n=function(l){return t.querySelectorAll('input[type="radio"][name="'+l+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=n(window.CSS.escape(e.name));else try{u=n(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var c=_e(u,e.form);return!c||c===e},Ke=function(e){return ge(e)&&e.type==="radio"},Me=function(e){return Ke(e)&&!Ge(e)},Ve=function(e){var t,n=e&&J(e),u=(t=n)===null||t===void 0?void 0:t.host,c=!1;if(n&&n!==e){var a,l,f;for(c=!!((a=u)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(u)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!c&&u;){var p,S,w;n=J(u),u=(p=n)===null||p===void 0?void 0:p.host,c=!!((S=u)!==null&&S!==void 0&&(w=S.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},be=function(e){var t=e.getBoundingClientRect(),n=t.width,u=t.height;return n===0&&u===0},qe=function(e,t){var n=t.displayCheck,u=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var c=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(e).visibility==="hidden")return!0;var a=G.call(e,"details>summary:first-of-type"),l=a?e.parentElement:e;if(G.call(l,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof u=="function"){for(var f=e;e;){var p=e.parentElement,S=J(e);if(p&&!p.shadowRoot&&u(p)===!0)return be(e);e.assignedSlot?e=e.assignedSlot:!p&&S!==e.ownerDocument?e=S.host:e=p}e=f}if(Ve(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return be(e);return!1},Ue=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var u=t.children.item(n);if(u.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},te=function(e,t){return!(t.disabled||Le(t)||qe(t,e)||Be(t)||Ue(t))},ce=function(e,t){return!(Me(t)||L(t)<0||!te(e,t))},We=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},we=function(e){var t=[],n=[];return e.forEach(function(u,c){var a=!!u.scopeParent,l=a?u.scopeParent:u,f=je(l,a),p=a?we(u.candidates):l;f===0?a?t.push.apply(t,p):t.push(l):n.push({documentOrder:c,tabIndex:f,item:u,isScope:a,content:p})}),n.sort(xe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},Te=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ee([e],t.includeContainer,{filter:ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:We}):n=ye(e,t.includeContainer,ce.bind(null,t)),we(n)},Se=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ee([e],t.includeContainer,{filter:te.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=ye(e,t.includeContainer,te.bind(null,t)),n},K=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,$)===!1?!1:ce(t,e)},Ye=pe.concat("iframe:not([inert]):not([inert] *)").join(","),re=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,Ye)===!1?!1:te(t,e)};function se(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function He(r){if(Array.isArray(r))return se(r)}function Fe(r,e,t,n,u,c,a){try{var l=r[c](a),f=l.value}catch(p){return void t(p)}l.done?e(f):Promise.resolve(f).then(n,u)}function Ee(r){return function(){var e=this,t=arguments;return new Promise(function(n,u){var c=r.apply(e,t);function a(f){Fe(c,n,u,a,l,"next",f)}function l(f){Fe(c,n,u,a,l,"throw",f)}a(void 0)})}}function Ne(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Oe(r))||e){t&&(r=t);var n=0,u=function(){};return{s:u,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(f){throw f},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,a=!0,l=!1;return{s:function(){t=t.call(r)},n:function(){var f=t.next();return a=f.done,f},e:function(f){l=!0,c=f},f:function(){try{a||t.return==null||t.return()}finally{if(l)throw c}}}}function Ze(r,e,t){return(e=Qe(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ze(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Xe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ke(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),t.push.apply(t,n)}return t}function Ae(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(t),!0).forEach(function(n){Ze(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function U(){var r,e,t=typeof Symbol=="function"?Symbol:{},n=t.iterator||"@@iterator",u=t.toStringTag||"@@toStringTag";function c(A,R,Y,H){var M=R&&R.prototype instanceof l?R:l,V=Object.create(M.prototype);return O(V,"_invoke",(function(ie,Z,z){var I,T,N,B=0,X=z||[],C=!1,E={p:0,n:0,v:r,a:y,f:y.bind(r,4),d:function(i,o){return I=i,T=0,N=r,E.n=o,a}};function y(i,o){for(T=i,N=o,e=0;!C&&B&&!s&&e<X.length;e++){var s,d=X[e],b=E.p,h=d[2];i>3?(s=h===o)&&(N=d[(T=d[4])?5:(T=3,3)],d[4]=d[5]=r):d[0]<=b&&((s=i<2&&b<d[1])?(T=0,E.v=o,E.n=d[1]):b<h&&(s=i<3||d[0]>o||o>h)&&(d[4]=i,d[5]=o,E.n=h,T=0))}if(s||i>1)return a;throw C=!0,o}return function(i,o,s){if(B>1)throw TypeError("Generator is already running");for(C&&o===1&&y(o,s),T=o,N=s;(e=T<2?r:N)||!C;){I||(T?T<3?(T>1&&(E.n=-1),y(T,N)):E.n=N:E.v=N);try{if(B=2,I){if(T||(i="next"),e=I[i]){if(!(e=e.call(I,N)))throw TypeError("iterator result is not an object");if(!e.done)return e;N=e.value,T<2&&(T=0)}else T===1&&(e=I.return)&&e.call(I),T<2&&(N=TypeError("The iterator does not provide a '"+i+"' method"),T=1);I=r}else if((e=(C=E.n<0)?N:ie.call(Z,E))!==a)break}catch(d){I=r,T=1,N=d}finally{B=1}}return{value:e,done:C}}})(A,Y,H),!0),V}var a={};function l(){}function f(){}function p(){}e=Object.getPrototypeOf;var S=[][n]?e(e([][n]())):(O(e={},n,function(){return this}),e),w=p.prototype=l.prototype=Object.create(S);function P(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,p):(A.__proto__=p,O(A,u,"GeneratorFunction")),A.prototype=Object.create(w),A}return f.prototype=p,O(w,"constructor",p),O(p,"constructor",f),f.displayName="GeneratorFunction",O(p,u,"GeneratorFunction"),O(w),O(w,u,"Generator"),O(w,n,function(){return this}),O(w,"toString",function(){return"[object Generator]"}),(U=function(){return{w:c,m:P}})()}function O(r,e,t,n){var u=Object.defineProperty;try{u({},"",{})}catch{u=0}O=function(c,a,l,f){function p(S,w){O(c,S,function(P){return this._invoke(S,w,P)})}a?u?u(c,a,{value:l,enumerable:!f,configurable:!f,writable:!f}):c[a]=l:(p("next",0),p("throw",1),p("return",2))},O(r,e,t,n)}function $e(r){return He(r)||ze(r)||Oe(r)||Xe()}function Je(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Qe(r){var e=Je(r,"string");return typeof e=="symbol"?e:e+""}function Oe(r,e){if(r){if(typeof r=="string")return se(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(r,e):void 0}}var j={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){var n=j.getActiveTrap(e);t!==n&&j.pauseTrap(e);var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),j.unpauseTrap(e)},pauseTrap:function(e){var t=j.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=j.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},et=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},tt=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},W=function(e){return e?.key==="Tab"||e?.keyCode===9},rt=function(e){return W(e)&&!e.shiftKey},at=function(e){return W(e)&&e.shiftKey},De=function(e){return setTimeout(e,0)},q=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),u=1;u<t;u++)n[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,n):e},ae=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},nt=[],Re=function(e,t){var n=t?.document||document,u=t?.trapStack||nt,c=Ae({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:rt,isKeyBackward:at},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,f=function(i,o,s){return i&&i[o]!==void 0?i[o]:c[s||o]},p=function(i,o){var s=typeof o?.composedPath=="function"?o.composedPath():void 0;return a.containerGroups.findIndex(function(d){var b=d.container,h=d.tabbableNodes;return b.contains(i)||s?.includes(b)||h.find(function(v){return v===i})})},S=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.hasFallback,d=s===void 0?!1:s,b=o.params,h=b===void 0?[]:b,v=c[i];if(typeof v=="function"&&(v=v.apply(void 0,$e(h))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var m=v;if(typeof v=="string"){try{m=n.querySelector(v)}catch(g){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(g.message,'"'))}if(!m&&!d)throw new Error("`".concat(i,"` as selector refers to no known node"))}return m},w=function(){var i=S("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!re(i,c.tabbableOptions))if(p(n.activeElement)>=0)i=n.activeElement;else{var o=a.tabbableGroups[0],s=o&&o.firstTabbableNode;i=s||S("fallbackFocus")}else i===null&&(i=S("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},P=function(){if(a.containerGroups=a.containers.map(function(i){var o=Te(i,c.tabbableOptions),s=Se(i,c.tabbableOptions),d=o.length>0?o[0]:void 0,b=o.length>0?o[o.length-1]:void 0,h=s.find(function(g){return K(g)}),v=s.slice().reverse().find(function(g){return K(g)}),m=!!o.find(function(g){return L(g)>0});return{container:i,tabbableNodes:o,focusableNodes:s,posTabIndexesFound:m,firstTabbableNode:d,lastTabbableNode:b,firstDomTabbableNode:h,lastDomTabbableNode:v,nextTabbableNode:function(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=o.indexOf(F);return k<0?D?s.slice(s.indexOf(F)+1).find(function(_){return K(_)}):s.slice(0,s.indexOf(F)).reverse().find(function(_){return K(_)}):o[k+(D?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!S("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(a.containerGroups.find(function(i){return i.posTabIndexesFound})&&a.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.")},A=function(i){var o=i.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?A(o.shadowRoot):o},R=function(i){if(i!==!1&&i!==A(document)){if(!i||!i.focus){R(w());return}i.focus({preventScroll:!!c.preventScroll}),a.mostRecentlyFocusedNode=i,et(i)&&i.select()}},Y=function(i){var o=S("setReturnFocus",{params:[i]});return o||(o===!1?!1:i)},H=function(i){var o=i.target,s=i.event,d=i.isBackward,b=d===void 0?!1:d;o=o||ae(s),P();var h=null;if(a.tabbableGroups.length>0){var v=p(o,s),m=v>=0?a.containerGroups[v]:void 0;if(v<0)b?h=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:h=a.tabbableGroups[0].firstTabbableNode;else if(b){var g=a.tabbableGroups.findIndex(function(oe){var ue=oe.firstTabbableNode;return o===ue});if(g<0&&(m.container===o||re(o,c.tabbableOptions)&&!K(o,c.tabbableOptions)&&!m.nextTabbableNode(o,!1))&&(g=v),g>=0){var F=g===0?a.tabbableGroups.length-1:g-1,D=a.tabbableGroups[F];h=L(o)>=0?D.lastTabbableNode:D.lastDomTabbableNode}else W(s)||(h=m.nextTabbableNode(o,!1))}else{var k=a.tabbableGroups.findIndex(function(oe){var ue=oe.lastTabbableNode;return o===ue});if(k<0&&(m.container===o||re(o,c.tabbableOptions)&&!K(o,c.tabbableOptions)&&!m.nextTabbableNode(o))&&(k=v),k>=0){var _=k===a.tabbableGroups.length-1?0:k+1,x=a.tabbableGroups[_];h=L(o)>=0?x.firstTabbableNode:x.firstDomTabbableNode}else W(s)||(h=m.nextTabbableNode(o))}}else h=S("fallbackFocus");return h},M=function(i){var o=ae(i);if(!(p(o,i)>=0)){if(q(c.clickOutsideDeactivates,i)){l.deactivate({returnFocus:c.returnFocusOnDeactivate});return}q(c.allowOutsideClick,i)||i.preventDefault()}},V=function(i){var o=ae(i),s=p(o,i)>=0;if(s||o instanceof Document)s&&(a.mostRecentlyFocusedNode=o);else{i.stopImmediatePropagation();var d,b=!0;if(a.mostRecentlyFocusedNode)if(L(a.mostRecentlyFocusedNode)>0){var h=p(a.mostRecentlyFocusedNode),v=a.containerGroups[h].tabbableNodes;if(v.length>0){var m=v.findIndex(function(g){return g===a.mostRecentlyFocusedNode});m>=0&&(c.isKeyForward(a.recentNavEvent)?m+1<v.length&&(d=v[m+1],b=!1):m-1>=0&&(d=v[m-1],b=!1))}}else a.containerGroups.some(function(g){return g.tabbableNodes.some(function(F){return L(F)>0})})||(b=!1);else b=!1;b&&(d=H({target:a.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(a.recentNavEvent)})),R(d||a.mostRecentlyFocusedNode||w())}a.recentNavEvent=void 0},ie=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=i;var s=H({event:i,isBackward:o});s&&(W(i)&&i.preventDefault(),R(s))},Z=function(i){(c.isKeyForward(i)||c.isKeyBackward(i))&&ie(i,c.isKeyBackward(i))},z=function(i){tt(i)&&q(c.escapeDeactivates,i)!==!1&&(i.preventDefault(),l.deactivate())},I=function(i){var o=ae(i);p(o,i)>=0||q(c.clickOutsideDeactivates,i)||q(c.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},T=function(){if(!a.active)return Promise.resolve();j.activateTrap(u,l);var i;return c.delayInitialFocus?i=new Promise(function(o){a.delayInitialFocusTimer=De(function(){R(w()),o()})}):(i=Promise.resolve(),R(w())),n.addEventListener("focusin",V,!0),n.addEventListener("mousedown",M,{capture:!0,passive:!1}),n.addEventListener("touchstart",M,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",Z,{capture:!0,passive:!1}),n.addEventListener("keydown",z),i},N=function(i){a.active&&!a.paused&&l._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var o=new Set,s=new Set,d=Ne(i),b;try{for(d.s();!(b=d.n()).done;){var h=b.value;o.add(h);for(var v=typeof ShadowRoot<"u"&&h.getRootNode()instanceof ShadowRoot,m=h;m;){o.add(m);var g=m.parentElement,F=[];g?F=g.children:!g&&v&&(F=m.getRootNode().children,g=m.getRootNode().host,v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot);var D=Ne(F),k;try{for(D.s();!(k=D.n()).done;){var _=k.value;s.add(_)}}catch(x){D.e(x)}finally{D.f()}m=g}}}catch(x){d.e(x)}finally{d.f()}o.forEach(function(x){s.delete(x)}),a.adjacentElements=s},B=function(){if(a.active)return n.removeEventListener("focusin",V,!0),n.removeEventListener("mousedown",M,!0),n.removeEventListener("touchstart",M,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",Z,!0),n.removeEventListener("keydown",z),l},X=function(i){var o=i.some(function(s){var d=Array.from(s.removedNodes);return d.some(function(b){return b===a.mostRecentlyFocusedNode})});o&&R(w())},C=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(X):void 0,E=function(){C&&(C.disconnect(),a.active&&!a.paused&&a.containers.map(function(i){C.observe(i,{subtree:!0,childList:!0})}))};return l={get active(){return a.active},get paused(){return a.paused},activate:function(i){if(a.active)return this;var o=f(i,"onActivate"),s=f(i,"onPostActivate"),d=f(i,"checkCanFocusTrap"),b=j.getActiveTrap(u),h=!1;if(b&&!b.paused){var v;(v=b._setSubtreeIsolation)===null||v===void 0||v.call(b,!1),h=!0}try{d||P(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=A(n),o?.({trap:l});var m=(function(){var F=Ee(U().m(function D(){return U().w(function(k){for(;;)switch(k.n){case 0:return d&&P(),k.n=1,T();case 1:l._setSubtreeIsolation(!0),E(),s?.({trap:l});case 2:return k.a(2)}},D)}));return function(){return F.apply(this,arguments)}})();if(d)return d(a.containers.concat()).then(m,m),this;m()}catch(F){if(b===j.getActiveTrap(u)&&h){var g;(g=b._setSubtreeIsolation)===null||g===void 0||g.call(b,!0)}throw F}return this},deactivate:function(i){if(!a.active)return this;var o=Ae({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},i);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||l._setSubtreeIsolation(!1),a.alreadySilent.clear(),B(),a.active=!1,a.paused=!1,E(),j.deactivateTrap(u,l);var s=f(o,"onDeactivate"),d=f(o,"onPostDeactivate"),b=f(o,"checkCanReturnFocus"),h=f(o,"returnFocus","returnFocusOnDeactivate");s?.({trap:l});var v=function(){De(function(){h&&R(Y(a.nodeFocusedBeforeActivation)),d?.({trap:l})})};return h&&b?(b(Y(a.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(i){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return a.active?(a.manuallyPaused=!1,u[u.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var o=[].concat(i).filter(Boolean);return a.containers=o.map(function(s){return typeof s=="string"?n.querySelector(s):s}),c.isolateSubtrees&&N(a.containers),a.active&&(P(),a.paused||l._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(l,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(i,o){if(a.paused===i)return this;if(a.paused=i,i){var s=f(o,"onPause"),d=f(o,"onPostPause");s?.({trap:l}),B(),l._setSubtreeIsolation(!1),E(),d?.({trap:l})}else{var b=f(o,"onUnpause"),h=f(o,"onPostUnpause");b?.({trap:l});var v=(function(){var m=Ee(U().m(function g(){return U().w(function(F){for(;;)switch(F.n){case 0:return P(),F.n=1,T();case 1:l._setSubtreeIsolation(!0),E(),h?.({trap:l});case 2:return F.a(2)}},g)}));return function(){return m.apply(this,arguments)}})();v()}return this}},_setSubtreeIsolation:{value:function(i){c.isolateSubtrees&&a.adjacentElements.forEach(function(o){var s;if(i)switch(c.isolateSubtrees){case"aria-hidden":(o.ariaHidden==="true"||((s=o.getAttribute("aria-hidden"))===null||s===void 0?void 0:s.toLowerCase())==="true")&&a.alreadySilent.add(o),o.setAttribute("aria-hidden","true");break;default:(o.inert||o.hasAttribute("inert"))&&a.alreadySilent.add(o),o.setAttribute("inert",!0);break}else if(!a.alreadySilent.has(o))switch(c.isolateSubtrees){case"aria-hidden":o.removeAttribute("aria-hidden");break;default:o.removeAttribute("inert");break}})}}}),l.updateContainerElements(e),l};function Ie(r,{focusTrapOptions:e},t){return!e?.extraContainers&&!t?r:[r,...Pe(e?.extraContainers),...Pe(t)]}function Pe(r=[]){return Array.isArray(r)?r:[r]}var ne=new WeakSet;function it(r,e){let t=e&&e!==document.body&&e!==document.documentElement;return!ne.has(r)&&t&&ve(e),!1}function ot(r,e){let t=e?.fallbackFocus||r,n=e?.clickOutsideDeactivates??!0,u;return{fallbackFocus:t,...e,document:r.ownerDocument,tabbableOptions:de,trapStack:le().focusTrapStack,clickOutsideDeactivates:c=>(ne.has(r)||ne.add(r),typeof n=="function"?n(c):n),onActivate:c=>{e?.escapeDeactivates&&(u=new AbortController,r.addEventListener("keydown",a=>{a.key==="Escape"&&typeof e?.escapeDeactivates=="function"&&e.escapeDeactivates(a)},{signal:u.signal})),e?.onActivate?.(c)},onDeactivate:c=>{u?.abort(),u=void 0,e?.onDeactivate?.(c)},onPostDeactivate:()=>{ne.delete(r)},setReturnFocus:c=>{let a=typeof e?.setReturnFocus=="function"?e.setReturnFocus(c):e?.setReturnFocus;return a===void 0?it(r,c):a}}}var bt=r=>fe((e,t)=>{let n,u,c,a=r.focusTrapOptions;t.onConnected(()=>{e[r.triggerProp]&&n&&l.activate()}),t.onUpdate(f=>{e.hasUpdated&&f.has("focusTrapDisabled")&&(e.focusTrapDisabled?l.deactivate():l.activate())}),t.onDisconnected(()=>l.deactivate());let l={get _instance(){},activate:()=>{let f=u||e.el;f.isConnected&&(n||(c||=Ie(f,e),n=Re(c,ot(f,{...a,...e.focusTrapOptions}))),(typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled)&&n.activate())},deactivate:()=>n?.deactivate(),overrideFocusTrapEl:f=>{if(n)throw new Error("Focus trap already created");u=f},setExtraContainers:f=>{let p=u||e.el;c=Ie(p,e,f)},updateContainerElements:()=>n?.updateContainerElements(c)};return l});export{bt as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as p,b as $,c as S}from"./DNYAPW4C.js";import{a as v}from"./HDFMIYOW.js";import{c as m}from"./RRXOB3GM.js";import{c as M}from"./G52BPUIA.js";import{a as x}from"./UXDLXWJ3.js";import"./RH6ZIP65.js";import"./6SWMJ5CU.js";import"./XAHDXNHK.js";import{t as b}from"./N5Y264VM.js";import"./OAOQ5BXS.js";import{G as g,H as A,S as y,g as f,h,p as l}from"./2EHFS2P4.js";var a=(n,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(n,e,t),t);function C(n){return(e,t)=>{let{slot:i,selector:o}=n??{},s="slot"+(i?`[name=${i}]`:":not([name])");return a(e,t,{get(){let r=this.renderRoot?.querySelector(s),c=r?.assignedElements(n)??[];return o===void 0?c:c.filter((d=>d.matches(o)))}})}}var E=f`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-group-gap: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-group-gap: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-group-gap: var(--calcite-spacing-sm-plus)}:host{display:flex;flex-direction:column;padding:0;background-color:transparent;border-color:var(--calcite-action-group-border-color, var(--calcite-color-border-3));border-style:solid;border-width:0;gap:var(--calcite-internal-action-group-gap)}.container{display:flex;flex-grow:1;flex-direction:column;gap:inherit}:host([columns="1"]){--calcite-internal-action-group-columns: 1}:host([columns="2"]){--calcite-internal-action-group-columns: 2}:host([columns="3"]){--calcite-internal-action-group-columns: 3}:host([columns="4"]){--calcite-internal-action-group-columns: 4}:host([columns="5"]){--calcite-internal-action-group-columns: 5}:host([columns="6"]){--calcite-internal-action-group-columns: 6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]),:host([layout=horizontal]) .container{flex-direction:row}:host([layout=grid]){display:grid}:host([layout=grid]) .container{display:grid;place-content:stretch;background-color:transparent;gap:var(--calcite-action-group-gap, var(--calcite-internal-action-group-gap));grid-template-columns:repeat(var(--calcite-action-group-columns, var(--calcite-internal-action-group-columns, 3)),auto);padding:var(--calcite-action-group-gap, 1px)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-inline-end:var(--calcite-size-px)}:host([hidden]){display:none}[hidden]{display:none}`,k=Object.defineProperty,P=(n,e,t,i)=>{for(var o=void 0,s=n.length-1,r;s>=0;s--)(r=n[s])&&(o=r(e,t,o)||o);return o&&k(e,t,o),o},u=class extends g{constructor(){super(),this.messages=v(),this.focusSetter=x()(this),this.hasMenuActions=!1,this.expanded=!1,this.layout="vertical",this.menuOpen=!1,this.overlayPositioning="absolute",this.scale="m",this.selectionMode="none",this.topLayerDisabled=!1,this.selectedActions=[],this.calciteActionGroupCollapse=l({cancelable:!1}),this.calciteActionGroupExpand=l({cancelable:!1}),this.calciteActionGroupChange=l({cancelable:!1}),this.listen("click",this.handleActionClick)}static{this.properties={hasMenuActions:[16,{},{state:!0}],columns:[11,{},{type:Number,reflect:!0}],expanded:[7,{},{reflect:!0,type:Boolean}],label:1,layout:[3,{},{reflect:!0}],menuFlipPlacements:[0,{},{attribute:!1}],menuOpen:[7,{},{reflect:!0,type:Boolean}],menuPlacement:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}],selectionMode:[3,{},{reflect:!0}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}],selectedActions:[0,{},{attribute:!1}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=E}async setFocus(e){return this.focusSetter(()=>this.el,e)}willUpdate(e){if(this.hasUpdated||e.has("selectionMode")){if(this.selectionMode!=="none"?this.setRoleOnActions():this.selectionMode==="none"&&this.clearActionAriaAttributes(),this.selectionMode==="single"||this.selectionMode==="single-persist"){let t=this.actions?.filter(i=>i.active)??[];t.length>1&&this.actions.forEach(i=>this.updateAction(i,i===t[t.length-1]))}this.updateSelectedActions(this.selectionMode==="none"?[]:this.actions?.filter(t=>t.active)??[])}e.has("expanded")&&((this.hasUpdated||this.expanded!==!1)&&(this.menuOpen=!1),this.hasUpdated&&(this.expanded?this.calciteActionGroupExpand.emit():this.calciteActionGroupCollapse.emit()))}setActiveAction(e,t){if(this.selectionMode==="multiple"){let i=!t.active;this.updateAction(t,i),this.updateSelectedActions(this.actions.filter(o=>o.active)),this.calciteActionGroupChange.emit();return}if(this.selectionMode==="single"){let i=!t.active;this.actions.forEach((o,s)=>this.updateAction(o,s===e&&i)),this.updateSelectedActions(this.actions.filter(o=>o.active)),this.calciteActionGroupChange.emit();return}if(this.selectionMode==="single-persist"){this.actions[e].active||(this.actions.forEach((i,o)=>this.updateAction(i,o===e)),this.updateSelectedActions([t]),this.calciteActionGroupChange.emit());return}}setMenuOpen(e){this.menuOpen=!!e.currentTarget.open}handleMenuActionsSlotChange(e){this.hasMenuActions=b(e)}handleActionClick(e){let t=e.composedPath().find(o=>M(o));if(!t||t.disabled)return;let i=this.actions.indexOf(t);i===-1||this.selectionMode==="none"||this.setActiveAction(i,t)}setRoleOnActions(){this.actions.forEach(e=>{e.aria={...e.aria,role:this.selectionMode==="single"||this.selectionMode==="single-persist"?"radio":"checkbox"},this.setActionAriaChecked(e,e.active)})}setActionAriaChecked(e,t){e.aria={...e.aria,checked:t?"true":"false"}}clearActionAriaAttributes(){this.selectionMode==="none"&&this.actions.forEach(e=>{e.aria&&(e.aria.checked=void 0,e.aria.role=void 0,e.aria={...e.aria})})}updateAction(e,t){e.active=t,this.setActionAriaChecked(e,t)}updateSelectedActions(e){let t=this.selectedActions;t.length===e.length&&t.every((o,s)=>o===e[s])||(this.selectedActions=e)}renderMenu(){let{expanded:e,menuOpen:t,scale:i,layout:o,messages:s,overlayPositioning:r,hasMenuActions:c,menuFlipPlacements:d,menuPlacement:O}=this;return h`<calcite-action-menu .expanded=${e} .flipPlacements=${d??(o==="horizontal"?["top","bottom"]:["left","right"])} .hidden=${!c} .label=${s.more} @calciteActionMenuOpen=${this.setMenuOpen} .open=${t} .overlayPositioning=${r} .placement=${O??(o==="horizontal"?"bottom-start":"leading-start")} .scale=${i} .topLayerDisabled=${this.topLayerDisabled}><calcite-action .aria=${{expanded:e}} .icon=${$.menu} .scale=${i} slot=${m.trigger} .text=${s.more} .textEnabled=${e}></calcite-action><slot name=${p.menuActions} @slotchange=${this.handleMenuActionsSlotChange}></slot><slot name=${p.menuTooltip} slot=${m.tooltip}></slot></calcite-action-menu>`}render(){return h`<div .ariaLabel=${this.label} class=${A(S.container)} .role=${this.selectionMode==="multiple"||this.selectionMode==="none"?"group":"radiogroup"}><slot></slot>${this.renderMenu()}</div>`}};P([C({selector:"calcite-action"})],u.prototype,"actions");y("calcite-action-group",u);export{u as ActionGroup};