@beamimpact/web-sdk 1.37.1 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/chunks/_share-dialog-dependencies-jvfU8iYk.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-jvfU8iYk.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-nBHy1n7P.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-nBHy1n7P.esm.js.map +1 -0
  5. package/dist/chunks/{cart-contents-IOhdr24g.esm.d.ts → cart-contents-dKdDg09p.esm.d.ts} +1 -1
  6. package/dist/chunks/{css-card-grid-3b56QBzq.esm.js → css-card-grid-inRnKSWs.esm.js} +2 -2
  7. package/dist/chunks/{css-card-grid-3b56QBzq.esm.js.map → css-card-grid-inRnKSWs.esm.js.map} +1 -1
  8. package/dist/chunks/{enforce-config-qna7hEL6.esm.js → enforce-config-7R9KCF_i.esm.js} +2 -2
  9. package/dist/chunks/{enforce-config-qna7hEL6.esm.js.map → enforce-config-7R9KCF_i.esm.js.map} +1 -1
  10. package/dist/chunks/{enforce-config-fo8kIfoY.esm.js → enforce-config-iFdf1QkH.esm.js} +2 -2
  11. package/dist/chunks/{enforce-config-fo8kIfoY.esm.js.map → enforce-config-iFdf1QkH.esm.js.map} +1 -1
  12. package/dist/chunks/events-Y8fYvSqM.esm.js.map +1 -1
  13. package/dist/chunks/{events-j-SJ9Cot.esm.d.ts → events-zF9NDtBD.esm.d.ts} +2 -1
  14. package/dist/chunks/{index-9YcaEQju.esm.js → index-6iInzwnG.esm.js} +2 -2
  15. package/dist/chunks/{index-9YcaEQju.esm.js.map → index-6iInzwnG.esm.js.map} +1 -1
  16. package/dist/chunks/{index-Gz7Q9nUW.esm.js → index-ARSbllRj.esm.js} +2 -2
  17. package/dist/chunks/{index-Gz7Q9nUW.esm.js.map → index-ARSbllRj.esm.js.map} +1 -1
  18. package/dist/chunks/{index-3F_Wjm5v.esm.d.ts → index-EjqeU7Mu.esm.d.ts} +1 -1
  19. package/dist/chunks/index-K0KGNP8F.esm.js +2 -0
  20. package/dist/chunks/index-K0KGNP8F.esm.js.map +1 -0
  21. package/dist/chunks/index-QEOW1H_N.esm.js +2 -0
  22. package/dist/chunks/index-QEOW1H_N.esm.js.map +1 -0
  23. package/dist/chunks/{index-s8uQH63W.esm.d.ts → index-Tnwxn22c.esm.d.ts} +4 -4
  24. package/dist/chunks/index-WBPyA_Km.esm.js +2 -0
  25. package/dist/chunks/index-WBPyA_Km.esm.js.map +1 -0
  26. package/dist/chunks/{index-vpkWmZo_.esm.js → index-XCQ48s5g.esm.js} +2 -2
  27. package/dist/chunks/{index-vpkWmZo_.esm.js.map → index-XCQ48s5g.esm.js.map} +1 -1
  28. package/dist/chunks/index-bhC9kqpF.esm.js +2 -0
  29. package/dist/chunks/index-bhC9kqpF.esm.js.map +1 -0
  30. package/dist/chunks/{index-yXqJ9Znv.esm.d.ts → index-cRyQ6D5G.esm.d.ts} +1 -1
  31. package/dist/chunks/{index-mWnpDGl1.esm.d.ts → index-dDBsHD_s.esm.d.ts} +1 -1
  32. package/dist/chunks/{index-slrOT8Gd.esm.d.ts → index-iYxrQMxt.esm.d.ts} +1 -1
  33. package/dist/chunks/{index-Z1UUeVXR.esm.js → index-l7Ao8g5B.esm.js} +2 -2
  34. package/dist/chunks/{index-Z1UUeVXR.esm.js.map → index-l7Ao8g5B.esm.js.map} +1 -1
  35. package/dist/chunks/index-nOkYjc29.esm.js +2 -0
  36. package/dist/chunks/index-nOkYjc29.esm.js.map +1 -0
  37. package/dist/chunks/{index-WX8Yyx2u.esm.d.ts → index-tqTROh5B.esm.d.ts} +1 -1
  38. package/dist/chunks/index-ygp7mxoE.esm.js +2 -0
  39. package/dist/chunks/index-ygp7mxoE.esm.js.map +1 -0
  40. package/dist/chunks/{lit-yVXn5Cbs.esm.js → lit-HCWbxxT7.esm.js} +4 -4
  41. package/dist/chunks/{lit-yVXn5Cbs.esm.js.map → lit-HCWbxxT7.esm.js.map} +1 -1
  42. package/dist/chunks/{localize-pzAAkBvG.esm.js → localize-ZHtlNltZ.esm.js} +2 -2
  43. package/dist/chunks/{localize-pzAAkBvG.esm.js.map → localize-ZHtlNltZ.esm.js.map} +1 -1
  44. package/dist/chunks/{localize-GCkVUD8S.esm.js → localize-jRg7W6Ul.esm.js} +2 -2
  45. package/dist/chunks/{localize-GCkVUD8S.esm.js.map → localize-jRg7W6Ul.esm.js.map} +1 -1
  46. package/dist/chunks/{openapi-spec-b529HHW3.esm.d.ts → openapi-spec-fxMWpEwU.esm.d.ts} +259 -14
  47. package/dist/chunks/{order-page-jkuLE25f.esm.d.ts → order-page-AezeN9KY.esm.d.ts} +2 -2
  48. package/dist/chunks/order-page-QUOh_9GG.esm.js +2 -0
  49. package/dist/chunks/order-page-QUOh_9GG.esm.js.map +1 -0
  50. package/dist/chunks/order-page-vbiHdNMi.esm.js +2 -0
  51. package/dist/chunks/order-page-vbiHdNMi.esm.js.map +1 -0
  52. package/dist/chunks/{progress-bar-7gWYaGlq.esm.js → progress-bar-9vfd2JYm.esm.js} +2 -2
  53. package/dist/chunks/{progress-bar-7gWYaGlq.esm.js.map → progress-bar-9vfd2JYm.esm.js.map} +1 -1
  54. package/dist/chunks/promo-pill-label-3bA1z-la.esm.d.ts +19 -0
  55. package/dist/chunks/promo-pill-label-vCWNyiaj.esm.js +13 -0
  56. package/dist/chunks/promo-pill-label-vCWNyiaj.esm.js.map +1 -0
  57. package/dist/chunks/{responsive-LYEag6TI.esm.js → responsive-Bzkkpj11.esm.js} +2 -2
  58. package/dist/chunks/{responsive-LYEag6TI.esm.js.map → responsive-Bzkkpj11.esm.js.map} +1 -1
  59. package/dist/chunks/{routes-ad0I3Ayc.esm.js → routes--kzWvkeF.esm.js} +2 -2
  60. package/dist/chunks/{routes-ad0I3Ayc.esm.js.map → routes--kzWvkeF.esm.js.map} +1 -1
  61. package/dist/chunks/{routes-LFjgVNGB.esm.js → routes-ga8DTuUO.esm.js} +2 -2
  62. package/dist/chunks/{routes-LFjgVNGB.esm.js.map → routes-ga8DTuUO.esm.js.map} +1 -1
  63. package/dist/chunks/{update-cart-EKZbvT8c.esm.d.ts → update-cart-43LEXveI.esm.d.ts} +1 -1
  64. package/dist/chunks/{update-cart-vcujKNky.esm.js → update-cart-5I7FDxvc.esm.js} +2 -2
  65. package/dist/chunks/{update-cart-vcujKNky.esm.js.map → update-cart-5I7FDxvc.esm.js.map} +1 -1
  66. package/dist/chunks/{update-cart-A2hs4tF8.esm.js → update-cart-Z287MVqH.esm.js} +2 -2
  67. package/dist/chunks/{update-cart-A2hs4tF8.esm.js.map → update-cart-Z287MVqH.esm.js.map} +1 -1
  68. package/dist/chunks/{vendor-eeJfrOkP.esm.js → vendor-h5FNKy-G.esm.js} +124 -25
  69. package/dist/chunks/vendor-h5FNKy-G.esm.js.map +1 -0
  70. package/dist/components/beam-partner-logos.esm.js +1 -1
  71. package/dist/components/beam-partner-logos.js +1 -1
  72. package/dist/components/community-impact.esm.js +1 -1
  73. package/dist/components/community-impact.js +1 -1
  74. package/dist/components/cumulative-impact.esm.js +1 -1
  75. package/dist/components/cumulative-impact.js +1 -1
  76. package/dist/components/impact-overview.d.ts +12 -0
  77. package/dist/components/impact-overview.esm.js +2 -2
  78. package/dist/components/impact-overview.esm.js.map +1 -1
  79. package/dist/components/impact-overview.js +2 -2
  80. package/dist/components/impact-overview.js.map +1 -1
  81. package/dist/components/index.d.ts +3 -2
  82. package/dist/components/index.esm.js +1 -1
  83. package/dist/components/index.js +1 -1
  84. package/dist/components/post-purchase.d.ts +4 -3
  85. package/dist/components/post-purchase.esm.js +2 -1
  86. package/dist/components/post-purchase.esm.js.map +1 -1
  87. package/dist/components/post-purchase.js +2 -1
  88. package/dist/components/post-purchase.js.map +1 -1
  89. package/dist/components/redeem-transaction.d.ts +5 -3
  90. package/dist/components/redeem-transaction.esm.js +60 -38
  91. package/dist/components/redeem-transaction.esm.js.map +1 -1
  92. package/dist/components/redeem-transaction.js +60 -38
  93. package/dist/components/redeem-transaction.js.map +1 -1
  94. package/dist/components/select-nonprofit.d.ts +14 -3
  95. package/dist/components/select-nonprofit.esm.js +73 -30
  96. package/dist/components/select-nonprofit.esm.js.map +1 -1
  97. package/dist/components/select-nonprofit.js +73 -30
  98. package/dist/components/select-nonprofit.js.map +1 -1
  99. package/dist/components/shopify.d.ts +6 -5
  100. package/dist/components/shopify.esm.js +1 -1
  101. package/dist/components/shopify.esm.js.map +1 -1
  102. package/dist/components/shopify.js +1 -1
  103. package/dist/components/shopify.js.map +1 -1
  104. package/dist/components/subscription-management.d.ts +14 -3
  105. package/dist/components/subscription-management.esm.js +1 -1
  106. package/dist/components/subscription-management.js +1 -1
  107. package/dist/index.d.ts +12 -11
  108. package/dist/index.esm.js +1 -1
  109. package/dist/index.js +1 -1
  110. package/dist/integrations/beam.esm.js +1 -1
  111. package/dist/integrations/beam.js +1 -1
  112. package/dist/integrations/cart.d.ts +3 -3
  113. package/dist/integrations/cart.esm.js +1 -1
  114. package/dist/integrations/cart.js +1 -1
  115. package/dist/integrations/index.d.ts +10 -9
  116. package/dist/integrations/index.esm.js +1 -1
  117. package/dist/integrations/index.js +1 -1
  118. package/dist/integrations/logs.d.ts +2 -2
  119. package/dist/integrations/logs.esm.js +1 -1
  120. package/dist/integrations/logs.js +1 -1
  121. package/dist/integrations/session.esm.js +1 -1
  122. package/dist/integrations/session.js +1 -1
  123. package/dist/integrations/shopify.d.ts +5 -4
  124. package/dist/integrations/shopify.esm.js +1 -1
  125. package/dist/integrations/shopify.js +1 -1
  126. package/dist/integrations/statsig.esm.js +1 -1
  127. package/dist/integrations/statsig.js +1 -1
  128. package/dist/integrations/utils.d.ts +3 -3
  129. package/dist/react/beam-partner-logos.esm.js +1 -1
  130. package/dist/react/beam-partner-logos.js +1 -1
  131. package/dist/react/community-impact.esm.js +1 -1
  132. package/dist/react/community-impact.js +1 -1
  133. package/dist/react/cumulative-impact.esm.js +1 -1
  134. package/dist/react/cumulative-impact.js +1 -1
  135. package/dist/react/impact-overview.esm.js +1 -1
  136. package/dist/react/impact-overview.js +1 -1
  137. package/dist/react/index.d.ts +4 -3
  138. package/dist/react/index.esm.js +1 -1
  139. package/dist/react/index.js +1 -1
  140. package/dist/react/post-purchase.d.ts +3 -2
  141. package/dist/react/post-purchase.esm.js +1 -1
  142. package/dist/react/post-purchase.esm.js.map +1 -1
  143. package/dist/react/post-purchase.js +1 -1
  144. package/dist/react/post-purchase.js.map +1 -1
  145. package/dist/react/redeem-transaction.d.ts +4 -3
  146. package/dist/react/redeem-transaction.esm.js +1 -1
  147. package/dist/react/redeem-transaction.esm.js.map +1 -1
  148. package/dist/react/redeem-transaction.js +1 -1
  149. package/dist/react/redeem-transaction.js.map +1 -1
  150. package/dist/react/select-nonprofit.d.ts +4 -3
  151. package/dist/react/select-nonprofit.esm.js +1 -1
  152. package/dist/react/select-nonprofit.esm.js.map +1 -1
  153. package/dist/react/select-nonprofit.js +1 -1
  154. package/dist/react/select-nonprofit.js.map +1 -1
  155. package/dist/react/subscription-management.d.ts +2 -2
  156. package/dist/react/subscription-management.esm.js +1 -1
  157. package/dist/react/subscription-management.js +1 -1
  158. package/dist/utils/events.d.ts +3 -3
  159. package/dist/utils/index.d.ts +3 -3
  160. package/package.json +1 -1
  161. package/dist/chunks/_share-dialog-dependencies-FheD3_vQ.esm.js +0 -2
  162. package/dist/chunks/_share-dialog-dependencies-FheD3_vQ.esm.js.map +0 -1
  163. package/dist/chunks/_share-dialog-dependencies-l35ECwOP.esm.js +0 -2
  164. package/dist/chunks/_share-dialog-dependencies-l35ECwOP.esm.js.map +0 -1
  165. package/dist/chunks/index-B2oj1JKu.esm.js +0 -2
  166. package/dist/chunks/index-B2oj1JKu.esm.js.map +0 -1
  167. package/dist/chunks/index-E_HMWZ2A.esm.js +0 -2
  168. package/dist/chunks/index-E_HMWZ2A.esm.js.map +0 -1
  169. package/dist/chunks/index-JsXH5Lnc.esm.js +0 -2
  170. package/dist/chunks/index-JsXH5Lnc.esm.js.map +0 -1
  171. package/dist/chunks/index-RDKeoKqc.esm.js +0 -2
  172. package/dist/chunks/index-RDKeoKqc.esm.js.map +0 -1
  173. package/dist/chunks/index-VGoZaoVm.esm.js +0 -2
  174. package/dist/chunks/index-VGoZaoVm.esm.js.map +0 -1
  175. package/dist/chunks/index-xYLcuL6Z.esm.js +0 -2
  176. package/dist/chunks/index-xYLcuL6Z.esm.js.map +0 -1
  177. package/dist/chunks/order-page-9B0nZVh1.esm.js +0 -2
  178. package/dist/chunks/order-page-9B0nZVh1.esm.js.map +0 -1
  179. package/dist/chunks/order-page-yM2h67MI.esm.js +0 -2
  180. package/dist/chunks/order-page-yM2h67MI.esm.js.map +0 -1
  181. package/dist/chunks/vendor-eeJfrOkP.esm.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c}from"./lit-yVXn5Cbs.esm.js";var q="";function H(t){q=t}function Ct(t=""){if(!q){const e=[...document.getElementsByTagName("script")],o=e.find(r=>r.hasAttribute("data-shoelace"));if(o)H(o.getAttribute("data-shoelace"));else{const r=e.find(i=>/shoelace(\.min)?\.js($|\?)/.test(i.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(i.src));let s="";r&&(s=r.getAttribute("src")),H(s.split("/").slice(0,-1).join("/"))}}return q.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}var st=Object.defineProperty,Et=Object.defineProperties,Lt=Object.getOwnPropertyDescriptor,At=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,W=(t,e)=>{if(e=Symbol[t])return e;throw Error("Symbol."+t+" is not defined")},at=(t,e,o)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,w=(t,e)=>{for(var o in e||(e={}))St.call(e,o)&&at(t,o,e[o]);if(it)for(var o of it(e))$t.call(e,o)&&at(t,o,e[o]);return t},K=(t,e)=>Et(t,At(e)),a=(t,e,o,r)=>{for(var s=r>1?void 0:r?Lt(e,o):e,i=t.length-1,l;i>=0;i--)(l=t[i])&&(s=(r?l(e,o,s):l(s))||s);return r&&s&&st(e,o,s),s},zt=function(t,e){this[0]=t,this[1]=e},Ft=t=>{var e=t[W("asyncIterator")],o=!1,r,s={};return e==null?(e=t[W("iterator")](),r=i=>s[i]=l=>e[i](l)):(e=e.call(t),r=i=>s[i]=l=>{if(o){if(o=!1,i==="throw")throw l;return l}return o=!0,{done:!1,value:new zt(new Promise(u=>{var g=e[i](l);if(!(g instanceof Object))throw TypeError("Object expected");u(g)}),1)}}),s[W("iterator")]=()=>s,r("next"),"throw"in e?r("throw"):s.throw=i=>{throw i},"return"in e&&r("return"),s},Bt={name:"default",resolver:t=>Ct(`assets/icons/${t}.svg`)},It=Bt,nt={caret:`
1
+ import{i as m,n,s as kt,x as k,e as I,r as D,a as Ct,b as C,c as M,d as O,o as c}from"./lit-HCWbxxT7.esm.js";var H="";function W(t){H=t}function Et(t=""){if(!H){const e=[...document.getElementsByTagName("script")],o=e.find(r=>r.hasAttribute("data-shoelace"));if(o)W(o.getAttribute("data-shoelace"));else{const r=e.find(a=>/shoelace(\.min)?\.js($|\?)/.test(a.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(a.src));let s="";r&&(s=r.getAttribute("src")),W(s.split("/").slice(0,-1).join("/"))}}return H.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}var at=Object.defineProperty,Lt=Object.defineProperties,At=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,K=(t,e)=>{if(e=Symbol[t])return e;throw Error("Symbol."+t+" is not defined")},nt=(t,e,o)=>e in t?at(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,w=(t,e)=>{for(var o in e||(e={}))St.call(e,o)&&nt(t,o,e[o]);if(it)for(var o of it(e))zt.call(e,o)&&nt(t,o,e[o]);return t},X=(t,e)=>Lt(t,$t(e)),i=(t,e,o,r)=>{for(var s=r>1?void 0:r?At(e,o):e,a=t.length-1,l;a>=0;a--)(l=t[a])&&(s=(r?l(e,o,s):l(s))||s);return r&&s&&at(e,o,s),s},Ft=function(t,e){this[0]=t,this[1]=e},Bt=t=>{var e=t[K("asyncIterator")],o=!1,r,s={};return e==null?(e=t[K("iterator")](),r=a=>s[a]=l=>e[a](l)):(e=e.call(t),r=a=>s[a]=l=>{if(o){if(o=!1,a==="throw")throw l;return l}return o=!0,{done:!1,value:new Ft(new Promise(u=>{var g=e[a](l);if(!(g instanceof Object))throw TypeError("Object expected");u(g)}),1)}}),s[K("iterator")]=()=>s,r("next"),"throw"in e?r("throw"):s.throw=a=>{throw a},"return"in e&&r("return"),s},It={name:"default",resolver:t=>Et(`assets/icons/${t}.svg`)},Dt=It,lt={caret:`
2
2
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
3
3
  <polyline points="6 9 12 15 18 9"></polyline>
4
4
  </svg>
@@ -90,7 +90,7 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
90
90
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
91
91
  <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
92
92
  </svg>
93
- `},Dt={name:"system",resolver:t=>t in nt?`data:image/svg+xml,${encodeURIComponent(nt[t])}`:""},Mt=Dt,M=[It,Mt],O=[];function Ot(t){O.push(t)}function Vt(t){O=O.filter(e=>e!==t)}function lt(t){return M.find(e=>e.name===t)}function Pt(t,e){Rt(t),M.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),O.forEach(o=>{o.library===t&&o.setIcon()})}function Rt(t){M=M.filter(e=>e.name!==t)}function Tt(t){return crypto.getRandomValues(new Uint8Array(t))}for(var dt=4096,V=[],v=0,X;v<256;v++)V[v]=(v+256).toString(16).substring(1);function Nt(){(!X||v+16>dt)&&(X=Tt(dt),v=0);for(var t=0,e,o="";t<16;t++)e=X[v+t],t==6?o+=V[e&15|64]:t==8?o+=V[e&63|128]:o+=V[e],t&1&&t>1&&t<11&&(o+="-");return v+=16,o}var k=y`
93
+ `},Mt={name:"system",resolver:t=>t in lt?`data:image/svg+xml,${encodeURIComponent(lt[t])}`:""},Ot=Mt,V=[Dt,Ot],P=[];function Vt(t){P.push(t)}function Pt(t){P=P.filter(e=>e!==t)}function dt(t){return V.find(e=>e.name===t)}function Rt(t,e){Tt(t),V.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),P.forEach(o=>{o.library===t&&o.setIcon()})}function Tt(t){V=V.filter(e=>e.name!==t)}var _=m`
94
94
  :host {
95
95
  box-sizing: border-box;
96
96
  }
@@ -104,8 +104,107 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
104
104
  [hidden] {
105
105
  display: none !important;
106
106
  }
107
- `,Ut=y`
108
- ${k}
107
+ `,Nt=m`
108
+ ${_}
109
+
110
+ :host {
111
+ display: inline-flex;
112
+ }
113
+
114
+ .badge {
115
+ display: inline-flex;
116
+ align-items: center;
117
+ justify-content: center;
118
+ font-size: max(12px, 0.75em);
119
+ font-weight: var(--sl-font-weight-semibold);
120
+ letter-spacing: var(--sl-letter-spacing-normal);
121
+ line-height: 1;
122
+ border-radius: var(--sl-border-radius-small);
123
+ border: solid 1px var(--sl-color-neutral-0);
124
+ white-space: nowrap;
125
+ padding: 0.35em 0.6em;
126
+ user-select: none;
127
+ -webkit-user-select: none;
128
+ cursor: inherit;
129
+ }
130
+
131
+ /* Variant modifiers */
132
+ .badge--primary {
133
+ background-color: var(--sl-color-primary-600);
134
+ color: var(--sl-color-neutral-0);
135
+ }
136
+
137
+ .badge--success {
138
+ background-color: var(--sl-color-success-600);
139
+ color: var(--sl-color-neutral-0);
140
+ }
141
+
142
+ .badge--neutral {
143
+ background-color: var(--sl-color-neutral-600);
144
+ color: var(--sl-color-neutral-0);
145
+ }
146
+
147
+ .badge--warning {
148
+ background-color: var(--sl-color-warning-600);
149
+ color: var(--sl-color-neutral-0);
150
+ }
151
+
152
+ .badge--danger {
153
+ background-color: var(--sl-color-danger-600);
154
+ color: var(--sl-color-neutral-0);
155
+ }
156
+
157
+ /* Pill modifier */
158
+ .badge--pill {
159
+ border-radius: var(--sl-border-radius-pill);
160
+ }
161
+
162
+ /* Pulse modifier */
163
+ .badge--pulse {
164
+ animation: pulse 1.5s infinite;
165
+ }
166
+
167
+ .badge--pulse.badge--primary {
168
+ --pulse-color: var(--sl-color-primary-600);
169
+ }
170
+
171
+ .badge--pulse.badge--success {
172
+ --pulse-color: var(--sl-color-success-600);
173
+ }
174
+
175
+ .badge--pulse.badge--neutral {
176
+ --pulse-color: var(--sl-color-neutral-600);
177
+ }
178
+
179
+ .badge--pulse.badge--warning {
180
+ --pulse-color: var(--sl-color-warning-600);
181
+ }
182
+
183
+ .badge--pulse.badge--danger {
184
+ --pulse-color: var(--sl-color-danger-600);
185
+ }
186
+
187
+ @keyframes pulse {
188
+ 0% {
189
+ box-shadow: 0 0 0 0 var(--pulse-color);
190
+ }
191
+ 70% {
192
+ box-shadow: 0 0 0 0.5rem transparent;
193
+ }
194
+ 100% {
195
+ box-shadow: 0 0 0 0 transparent;
196
+ }
197
+ }
198
+ `,p=class extends kt{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const o=new CustomEvent(t,w({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const r=customElements.get(t);if(!r){customElements.define(t,class extends e{},o);return}let s=" (unknown version)",a=s;"version"in e&&e.version&&(s=" v"+e.version),"version"in r&&r.version&&(a=" v"+r.version),!(s&&a&&s===a)&&console.warn(`Attempted to register <${t}>${s}, but <${t}>${a} has already been registered.`)}};p.version="2.11.2",p.dependencies={},i([n()],p.prototype,"dir",2),i([n()],p.prototype,"lang",2);var E=class extends p{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return k`
199
+ <span
200
+ part="base"
201
+ class=${I({badge:!0,"badge--primary":this.variant==="primary","badge--success":this.variant==="success","badge--neutral":this.variant==="neutral","badge--warning":this.variant==="warning","badge--danger":this.variant==="danger","badge--pill":this.pill,"badge--pulse":this.pulse})}
202
+ role="status"
203
+ >
204
+ <slot></slot>
205
+ </span>
206
+ `}};E.styles=Nt,i([n({reflect:!0})],E.prototype,"variant",2),i([n({type:Boolean,reflect:!0})],E.prototype,"pill",2),i([n({type:Boolean,reflect:!0})],E.prototype,"pulse",2),E.define("sl-badge");function Ut(t){return crypto.getRandomValues(new Uint8Array(t))}for(var ct=4096,R=[],v=0,Z;v<256;v++)R[v]=(v+256).toString(16).substring(1);function jt(){(!Z||v+16>ct)&&(Z=Ut(ct),v=0);for(var t=0,e,o="";t<16;t++)e=Z[v+t],t==6?o+=R[e&15|64]:t==8?o+=R[e&63|128]:o+=R[e],t&1&&t>1&&t<11&&(o+="-");return v+=16,o}var qt=m`
207
+ ${_}
109
208
 
110
209
  :host {
111
210
  --track-width: 2px;
@@ -162,13 +261,13 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
162
261
  stroke-dasharray: 0.01em, 2.75em;
163
262
  }
164
263
  }
165
- `;const Z=new Set,jt=new MutationObserver(ht),_=new Map;let ct=document.documentElement.dir||"ltr",ut=document.documentElement.lang||navigator.language,m;jt.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function qt(...t){t.map(e=>{const o=e.$code.toLowerCase();_.has(o)?_.set(o,Object.assign(Object.assign({},_.get(o)),e)):_.set(o,e),m||(m=e)}),ht()}function ht(){ct=document.documentElement.dir||"ltr",ut=document.documentElement.lang||navigator.language,[...Z.keys()].map(t=>{typeof t.requestUpdate=="function"&&t.requestUpdate()})}let Ht=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Z.add(this.host)}hostDisconnected(){Z.delete(this.host)}dir(){return`${this.host.dir||ct}`.toLowerCase()}lang(){return`${this.host.lang||ut}`.toLowerCase()}getTranslationData(e){var o,r;const s=new Intl.Locale(e.replace(/_/g,"-")),i=s?.language.toLowerCase(),l=(r=(o=s?.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",u=_.get(`${i}-${l}`),g=_.get(i);return{locale:s,language:i,region:l,primary:u,secondary:g}}exists(e,o){var r;const{primary:s,secondary:i}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(s&&s[e]||i&&i[e]||o.includeFallback&&m&&m[e])}term(e,...o){const{primary:r,secondary:s}=this.getTranslationData(this.lang());let i;if(r&&r[e])i=r[e];else if(s&&s[e])i=s[e];else if(m&&m[e])i=m[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof i=="function"?i(...o):i}date(e,o){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),o).format(e)}number(e,o){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),o).format(e)}relativeTime(e,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,o)}};var G=class extends Ht{},p=class extends xt{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const o=new CustomEvent(t,w({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const r=customElements.get(t);if(!r){customElements.define(t,class extends e{},o);return}let s=" (unknown version)",i=s;"version"in e&&e.version&&(s=" v"+e.version),"version"in r&&r.version&&(i=" v"+r.version),!(s&&i&&s===i)&&console.warn(`Attempted to register <${t}>${s}, but <${t}>${i} has already been registered.`)}};p.version="2.11.2",p.dependencies={},a([n()],p.prototype,"dir",2),a([n()],p.prototype,"lang",2);var bt=class extends p{constructor(){super(...arguments),this.localize=new G(this)}render(){return F`
264
+ `;const G=new Set,Ht=new MutationObserver(bt),x=new Map;let ut=document.documentElement.dir||"ltr",ht=document.documentElement.lang||navigator.language,y;Ht.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Wt(...t){t.map(e=>{const o=e.$code.toLowerCase();x.has(o)?x.set(o,Object.assign(Object.assign({},x.get(o)),e)):x.set(o,e),y||(y=e)}),bt()}function bt(){ut=document.documentElement.dir||"ltr",ht=document.documentElement.lang||navigator.language,[...G.keys()].map(t=>{typeof t.requestUpdate=="function"&&t.requestUpdate()})}let Kt=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){G.add(this.host)}hostDisconnected(){G.delete(this.host)}dir(){return`${this.host.dir||ut}`.toLowerCase()}lang(){return`${this.host.lang||ht}`.toLowerCase()}getTranslationData(e){var o,r;const s=new Intl.Locale(e.replace(/_/g,"-")),a=s?.language.toLowerCase(),l=(r=(o=s?.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",u=x.get(`${a}-${l}`),g=x.get(a);return{locale:s,language:a,region:l,primary:u,secondary:g}}exists(e,o){var r;const{primary:s,secondary:a}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(s&&s[e]||a&&a[e]||o.includeFallback&&y&&y[e])}term(e,...o){const{primary:r,secondary:s}=this.getTranslationData(this.lang());let a;if(r&&r[e])a=r[e];else if(s&&s[e])a=s[e];else if(y&&y[e])a=y[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof a=="function"?a(...o):a}date(e,o){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),o).format(e)}number(e,o){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),o).format(e)}relativeTime(e,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,o)}};var Y=class extends Kt{},pt=class extends p{constructor(){super(...arguments),this.localize=new Y(this)}render(){return k`
166
265
  <svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
167
266
  <circle class="spinner__track"></circle>
168
267
  <circle class="spinner__indicator"></circle>
169
268
  </svg>
170
- `}};bt.styles=Ut;var C=new WeakMap,E=new WeakMap,Y=new WeakSet,P=new WeakMap,Wt=class{constructor(t,e){this.handleFormData=o=>{const r=this.options.disabled(this.host),s=this.options.name(this.host),i=this.options.value(this.host),l=this.host.tagName.toLowerCase()==="sl-button";!r&&!l&&typeof s=="string"&&s.length>0&&typeof i<"u"&&(Array.isArray(i)?i.forEach(u=>{o.formData.append(s,u.toString())}):o.formData.append(s,i.toString()))},this.handleFormSubmit=o=>{var r;const s=this.options.disabled(this.host),i=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=C.get(this.form))==null||r.forEach(l=>{this.setUserInteracted(l,!0)})),this.form&&!this.form.noValidate&&!s&&!i(this.host)&&(o.preventDefault(),o.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),P.set(this.host,[])},this.handleInteraction=o=>{const r=P.get(this.host);r.includes(o.type)||r.push(o.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=w({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){const r=o.getRootNode(),s=o.getAttribute("form");if(s)return r.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var r;return(r=o.disabled)!=null?r:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,r)=>o.value=r,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),P.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),P.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,C.has(this.form)?C.get(this.form).add(this.host):C.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),E.has(this.form)||(E.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=C.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),E.has(this.form)&&(this.form.reportValidity=E.get(this.form),E.delete(this.form))),this.form=void 0}setUserInteracted(t,e){e?Y.add(t):Y.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{e.hasAttribute(r)&&o.setAttribute(r,e.getAttribute(r))})),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=!!Y.has(e),r=!!e.required;e.toggleAttribute("data-required",r),e.toggleAttribute("data-optional",!r),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t?.preventDefault()}},J=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze(K(w({},J),{valid:!1,valueMissing:!0})),Object.freeze(K(w({},J),{valid:!1,customError:!0}));var Kt=y`
171
- ${k}
269
+ `}};pt.styles=qt;var L=new WeakMap,A=new WeakMap,J=new WeakSet,T=new WeakMap,Xt=class{constructor(t,e){this.handleFormData=o=>{const r=this.options.disabled(this.host),s=this.options.name(this.host),a=this.options.value(this.host),l=this.host.tagName.toLowerCase()==="sl-button";!r&&!l&&typeof s=="string"&&s.length>0&&typeof a<"u"&&(Array.isArray(a)?a.forEach(u=>{o.formData.append(s,u.toString())}):o.formData.append(s,a.toString()))},this.handleFormSubmit=o=>{var r;const s=this.options.disabled(this.host),a=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=L.get(this.form))==null||r.forEach(l=>{this.setUserInteracted(l,!0)})),this.form&&!this.form.noValidate&&!s&&!a(this.host)&&(o.preventDefault(),o.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),T.set(this.host,[])},this.handleInteraction=o=>{const r=T.get(this.host);r.includes(o.type)||r.push(o.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=w({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){const r=o.getRootNode(),s=o.getAttribute("form");if(s)return r.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var r;return(r=o.disabled)!=null?r:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,r)=>o.value=r,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),T.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),T.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,L.has(this.form)?L.get(this.form).add(this.host):L.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),A.has(this.form)||(A.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=L.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),A.has(this.form)&&(this.form.reportValidity=A.get(this.form),A.delete(this.form))),this.form=void 0}setUserInteracted(t,e){e?J.add(t):J.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{e.hasAttribute(r)&&o.setAttribute(r,e.getAttribute(r))})),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=!!J.has(e),r=!!e.required;e.toggleAttribute("data-required",r),e.toggleAttribute("data-optional",!r),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t?.preventDefault()}},Q=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze(X(w({},Q),{valid:!1,valueMissing:!0})),Object.freeze(X(w({},Q),{valid:!1,customError:!0}));var Zt=m`
270
+ ${_}
172
271
 
173
272
  :host {
174
273
  display: inline-block;
@@ -762,8 +861,8 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
762
861
  :host(.sl-button-group__button[checked]) {
763
862
  z-index: 2;
764
863
  }
765
- `,ft=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=o=>{const r=o.target;(this.slotNames.includes("[default]")&&!r.name||r.name&&this.slotNames.includes(r.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},Xt=y`
766
- ${k}
864
+ `,ft=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=o=>{const r=o.target;(this.slotNames.includes("[default]")&&!r.name||r.name&&this.slotNames.includes(r.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},Gt=m`
865
+ ${_}
767
866
 
768
867
  :host {
769
868
  display: inline-block;
@@ -777,12 +876,12 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
777
876
  height: 100%;
778
877
  width: 100%;
779
878
  }
780
- `;function R(t,e){const o=w({waitUntilFirstUpdate:!1},e);return(r,s)=>{const{update:i}=r,l=Array.isArray(t)?t:[t];r.update=function(u){l.forEach(g=>{const U=g;if(u.has(U)){const ot=u.get(U),rt=this[U];ot!==rt&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[s](ot,rt)}}),i.call(this,u)}}}var L=Symbol(),T=Symbol(),Q,tt=new Map,b=class extends p{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let r;if(e?.spriteSheet)return F`<svg part="svg">
879
+ `;function N(t,e){const o=w({waitUntilFirstUpdate:!1},e);return(r,s)=>{const{update:a}=r,l=Array.isArray(t)?t:[t];r.update=function(u){l.forEach(g=>{const q=g;if(u.has(q)){const rt=u.get(q),st=this[q];rt!==st&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[s](rt,st)}}),a.call(this,u)}}}var $=Symbol(),U=Symbol(),tt,et=new Map,b=class extends p{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let r;if(e?.spriteSheet)return k`<svg part="svg">
781
880
  <use part="use" href="${t}"></use>
782
- </svg>`;try{if(r=await fetch(t,{mode:"cors"}),!r.ok)return r.status===410?L:T}catch{return T}try{const s=document.createElement("div");s.innerHTML=await r.text();const i=s.firstElementChild;if(((o=i?.tagName)==null?void 0:o.toLowerCase())!=="svg")return L;Q||(Q=new DOMParser);const u=Q.parseFromString(i.outerHTML,"text/html").body.querySelector("svg");return u?(u.part.add("svg"),document.adoptNode(u)):L}catch{return L}}connectedCallback(){super.connectedCallback(),Ot(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Vt(this)}getIconSource(){const t=lt(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),r=o?lt(this.library):void 0;if(!e){this.svg=null;return}let s=tt.get(e);if(s||(s=this.resolveIcon(e,r),tt.set(e,s)),!this.initialRender)return;const i=await s;if(i===T&&tt.delete(e),e===this.getIconSource().url){if(kt(i)){this.svg=i;return}switch(i){case T:case L:this.svg=null,this.emit("sl-error");break;default:this.svg=i.cloneNode(!0),(t=r?.mutator)==null||t.call(r,this.svg),this.emit("sl-load")}}}render(){return this.svg}};b.styles=Xt,a([B()],b.prototype,"svg",2),a([n({reflect:!0})],b.prototype,"name",2),a([n()],b.prototype,"src",2),a([n()],b.prototype,"label",2),a([n({reflect:!0})],b.prototype,"library",2),a([R("label")],b.prototype,"handleLabelChange",1),a([R(["name","src","library"])],b.prototype,"setIcon",1);var d=class extends p{constructor(){super(...arguments),this.formControlController=new Wt(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");return e.getElementById(o)}return t.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new ft(this,"[default]","prefix","suffix"),this.localize=new G(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:J}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?I`a`:I`button`;return D`
881
+ </svg>`;try{if(r=await fetch(t,{mode:"cors"}),!r.ok)return r.status===410?$:U}catch{return U}try{const s=document.createElement("div");s.innerHTML=await r.text();const a=s.firstElementChild;if(((o=a?.tagName)==null?void 0:o.toLowerCase())!=="svg")return $;tt||(tt=new DOMParser);const u=tt.parseFromString(a.outerHTML,"text/html").body.querySelector("svg");return u?(u.part.add("svg"),document.adoptNode(u)):$}catch{return $}}connectedCallback(){super.connectedCallback(),Vt(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Pt(this)}getIconSource(){const t=dt(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),r=o?dt(this.library):void 0;if(!e){this.svg=null;return}let s=et.get(e);if(s||(s=this.resolveIcon(e,r),et.set(e,s)),!this.initialRender)return;const a=await s;if(a===U&&et.delete(e),e===this.getIconSource().url){if(Ct(a)){this.svg=a;return}switch(a){case U:case $:this.svg=null,this.emit("sl-error");break;default:this.svg=a.cloneNode(!0),(t=r?.mutator)==null||t.call(r,this.svg),this.emit("sl-load")}}}render(){return this.svg}};b.styles=Gt,i([D()],b.prototype,"svg",2),i([n({reflect:!0})],b.prototype,"name",2),i([n()],b.prototype,"src",2),i([n()],b.prototype,"label",2),i([n({reflect:!0})],b.prototype,"library",2),i([N("label")],b.prototype,"handleLabelChange",1),i([N(["name","src","library"])],b.prototype,"setIcon",1);var d=class extends p{constructor(){super(...arguments),this.formControlController=new Xt(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");return e.getElementById(o)}return t.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new ft(this,"[default]","prefix","suffix"),this.localize=new Y(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:Q}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?M`a`:M`button`;return O`
783
882
  <${e}
784
883
  part="base"
785
- class=${j({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
884
+ class=${I({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
786
885
  ?disabled=${c(t?void 0:this.disabled)}
787
886
  type=${c(t?void 0:this.type)}
788
887
  title=${this.title}
@@ -803,11 +902,11 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
803
902
  <slot name="prefix" part="prefix" class="button__prefix"></slot>
804
903
  <slot part="label" class="button__label"></slot>
805
904
  <slot name="suffix" part="suffix" class="button__suffix"></slot>
806
- ${this.caret?D` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
807
- ${this.loading?D`<sl-spinner part="spinner"></sl-spinner>`:""}
905
+ ${this.caret?O` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
906
+ ${this.loading?O`<sl-spinner part="spinner"></sl-spinner>`:""}
808
907
  </${e}>
809
- `}};d.styles=Kt,d.dependencies={"sl-icon":b,"sl-spinner":bt},a([x(".button")],d.prototype,"button",2),a([B()],d.prototype,"hasFocus",2),a([B()],d.prototype,"invalid",2),a([n()],d.prototype,"title",2),a([n({reflect:!0})],d.prototype,"variant",2),a([n({reflect:!0})],d.prototype,"size",2),a([n({type:Boolean,reflect:!0})],d.prototype,"caret",2),a([n({type:Boolean,reflect:!0})],d.prototype,"disabled",2),a([n({type:Boolean,reflect:!0})],d.prototype,"loading",2),a([n({type:Boolean,reflect:!0})],d.prototype,"outline",2),a([n({type:Boolean,reflect:!0})],d.prototype,"pill",2),a([n({type:Boolean,reflect:!0})],d.prototype,"circle",2),a([n()],d.prototype,"type",2),a([n()],d.prototype,"name",2),a([n()],d.prototype,"value",2),a([n()],d.prototype,"href",2),a([n()],d.prototype,"target",2),a([n()],d.prototype,"rel",2),a([n()],d.prototype,"download",2),a([n()],d.prototype,"form",2),a([n({attribute:"formaction"})],d.prototype,"formAction",2),a([n({attribute:"formenctype"})],d.prototype,"formEnctype",2),a([n({attribute:"formmethod"})],d.prototype,"formMethod",2),a([n({attribute:"formnovalidate",type:Boolean})],d.prototype,"formNoValidate",2),a([n({attribute:"formtarget"})],d.prototype,"formTarget",2),a([R("disabled",{waitUntilFirstUpdate:!0})],d.prototype,"handleDisabledChange",1),d.define("sl-button");var Zt={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>t===0?"No options selected":t===1?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};qt(Zt);function Gt(t){return!!(t.offsetParent||t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Yt(t){const e=t.tagName.toLowerCase();return t.getAttribute("tabindex")==="-1"||t.hasAttribute("disabled")||e==="input"&&t.getAttribute("type")==="radio"&&!t.hasAttribute("checked")||!Gt(t)||window.getComputedStyle(t).visibility==="hidden"?!1:(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(e)}function pt(t){const e=[];function o(r){if(r instanceof Element){if(r.hasAttribute("inert"))return;!e.includes(r)&&Yt(r)&&e.push(r);const s=i=>{var l;return((l=i.getRootNode({composed:!0}))==null?void 0:l.host)!==t};r instanceof HTMLSlotElement&&s(r)&&r.assignedElements({flatten:!0}).forEach(i=>{o(i)}),r.shadowRoot!==null&&r.shadowRoot.mode==="open"&&o(r.shadowRoot)}[...r.children].forEach(s=>o(s))}return o(t),e.sort((r,s)=>{const i=Number(r.getAttribute("tabindex"))||0;return(Number(s.getAttribute("tabindex"))||0)-i})}function*gt(t=document.activeElement){t!=null&&(yield t,"shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"&&(yield*Ft(gt(t.shadowRoot.activeElement))))}function Jt(){return[...gt()].pop()}var A=[],Qt=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.checkFocus()},this.handleKeyDown=e=>{var o,r;if(e.key!=="Tab"||this.isExternalActivated)return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward",e.preventDefault();const s=pt(this.element),i=Jt();let l=s.findIndex(g=>g===i);if(l===-1){this.currentFocus=s[0],(o=this.currentFocus)==null||o.focus({preventScroll:!0});return}const u=this.tabDirection==="forward"?1:-1;l+u>=s.length?l=0:l+u<0?l=s.length-1:l+=u,this.currentFocus=s[l],(r=this.currentFocus)==null||r.focus({preventScroll:!0}),setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t}activate(){A.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){A=A.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return A[A.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=pt(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r=this.tabDirection==="forward"?e:o;typeof r?.focus=="function"&&(this.currentFocus=r,r.focus({preventScroll:!0}))}}}},et=new Set;function te(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function vt(t){if(et.add(t),!document.body.classList.contains("sl-scroll-lock")){const e=te();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function mt(t){et.delete(t),et.size===0&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}var ee=y`
810
- ${k}
908
+ `}};d.styles=Zt,d.dependencies={"sl-icon":b,"sl-spinner":pt},i([C(".button")],d.prototype,"button",2),i([D()],d.prototype,"hasFocus",2),i([D()],d.prototype,"invalid",2),i([n()],d.prototype,"title",2),i([n({reflect:!0})],d.prototype,"variant",2),i([n({reflect:!0})],d.prototype,"size",2),i([n({type:Boolean,reflect:!0})],d.prototype,"caret",2),i([n({type:Boolean,reflect:!0})],d.prototype,"disabled",2),i([n({type:Boolean,reflect:!0})],d.prototype,"loading",2),i([n({type:Boolean,reflect:!0})],d.prototype,"outline",2),i([n({type:Boolean,reflect:!0})],d.prototype,"pill",2),i([n({type:Boolean,reflect:!0})],d.prototype,"circle",2),i([n()],d.prototype,"type",2),i([n()],d.prototype,"name",2),i([n()],d.prototype,"value",2),i([n()],d.prototype,"href",2),i([n()],d.prototype,"target",2),i([n()],d.prototype,"rel",2),i([n()],d.prototype,"download",2),i([n()],d.prototype,"form",2),i([n({attribute:"formaction"})],d.prototype,"formAction",2),i([n({attribute:"formenctype"})],d.prototype,"formEnctype",2),i([n({attribute:"formmethod"})],d.prototype,"formMethod",2),i([n({attribute:"formnovalidate",type:Boolean})],d.prototype,"formNoValidate",2),i([n({attribute:"formtarget"})],d.prototype,"formTarget",2),i([N("disabled",{waitUntilFirstUpdate:!0})],d.prototype,"handleDisabledChange",1),d.define("sl-button");var Yt={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>t===0?"No options selected":t===1?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};Wt(Yt);function Jt(t){return!!(t.offsetParent||t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Qt(t){const e=t.tagName.toLowerCase();return t.getAttribute("tabindex")==="-1"||t.hasAttribute("disabled")||e==="input"&&t.getAttribute("type")==="radio"&&!t.hasAttribute("checked")||!Jt(t)||window.getComputedStyle(t).visibility==="hidden"?!1:(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(e)}function gt(t){const e=[];function o(r){if(r instanceof Element){if(r.hasAttribute("inert"))return;!e.includes(r)&&Qt(r)&&e.push(r);const s=a=>{var l;return((l=a.getRootNode({composed:!0}))==null?void 0:l.host)!==t};r instanceof HTMLSlotElement&&s(r)&&r.assignedElements({flatten:!0}).forEach(a=>{o(a)}),r.shadowRoot!==null&&r.shadowRoot.mode==="open"&&o(r.shadowRoot)}[...r.children].forEach(s=>o(s))}return o(t),e.sort((r,s)=>{const a=Number(r.getAttribute("tabindex"))||0;return(Number(s.getAttribute("tabindex"))||0)-a})}function*vt(t=document.activeElement){t!=null&&(yield t,"shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"&&(yield*Bt(vt(t.shadowRoot.activeElement))))}function te(){return[...vt()].pop()}var S=[],ee=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.checkFocus()},this.handleKeyDown=e=>{var o,r;if(e.key!=="Tab"||this.isExternalActivated)return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward",e.preventDefault();const s=gt(this.element),a=te();let l=s.findIndex(g=>g===a);if(l===-1){this.currentFocus=s[0],(o=this.currentFocus)==null||o.focus({preventScroll:!0});return}const u=this.tabDirection==="forward"?1:-1;l+u>=s.length?l=0:l+u<0?l=s.length-1:l+=u,this.currentFocus=s[l],(r=this.currentFocus)==null||r.focus({preventScroll:!0}),setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t}activate(){S.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){S=S.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return S[S.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=gt(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r=this.tabDirection==="forward"?e:o;typeof r?.focus=="function"&&(this.currentFocus=r,r.focus({preventScroll:!0}))}}}},ot=new Set;function oe(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function mt(t){if(ot.add(t),!document.body.classList.contains("sl-scroll-lock")){const e=oe();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function yt(t){ot.delete(t),ot.size===0&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}var re=m`
909
+ ${_}
811
910
 
812
911
  :host {
813
912
  --width: 31rem;
@@ -925,8 +1024,8 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
925
1024
  border: solid 1px var(--sl-color-neutral-0);
926
1025
  }
927
1026
  }
928
- `,oe=y`
929
- ${k}
1027
+ `,se=m`
1028
+ ${_}
930
1029
 
931
1030
  :host {
932
1031
  display: inline-block;
@@ -974,10 +1073,10 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
974
1073
  .icon-button__icon {
975
1074
  pointer-events: none;
976
1075
  }
977
- `,h=class extends p{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?I`a`:I`button`;return D`
1076
+ `,h=class extends p{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?M`a`:M`button`;return O`
978
1077
  <${e}
979
1078
  part="base"
980
- class=${j({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
1079
+ class=${I({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
981
1080
  ?disabled=${c(t?void 0:this.disabled)}
982
1081
  type=${c(t?void 0:"button")}
983
1082
  href=${c(t?this.href:void 0)}
@@ -1000,10 +1099,10 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
1000
1099
  aria-hidden="true"
1001
1100
  ></sl-icon>
1002
1101
  </${e}>
1003
- `}};h.styles=oe,h.dependencies={"sl-icon":b},a([x(".icon-button")],h.prototype,"button",2),a([B()],h.prototype,"hasFocus",2),a([n()],h.prototype,"name",2),a([n()],h.prototype,"library",2),a([n()],h.prototype,"src",2),a([n()],h.prototype,"href",2),a([n()],h.prototype,"target",2),a([n()],h.prototype,"download",2),a([n()],h.prototype,"label",2),a([n({type:Boolean,reflect:!0})],h.prototype,"disabled",2);var yt=new Map,re=new WeakMap;function se(t){return t??{keyframes:[],options:{duration:0}}}function wt(t,e){return e.toLowerCase()==="rtl"?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function S(t,e){yt.set(t,se(e))}function $(t,e,o){const r=re.get(t);if(r?.[e])return wt(r[e],o.dir);const s=yt.get(e);return s?wt(s,o.dir):{keyframes:[],options:{duration:0}}}function _t(t,e){return new Promise(o=>{function r(s){s.target===t&&(t.removeEventListener(e,r),o())}t.addEventListener(e,r)})}function z(t,e,o){return new Promise(r=>{if(o?.duration===1/0)throw new Error("Promise-based animations must be finite.");const s=t.animate(e,K(w({},o),{duration:ie()?0:o.duration}));s.addEventListener("cancel",r,{once:!0}),s.addEventListener("finish",r,{once:!0})})}function ie(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function N(t){return Promise.all(t.getAnimations().map(e=>new Promise(o=>{const r=requestAnimationFrame(o);e.addEventListener("cancel",()=>r,{once:!0}),e.addEventListener("finish",()=>r,{once:!0}),e.cancel()})))}var f=class extends p{constructor(){super(...arguments),this.hasSlotController=new ft(this,"footer"),this.localize=new G(this),this.modal=new Qt(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),vt(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),mt(this)}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const o=$(this,"dialog.denyClose",{dir:this.localize.dir()});z(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),vt(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([N(this.dialog),N(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=$(this,"dialog.show",{dir:this.localize.dir()}),o=$(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([z(this.panel,e.keyframes,e.options),z(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([N(this.dialog),N(this.overlay)]);const t=$(this,"dialog.hide",{dir:this.localize.dir()}),e=$(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([z(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),z(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,mt(this);const o=this.originalTrigger;typeof o?.focus=="function"&&setTimeout(()=>o.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,_t(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,_t(this,"sl-after-hide")}render(){return F`
1102
+ `}};h.styles=se,h.dependencies={"sl-icon":b},i([C(".icon-button")],h.prototype,"button",2),i([D()],h.prototype,"hasFocus",2),i([n()],h.prototype,"name",2),i([n()],h.prototype,"library",2),i([n()],h.prototype,"src",2),i([n()],h.prototype,"href",2),i([n()],h.prototype,"target",2),i([n()],h.prototype,"download",2),i([n()],h.prototype,"label",2),i([n({type:Boolean,reflect:!0})],h.prototype,"disabled",2);var wt=new Map,ae=new WeakMap;function ie(t){return t??{keyframes:[],options:{duration:0}}}function _t(t,e){return e.toLowerCase()==="rtl"?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function z(t,e){wt.set(t,ie(e))}function F(t,e,o){const r=ae.get(t);if(r?.[e])return _t(r[e],o.dir);const s=wt.get(e);return s?_t(s,o.dir):{keyframes:[],options:{duration:0}}}function xt(t,e){return new Promise(o=>{function r(s){s.target===t&&(t.removeEventListener(e,r),o())}t.addEventListener(e,r)})}function B(t,e,o){return new Promise(r=>{if(o?.duration===1/0)throw new Error("Promise-based animations must be finite.");const s=t.animate(e,X(w({},o),{duration:ne()?0:o.duration}));s.addEventListener("cancel",r,{once:!0}),s.addEventListener("finish",r,{once:!0})})}function ne(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function j(t){return Promise.all(t.getAnimations().map(e=>new Promise(o=>{const r=requestAnimationFrame(o);e.addEventListener("cancel",()=>r,{once:!0}),e.addEventListener("finish",()=>r,{once:!0}),e.cancel()})))}var f=class extends p{constructor(){super(...arguments),this.hasSlotController=new ft(this,"footer"),this.localize=new Y(this),this.modal=new ee(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),mt(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),yt(this)}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const o=F(this,"dialog.denyClose",{dir:this.localize.dir()});B(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),mt(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([j(this.dialog),j(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=F(this,"dialog.show",{dir:this.localize.dir()}),o=F(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([B(this.panel,e.keyframes,e.options),B(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([j(this.dialog),j(this.overlay)]);const t=F(this,"dialog.hide",{dir:this.localize.dir()}),e=F(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([B(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),B(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,yt(this);const o=this.originalTrigger;typeof o?.focus=="function"&&setTimeout(()=>o.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,xt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,xt(this,"sl-after-hide")}render(){return k`
1004
1103
  <div
1005
1104
  part="base"
1006
- class=${j({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
1105
+ class=${I({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
1007
1106
  >
1008
1107
  <div part="overlay" class="dialog__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>
1009
1108
 
@@ -1017,7 +1116,7 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
1017
1116
  aria-labelledby=${c(this.noHeader?void 0:"title")}
1018
1117
  tabindex="-1"
1019
1118
  >
1020
- ${this.noHeader?"":F`
1119
+ ${this.noHeader?"":k`
1021
1120
  <header part="header" class="dialog__header">
1022
1121
  <h2 part="title" class="dialog__title" id="title">
1023
1122
  <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(65279)} </slot>
@@ -1044,5 +1143,5 @@ import{i as y,n,s as xt,x as F,r as B,e as kt,a as x,b as I,c as D,d as j,o as c
1044
1143
  </footer>
1045
1144
  </div>
1046
1145
  </div>
1047
- `}};f.styles=ee,f.dependencies={"sl-icon-button":h},a([x(".dialog")],f.prototype,"dialog",2),a([x(".dialog__panel")],f.prototype,"panel",2),a([x(".dialog__overlay")],f.prototype,"overlay",2),a([n({type:Boolean,reflect:!0})],f.prototype,"open",2),a([n({reflect:!0})],f.prototype,"label",2),a([n({attribute:"no-header",type:Boolean,reflect:!0})],f.prototype,"noHeader",2),a([R("open",{waitUntilFirstUpdate:!0})],f.prototype,"handleOpenChange",1),S("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),S("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),S("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),S("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),S("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),f.define("sl-dialog"),b.define("sl-icon"),h.define("sl-icon-button");export{Pt as r,H as s,Nt as v};
1048
- //# sourceMappingURL=vendor-eeJfrOkP.esm.js.map
1146
+ `}};f.styles=re,f.dependencies={"sl-icon-button":h},i([C(".dialog")],f.prototype,"dialog",2),i([C(".dialog__panel")],f.prototype,"panel",2),i([C(".dialog__overlay")],f.prototype,"overlay",2),i([n({type:Boolean,reflect:!0})],f.prototype,"open",2),i([n({reflect:!0})],f.prototype,"label",2),i([n({attribute:"no-header",type:Boolean,reflect:!0})],f.prototype,"noHeader",2),i([N("open",{waitUntilFirstUpdate:!0})],f.prototype,"handleOpenChange",1),z("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),z("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),z("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),z("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),z("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),f.define("sl-dialog"),b.define("sl-icon"),h.define("sl-icon-button");export{Rt as r,W as s,jt as v};
1147
+ //# sourceMappingURL=vendor-h5FNKy-G.esm.js.map