@cupra/ui-react 1.0.0-canary.15 → 1.0.0-canary.16

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 (72) hide show
  1. package/dist/components/Accordion/Accordion.js +8 -0
  2. package/dist/components/Avatar/Avatar.js +11 -0
  3. package/dist/components/Bullets/Bullets.js +6 -0
  4. package/dist/components/Button/Button.js +20 -0
  5. package/dist/components/CarouselIndicator/CarouselIndicator.js +9 -0
  6. package/dist/components/Checkbox/Checkbox.js +11 -0
  7. package/dist/components/Chip/Chip.js +9 -0
  8. package/dist/components/Chips/Chips.js +13 -0
  9. package/dist/components/Currency/Currency.js +9 -0
  10. package/dist/components/Dialog/Dialog.js +15 -0
  11. package/dist/components/DialogBody/DialogBody.js +9 -0
  12. package/dist/components/DialogFooter/DialogFooter.js +9 -0
  13. package/dist/components/DialogHeader/DialogHeader.js +9 -0
  14. package/dist/components/Divider/Divider.js +8 -0
  15. package/dist/components/Hyperlink/Hyperlink.js +11 -0
  16. package/dist/components/Icon/Icon.js +9 -0
  17. package/dist/components/IconButton/IconButton.js +19 -0
  18. package/dist/components/Input/Input.js +14 -0
  19. package/dist/components/InteractiveCard/InteractiveCard.js +26 -0
  20. package/dist/components/LinkButton/LinkButton.js +11 -0
  21. package/dist/components/Loader/Loader.js +24 -0
  22. package/dist/components/Logo/Logo.js +9 -0
  23. package/dist/components/MapPin/MapPin.js +11 -0
  24. package/dist/components/Modal/Modal.js +49 -0
  25. package/dist/components/PasswordInput/PasswordInput.js +39 -0
  26. package/dist/components/PickerItem/PickerItem.js +21 -0
  27. package/dist/components/Radio/Radio.js +14 -0
  28. package/dist/components/RadioButton/RadioButton.js +10 -0
  29. package/dist/components/RadioButtonGroup/RadioButtonGroup.js +10 -0
  30. package/dist/components/Search/Search.js +8 -0
  31. package/dist/components/SearchInput/SearchInput.js +46 -0
  32. package/dist/components/SecondaryNavigation/SecondaryNavigation.js +16 -0
  33. package/dist/components/SegmentedControl/SegmentedControl.js +11 -0
  34. package/dist/components/Select/Select.js +6 -0
  35. package/dist/components/Selection/Selection.js +9 -0
  36. package/dist/components/SidebarNavigation/SidebarNavigation.js +15 -0
  37. package/dist/components/Slider/Slider.js +16 -0
  38. package/dist/components/StaticBox/StaticBox.js +20 -0
  39. package/dist/components/Stepper/Stepper.js +6 -0
  40. package/dist/components/Tabs/Tabs.js +19 -0
  41. package/dist/components/Tag/Tag.js +11 -0
  42. package/dist/components/Text/Text.js +9 -0
  43. package/dist/components/TextInput/TextInput.js +44 -0
  44. package/dist/components/Textarea/Textarea.js +57 -0
  45. package/dist/components/ThemeProvider/ThemeProvider.js +6 -0
  46. package/dist/components/Toast/Toast.js +16 -0
  47. package/dist/components/ToastMessage/ToastMessage.js +13 -0
  48. package/dist/components/ToggleButton/ToggleButton.js +11 -0
  49. package/dist/components/ToggleSwitch/ToggleSwitch.js +22 -0
  50. package/dist/components/Tooltip/Tooltip.js +24 -0
  51. package/dist/hooks/useBreakpoint.js +42 -0
  52. package/dist/hooks/useEventListeners.js +26 -0
  53. package/dist/hooks/useHandleEvent.js +25 -0
  54. package/dist/hooks/useResizeObserver/useResizeObserver.js +14 -0
  55. package/dist/index.d.ts +0 -2
  56. package/dist/index.js +112 -3309
  57. package/dist/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +10 -0
  58. package/dist/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  59. package/dist/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
  60. package/dist/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +572 -0
  61. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js +12 -0
  62. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js +49 -0
  63. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js +131 -0
  64. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js +187 -0
  65. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js +27 -0
  66. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js +147 -0
  67. package/dist/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js +56 -0
  68. package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +18 -0
  69. package/dist/packages/ui-kit/dist-react/index.js +9226 -0
  70. package/dist/packages/ui-kit/dist-react/utils/breakpoints.js +11 -0
  71. package/dist/packages/ui-kit/dist-react/utils/debounce.js +11 -0
  72. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,3309 +1,112 @@
1
- (function(x,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],y):(x=typeof globalThis<"u"?globalThis:x||self,y(x.CupraUiReact={},x.jsxRuntime,x.React))})(this,(function(x,y,E){"use strict";const et={xs:0,s:480,m:768,l:1024,xl:1440,xxl:1920},vm={xs:`@media(min-width: ${et.xs}px)`,s:`@media(min-width: ${et.s}px)`,m:`@media(min-width: ${et.m}px)`,l:`@media(min-width: ${et.l}px)`,xl:`@media(min-width: ${et.xl}px)`,xxl:`@media(min-width: ${et.xxl}px)`};function Hr({func:e,milliseconds:t=100}){let s;return function(r){clearTimeout(s),s=setTimeout(()=>{e(r)},t)}}/**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */let oo=class extends Event{constructor(e,t,s,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=s,this.subscribe=r??!1}};/**
6
- * @license
7
- * Copyright 2021 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- *//**
10
- * @license
11
- * Copyright 2021 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */let qr=class{constructor(e,t,s,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,o)=>{this.unsubscribe&&(this.unsubscribe!==o&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,o)),this.unsubscribe=o},this.host=e,t.context!==void 0){const i=t;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=t,this.callback=s,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new oo(this.context,this.host,this.t,this.subscribe))}};/**
14
- * @license
15
- * Copyright 2021 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */let Ra=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){const s=t||!Object.is(e,this.o);this.o=e,s&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:s}]of this.subscriptions)t(this.o,s)},e!==void 0&&(this.value=e)}addCallback(e,t,s){if(!s)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});const{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}};/**
18
- * @license
19
- * Copyright 2021 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */let Va=class extends Event{constructor(e,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}},no=class extends Ra{constructor(e,t,s){var r,i;super(t.context!==void 0?t.initialValue:s),this.onContextRequest=o=>{if(o.context!==this.context)return;const n=o.contextTarget??o.composedPath()[0];n!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,n,o.subscribe))},this.onProviderRequest=o=>{if(o.context!==this.context||(o.contextTarget??o.composedPath()[0])===this.host)return;const n=new Set;for(const[l,{consumerHost:c}]of this.subscriptions)n.has(l)||(n.add(l),c.dispatchEvent(new oo(this.context,c,l,!0)));o.stopPropagation()},this.host=e,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(i=(r=this.host).addController)==null||i.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Va(this.context,this.host))}};/**
22
- * @license
23
- * Copyright 2017 Google LLC
24
- * SPDX-License-Identifier: BSD-3-Clause
25
- */function je({context:e}){return(t,s)=>{const r=new WeakMap;if(typeof s=="object")return{get(){return t.get.call(this)},set(i){return r.get(this).setValue(i),t.set.call(this,i)},init(i){return r.set(this,new no(this,{context:e,initialValue:i})),i}};{t.constructor.addInitializer((n=>{r.set(n,new no(n,{context:e}))}));const i=Object.getOwnPropertyDescriptor(t,s);let o;if(i===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(l){r.get(this).setValue(l),n.set(this,l)},configurable:!0,enumerable:!0}}else{const n=i.set;o={...i,set(l){r.get(this).setValue(l),n==null||n.call(this,l)}}}return void Object.defineProperty(t,s,o)}}}/**
26
- * @license
27
- * Copyright 2022 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- */function ao({context:e,subscribe:t}){return(s,r)=>{typeof r=="object"?r.addInitializer((function(){new qr(this,{context:e,callback:i=>{s.set.call(this,i)},subscribe:t})})):s.constructor.addInitializer((i=>{new qr(i,{context:e,callback:o=>{i[r]=o},subscribe:t})}))}}const Wr="theme",Me=(class Hs{constructor(){this.subscribers={},this.lastPublishedData={}}static getInstance(){return Hs.instance||(Hs.instance=new Hs),Hs.instance}subscribe(t,s){return this.subscribers[t]||(this.subscribers[t]=[]),this.subscribers[t].push(s),this.lastPublishedData[t]}unsubscribe(t,s){this.subscribers[t]&&(this.subscribers[t]=this.subscribers[t].filter(r=>r!==s))}publish(t,s){this.lastPublishedData[t]=s,this.subscribers[t]&&this.subscribers[t].forEach(r=>{try{r(s)}catch(i){console.error(`Error in subscriber for event "${t}":`,i)}})}}).getInstance(),Ua=(class qs{constructor(){this.stylePromises=new Map,this.getStyles=async({componentName:t,theme:s})=>{if(!s||!t)return;const r=`https://ds-assets.cupra.com/1.0.0-canary.9/styles/${s}/components/${t}.css`,i=this.getCachedStyleSheetPromise({url:r});if(i)return i;const o=this.fetchStyle({url:r}).then(n=>(n||this.stylePromises.delete(r),n));return this.stylePromises.set(r,o),this.stylePromises.get(r)}}async fetchStyle({url:t}){try{const s=await fetch(t,{cache:"force-cache"});if(s.ok)return s.text()}catch(s){console.error(`Failed to fetch Style Sheet "${t}":`,s)}}getCachedStyleSheetPromise({url:t}){return this.stylePromises.get(t)}static getInstance(){return qs.instance||(qs.instance=new qs),qs.instance}}).getInstance();/**
30
- * @license
31
- * Copyright 2019 Google LLC
32
- * SPDX-License-Identifier: BSD-3-Clause
33
- */const Ks=globalThis,Gr=Ks.ShadowRoot&&(Ks.ShadyCSS===void 0||Ks.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kr=Symbol(),lo=new WeakMap;let co=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==Kr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Gr&&e===void 0){const s=t!==void 0&&t.length===1;s&&(e=lo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&lo.set(t,e))}return e}toString(){return this.cssText}};const ho=e=>new co(typeof e=="string"?e:e+"",void 0,Kr),v=(e,...t)=>{const s=e.length===1?e[0]:t.reduce(((r,i,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1]),e[0]);return new co(s,e,Kr)},Yr=(e,t)=>{if(Gr)e.adoptedStyleSheets=t.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of t){const r=document.createElement("style"),i=Ks.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=s.cssText,e.appendChild(r)}},po=Gr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(const r of t.cssRules)s+=r.cssText;return ho(s)})(e):e;/**
34
- * @license
35
- * Copyright 2017 Google LLC
36
- * SPDX-License-Identifier: BSD-3-Clause
37
- */const{is:Ha,defineProperty:qa,getOwnPropertyDescriptor:Wa,getOwnPropertyNames:Ga,getOwnPropertySymbols:Ka,getPrototypeOf:Ya}=Object,Le=globalThis,uo=Le.trustedTypes,Xa=uo?uo.emptyScript:"",mo=Le.reactiveElementPolyfillSupport,ms=(e,t)=>e,Ys={toAttribute(e,t){switch(t){case Boolean:e=e?Xa:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},Xr=(e,t)=>!Ha(e,t),fo={attribute:!0,type:String,converter:Ys,reflect:!1,useDefault:!1,hasChanged:Xr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Le.litPropertyMetadata??(Le.litPropertyMetadata=new WeakMap);let Be=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=fo){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,s);i!==void 0&&qa(this.prototype,t,i)}}static getPropertyDescriptor(t,s,r){const{get:i,set:o}=Wa(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get:i,set(n){const l=i==null?void 0:i.call(this);o==null||o.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??fo}static _$Ei(){if(this.hasOwnProperty(ms("elementProperties")))return;const t=Ya(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ms("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ms("properties"))){const s=this.properties,r=[...Ga(s),...Ka(s)];for(const i of r)this.createProperty(i,s[i])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[r,i]of s)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[s,r]of this.elementProperties){const i=this._$Eu(s,r);i!==void 0&&this._$Eh.set(i,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)s.unshift(po(i))}else t!==void 0&&s.push(po(t));return s}static _$Eu(t,s){const r=s.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((s=>this.enableUpdating=s)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((s=>s(this)))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const r of s.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yr(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach((s=>{var r;return(r=s.hostConnected)==null?void 0:r.call(s)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((s=>{var r;return(r=s.hostDisconnected)==null?void 0:r.call(s)}))}attributeChangedCallback(t,s,r){this._$AK(t,r)}_$ET(t,s){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Ys).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,s){var r,i;const o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const l=o.getPropertyOptions(n),c=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Ys;this._$Em=n;const h=c.fromAttribute(s,l.type);this[n]=h??((i=this._$Ej)==null?void 0:i.get(n))??h,this._$Em=null}}requestUpdate(t,s,r){var i;if(t!==void 0){const o=this.constructor,n=this[t];if(r??(r=o.getPropertyOptions(t)),!((r.hasChanged??Xr)(n,s)||r.useDefault&&r.reflect&&n===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(o._$Eu(t,r))))return;this.C(t,s,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,s,{useDefault:r,reflect:i,wrapped:o},n){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??s??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(s=void 0),this._$AL.set(t,s)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i){const{wrapped:l}=n,c=this[o];l!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let s=!1;const r=this._$AL;try{s=this.shouldUpdate(r),s?(this.willUpdate(r),(t=this._$EO)==null||t.forEach((i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)})),this.update(r)):this._$EM()}catch(i){throw s=!1,this._$EM(),i}s&&this._$AE(r)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach((r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((s=>this._$ET(s,this[s])))),this._$EM()}updated(t){}firstUpdated(t){}};Be.elementStyles=[],Be.shadowRootOptions={mode:"open"},Be[ms("elementProperties")]=new Map,Be[ms("finalized")]=new Map,mo==null||mo({ReactiveElement:Be}),(Le.reactiveElementVersions??(Le.reactiveElementVersions=[])).push("2.1.1");/**
38
- * @license
39
- * Copyright 2017 Google LLC
40
- * SPDX-License-Identifier: BSD-3-Clause
41
- */const Xs=globalThis,Js=Xs.trustedTypes,yo=Js?Js.createPolicy("lit-html",{createHTML:e=>e}):void 0,go="$lit$",te=`lit$${Math.random().toFixed(9).slice(2)}$`,vo="?"+te,Ja=`<${vo}>`,me=document,fs=()=>me.createComment(""),ys=e=>e===null||typeof e!="object"&&typeof e!="function",Jr=Array.isArray,Za=e=>Jr(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Zr=`[
42
- \f\r]`,gs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bo=/-->/g,wo=/>/g,fe=RegExp(`>|${Zr}(?:([^\\s"'>=/]+)(${Zr}*=${Zr}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xo=/'/g,$o=/"/g,So=/^(?:script|style|textarea|title)$/i,Qa=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),d=Qa(1),jt=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ko=new WeakMap,ye=me.createTreeWalker(me,129);function To(e,t){if(!Jr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return yo!==void 0?yo.createHTML(t):t}const tl=(e,t)=>{const s=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",n=gs;for(let l=0;l<s;l++){const c=e[l];let h,m,p=-1,f=0;for(;f<c.length&&(n.lastIndex=f,m=n.exec(c),m!==null);)f=n.lastIndex,n===gs?m[1]==="!--"?n=bo:m[1]!==void 0?n=wo:m[2]!==void 0?(So.test(m[2])&&(i=RegExp("</"+m[2],"g")),n=fe):m[3]!==void 0&&(n=fe):n===fe?m[0]===">"?(n=i??gs,p=-1):m[1]===void 0?p=-2:(p=n.lastIndex-m[2].length,h=m[1],n=m[3]===void 0?fe:m[3]==='"'?$o:xo):n===$o||n===xo?n=fe:n===bo||n===wo?n=gs:(n=fe,i=void 0);const g=n===fe&&e[l+1].startsWith("/>")?" ":"";o+=n===gs?c+Ja:p>=0?(r.push(h),c.slice(0,p)+go+c.slice(p)+te+g):c+te+(p===-2?l:g)}return[To(e,o+(e[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Qr=class La{constructor({strings:t,_$litType$:s},r){let i;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,m]=tl(t,s);if(this.el=La.createElement(h,r),ye.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=ye.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(go)){const f=m[n++],g=i.getAttribute(p).split(te),w=/([.?@])?(.*)/.exec(f);c.push({type:1,index:o,name:w[2],strings:g,ctor:w[1]==="."?sl:w[1]==="?"?rl:w[1]==="@"?il:Qs}),i.removeAttribute(p)}else p.startsWith(te)&&(c.push({type:6,index:o}),i.removeAttribute(p));if(So.test(i.tagName)){const p=i.textContent.split(te),f=p.length-1;if(f>0){i.textContent=Js?Js.emptyScript:"";for(let g=0;g<f;g++)i.append(p[g],fs()),ye.nextNode(),c.push({type:2,index:++o});i.append(p[f],fs())}}}else if(i.nodeType===8)if(i.data===vo)c.push({type:2,index:o});else{let p=-1;for(;(p=i.data.indexOf(te,p+1))!==-1;)c.push({type:7,index:o}),p+=te.length-1}o++}}static createElement(t,s){const r=me.createElement("template");return r.innerHTML=t,r}};function Fe(e,t,s=e,r){var i,o;if(t===jt)return t;let n=r!==void 0?(i=s._$Co)==null?void 0:i[r]:s._$Cl;const l=ys(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((o=n==null?void 0:n._$AO)==null||o.call(n,!1),l===void 0?n=void 0:(n=new l(e),n._$AT(e,s,r)),r!==void 0?(s._$Co??(s._$Co=[]))[r]=n:s._$Cl=n),n!==void 0&&(t=Fe(e,n._$AS(e,t.values),n,r)),t}let el=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,r=((e==null?void 0:e.creationScope)??me).importNode(t,!0);ye.currentNode=r;let i=ye.nextNode(),o=0,n=0,l=s[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Zs(i,i.nextSibling,this,e):l.type===1?c=new l.ctor(i,l.name,l.strings,this,e):l.type===6&&(c=new ol(i,this,e)),this._$AV.push(c),l=s[++n]}o!==(l==null?void 0:l.index)&&(i=ye.nextNode(),o++)}return ye.currentNode=me,r}p(e){let t=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}},Zs=class Ba{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,r,i){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=Fe(this,t,s),ys(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Za(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&ys(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){var s;const{values:r,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qr.createElement(To(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===o)this._$AH.p(r);else{const n=new el(o,this),l=n.u(this.options);n.p(r),this.T(l),this._$AH=n}}_$AC(t){let s=ko.get(t.strings);return s===void 0&&ko.set(t.strings,s=new Qr(t)),s}k(t){Jr(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let r,i=0;for(const o of t)i===s.length?s.push(r=new Ba(this.O(fs()),this.O(fs()),this,this.options)):r=s[i],r._$AI(o),i++;i<s.length&&(this._$AR(r&&r._$AB.nextSibling,i),s.length=i)}_$AR(t=this._$AA.nextSibling,s){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,s);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}};class Qs{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,r,i,o){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=s,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=u}_$AI(t,s=this,r,i){const o=this.strings;let n=!1;if(o===void 0)t=Fe(this,t,s,0),n=!ys(t)||t!==this._$AH&&t!==jt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=Fe(this,l[r+c],s,c),h===jt&&(h=this._$AH[c]),n||(n=!ys(h)||h!==this._$AH[c]),h===u?t=u:t!==u&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!i&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class sl extends Qs{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}class rl extends Qs{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}}class il extends Qs{constructor(t,s,r,i,o){super(t,s,r,i,o),this.type=5}_$AI(t,s=this){if((t=Fe(this,t,s,0)??u)===jt)return;const r=this._$AH,i=t===u&&r!==u||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==u&&(r===u||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class ol{constructor(t,s,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Fe(this,t)}}const nl={I:Zs},Co=Xs.litHtmlPolyfillSupport;Co==null||Co(Qr,Zs),(Xs.litHtmlVersions??(Xs.litHtmlVersions=[])).push("3.3.1");const al=(e,t,s)=>{const r=(s==null?void 0:s.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(s==null?void 0:s.renderBefore)??null;r._$litPart$=i=new Zs(t.insertBefore(fs(),o),o,void 0,s??{})}return i._$AI(e),i};/**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */const vs=globalThis;let Mt=class extends Be{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const s=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=s.firstChild),s}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=al(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return jt}};var Eo;Mt._$litElement$=!0,Mt.finalized=!0,(Eo=vs.litElementHydrateSupport)==null||Eo.call(vs,{LitElement:Mt});const Oo=vs.litElementPolyfillSupport;Oo==null||Oo({LitElement:Mt}),(vs.litElementVersions??(vs.litElementVersions=[])).push("4.2.1");/**
48
- * @license
49
- * Copyright 2017 Google LLC
50
- * SPDX-License-Identifier: BSD-3-Clause
51
- */const ll={attribute:!0,type:String,converter:Ys,reflect:!1,hasChanged:Xr},cl=(e=ll,t,s)=>{const{kind:r,metadata:i}=s;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),r==="setter"&&((e=Object.create(e)).wrapped=!0),o.set(s.name,e),r==="accessor"){const{name:n}=s;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,e)},init(l){return l!==void 0&&this.C(n,void 0,e,l),l}}}if(r==="setter"){const{name:n}=s;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,e)}}throw Error("Unsupported decorator location: "+r)};function a(e){return(t,s)=>typeof s=="object"?cl(e,t,s):((r,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,r),n?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,s)}/**
52
- * @license
53
- * Copyright 2017 Google LLC
54
- * SPDX-License-Identifier: BSD-3-Clause
55
- */function T(e){return a({...e,state:!0,attribute:!1})}/**
56
- * @license
57
- * Copyright 2017 Google LLC
58
- * SPDX-License-Identifier: BSD-3-Clause
59
- */const ti=(e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,s),s);/**
60
- * @license
61
- * Copyright 2017 Google LLC
62
- * SPDX-License-Identifier: BSD-3-Clause
63
- */function _t(e,t){return(s,r,i)=>{const o=n=>{var l;return((l=n.renderRoot)==null?void 0:l.querySelector(e))??null};return ti(s,r,{get(){return o(this)}})}}/**
64
- * @license
65
- * Copyright 2021 Google LLC
66
- * SPDX-License-Identifier: BSD-3-Clause
67
- */function xt(e){return(t,s)=>{const{slot:r,selector:i}=e??{},o="slot"+(r?`[name=${r}]`:":not([name])");return ti(t,s,{get(){var n;const l=(n=this.renderRoot)==null?void 0:n.querySelector(o),c=(l==null?void 0:l.assignedElements(e))??[];return i===void 0?c:c.filter((h=>h.matches(i)))}})}}/**
68
- * @license
69
- * Copyright 2017 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- */function ei(e){return(t,s)=>{const{slot:r}=e??{},i="slot"+(r?`[name=${r}]`:":not([name])");return ti(t,s,{get(){var o;const n=(o=this.renderRoot)==null?void 0:o.querySelector(i);return(n==null?void 0:n.assignedNodes(e))??[]}})}}var dl=Object.defineProperty,Po=(e,t,s,r)=>{for(var i=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=n(t,s,i)||i);return i&&dl(t,s,i),i};const hl=v`:host([unresolved]){visibility:hidden}`,si=class Fa extends Mt{constructor(){super(),this.appliedConstructables=[],this.appliedStyleTags=[],this.handleChangeTheme=t=>{this.pubSubTheme=t},this.pubSubTheme=Me.subscribe("theme",this.handleChangeTheme)}get theme(){return this.contextTheme??this.pubSubTheme}connectedCallback(){super.connectedCallback(),this.shadowRoot||this.attachShadow({mode:"open"}),this.setAttribute("unresolved","");const t=this.constructor,s=Array.isArray(t.styles)?t.styles:[t.styles].filter(Boolean);Yr(this.shadowRoot,[...s,hl]),this.applyThemeStyles()}disconnectedCallback(){super.disconnectedCallback(),Me.unsubscribe("theme",this.handleChangeTheme)}updated(t){super.updated(t),(t.has("contextTheme")||t.has("pubSubTheme"))&&this.applyThemeStyles()}getComponentNames(){const t=new Set;let s=this.constructor;for(;s&&s!==Fa;)Array.isArray(s.componentName)&&s.componentName.forEach(r=>t.add(r)),s=Object.getPrototypeOf(s);return Array.from(t).reverse()}supportsAdoptedSheets(){return"adoptedStyleSheets"in((ShadowRoot==null?void 0:ShadowRoot.prototype)||{})&&"replace"in CSSStyleSheet.prototype}async applyThemeStyles(){const t=this.getComponentNames();if(!(!this.theme||!(t!=null&&t.length)))try{const s=await Promise.all(t.map(n=>Ua.getStyles({componentName:n,theme:this.theme}))),r=this.supportsAdoptedSheets(),i=this.shadowRoot.adoptedStyleSheets||[],o=this.appliedConstructables?i.filter(n=>!this.appliedConstructables.includes(n)):i;this.appliedConstructables=[],this.appliedStyleTags.forEach(n=>n.remove()),this.appliedStyleTags=[],s.forEach(n=>{if(n)if(r){const l=new CSSStyleSheet;l.replaceSync(n),this.appliedConstructables.push(l)}else{const l=document.createElement("style");l.textContent=n,this.shadowRoot.appendChild(l),this.appliedStyleTags.push(l)}}),r&&(this.shadowRoot.adoptedStyleSheets=[...o,...this.appliedConstructables])}catch(s){console.error(s)}finally{this.removeAttribute("unresolved"),this.requestUpdate()}}};Po([a({attribute:!1}),ao({context:Wr,subscribe:!0})],si.prototype,"contextTheme"),Po([T()],si.prototype,"pubSubTheme");let C=si;const pl=v`
72
- :host {
73
- display: block;
74
- width: 100%;
75
- }
76
-
77
- summary {
78
- list-style: none;
79
- }
80
-
81
- summary::-webkit-details-marker {
82
- display: none;
83
- }
84
-
85
- summary::marker {
86
- content: none;
87
- }
88
-
89
- .title {
90
- display: flex;
91
- align-items: center;
92
- justify-content: space-between;
93
- cursor: pointer;
94
- user-select: none;
95
- }
96
-
97
- .open .close-icon,
98
- .open-icon {
99
- display: none;
100
- }
101
-
102
- .open .open-icon,
103
- .close-icon {
104
- display: block;
105
- }
106
-
107
- details {
108
- @media (prefers-reduced-motion: no-preference) {
109
- interpolate-size: allow-keywords;
110
- }
111
-
112
- &::details-content {
113
- opacity: 0;
114
- block-size: 0;
115
- overflow-y: clip;
116
- transition:
117
- content-visibility 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete,
118
- opacity 0.3s cubic-bezier(0, 0, 0.2, 1),
119
- block-size 0.3s cubic-bezier(0, 0, 0.2, 1);
120
- }
121
-
122
- &[open]::details-content {
123
- opacity: 1;
124
- block-size: auto;
125
- }
126
- }
127
- `,_o={cupra:{"icon-names":{open:"minus",close:"plus"},"icon-button-variant":"secondary"},"cupra-diagonal":{"icon-names":{open:"arrow-up",close:"arrow-down"},"icon-button-variant":"primary"},seat:{"icon-names":{open:"minus",close:"plus"},"icon-button-variant":"secondary"}};/**
128
- * @license
129
- * Copyright 2018 Google LLC
130
- * SPDX-License-Identifier: BSD-3-Clause
131
- */const lt=e=>e??u,ul={createIcon:e=>d`
132
- <ds-icon-react
133
- class=${lt(e==null?void 0:e.class)}
134
- data-testid=${lt(e==null?void 0:e["data-testid"])}
135
- @click=${e==null?void 0:e["@click"]}
136
- @keydown=${e==null?void 0:e["@keydown"]}
137
- icon-name=${e==null?void 0:e["icon-name"]}
138
- color=${lt(e==null?void 0:e.color)}
139
- background-color=${lt(e==null?void 0:e["background-color"])}
140
- size=${lt(e==null?void 0:e.size)}
141
- aria-label=${lt(e==null?void 0:e["aria-label"])}
142
- aria-hidden=${lt(e==null?void 0:e["aria-hidden"])}
143
- role=${lt(e==null?void 0:e.role)}
144
- tabindex=${lt(e==null?void 0:e.tabindex)}
145
- >
146
- ${e.children}
147
- </ds-icon-react>
148
- `,createButton:(e={})=>d`
149
- <ds-button-react
150
- class=${e==null?void 0:e.class}
151
- @click=${e==null?void 0:e["@click"]}
152
- .size=${lt(e==null?void 0:e.size)}
153
- type=${e==null?void 0:e.type}
154
- icon-position=${e==null?void 0:e["icon-position"]}
155
- .rounded=${e==null?void 0:e.rounded}
156
- .full-width=${e==null?void 0:e["full-width"]}
157
- variant=${(e==null?void 0:e.variant)??"primary"}
158
- mode=${(e==null?void 0:e.mode)??"light"}
159
- .disabled=${e==null?void 0:e.disabled}
160
- icon-name=${e==null?void 0:e["icon-name"]}
161
- html-tag-name=${e==null?void 0:e["html-tag-name"]}
162
- href=${e==null?void 0:e.href}
163
- rel=${e==null?void 0:e.rel}
164
- target=${e==null?void 0:e.target}
165
- data-testid=${e==null?void 0:e["data-testid"]}
166
- >
167
- ${e.children}
168
- </ds-button-react>
169
- `,createIconButton:(e={})=>d`
170
- <ds-icon-button-react
171
- class=${e==null?void 0:e.class}
172
- @click=${e==null?void 0:e["@click"]}
173
- size=${lt(e==null?void 0:e.size)}
174
- variant=${(e==null?void 0:e.variant)??"primary"}
175
- mode=${(e==null?void 0:e.mode)??"light"}
176
- .disabled=${e==null?void 0:e.disabled}
177
- icon-name=${e==null?void 0:e["icon-name"]}
178
- html-tag-name=${e==null?void 0:e["html-tag-name"]}
179
- href=${e==null?void 0:e.href}
180
- rel=${e==null?void 0:e.rel}
181
- target=${e==null?void 0:e.target}
182
- data-testid=${e==null?void 0:e["data-testid"]}
183
- data-aria-label=${e==null?void 0:e["data-aria-label"]}
184
- >
185
- ${e.children}
186
- </ds-icon-button-react>
187
- `,createLoaderSpinner:(e={})=>d`
188
- <ds-loader-spinner-react
189
- ?show=${e==null?void 0:e.show}
190
- orientation=${(e==null?void 0:e.orientation)??"row"}
191
- mode=${(e==null?void 0:e.mode)??"light"}
192
- ></ds-loader-spinner-react>
193
- `,createToastMessage:e=>d`
194
- <ds-toast-message-react
195
- data-id="${e["data-id"]}"
196
- data-template="${e["data-template"]}"
197
- title="${e.title}"
198
- text="${e.text}"
199
- status="${e.status}"
200
- ></ds-toast-message-react>
201
- `};function S(e,t){return function(s){var r,i,o;if(!((s==null?void 0:s.prototype)instanceof HTMLElement))throw new TypeError("@customUiKitElement requires a class that extends HTMLElement.");const n=`${e}-react`;if(customElements.get(n))return;let l=t!=null&&t.skipTagAsComponentName?[]:[e];Array.isArray(t==null?void 0:t.extendComponentNames)&&(l=[...t.extendComponentNames,...l]),(o=(r=window==null?void 0:window.customElements)==null?void 0:r.define)==null||o.call(r,n,(i=class extends s{constructor(){super(...arguments),this.componentFactory=ul}},i.componentName=l,i))}}const $=e=>typeof e=="boolean"?e:e==="true"||e===""?!0:e==="false"?!1:!!e;/**
202
- * @license
203
- * Copyright 2017 Google LLC
204
- * SPDX-License-Identifier: BSD-3-Clause
205
- */const ri={ATTRIBUTE:1,CHILD:2},ii=e=>(...t)=>({_$litDirective$:e,values:t});class oi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,r){this._$Ct=t,this._$AM=s,this._$Ci=r}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}/**
206
- * @license
207
- * Copyright 2017 Google LLC
208
- * SPDX-License-Identifier: BSD-3-Clause
209
- */let ni=class extends oi{constructor(e){if(super(e),this.it=u,e.type!==ri.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===u||e==null)return this._t=void 0,this.it=e;if(e===jt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ni.directiveName="unsafeHTML",ni.resultType=1;const tr=ii(ni);function B(e,...t){const s=String.raw({raw:e},...t).replace(/(--private-[\w-]+)(?=\s*[):,])/g,"$1-v1-0-0-canary-9"),r=tr(s);return d`${r}`}/**
210
- * @license
211
- * Copyright 2018 Google LLC
212
- * SPDX-License-Identifier: BSD-3-Clause
213
- */const b=ii(class extends oi{constructor(e){var t;if(super(e),e.type!==ri.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var s,r;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(const o in t)t[o]&&!((s=this.nt)!=null&&s.has(o))&&this.st.add(o);return this.render(t)}const i=e.element.classList;for(const o of this.st)o in t||(i.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(i.add(o),this.st.add(o)):(i.remove(o),this.st.delete(o)))}return jt}});var ml=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,ge=(e,t,s,r)=>{for(var i=r>1?void 0:r?fl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&ml(t,s,i),i};let Lt=class extends C{constructor(){super(...arguments),this.maxHeight=300,this.open=!1,this.mode="light",this.size="medium",this.disabled=!1,this._open=!1}async firstUpdated(t){super.firstUpdated(t),await this.updateComplete,this._open=this.open}get containerClasses(){return{container:!0,disabled:this.disabled,open:this._open,[this.size]:!0,[this.mode]:!!this.mode}}get dividerClasses(){return{divider:!0,[this.mode]:!!this.mode}}get openIconTemplate(){var t;if(!this.theme)return u;const s=(t=_o[this.theme])==null?void 0:t["icon-names"];return this.componentFactory.createIcon({class:"icon open-icon",role:"image","aria-hidden":"true","icon-name":(s==null?void 0:s.open)||"minus"})}get closeIconTemplate(){var t;if(!this.theme)return u;const s=(t=_o[this.theme])==null?void 0:t["icon-names"];return this.componentFactory.createIcon({class:"icon close-icon",role:"image","aria-hidden":"true","icon-name":(s==null?void 0:s.close)||"plus"})}get styleTokens(){return B`
214
- <style>
215
- :host{
216
- color-scheme: ${this.mode};
217
- pointer-events: ${this.disabled?"none":"visible"};
218
- }
219
- </style>
220
- `}handleKeyDown(t){this.disabled&&t.preventDefault()}handleToggle(t){this._open=t.newState==="open"}render(){return d`
221
- ${this.styleTokens}
222
-
223
- <details
224
- class=${b(this.containerClasses)}
225
- aria-disabled=${!!this.disabled}
226
- ?open=${this.open}
227
- @keydown=${this.handleKeyDown}
228
- @toggle=${this.handleToggle}
229
- >
230
- <summary class="title">
231
- <slot name="title"></slot>
232
- ${this.openIconTemplate}
233
- ${this.closeIconTemplate}
234
- </summary>
235
- <slot name="content"></slot>
236
- </details>
237
- <div class=${b(this.dividerClasses)}></div>
238
- `}};Lt.styles=[pl],ge([a({type:Number,attribute:"max-height"})],Lt.prototype,"maxHeight",2),ge([a({type:Boolean,converter:$,reflect:!0})],Lt.prototype,"open",2),ge([a({type:String,reflect:!0})],Lt.prototype,"mode",2),ge([a({type:String})],Lt.prototype,"size",2),ge([a({type:Boolean,converter:$})],Lt.prototype,"disabled",2),ge([T()],Lt.prototype,"_open",2),Lt=ge([S("ds-accordion")],Lt);const yl=v`
239
- :host {
240
- display: block;
241
- width: 100%;
242
- }
243
-
244
- .container {
245
- display: flex;
246
- }
247
-
248
- .bullet {
249
- cursor: pointer;
250
- background-clip: content-box;
251
- }
252
-
253
- .bullet.active {
254
- cursor: auto;
255
- }
256
- `;var gl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,er=(e,t,s,r)=>{for(var i=r>1?void 0:r?vl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&gl(t,s,i),i};let Re=class extends C{constructor(){super(...arguments),this.mode="light",this.activeBulletIndex=0,this.handleClickChunk=t=>()=>{this.activeBulletIndex!==t&&(this.activeBulletIndex=t,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{index:t}})))}}get bulletsTemplate(){const t=[];for(let s=0;s<this.bulletsNumber;s++){const r={bullet:!0,active:s===this.activeBulletIndex};t.push(d`
257
- <div @click=${this.handleClickChunk(s)} class=${b(r)}></div>
258
- `)}return t}get classes(){return{container:!0,[this.mode]:!0}}get styleTokens(){return B`
259
- <style>
260
- :host{
261
- color-scheme: ${this.mode};
262
- }
263
- </style>
264
- `}render(){return this.bulletsNumber>0?d`
265
- ${this.styleTokens}
266
- <div class=${b(this.classes)}>${this.bulletsTemplate}</div>
267
- `:u}};Re.styles=[yl],er([a({type:String,reflect:!0})],Re.prototype,"mode",2),er([a({type:Number,attribute:"bullets-number"})],Re.prototype,"bulletsNumber",2),er([a({type:Number,attribute:"active-bullet-index",reflect:!0})],Re.prototype,"activeBulletIndex",2),Re=er([S("ds-bullets")],Re);const ee=e=>class extends e{constructor(){super(...arguments),this.handleResize=()=>{this.updateViewportWithDebounce()},this.updateViewport=()=>{let t="xs";const s=["xxl","xl","l","m","s"];for(const r of s)if((window==null?void 0:window.innerWidth)>=et[r]){t=r;break}t!==this.currentViewport&&(this.currentViewport=t,this.requestUpdate("viewport",null))}}connectedCallback(){super.connectedCallback(),this.updateViewportWithDebounce=Hr({func:this.updateViewport}),this.updateViewport(),window==null||window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window==null||window.removeEventListener("resize",this.handleResize)}get viewport(){return this.currentViewport}},bs=e=>{if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}};/**
268
- * @license
269
- * Copyright 2021 Google LLC
270
- * SPDX-License-Identifier: BSD-3-Clause
271
- */const ws=(e,t,s)=>{for(const r of t)if(r[0]===e)return(0,r[1])();return s==null?void 0:s()};/**
272
- * @license
273
- * Copyright 2021 Google LLC
274
- * SPDX-License-Identifier: BSD-3-Clause
275
- */function It(e,t,s){return e?t(e):s==null?void 0:s(e)}const bl=v`
276
- :host {
277
- display: contents;
278
- }
279
-
280
- .button {
281
- text-decoration: none;
282
- user-select: none;
283
- display: inline-flex;
284
- box-sizing: border-box;
285
- justify-content: center;
286
- align-items: center;
287
- cursor: pointer;
288
- outline-style: solid;
289
- max-width: 100%;
290
- }
291
-
292
- .button.full-width {
293
- width: 100%;
294
- }
295
- `,wl=v`
296
- .text.container {
297
- display: inline-flex;
298
- }
299
-
300
- .container {
301
- overflow: hidden;
302
- text-overflow: ellipsis;
303
- white-space: nowrap;
304
- }
305
- `,xl=v`
306
- .loading-dots {
307
- display: inline-flex;
308
- align-items: baseline;
309
- }
310
-
311
- .loading-dots span {
312
- animation-duration: 1.5s;
313
- animation-iteration-count: infinite;
314
- }
315
-
316
- .loading-dots span:nth-child(1) {
317
- animation-name: dot1;
318
- }
319
-
320
- .loading-dots span:nth-child(2) {
321
- animation-name: dot2;
322
- }
323
-
324
- .loading-dots span:nth-child(3) {
325
- animation-name: dot3;
326
- }
327
-
328
- @keyframes dot1 {
329
- 0% {
330
- opacity: 0;
331
- }
332
-
333
- 20% {
334
- opacity: 0;
335
- }
336
-
337
- 30% {
338
- opacity: 1;
339
- }
340
-
341
- 100% {
342
- opacity: 1;
343
- }
344
- }
345
-
346
- @keyframes dot2 {
347
- 0% {
348
- opacity: 0;
349
- }
350
-
351
- 45% {
352
- opacity: 0;
353
- }
354
-
355
- 55% {
356
- opacity: 1;
357
- }
358
-
359
- 100% {
360
- opacity: 1;
361
- }
362
- }
363
-
364
- @keyframes dot3 {
365
- 0% {
366
- opacity: 0;
367
- }
368
-
369
- 70% {
370
- opacity: 0;
371
- }
372
-
373
- 80% {
374
- opacity: 1;
375
- }
376
-
377
- 100% {
378
- opacity: 1;
379
- }
380
- }
381
- `;var $l=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,J=(e,t,s,r)=>{for(var i=r>1?void 0:r?Sl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&$l(t,s,i),i};let W=class extends ee(C){constructor(){super(...arguments),this.variant="primary",this.mode="light",this.size="large",this.disabled=!1,this.destructive=!1,this.htmlTagName="button",this.type="button",this.iconPosition="left",this.rounded=!1,this.fullWidth=!1,this.loading=!1}firstUpdated(){this.closestForm=this.closest("form")}get classes(){const t=typeof this.size=="string"?this.size:this.size[this.viewport];return{button:!0,custom:this.htmlTagName==="custom",[t]:!!t,[this.mode]:!!this.mode,[this.variant]:!!this.variant,rounded:this.rounded,disabled:this.disabled||this.loading,destructive:this.destructive,"full-width":this.fullWidth}}handleClick(t){if(this.href||t.preventDefault(),this.closestForm&&this.type==="submit"){const s=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0});this.closestForm.dispatchEvent(s)}}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:"icon","icon-name":this.iconName}):u}get loadingTemplate(){return this.loading?d`
382
- <span class="loading-dots">
383
- <span>.</span>
384
- <span>.</span>
385
- <span>.</span>
386
- </span>
387
- `:u}get cssTokens(){return B`
388
- <style>
389
- :host{
390
- color-scheme: ${this.mode};
391
- pointer-events: ${this.loading||this.disabled?"none":"visible"};
392
- }
393
-
394
- :host:has(::slotted(*:disabled)){
395
- pointer-events: none;
396
- }
397
- </style>`}render(){return d`
398
- ${this.cssTokens}
399
- ${ws(this.htmlTagName||"button",[["button",()=>{var t;return d`
400
- <button
401
- aria-label=${(t=this.textContent)==null?void 0:t.replace(/^\s+|\s+$/g,"")}
402
- class=${b(this.classes)}
403
- type=${this.type}
404
- @click=${this.handleClick}
405
- ?disabled=${this.disabled}
406
- >
407
- ${It(this.iconPosition==="left",()=>d` ${this.iconTemplate} `)}
408
- <span class="container">
409
- <slot></slot>
410
- ${this.loadingTemplate}
411
- </span>
412
- ${It(this.iconPosition==="right",()=>d` ${this.iconTemplate} `)}
413
- </button>
414
- `}],["a",()=>{var t;return d`
415
- <a
416
- aria-label=${(t=this.textContent)==null?void 0:t.replace(/^\s+|\s+$/g,"")}
417
- class=${b(this.classes)}
418
- href=${this.href}
419
- rel=${this.rel}
420
- target=${this.target}
421
- @click=${this.handleClick}
422
- ?disabled=${this.disabled}
423
- >
424
- ${It(this.iconPosition==="left",()=>d`${this.iconTemplate}`)}
425
- <span class="container">
426
- <slot></slot>
427
- ${this.loadingTemplate}
428
- </span>
429
- ${It(this.iconPosition==="right",()=>d`${this.iconTemplate}`)}
430
- </a>
431
- `}],["custom",()=>d`
432
- <div class=${b(this.classes)}>
433
- <slot></slot>
434
- </div>
435
- `]])}
436
- `}};W.styles=[bl,wl,xl],J([a({type:String})],W.prototype,"variant",2),J([a({type:String,reflect:!0})],W.prototype,"mode",2),J([a({type:String,converter:bs})],W.prototype,"size",2),J([a({type:Boolean,converter:$})],W.prototype,"disabled",2),J([a({type:Boolean,converter:$})],W.prototype,"destructive",2),J([a({type:String,attribute:"icon-name"})],W.prototype,"iconName",2),J([a({type:String,attribute:"html-tag-name"})],W.prototype,"htmlTagName",2),J([a({type:String,reflect:!0})],W.prototype,"href",2),J([a({type:String,reflect:!0})],W.prototype,"rel",2),J([a({type:String,reflect:!0})],W.prototype,"target",2),J([a({type:String})],W.prototype,"type",2),J([a({type:String,attribute:"icon-position"})],W.prototype,"iconPosition",2),J([a({type:Boolean,converter:$})],W.prototype,"rounded",2),J([a({type:Boolean,converter:$,attribute:"full-width"})],W.prototype,"fullWidth",2),J([a({type:Boolean,converter:$})],W.prototype,"loading",2),J([T()],W.prototype,"closestForm",2),W=J([S("ds-button")],W);const kl=v`
437
- :host {
438
- display: flex;
439
- width: 100%;
440
- justify-content: center;
441
- align-items: center;
442
- }
443
-
444
- .container {
445
- display: flex;
446
- }
447
- `;var Tl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,sr=(e,t,s,r)=>{for(var i=r>1?void 0:r?Cl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Tl(t,s,i),i};let Ve=class extends C{constructor(){super(...arguments),this.maxSelectorsShown=6}get classes(){return{container:!0,infinite:this.selectorsNumber>this.maxSelectorsShown}}get selectorsTemplate(){const t=[],s=this.selectorsNumber>this.maxSelectorsShown;for(let r=0;r<this.selectorsNumber;r++){let i=!1;const o=this.selectedIndex>=3&&this.selectedIndex<this.selectorsNumber-3,n=this.selectedIndex<3,l=this.selectedIndex>=this.selectorsNumber-3;s&&(o&&(r<this.selectedIndex-3||r>this.selectedIndex+3)||n&&r>=5||l&&r<this.selectorsNumber-5)&&(i=s);const c={selector:!0,selected:r===this.selectedIndex,hidden:i};t.push(d` <div class=${b(c)}></div> `)}return t}render(){return this.selectorsNumber>0?d`
448
- <div data-testid="ds-carousel-indicator-container" class=${b(this.classes)}>
449
- ${this.selectorsTemplate}
450
- </div>
451
- `:u}};Ve.styles=[kl],sr([a({type:Number,attribute:"selectors-number"})],Ve.prototype,"selectorsNumber",2),sr([a({type:Number,attribute:"selected-index"})],Ve.prototype,"selectedIndex",2),sr([T()],Ve.prototype,"maxSelectorsShown",2),Ve=sr([S("ds-carousel-indicator")],Ve);const rr=e=>{const t=class extends e{constructor(...i){var o;super(i),this._internals=(o=this.attachInternals)==null?void 0:o.call(this)}};return t.formAssociated=!0,t},El=v`
452
- :host {
453
- display: block;
454
- width: 100%;
455
- }
456
-
457
- label {
458
- cursor: pointer;
459
- display: flex;
460
- justify-content: flex-start;
461
- align-items: flex-start;
462
- }
463
-
464
- input {
465
- position: absolute;
466
- opacity: 0;
467
- width: 100%;
468
- height: 100%;
469
- top: 0;
470
- left: 0;
471
- margin: 0;
472
- padding: 0;
473
- z-index: 1;
474
- }
475
-
476
- .checkmark-container {
477
- display: inline-flex;
478
- }
479
-
480
- .checkmark {
481
- position: relative;
482
- box-sizing: border-box;
483
- border-style: solid;
484
- transition: all 200ms ease-in-out;
485
- display: inline-flex;
486
- justify-content: center;
487
- overflow: hidden;
488
- align-items: center;
489
- }
490
-
491
- .invalid-error {
492
- display: none;
493
- }
494
-
495
- .container:has(input:invalid) .invalid-error {
496
- display: block;
497
- }
498
-
499
- .container:has(input:invalid) .helper-text,
500
- .container.error .helper-text {
501
- display: none;
502
- }
503
- `;var Ol=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,rt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Pl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ol(t,s,i),i};let Z=class extends rr(C){constructor(){super(...arguments),this.inputPlacement="left",this.checked=!1,this.required=!1,this.disabled=!1,this.mode="light",this.size="medium",this.helperText="",this.infoText="",this.forcedError="",this.invalidError="",this.indeterminate=!1}handleChange(t){const s=t.target;this.checked=s.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{checked:this.checked,value:this.value}}))}get classes(){return{container:!0,[this.inputPlacement]:!!this.inputPlacement,[this.mode]:!!this.mode,[this.size]:!!this.size,disabled:this.disabled,checked:this.checked,error:!!this.forcedError}}get iconTemplate(){if(!this.checked)return u;const t=this.indeterminate?"minus":"check";return this.componentFactory.createIcon({class:"icon","icon-name":t})}get styleTokens(){return B`
504
- <style>
505
- :host{
506
- color-scheme: ${this.mode};
507
- pointer-events: ${this.disabled?"none":"visible"};
508
- }
509
- </style>
510
- `}render(){return d`
511
- ${this.styleTokens}
512
- <div class=${b(this.classes)}>
513
- <label>
514
- <span class="checkmark-container">
515
- <span class="checkmark">
516
- ${this.iconTemplate}
517
- <input
518
- tabindex="0"
519
- type="checkbox"
520
- name=${this.name}
521
- value=${this.value}
522
- ?required=${this.required}
523
- ?checked=${this.checked}
524
- ?disabled=${this.disabled}
525
- @change=${this.handleChange}
526
- />
527
- </span>
528
- </span>
529
- <div class="text-container">
530
- <div class="text">
531
- <slot></slot>
532
- ${this.infoText?d` <div class="info-text">${this.infoText}</div> `:u}
533
- </div>
534
- ${this.helperText?d` <div class="helper-text">${this.helperText}</div> `:u}
535
- ${this.forcedError?d` <div class="error-text">${this.forcedError}</div> `:u}
536
- ${this.invalidError&&!this.forcedError?d`<div class="error-text invalid-error">${this.invalidError}</div>`:u}
537
- </div>
538
- </label>
539
- </div>
540
- `}};Z.styles=[El],rt([a({type:String})],Z.prototype,"name",2),rt([a({type:String})],Z.prototype,"value",2),rt([a({type:String,attribute:"input-placement"})],Z.prototype,"inputPlacement",2),rt([a({type:Boolean,converter:$,reflect:!0})],Z.prototype,"checked",2),rt([a({type:Boolean,converter:$})],Z.prototype,"required",2),rt([a({type:Boolean,converter:$})],Z.prototype,"disabled",2),rt([a({type:String,reflect:!0})],Z.prototype,"mode",2),rt([a({type:String})],Z.prototype,"size",2),rt([a({type:String,attribute:"helper-text"})],Z.prototype,"helperText",2),rt([a({type:String,attribute:"info-text"})],Z.prototype,"infoText",2),rt([a({type:String,attribute:"forced-error"})],Z.prototype,"forcedError",2),rt([a({type:String,attribute:"invalid-error"})],Z.prototype,"invalidError",2),rt([a({type:Boolean,converter:$})],Z.prototype,"indeterminate",2),Z=rt([S("ds-checkbox")],Z);const _l=v`
541
- :host {
542
- display: inline-block;
543
- }
544
-
545
- .container {
546
- cursor: pointer;
547
- display: inline-flex;
548
- justify-content: center;
549
- align-items: center;
550
- user-select: none;
551
- }
552
-
553
- .icon {
554
- cursor: pointer;
555
- pointer-events: visible;
556
- }
557
- `;var Il=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,ve=(e,t,s,r)=>{for(var i=r>1?void 0:r?Al(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Il(t,s,i),i};let Bt=class extends C{constructor(){super(...arguments),this.mode="light",this.size="large",this.selected=!1,this.deselectable=!1,this.slottedText=""}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot.querySelector("slot").assignedNodes({flatten:!0});this.slottedText=t.filter(s=>s.nodeType===Node.TEXT_NODE).map(s=>s.textContent.trim()).join(" ")}get classes(){return{container:!0,[this.size]:!0,[this.mode]:!!this.mode,selected:this.selected,deselectable:this.deselectable}}get styleTokens(){return B`
558
- <style>
559
- :host{
560
- color-scheme: ${this.mode};
561
- pointer-events: ${this.selected?"none":"visible"};
562
- }
563
- </style>
564
- `}handleClick(){this.selected||this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0,detail:{value:this.value}}))}handleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleClick())}handleClickIcon(e){e.stopImmediatePropagation(),!(!this.deselectable||!this.selected)&&this.dispatchEvent(new CustomEvent("deselect",{bubbles:!0,composed:!0,detail:{value:this.value}}))}handleKeyDownIcon(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleClickIcon(e))}get iconTemplate(){if(!this.selected||!this.deselectable)return u;const e=this.mode==="light"?"dark":"light";return this.componentFactory.createIcon({class:"icon","icon-name":"cross","data-testid":"ds-chip-icon","@click":this.handleClickIcon,"@keydown":this.handleKeyDownIcon,role:"button","aria-label":`deselect ${this.slottedText}`,tabindex:"0",mode:e})}render(){return d`
565
- ${this.styleTokens}
566
- <div
567
- role="button"
568
- aria-label=${`chip ${this.slottedText}`}
569
- tabindex="0"
570
- data-testid="ds-chip-container"
571
- class=${b(this.classes)}
572
- @click=${this.handleClick}
573
- @keydown=${this.handleKeyDown}
574
- >
575
- <slot></slot>
576
- ${this.iconTemplate}
577
- </div>
578
- `}};Bt.styles=[_l],ve([a({type:String})],Bt.prototype,"value",2),ve([a({type:String,reflect:!0})],Bt.prototype,"mode",2),ve([a({type:String,reflect:!0})],Bt.prototype,"size",2),ve([a({type:Boolean,converter:$,reflect:!0})],Bt.prototype,"selected",2),ve([a({type:Boolean,converter:$})],Bt.prototype,"deselectable",2),ve([T()],Bt.prototype,"slottedText",2),Bt=ve([S("ds-chip")],Bt);const Nl={fromAttribute(e){if(!e)return[];try{const t=JSON.parse(e);if(Array.isArray(t))return t;throw new Error}catch{return e.split(",")}},toAttribute(e){return JSON.stringify(e)}},zl=v`
579
- .container {
580
- display: inline-flex;
581
- position: relative;
582
- max-width: 100%;
583
- }
584
-
585
- .chips-container {
586
- box-sizing: border-box;
587
- display: inline-flex;
588
- justify-content: flex-start;
589
- overflow-y: auto;
590
- scrollbar-width: none;
591
- scroll-behavior: smooth;
592
- }
593
-
594
- .chips-container.scroll-left {
595
- mask-image: linear-gradient(
596
- to left,
597
- rgba(0, 0, 0, 1) 0,
598
- rgba(0, 0, 0, 1) calc(100% - 48px),
599
- rgba(0, 0, 0, 0) calc(100% - 32px),
600
- rgba(0, 0, 0, 0) 100%
601
- );
602
- }
603
-
604
- .chips-container.scroll-right {
605
- mask-image: linear-gradient(
606
- to right,
607
- rgba(0, 0, 0, 1) 0,
608
- rgba(0, 0, 0, 1) calc(100% - 48px),
609
- rgba(0, 0, 0, 0) calc(100% - 32px),
610
- rgba(0, 0, 0, 0) 100%
611
- );
612
- }
613
-
614
- .chips-container.scroll-left.scroll-right {
615
- mask-image: linear-gradient(
616
- to right,
617
- rgba(0, 0, 0, 0) 0px,
618
- rgba(0, 0, 0, 0) 32px,
619
- rgba(0, 0, 0, 1) 48px,
620
- rgba(0, 0, 0, 1) calc(100% - 48px),
621
- rgba(0, 0, 0, 0) calc(100% - 32px),
622
- rgba(0, 0, 0, 0) 100%
623
- );
624
- }
625
-
626
- .chips-container::-webkit-scrollbar {
627
- display: none;
628
- }
629
-
630
- ::slotted(*) {
631
- white-space: nowrap;
632
- flex: 0 1 auto;
633
- }
634
-
635
- .scroll-button {
636
- position: absolute;
637
- top: 0;
638
- z-index: 1;
639
- }
640
-
641
- .scroll-button.left {
642
- left: 0;
643
- }
644
-
645
- .scroll-button.right {
646
- right: 0;
647
- }
648
- `;var Dl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,Ft=(e,t,s,r)=>{for(var i=r>1?void 0:r?jl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Dl(t,s,i),i};let $t=class extends C{constructor(){super(...arguments),this.multiChoice=null,this.size="medium",this.mode="light",this.hasScrollLeft=!1,this.hasScrollRight=!1,this.resizeObserver=new ResizeObserver(()=>{this.handleScrollNav()}),this.handleScrollNav=()=>{var t,s,r,i;const o=((t=this.chipsContainer)==null?void 0:t.scrollLeft)+((s=this.chipsContainer)==null?void 0:s.clientWidth);this.hasScrollLeft=((r=this.chipsContainer)==null?void 0:r.scrollLeft)>0,this.hasScrollRight=o<((i=this.chipsContainer)==null?void 0:i.scrollWidth)},this.handleScrollLeft=()=>{this.chipsContainer.scrollBy({left:-150,behavior:"smooth"})},this.handleScrollRight=()=>{this.chipsContainer.scrollBy({left:150,behavior:"smooth"})}}firstUpdated(){this.handleScrollNav(),this.resizeObserver.observe(this.chipsContainer),this.chips.forEach(t=>this.resizeObserver.observe(t)),window.addEventListener("resize",this.handleScrollNav),this.chipsContainer.addEventListener("scroll",this.handleScrollNav)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.handleScrollNav),this.chipsContainer.removeEventListener("scroll",this.handleScrollNav)}getScrollButtonTemplate(t,s){if(t==="left"&&!this.hasScrollLeft||t==="right"&&!this.hasScrollRight)return u;const r=`arrow-${t}`;return this.componentFactory.createIconButton({class:`scroll-button ${t}`,"data-testid":`scroll-button-${t}`,"data-aria-label":`scroll-button-${t}`,"@click":s,size:this.size||"large","icon-name":r,variant:"standard",mode:this.mode})}updated(t){super.updated(t),(t.has("selectedChips")||t.has("multiChoice")||t.has("size")||t.has("mode"))&&this.updateChildChips()}updateChildChips(){var t;(t=this.chips)==null||t.forEach(s=>{var r,i;s.size=this.size,s.selected=(i=(r=this.selectedChips)==null?void 0:r.includes)==null?void 0:i.call(r,s.value),s.deselectable=!!this.multiChoice,s.mode=this.mode})}get chipsContainerClasses(){return{"chips-container":!0,"scroll-left":this.hasScrollLeft,"scroll-right":this.hasScrollRight}}handleSelect(t){var s,r;let i;this.multiChoice&&!((r=(s=this.selectedChips)==null?void 0:s.includes)!=null&&r.call(s,t.detail.value))?i=[...this.selectedChips||[],t.detail.value]:i=[t.detail.value],this.selectedChips=i,this.updateChildChips(),this.dispatchEvent(new CustomEvent("ds-chips:change",{bubbles:!0,composed:!0,detail:{selectedChips:i}}))}handleDeselect(t){const s=[...(this.selectedChips||[]).filter(r=>r!==t.detail.value)];this.selectedChips=s,this.updateChildChips(),this.dispatchEvent(new CustomEvent("ds-chips:change",{bubbles:!0,composed:!0,detail:{selectedChips:s}}))}render(){return d`
649
- <div
650
- class="container"
651
- data-testid="ds-chips-container"
652
- @select=${this.handleSelect}
653
- @deselect=${this.handleDeselect}
654
- >
655
- ${this.getScrollButtonTemplate("left",this.handleScrollLeft)}
656
- <nav tabindex="0" class=${b(this.chipsContainerClasses)}>
657
- <slot @slotchange=${this.updateChildChips}></slot>
658
- </nav>
659
- ${this.getScrollButtonTemplate("right",this.handleScrollRight)}
660
- </div>
661
- `}};$t.styles=[zl],Ft([a({type:Array,attribute:"selected-chips",converter:Nl,reflect:!0})],$t.prototype,"selectedChips",2),Ft([a({type:Boolean,attribute:"multi-choice",converter:$})],$t.prototype,"multiChoice",2),Ft([a({type:String})],$t.prototype,"size",2),Ft([a({type:String,reflect:!0})],$t.prototype,"mode",2),Ft([T()],$t.prototype,"hasScrollLeft",2),Ft([T()],$t.prototype,"hasScrollRight",2),Ft([xt({slot:""})],$t.prototype,"chips",2),Ft([_t(".chips-container")],$t.prototype,"chipsContainer",2),$t=Ft([S("ds-chips")],$t);function Io({value:e,locale:t,style:s,unit:r,currency:i,localeMatcher:o="lookup",minimumIntegerDigits:n=1,minimumFractionDigits:l=0,maximumFractionDigits:c=20,thousandSeparator:h,fractionSeparator:m,useGrouping:p="auto"}){let f="",g,w;const k=new Intl.NumberFormat(t,{...s&&{style:s},...r&&{unit:r},...i&&{currency:i},localeMatcher:o,minimumIntegerDigits:n,minimumFractionDigits:l,maximumFractionDigits:c,useGrouping:p}).formatToParts(e??0);return k.forEach((O,I)=>{switch(O.type){case"unit":case"currency":case"percentSign":g=O.value,w=I===0||(k[0].type==="minusSign"||k[0].type==="plusSign")&&I===1?"left":"right";break;case"group":f+=h??O.value;break;case"decimal":f+=m??O.value;break;case"integer":case"fraction":case"plusSign":case"minusSign":f+=O.value;break}}),{formattedValue:f,...g&&{unitSymbol:g},...w&&{unitSymbolPosition:w}}}const Ml=v`
662
- :host {
663
- display: inline;
664
- }
665
-
666
- .container {
667
- display: inline-flex;
668
- align-items: flex-end;
669
- }
670
- `;var Ll=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,G=(e,t,s,r)=>{for(var i=r>1?void 0:r?Bl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ll(t,s,i),i};let H=class extends C{constructor(){super(...arguments),this.minimumFractionDigits=0,this.maximumFractionDigits=20,this.amountSize="medium",this.amountWeight="medium",this.currencySize="medium",this.currencyWeight="medium",this.periodSize="medium",this.periodWeight="medium",this.noteSize="medium",this.noteWeight="medium"}get valueTemplate(){const{formattedValue:t,unitSymbol:s,unitSymbolPosition:r}=Io({value:this.amountNumber??0,locale:this.locale,style:"currency",currency:this.currencyCode,localeMatcher:"lookup",minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}),i=this.amountText||t,o={amount:!0,text:!0,[`size-${this.amountSize}`]:!0,[`weight-${this.amountWeight}`]:!0},n={currency:!0,left:r==="left",right:r==="right",text:!0,[`size-${this.currencySize}`]:!0,[`weight-${this.currencyWeight}`]:!0};return d`
671
- ${r==="left"?d`<span class=${b(n)}>${s}</span>`:u}
672
- <span class=${b(o)}>${i}</span>
673
- ${r==="right"?d`<span class=${b(n)}>${s}</span>`:u}
674
- `}get periodTemplate(){if(!this.period)return u;const t=new Intl.DisplayNames(this.locale,{type:"dateTimeField"}),s={period:!0,text:!0,[`size-${this.periodSize}`]:!0,[`weight-${this.periodWeight}`]:!0};return d`
675
- <span class=${b(s)}"period">/${t.of(this.period)}</span>
676
- `}get noteTemplate(){if(!this.note)return u;const t={note:!0,text:!0,[`size-${this.noteSize}`]:!0,[`weight-${this.noteWeight}`]:!0};return d` <span class=${b(t)}>${this.note}</span> `}render(){return d`
677
- <div class="container">
678
- ${this.valueTemplate}
679
- ${this.noteTemplate}
680
- ${this.periodTemplate}
681
- </div>
682
- `}};H.styles=[Ml],G([a({type:String})],H.prototype,"locale",2),G([a({type:String,attribute:"currency-code"})],H.prototype,"currencyCode",2),G([a({type:String,attribute:"amount-text"})],H.prototype,"amountText",2),G([a({type:Number,attribute:"amount-number"})],H.prototype,"amountNumber",2),G([a({type:Number,attribute:"minimum-fraction-digits"})],H.prototype,"minimumFractionDigits",2),G([a({type:Number,attribute:"maximum-fraction-digits"})],H.prototype,"maximumFractionDigits",2),G([a({type:String})],H.prototype,"period",2),G([a({type:String})],H.prototype,"note",2),G([a({type:String,attribute:"thousand-separator"})],H.prototype,"thousandSeparator",2),G([a({type:String,attribute:"fraction-separator"})],H.prototype,"fractionSeparator",2),G([a({type:String,attribute:"amount-size"})],H.prototype,"amountSize",2),G([a({type:String,attribute:"amount-weight"})],H.prototype,"amountWeight",2),G([a({type:String,attribute:"currency-size"})],H.prototype,"currencySize",2),G([a({type:String,attribute:"currency-weight"})],H.prototype,"currencyWeight",2),G([a({type:String,attribute:"period-size"})],H.prototype,"periodSize",2),G([a({type:String,attribute:"period-weight"})],H.prototype,"periodWeight",2),G([a({type:String,attribute:"note-size"})],H.prototype,"noteSize",2),G([a({type:String,attribute:"note-weight"})],H.prototype,"noteWeight",2),H=G([S("ds-currency")],H);const Fl=v`
683
- :host {
684
- display: inline-block;
685
- }
686
- `;var Rl=Object.getOwnPropertyDescriptor,Vl=(e,t,s,r)=>{for(var i=r>1?void 0:r?Rl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=n(i)||i);return i};let ai=class extends C{get classes(){return{container:!0}}get styleTokens(){return B`
687
- <style>
688
- :host{
689
- grid-area: body;
690
- }
691
- </style>
692
- `}render(){return d`
693
- ${this.styleTokens}
694
- <div data-testid="ds-dialog-body-container" class=${b(this.classes)}>
695
- <slot name="description"></slot>
696
- <slot name="image"></slot>
697
- <slot></slot>
698
- </div>
699
- `}};ai.styles=[Fl],ai=Vl([S("ds-dialog-body")],ai);const Ul=v`
700
- :host {
701
- display: flex;
702
- }
703
-
704
- .container {
705
- width: 100%;
706
- }
707
- `;var Hl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Ao=(e,t,s,r)=>{for(var i=r>1?void 0:r?ql(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Hl(t,s,i),i};let ir=class extends C{constructor(){super(...arguments),this.withDivider=!0}get classes(){return{container:!0}}render(){return d`
708
- <div data-testid="ds-dialog-footer-container" class=${b(this.classes)}>
709
- ${this.withDivider?d`<div class="divider"></div>`:u}
710
- <slot></slot>
711
- <slot name="actions"></slot>
712
- </div>
713
- `}};ir.styles=[Ul],Ao([a({type:Boolean,attribute:"with-divider",converter:$})],ir.prototype,"withDivider",2),ir=Ao([S("ds-dialog-footer")],ir);const Wl=v`
714
- :host {
715
- display: block;
716
- }
717
- `;var Gl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,or=(e,t,s,r)=>{for(var i=r>1?void 0:r?Kl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Gl(t,s,i),i};let Ue=class extends C{constructor(){super(...arguments),this.title="primary",this.iconSize=32}get classes(){return{container:!0}}get styleTokens(){return B`
718
- <style>
719
- :host{
720
- grid-area: header;
721
- }
722
- </style>
723
- `}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:"icon","icon-name":this.iconName,size:this.iconSize}):u}render(){return d`
724
- ${this.styleTokens}
725
- <div data-testid="ds-dialog-header-container" class=${b(this.classes)}>
726
- <div class="title-container">
727
- ${this.iconTemplate}
728
- <div class="title">${this.title}</div>
729
- </div>
730
- <slot name="subtitle"></slot>
731
- </div>
732
- `}};Ue.styles=[Wl],or([a({type:String})],Ue.prototype,"title",2),or([a({type:String,attribute:"icon-name"})],Ue.prototype,"iconName",2),or([a({type:Number,attribute:"icon-size"})],Ue.prototype,"iconSize",2),Ue=or([S("ds-dialog-header")],Ue);const ct={xs:v`@media(min-width: ${et.xs}px)`,s:v`@media(min-width: ${et.s}px)`,m:v`@media(min-width: ${et.m}px)`,l:v`@media(min-width: ${et.l}px)`,xl:v`@media(min-width: ${et.xl}px)`,xxl:v`@media(min-width: ${et.xxl}px)`},Yl=v`
733
- :host {
734
- transition: display 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete;
735
- }
736
-
737
- .container.close {
738
- display: none;
739
- opacity: 0;
740
- }
741
-
742
- .container {
743
- position: fixed;
744
- top: 0;
745
- left: 0;
746
- width: 100dvw;
747
- height: 100dvh;
748
- display: flex;
749
- justify-content: center;
750
- align-items: center;
751
- z-index: var(--ds-z-index-modal);
752
- transition:
753
- opacity 0.3s cubic-bezier(0, 0, 0.2, 1),
754
- display 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete;
755
- opacity: 1;
756
- @starting-style {
757
- opacity: 0;
758
- }
759
- }
760
-
761
- .dialog {
762
- padding: 0;
763
- position: relative;
764
- }
765
-
766
- .content-container {
767
- display: flex;
768
- flex-direction: column;
769
- overflow: hidden;
770
- }
771
-
772
- .ds-scroll::-webkit-scrollbar,
773
- .ds-scroll-global *::-webkit-scrollbar {
774
- appearance: none;
775
- display: initial;
776
- }
777
-
778
- .ds-scroll::-webkit-scrollbar-thumb,
779
- .ds-scroll-global *::-webkit-scrollbar-thumb {
780
- border-radius: var(--dg-border-radius-full);
781
- background-clip: padding-box;
782
- background-color: var(--dg-global-opacity-white-70);
783
- }
784
-
785
- .ds-scroll::-webkit-scrollbar-track,
786
- .ds-scroll-global *::-webkit-scrollbar-track {
787
- background-color: transparent;
788
- }
789
-
790
- ${ct.xs} {
791
- .ds-scroll::-webkit-scrollbar,
792
- .ds-scroll-global *::-webkit-scrollbar {
793
- height: 4px;
794
- width: 4px;
795
- }
796
- }
797
-
798
- ${ct.m} {
799
- .ds-scroll::-webkit-scrollbar,
800
- .ds-scroll-global *::-webkit-scrollbar {
801
- height: 8px;
802
- width: 8px;
803
- }
804
- }
805
- `;var Xl=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,He=(e,t,s,r)=>{for(var i=r>1?void 0:r?Jl(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Xl(t,s,i),i};let se=class extends C{constructor(){super(...arguments),this.open=!1,this.size="medium",this.hasBeenOpened=!1,this.hasScroll=!1,this.debouncedCheckScroll=Hr({func:()=>this.checkScroll()}),this.handleKeyDown=e=>{this.open&&e.key==="Escape"&&this.handleClose()}}async updated(e){super.updated(e),!this.hasBeenOpened&&e.has("open")&&this.open&&(this.hasBeenOpened=!0),e.has("open")&&this.handleResizeObserver(),e.has("open")&&this.open&&(await this.updateComplete,this.requestUpdate())}async handleResizeObserver(){var e;document.body.style.overflow=this.open?"hidden":"",(e=this.resizeObserver)==null||e.disconnect(),this.content&&(this.resizeObserver.observe(this.content),await new Promise(requestAnimationFrame),this.checkScroll())}get containerClasses(){return{container:!0,close:!this.open,"with-scroll":this.open&&this.hasScroll}}get dialogClasses(){return{dialog:!0,[this.size]:!!this.size}}handleClose(){this.open=!1,this.dispatchEvent(new Event("ds-dialog:close",{bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeyDown),this.resizeObserver=new ResizeObserver(this.debouncedCheckScroll),this.handleResizeObserver()}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keydown",this.handleKeyDown),document.body.style.overflow="",(e=this.resizeObserver)==null||e.disconnect()}checkScroll(){var e,t;this.hasScroll=((e=this.content)==null?void 0:e.scrollHeight)>((t=this.content)==null?void 0:t.clientHeight)}render(){return!this.hasBeenOpened&&!this.open?u:d`
806
- <style>
807
- :host {
808
- display: ${this.open?"flex":"none"};
809
- }
810
- </style>
811
-
812
- <div class=${b(this.containerClasses)}>
813
- <div class="overlay" @click=${this.handleClose}></div>
814
- <dialog ?open=${this.open} data-testid="ds-dialog-container" class=${b(this.dialogClasses)}>
815
- <slot name="close-button" @click=${this.handleClose}></slot>
816
- <div class="content-container">
817
- <div tabindex="0" class="content ds-scroll">
818
- <slot @slotchange=${this.handleResizeObserver}></slot>
819
- </div>
820
- <slot name="footer"></slot>
821
- </div>
822
- </dialog>
823
- </div>
824
- `}};se.styles=[Yl],He([a({type:Boolean,converter:$})],se.prototype,"open",2),He([a({type:String})],se.prototype,"size",2),He([T()],se.prototype,"hasBeenOpened",2),He([T()],se.prototype,"hasScroll",2),He([_t(".content")],se.prototype,"content",2),se=He([S("ds-dialog")],se);const Zl=v`
825
- .divider {
826
- border: none;
827
- margin: 0;
828
- }
829
- `;var Ql=Object.defineProperty,tc=Object.getOwnPropertyDescriptor,nr=(e,t,s,r)=>{for(var i=r>1?void 0:r?tc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ql(t,s,i),i};let qe=class extends C{constructor(){super(...arguments),this.orientation="horizontal",this.variant="primary",this.mode="light"}get classes(){return{divider:!0,[this.orientation]:!!this.orientation,[this.variant]:!!this.variant,[this.mode]:!!this.mode}}get styleTokens(){return B`
830
- <style>
831
- :host{
832
- color-scheme: ${this.mode};
833
- }
834
- </style>
835
- `}render(){return d`
836
- ${this.styleTokens}
837
- <hr aria-orientation=${this.orientation} class=${b(this.classes)} />
838
- `}};qe.styles=[Zl],nr([a({type:String})],qe.prototype,"orientation",2),nr([a({type:String})],qe.prototype,"variant",2),nr([a({type:String,reflect:!0})],qe.prototype,"mode",2),qe=nr([S("ds-divider")],qe);const ec=v`
839
- :host {
840
- display: inline-flex;
841
- }
842
-
843
- .hyperlink {
844
- box-sizing: border-box;
845
- display: inline-block;
846
- text-align: center;
847
- cursor: pointer;
848
- text-decoration: none;
849
- padding: 0;
850
- background: transparent;
851
- }
852
- `;var sc=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,be=(e,t,s,r)=>{for(var i=r>1?void 0:r?rc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&sc(t,s,i),i};let Rt=class extends C{constructor(){super(...arguments),this.htmlTagName="a",this.mode="light",this.size="large"}handleClick(t){this.href||t.preventDefault()}get styleTokens(){return B`
853
- <style>
854
- :host {
855
- color-scheme: ${this.mode};
856
- }
857
- </style>
858
- `}get classes(){return{hyperlink:!0,[this.size]:!!this.size,[this.mode]:!!this.mode}}render(){return d`
859
- ${this.styleTokens}
860
- ${ws(this.htmlTagName||"a",[["button",()=>d`
861
- <button class=${b(this.classes)}>
862
- <slot></slot>
863
- </button>
864
- `],["a",()=>d`
865
- <a
866
- class=${b(this.classes)}
867
- href=${this.href}
868
- rel=${this.rel}
869
- target=${this.target}
870
- @click=${this.handleClick}
871
- >
872
- <slot></slot>
873
- </a>
874
- `]])}
875
- `}};Rt.styles=[ec],be([a({type:String,attribute:"html-tag-name"})],Rt.prototype,"htmlTagName",2),be([a({type:String,reflect:!0})],Rt.prototype,"href",2),be([a({type:String,reflect:!0})],Rt.prototype,"rel",2),be([a({type:String,reflect:!0})],Rt.prototype,"target",2),be([a({type:String,reflect:!0})],Rt.prototype,"mode",2),be([a({type:String})],Rt.prototype,"size",2),Rt=be([S("ds-hyperlink")],Rt);const ic=v`
876
- :host {
877
- display: inline-flex;
878
- }
879
-
880
- .button {
881
- text-decoration: none;
882
- user-select: none;
883
- display: inline-flex;
884
- box-sizing: border-box;
885
- justify-content: center;
886
- align-items: center;
887
- cursor: pointer;
888
- outline-style: solid;
889
- padding: 0;
890
- }
891
- `;var oc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,St=(e,t,s,r)=>{for(var i=r>1?void 0:r?nc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&oc(t,s,i),i};let dt=class extends ee(C){constructor(){super(...arguments),this.variant="primary",this.mode="light",this.size="large",this.disabled=!1,this.htmlTagName="button"}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:"icon","icon-name":this.iconName}):u}handleClick(t){this.href||t.preventDefault()}get classes(){const t=typeof this.size=="string"?this.size:this.size[this.viewport];return{button:!0,custom:this.htmlTagName==="custom",disabled:this.disabled,[t]:!!t,[this.mode]:!!this.mode,[this.variant]:!!this.variant}}get variantColorTokens(){return B`
892
- <style>
893
- :host{
894
- color-scheme: ${this.mode};
895
- pointer-events: ${this.disabled?"none":"visible"};
896
- }
897
- </style>
898
- `}render(){return d`
899
- <style>
900
- :host {
901
- pointer-events: ${this.disabled?"none":"visible"};
902
- }
903
- </style>
904
- ${this.variantColorTokens}
905
- ${ws(this.htmlTagName||"button",[["button",()=>d`
906
- <button
907
- ?disabled=${this.disabled}
908
- class=${b(this.classes)}
909
- aria-label=${this.dataAriaLabel}
910
- >
911
- ${this.iconTemplate}
912
- </button>
913
- `],["a",()=>d`
914
- <a
915
- ?disabled=${this.disabled}
916
- class=${b(this.classes)}
917
- href=${this.href}
918
- rel=${this.rel}
919
- target=${this.target}
920
- @click=${this.handleClick}
921
- aria-label=${this.dataAriaLabel}
922
- >
923
- ${this.iconTemplate}
924
- </a>
925
- `],["custom",()=>d`
926
- <div class=${b(this.classes)}>
927
- <slot></slot>
928
- </div>
929
- `]])}
930
- `}};dt.styles=[ic],St([a({type:String})],dt.prototype,"variant",2),St([a({type:String,reflect:!0})],dt.prototype,"mode",2),St([a({type:String,converter:bs})],dt.prototype,"size",2),St([a({type:Boolean,converter:$})],dt.prototype,"disabled",2),St([a({type:String,attribute:"icon-name"})],dt.prototype,"iconName",2),St([a({type:String,attribute:"html-tag-name"})],dt.prototype,"htmlTagName",2),St([a({type:String,attribute:"data-aria-label"})],dt.prototype,"dataAriaLabel",2),St([a({type:String,reflect:!0})],dt.prototype,"href",2),St([a({type:String,reflect:!0})],dt.prototype,"rel",2),St([a({type:String,reflect:!0})],dt.prototype,"target",2),dt=St([S("ds-icon-button")],dt);const No=(class Ws{constructor(){this.icons={},this.handleChangeTheme=t=>{this.theme=t;const s=Object.keys(this.icons);this.icons={},s.forEach(r=>this.fetchIcon(r))},this.fetchIcon=async(t,s={})=>(!this.theme&&window.DS_THEME&&(this.theme=window.DS_THEME),await this.getCachedIcon(t)||(this.icons[t]=this.loadIcon(t,s),this.icons[t])),Me.subscribe("theme",this.handleChangeTheme)}static getInstance(){return Ws.instance||(Ws.instance=new Ws),Ws.instance}getCachedIcon(t){return this.icons[t]}loadIcon(t,{cache:s="force-cache",...r}){return this.theme?fetch(`https://ds-assets.cupra.com/icons/${this.theme}/${t}.svg`,{cache:s,...r}).then(i=>i.text()).catch(i=>((i==null?void 0:i.name)!=="AbortError"&&console.error(`Failed to fetch icon "${t}":`,i),"")):Promise.resolve('<svg class="ds-icon"></svg>')}}).getInstance();var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,zo=e=>{throw TypeError(e)},we=(e,t,s,r)=>{for(var i=r>1?void 0:r?lc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&ac(t,s,i),i},Do=(e,t,s)=>t.has(e)||zo("Cannot "+s),jo=(e,t,s)=>(Do(e,t,"read from private field"),t.get(e)),cc=(e,t,s)=>t.has(e)?zo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),dc=(e,t,s,r)=>(Do(e,t,"write to private field"),t.set(e,s),s),xs;let Vt=class extends C{constructor(){super(),this.iconHtml="",cc(this,xs),this.getIcon=async()=>{var t,s;(t=jo(this,xs))==null||t.abort(),dc(this,xs,new AbortController);const r=jo(this,xs).signal;this.iconHtml=await((s=No.fetchIcon)==null?void 0:s.call(No,this.iconName,{signal:r}))},Me.subscribe("theme",this.getIcon)}async updated(t){super.updated(t),(t.has("iconName")||!this.iconHtml)&&await this.getIcon()}getDimension(t,s,r){return t?`${t}px`:s?"auto":this.size?`${this.size}px`:r}get styleTokens(){const t=this.getDimension(this.width,this.height,"var(--private-ds-icon-width, var(--ds-icon-width, 20px))"),s=this.getDimension(this.height,this.width,"var(--private-ds-icon-height, var(--ds-icon-height, 20px))");return B`
931
- <style>
932
- .ds-icon {
933
- display: inline-block;
934
- width: ${t};
935
- height: ${s};
936
- }
937
-
938
- .ds-icon-color {
939
- fill: ${this.color?this.color:"var(--private-ds-icon-color, var(--ds-icon-color, black))"};
940
- }
941
-
942
- .ds-icon-color-stroke {
943
- stroke: ${this.color?this.color:"var(--private-ds-icon-color, var(--ds-icon-color, black))"};
944
- }
945
- </style>
946
- `}render(){return d`
947
- ${this.styleTokens}
948
- ${this.iconHtml?tr(this.iconHtml):d`<svg class="ds-icon"></svg>`}
949
- `}};xs=new WeakMap,Vt.styles=v`
950
- :host {
951
- line-height: 0;
952
- display: inline-block;
953
- }
954
- `,we([a({type:String,attribute:"icon-name"})],Vt.prototype,"iconName",2),we([a({type:String,attribute:"color"})],Vt.prototype,"color",2),we([a({type:Number})],Vt.prototype,"width",2),we([a({type:Number})],Vt.prototype,"height",2),we([a({type:Number,attribute:"size"})],Vt.prototype,"size",2),we([T()],Vt.prototype,"iconHtml",2),Vt=we([S("ds-icon")],Vt);var hc=Object.defineProperty,li=(e,t,s,r)=>{for(var i=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=n(t,s,i)||i);return i&&hc(t,s,i),i};let $s=class extends Mt{constructor(){super(),this.handleChangeTheme=t=>{this.pubSubTheme=t},this.pubSubTheme=Me.subscribe("theme",this.handleChangeTheme)}connectedCallback(){super.connectedCallback(),this.applyTheme()}updated(t){super.updated(t),(t.has("contextTheme")||t.has("pubSubTheme"))&&(this.theme=this.contextTheme??this.pubSubTheme,this.applyTheme())}applyTheme(){var t;const s=this.constructor,r=(t=s.themesStyles)==null?void 0:t[this.theme],i=Array.isArray(r)?r:[r];if(!(i!=null&&i.length))return;const o=Array.isArray(s.styles)?s.styles:[s.styles];Yr(this.shadowRoot,[...o,...i].filter(Boolean))}};li([a({attribute:!1}),ao({context:Wr,subscribe:!0})],$s.prototype,"contextTheme"),li([T()],$s.prototype,"pubSubTheme"),li([T()],$s.prototype,"theme");const pc=v`
955
- :host {
956
- display: block;
957
- width: 100%;
958
- }
959
-
960
- .label,
961
- .error-text,
962
- .helper-text {
963
- user-select: none;
964
- }
965
-
966
- .label {
967
- position: absolute;
968
- top: 0;
969
- left: 0;
970
- transform-origin: top left;
971
- pointer-events: none;
972
- transition:
973
- transform 0.2s,
974
- font-size 0.2s;
975
- white-space: nowrap;
976
- }
977
- `,uc=v`
978
- .container {
979
- position: relative;
980
- }
981
-
982
- .input-field::-webkit-search-decoration,
983
- .input-field::-webkit-search-cancel-button,
984
- .input-field::-webkit-search-results-button,
985
- .input-field::-webkit-search-results-decoration,
986
- .input-field:not(.number)::-webkit-inner-spin-button,
987
- .input-field::-webkit-calendar-picker-indicator {
988
- display: none;
989
- }
990
-
991
- .input-field {
992
- box-sizing: border-box;
993
- width: 100%;
994
- border: none;
995
- outline: none;
996
- background-color: transparent;
997
- }
998
-
999
- .inner-container {
1000
- align-items: center;
1001
- display: flex;
1002
- position: relative;
1003
- }
1004
-
1005
- .input-field:focus {
1006
- outline: none;
1007
- }
1008
- `,mc=v`
1009
- .container {
1010
- padding: 16px 0 0 0;
1011
- }
1012
- .inner-container {
1013
- border-bottom-style: solid;
1014
- border-bottom-width: 1px;
1015
- margin-top: 4px;
1016
- }
1017
- .light .inner-container {
1018
- border-bottom-color: var(--ds-color-dark-grey);
1019
- }
1020
- .dark .inner-container {
1021
- border-bottom-color: var(--ds-color-medium-grey);
1022
- }
1023
- .success.light .inner-container {
1024
- border-bottom-color: var(--ds-color-green-100);
1025
- }
1026
- .success.dark .inner-container {
1027
- border-bottom-color: var(--ds-color-green-100);
1028
- }
1029
- :focus.light .inner-container {
1030
- border-bottom-color: var(--ds-color-black);
1031
- }
1032
- .focused.dark .inner-container {
1033
- border-bottom-color: var(--ds-color-light-grey);
1034
- }
1035
- .error.light .inner-container {
1036
- border-bottom-color: #b50303;
1037
- }
1038
- .error.dark .inner-container {
1039
- border-bottom-color: #ec8b8b;
1040
- }
1041
- .disabled.light .inner-container {
1042
- border-bottom-color: var(--ds-color-medium-grey);
1043
- }
1044
- .disabled.dark .inner-container {
1045
- border-bottom-color: var(--ds-color-dark-grey);
1046
- }
1047
- .input-field {
1048
- padding: 0 0 8px 0;
1049
- }
1050
- .large .input-field {
1051
- font: var(--ds-font-cupra-light-30-title);
1052
- }
1053
- .small .input-field {
1054
- font: var(--ds-font-cupra-light-20-title);
1055
- }
1056
- .light .input-field {
1057
- color: var(--ds-color-black);
1058
- }
1059
- .dark .input-field {
1060
- color: var(--ds-color-white);
1061
- }
1062
- .disabled.light .input-field {
1063
- color: var(--ds-color-off-white);
1064
- }
1065
- .disabled.dark .input-field {
1066
- color: var(--ds-color-grey);
1067
- }
1068
- .error-text {
1069
- font: var(--ds-font-cupra-light-10);
1070
- margin-top: 4px;
1071
- }
1072
- .light .error-text {
1073
- color: #b50303;
1074
- }
1075
- .dark .error-text {
1076
- color: #ec8b8b;
1077
- }
1078
- .helper-text {
1079
- font: var(--ds-font-cupra-light-10);
1080
- margin-top: 4px;
1081
- }
1082
- .light .helper-text {
1083
- color: var(--ds-color-grey);
1084
- }
1085
- .dark .helper-text {
1086
- color: var(--ds-color-off-white);
1087
- }
1088
- .disabled.light .helper-text {
1089
- color: var(--ds-color-off-white);
1090
- }
1091
- .disabled.dark .helper-text {
1092
- color: var(--ds-color-grey);
1093
- }
1094
- .large .label {
1095
- font: var(--ds-font-cupra-light-30-title);
1096
- }
1097
- .small .label {
1098
- font: var(--ds-font-cupra-light-20-title);
1099
- }
1100
- .light .label {
1101
- color: var(--ds-color-grey);
1102
- }
1103
- .dark .label {
1104
- color: var(--ds-color-off-white);
1105
- }
1106
- .disabled.light .label {
1107
- color: var(--ds-color-off-white);
1108
- }
1109
- .disabled.dark .label {
1110
- color: var(--ds-color-grey);
1111
- }
1112
- .light .icon {
1113
- --ds-icon-color: var(--ds-color-dark-grey);
1114
- }
1115
- .dark .icon {
1116
- --ds-icon-color: var(--ds-color-light-grey);
1117
- }
1118
- .disabled.light .icon {
1119
- --ds-icon-color: var(--ds-color-medium-grey);
1120
- }
1121
- .disabled.dark .icon {
1122
- --ds-icon-color: var(--ds-color-dark-grey);
1123
- }
1124
- `,fc=[mc];var yc=Object.defineProperty,kt=(e,t,s,r)=>{for(var i=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=n(t,s,i)||i);return i&&yc(t,s,i),i};const ci=class extends rr($s){constructor(){super(...arguments),this.initialValue="",this.label="",this.helperText="",this.errorText="",this.disabled=!1,this.success=!1,this.mode="light",this.size="large",this.focused=!1,this.handleFocus=()=>{this.focused=!0},this.handleBlur=()=>{this.focused=!1}}firstUpdated(){this._value=this.initialValue}get value(){return this._value}set value(t){this._value=t}get classes(){return{container:!0,focused:this.focused,error:!!this.errorText,success:this.success,disabled:this.disabled,[this.size]:!0,[this.mode]:!0}}get styleTokens(){return B`
1125
- <style>
1126
- :host{
1127
- color-scheme: ${this.mode};
1128
- pointer-events: ${this.disabled?"none":"visible"};
1129
- }
1130
- </style>
1131
- `}render(){return d`
1132
- ${this.styleTokens}
1133
- <div class=${b(this.classes)}>
1134
- <div class="inner-container">
1135
- ${this.labelTemplate}
1136
- ${this.inputTemplate}
1137
- ${this.iconTemplate}
1138
- </div>
1139
- <div class="helper-text">${this.helperText}</div>
1140
- <div class="error-text">${this.errorText}</div>
1141
- ${this.dropdownTemplate}
1142
- </div>
1143
- `}};ci.styles=[pc,uc],ci.themesStyles={cupra:fc};let ft=ci;kt([a({type:String,reflect:!0,attribute:"initial-value"})],ft.prototype,"initialValue"),kt([a({type:String})],ft.prototype,"label"),kt([a({type:String,attribute:"helper-text"})],ft.prototype,"helperText"),kt([a({type:String,attribute:"error-text"})],ft.prototype,"errorText"),kt([a({type:Boolean,converter:$})],ft.prototype,"disabled"),kt([a({type:Boolean,converter:$})],ft.prototype,"success"),kt([a({type:String,reflect:!0})],ft.prototype,"mode"),kt([a({type:String})],ft.prototype,"size"),kt([T()],ft.prototype,"_value"),kt([T()],ft.prototype,"focused"),kt([_t(".input-field")],ft.prototype,"inputField");var gc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,Ut=(e,t,s,r)=>{for(var i=r>1?void 0:r?vc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&gc(t,s,i),i};let At=class extends ft{constructor(){super(...arguments),this.name="",this.placeholder="",this.type="text",this.min=0,this.max=100,this.step=1,this._hasPicker=!1,this.handleClickIcon=()=>{var t,s;(s=(t=this.inputField)==null?void 0:t.showPicker)==null||s.call(t)},this.handleInput=t=>{const s=t.target;this._value=s.value||""}}firstUpdated(){var t;super.firstUpdated(),this._hasPicker=!!((t=this.inputField)!=null&&t.showPicker)}get iconTemplate(){if(this.type!=="time"&&this.type!=="date")return u;let t;switch(this.type){case"date":t="calendar";break;case"time":t="clock";break}return d`
1144
- <style>
1145
- .icon {
1146
- cursor: ${this._hasPicker?"pointer":"auto"};
1147
- }
1148
- </style>
1149
- ${this.componentFactory.createIcon({class:"icon","icon-name":t,"@click":this.handleClickIcon})}
1150
- `}get labelTemplate(){return d`
1151
- <label
1152
- id="label"
1153
- class="label"
1154
- style=${this.focused||this._value||["date","time"].includes(this.type)?"transform: translateY(-18px); font-size: 12px;":"transform: translateY(0);"}
1155
- >
1156
- ${this.label}
1157
- </label>
1158
- `}get inputTemplate(){return d`
1159
- ${ws(this.type==="number",[[!0,()=>d`
1160
- <input
1161
- aria-labelledby="label"
1162
- class="input-field number"
1163
- type=${this.type}
1164
- min="${this.min}"
1165
- max="${this.max}"
1166
- step="${this.step}"
1167
- name=${this.name}
1168
- placeholder=${this.focused?this.placeholder:""}
1169
- value=${this._value}
1170
- @focus=${this.handleFocus}
1171
- @blur=${this.handleBlur}
1172
- @input=${this.handleInput}
1173
- />
1174
- `],[!1,()=>d`
1175
- <input
1176
- aria-labelledby="label"
1177
- class="input-field"
1178
- type=${this.type}
1179
- maxlength=${this.maxLength}
1180
- name=${this.name}
1181
- placeholder=${this.focused?this.placeholder:""}
1182
- value=${this._value}
1183
- @focus=${this.handleFocus}
1184
- @blur=${this.handleBlur}
1185
- @input=${this.handleInput}
1186
- />
1187
- `]])}
1188
- `}get dropdownTemplate(){return u}};Ut([a({type:String})],At.prototype,"name",2),Ut([a({type:String})],At.prototype,"placeholder",2),Ut([a({type:String,attribute:"max-length"})],At.prototype,"maxLength",2),Ut([a({type:String})],At.prototype,"type",2),Ut([a({type:Number})],At.prototype,"min",2),Ut([a({type:Number})],At.prototype,"max",2),Ut([a({type:Number})],At.prototype,"step",2),Ut([T()],At.prototype,"_hasPicker",2),At=Ut([S("ds-input",{skipTagAsComponentName:!0})],At);const bc=v`
1189
- :host {
1190
- display: inline-flex;
1191
- }
1192
-
1193
- .link-button {
1194
- background: transparent;
1195
- border: none;
1196
- outline: none;
1197
- text-align: center;
1198
- padding: 0;
1199
- display: inline-flex;
1200
- justify-content: center;
1201
- align-items: center;
1202
- cursor: pointer;
1203
- }
1204
- `;var wc=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,Tt=(e,t,s,r)=>{for(var i=r>1?void 0:r?xc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&wc(t,s,i),i};let ht=class extends C{constructor(){super(...arguments),this.mode="light",this.size="large",this.underline=!1,this.disabled=!1,this.iconName="arrow-right",this.iconPosition="right"}get iconTemplate(){return this.iconName==="none"?u:this.componentFactory.createIcon({class:"icon","icon-name":this.iconName})}get classes(){return{"link-button":!0,disabled:!!this.disabled,underline:!!this.underline,[this.size]:!0,[this.mode]:!!this.mode}}handleClick(t){this.href||t.preventDefault()}get styleTokens(){return B`
1205
- <style>
1206
- :host{
1207
- color-scheme: ${this.mode};
1208
- pointer-events: ${this.disabled?"none":"visible"};
1209
- }
1210
- </style>
1211
- `}render(){return d`
1212
- ${this.styleTokens}
1213
- ${ws(this.htmlTagName||"button",[["button",()=>d`
1214
- <button class=${b(this.classes)} ?disabled=${this.disabled}>
1215
- ${this.iconPosition==="left"?this.iconTemplate:u}
1216
- <slot></slot>
1217
- ${this.iconPosition==="right"?this.iconTemplate:u}
1218
- </button>
1219
- `],["a",()=>d`
1220
- <a
1221
- class=${b(this.classes)}
1222
- href=${this.href}
1223
- rel=${this.rel}
1224
- target=${this.target}
1225
- @click=${this.handleClick}
1226
- ?disabled=${this.disabled}
1227
- >
1228
- ${this.iconPosition==="left"?this.iconTemplate:u}
1229
- <slot></slot>
1230
- ${this.iconPosition==="right"?this.iconTemplate:u}
1231
- </a>
1232
- `]])}
1233
- `}};ht.styles=[bc],Tt([a({type:String,reflect:!0})],ht.prototype,"mode",2),Tt([a({type:String})],ht.prototype,"size",2),Tt([a({type:Boolean,converter:$})],ht.prototype,"underline",2),Tt([a({type:Boolean,converter:$})],ht.prototype,"disabled",2),Tt([a({type:String,attribute:"html-tag-name"})],ht.prototype,"htmlTagName",2),Tt([a({type:String,reflect:!0})],ht.prototype,"href",2),Tt([a({type:String,reflect:!0})],ht.prototype,"rel",2),Tt([a({type:String,reflect:!0})],ht.prototype,"target",2),Tt([a({type:String,attribute:"icon-name"})],ht.prototype,"iconName",2),Tt([a({type:String,attribute:"icon-position"})],ht.prototype,"iconPosition",2),ht=Tt([S("ds-link-button")],ht);const $c=v`
1234
- .track {
1235
- width: 100%;
1236
- position: relative;
1237
- overflow: hidden;
1238
- }
1239
-
1240
- .fill {
1241
- position: absolute;
1242
- top: 0;
1243
- left: 0;
1244
- height: 100%;
1245
- display: block;
1246
- }
1247
- `,Sc=v`
1248
- .track.large {
1249
- height: 4px;
1250
- }
1251
- .track.small {
1252
- height: 2px;
1253
- }
1254
- .track.light {
1255
- background-color: var(--ds-color-off-white);
1256
- }
1257
- .track.dark {
1258
- background-color: var(--ds-color-off-white);
1259
- }
1260
- .light .fill {
1261
- background-color: var(--ds-color-black);
1262
- }
1263
- .dark .fill {
1264
- background-color: var(--ds-color-white);
1265
- }
1266
- `,kc=[Sc],Tc=v`
1267
- .track.large {
1268
- height: 4px;
1269
- }
1270
- .track.small {
1271
- height: 2px;
1272
- }
1273
- .track.light {
1274
- background-color: var(--ds-color-off-white);
1275
- }
1276
- .track.dark {
1277
- background-color: var(--ds-color-off-white);
1278
- }
1279
- .light .fill {
1280
- background-color: var(--ds-color-black);
1281
- }
1282
- .dark .fill {
1283
- background-color: var(--ds-color-white);
1284
- }
1285
- `,Cc=[Tc],Ec=v``,Oc=[Ec];var Pc=Object.defineProperty,di=(e,t,s,r)=>{for(var i=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=n(t,s,i)||i);return i&&Pc(t,s,i),i};const hi=class extends $s{constructor(){super(...arguments),this.show=!1,this.mode="light",this.size="large"}get classes(){return{track:!0,[this.size]:!0,[this.mode]:!!this.mode}}get styleTokens(){return B`
1286
- <style>
1287
- :host {
1288
- color-scheme: ${this.mode};
1289
- }
1290
- </style>
1291
- `}get barTemplate(){return d`
1292
- ${this.styleTokens}
1293
- <div class=${b(this.classes)}>
1294
- <div class="fill"></div>
1295
- </div>
1296
- `}};hi.styles=[$c],hi.themesStyles={cupra:Cc,"cupra-diagonal":kc,seat:Oc};let Ss=hi;di([a({type:Boolean,converter:$})],Ss.prototype,"show"),di([a({type:String,reflect:!0})],Ss.prototype,"mode"),di([a({type:String})],Ss.prototype,"size");const _c=v`
1297
- .fill {
1298
- width: 33%;
1299
- transform: translateX(-100%);
1300
- animation: loader 1.4s linear infinite;
1301
- }
1302
-
1303
- @keyframes loader {
1304
- 0% {
1305
- transform: translateX(-100%);
1306
- }
1307
- 100% {
1308
- transform: translateX(300%);
1309
- }
1310
- }
1311
- `;var Ic=Object.getOwnPropertyDescriptor,Ac=Object.getPrototypeOf,Nc=Reflect.get,zc=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ic(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=n(i)||i);return i},Dc=(e,t,s)=>Nc(Ac(e),s,t);let ks=class extends Ss{render(){return this.show?this.barTemplate:u}};ks.styles=[...Dc(ks,ks,"styles"),_c],ks=zc([S("ds-loader-bar",{skipTagAsComponentName:!0})],ks);function xe(e,...t){const s=String.raw({raw:e},...t).replace(/(--private-[\w-]+)(?=\s*[):,])/g,"$1-v1-0-0-canary-9"),r=ho(s);return v`${r}`}const jc=xe`
1312
- .container {
1313
- display: inline-flex;
1314
- justify-content: center;
1315
- align-items: center;
1316
- }
1317
-
1318
- .dot.middle {
1319
- animation-delay: 0.4s;
1320
- }
1321
-
1322
- .dot.last {
1323
- animation-delay: 0.8s;
1324
- }
1325
-
1326
- .dot {
1327
- border-radius: 50%;
1328
- animation-name: loader;
1329
- animation-timing-function: linear;
1330
- animation-iteration-count: infinite;
1331
- animation-fill-mode: forwards;
1332
- animation-duration: 2s;
1333
- }
1334
-
1335
- @keyframes loader {
1336
- 0% { opacity: 1 }
1337
- 18% { opacity: 0.2 }
1338
- 82% { opacity: 0.6 }
1339
- 100% { opacity: 1 }
1340
- }
1341
- `;var Mc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,ar=(e,t,s,r)=>{for(var i=r>1?void 0:r?Lc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Mc(t,s,i),i};let We=class extends C{constructor(){super(...arguments),this.show=!1,this.mode="light",this.size="large"}get classes(){return{container:!0,[this.size]:!0,[this.mode]:!!this.mode}}get styleTokens(){return B`
1342
- <style>
1343
- :host {
1344
- color-scheme: ${this.mode};
1345
- }
1346
- </style>
1347
- `}render(){return this.show?d`
1348
- ${this.styleTokens}
1349
- <div class=${b(this.classes)}>
1350
- <div class="dot first"></div>
1351
- <div class="dot middle"></div>
1352
- <div class="dot last"></div>
1353
- </div>
1354
- `:u}};We.styles=[jc],ar([a({type:Boolean,converter:$})],We.prototype,"show",2),ar([a({type:String,reflect:!0})],We.prototype,"mode",2),ar([a({type:String})],We.prototype,"size",2),We=ar([S("ds-loader-dots")],We);const Bc=v`
1355
- .backdrop {
1356
- display: flex;
1357
- position: fixed;
1358
- height: 100dvh;
1359
- width: 100dvw;
1360
- left: 0;
1361
- top: 0;
1362
- justify-content: center;
1363
- align-items: center;
1364
- }
1365
-
1366
- /* WebKit and Opera browsers */
1367
- @-webkit-keyframes spinner {
1368
- from {
1369
- -webkit-transform: rotateY(0deg);
1370
- }
1371
- to {
1372
- -webkit-transform: rotateY(-360deg);
1373
- }
1374
- }
1375
-
1376
- /* all other browsers */
1377
- @keyframes spinner {
1378
- from {
1379
- -moz-transform: rotateY(0deg);
1380
- -ms-transform: rotateY(0deg);
1381
- transform: rotateY(0deg);
1382
- }
1383
- to {
1384
- -moz-transform: rotateY(-360deg);
1385
- -ms-transform: rotateY(-360deg);
1386
- transform: rotateY(-360deg);
1387
- }
1388
- }
1389
-
1390
- .container {
1391
- position: relative;
1392
- perspective: 1000px;
1393
- animation-name: spinner;
1394
- animation-timing-function: ease-in-out;
1395
- animation-iteration-count: infinite;
1396
- animation-duration: 2s;
1397
- transform-style: preserve-3d;
1398
- }
1399
-
1400
- .logo {
1401
- position: absolute;
1402
- top: 0;
1403
- left: 0;
1404
- }
1405
-
1406
- .front-logo {
1407
- z-index: 1;
1408
- }
1409
-
1410
- .back-logo {
1411
- z-index: 0;
1412
- }
1413
- `;var Fc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,Ts=(e,t,s,r)=>{for(var i=r>1?void 0:r?Rc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Fc(t,s,i),i};let $e=class extends C{constructor(){super(...arguments),this.show=!1,this.zIndex=2e3,this.iconName="logo"}get styleTokens(){return d`
1414
- <style>
1415
- :host {
1416
- --ds-icon-color: ${this.color||"var(--ds-loader-logo-icon-color)"};
1417
- }
1418
- </style>
1419
- `}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:"icon","icon-name":this.iconName}):u}render(){return this.show?d`
1420
- <style>
1421
- .backdrop {
1422
- z-index: ${this.zIndex};
1423
- }
1424
- </style>
1425
- ${this.styleTokens}
1426
- <div class="backdrop">
1427
- <div class="container">${this.iconTemplate}</div>
1428
- </div>
1429
- `:u}};$e.styles=[Bc],Ts([a({type:Boolean,converter:$})],$e.prototype,"show",2),Ts([a({type:Number,attribute:"z-index"})],$e.prototype,"zIndex",2),Ts([a({type:String,attribute:"icon-name"})],$e.prototype,"iconName",2),Ts([a({type:String})],$e.prototype,"color",2),$e=Ts([S("ds-loader-logo")],$e);const Vc=v`
1430
- :host {
1431
- display: contents;
1432
- }
1433
- .container {
1434
- display: inline-flex;
1435
- justify-content: center;
1436
- align-items: center;
1437
- }
1438
-
1439
- .container.column {
1440
- flex-direction: column;
1441
- }
1442
-
1443
- .container.default ::slotted([slot='text']) {
1444
- display: none;
1445
- }
1446
- `,Uc=v`
1447
- .spinner {
1448
- width: 24px;
1449
- height: 24px;
1450
- animation: spin 1s linear infinite;
1451
- }
1452
-
1453
- .spinner circle {
1454
- fill: none;
1455
- }
1456
-
1457
- .spinner-bg {
1458
- stroke-width: 10;
1459
- }
1460
-
1461
- .spinner-fg {
1462
- stroke-width: 6;
1463
- stroke-linecap: round;
1464
- stroke-dasharray: 90;
1465
- stroke-dashoffset: 10;
1466
- transform-origin: center;
1467
- }
1468
-
1469
- @keyframes spin {
1470
- 0% {
1471
- transform: rotate(0deg);
1472
- }
1473
- 100% {
1474
- transform: rotate(360deg);
1475
- }
1476
- }
1477
- `,Hc=[Vc,Uc];var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,lr=(e,t,s,r)=>{for(var i=r>1?void 0:r?Wc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&qc(t,s,i),i};let Ge=class extends C{constructor(){super(...arguments),this.show=!1,this.mode="light",this.orientation="row"}get classes(){return{container:!0,[this.mode]:!!this.mode,[this.orientation]:!!this.orientation}}render(){return this.show?d`
1478
- <div class=${b(this.classes)}>
1479
- <svg class="spinner" viewBox="0 0 50 50">
1480
- <circle class="spinner-bg" cx="25" cy="25" r="20" />
1481
- <circle class="spinner-fg" cx="25" cy="25" r="20" />
1482
- </svg>
1483
- <slot name="text"></slot>
1484
- </div>
1485
- `:u}};Ge.styles=Hc,lr([a({type:Boolean,converter:$})],Ge.prototype,"show",2),lr([a({type:String,reflect:!0})],Ge.prototype,"mode",2),lr([a({type:String})],Ge.prototype,"orientation",2),Ge=lr([S("ds-loader-spinner")],Ge);const Gc=v`
1486
- :host {
1487
- display: contents;
1488
- }
1489
- `,Kc=v`
1490
- .container {
1491
- display: grid;
1492
- grid-template-columns: auto auto;
1493
- }
1494
- `;var Yc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,pi=(e,t,s,r)=>{for(var i=r>1?void 0:r?Xc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Yc(t,s,i),i};let Cs=class extends C{constructor(){super(...arguments),this.size="xxsmall",this.mode="light"}get logoTemplate(){return this.componentFactory.createIcon({class:"icon-logo","icon-name":"logo"})}get logoWordmarkTemplate(){return this.componentFactory.createIcon({class:"icon-wordmark","icon-name":"logo-wordmark"})}get classes(){return{container:!0,[this.size]:!0,[this.mode]:!!this.mode}}get styleTokens(){return B`
1495
- <style>
1496
- :host {
1497
- color-scheme: ${this.mode};
1498
- }
1499
- </style>
1500
- `}render(){return d`
1501
- ${this.styleTokens}
1502
- <div data-testid="ds-logo-container" class=${b(this.classes)}>
1503
- ${this.logoTemplate}
1504
- ${this.logoWordmarkTemplate}
1505
- </div>
1506
- `}};Cs.styles=[Gc,Kc],pi([a({type:String})],Cs.prototype,"size",2),pi([a({type:String,reflect:!0})],Cs.prototype,"mode",2),Cs=pi([S("ds-logo")],Cs);const Jc=v`
1507
- :host {
1508
- display: inline-block;
1509
- }
1510
-
1511
- .container {
1512
- display: inline-block;
1513
- position: relative;
1514
- cursor: pointer;
1515
- }
1516
-
1517
- .icon {
1518
- position: absolute;
1519
- left: 50%;
1520
- transform: translateX(-50%);
1521
- }
1522
-
1523
- .cluster-count {
1524
- display: flex;
1525
- position: absolute;
1526
- border-radius: var(--dg-border-radius-full);
1527
- background: var(--dg-color-bg-base);
1528
- align-items: center;
1529
- justify-content: center;
1530
- top: -8px;
1531
- right: -6px;
1532
- width: 24px;
1533
- height: 24px;
1534
- font-size: var(--dg-font-size-body-s, 12px);
1535
- font-style: normal;
1536
- font-weight: 400;
1537
- line-height: var(--dg-font-height-body-s, 16px); /* 133.333% */
1538
- letter-spacing: var(--dg-font-letter-spacing-m, 0.5px);
1539
- color: var(--dg-color-text-strong);
1540
- }
1541
- `;var Zc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,re=(e,t,s,r)=>{for(var i=r>1?void 0:r?Qc(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Zc(t,s,i),i};let Nt=class extends C{constructor(){super(...arguments),this.width=48,this.height=48,this.checked=!1,this.iconSize=24,this.iconTop=8}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:"icon","icon-name":this.iconName,size:this.iconSize}):u}get clusterNumberTemplate(){return this.clusterCount?d`
1542
- <div class='cluster-count'>
1543
- ${this.clusterCount}
1544
- </div>
1545
- `:u}handleClick(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{checked:this.checked}}))}get styleTokens(){return d`
1546
- <style>
1547
- :host{
1548
- --ds-icon-color: var(--ds-map-pin-icon-color);
1549
- }
1550
-
1551
- .icon {
1552
- top: ${this.iconTop}px;
1553
- }
1554
- </style>
1555
- `}get classes(){return{container:!0,checked:this.checked,cluster:!!this.clusterCount}}render(){return d`
1556
- ${this.styleTokens}
1557
- <span data-testid="ds-map-pin-container" class=${b(this.classes)} @click=${this.handleClick}>
1558
- <svg
1559
- class="marker"
1560
- xmlns="http://www.w3.org/2000/svg"
1561
- width=${this.width}
1562
- height=${this.height}
1563
- viewBox="0 0 48 49"
1564
- fill="none"
1565
- >
1566
- <path
1567
- fill-rule="evenodd"
1568
- clip-rule="evenodd"
1569
- d="M24.1599 48.6467C26.4109 38.2008 41.9998 30.5848 41.9998 18.5849C41.9998 8.74991 33.9409 0.777954 23.9999 0.777954C14.059 0.777954 6 8.74991 6 18.5849C6 31.2298 21.5719 37.9948 23.5469 48.6077C23.7759 48.8277 23.8869 48.8277 24.1599 48.6467Z"
1570
- fill="#1B1B1B"
1571
- />
1572
- </svg>
1573
- ${this.iconTemplate}
1574
- ${this.clusterNumberTemplate}
1575
- </span>
1576
- `}};Nt.styles=[Jc],re([a({type:Number,attribute:"width"})],Nt.prototype,"width",2),re([a({type:Number,attribute:"height"})],Nt.prototype,"height",2),re([a({type:Boolean,converter:$,reflect:!0})],Nt.prototype,"checked",2),re([a({type:String,attribute:"icon-name"})],Nt.prototype,"iconName",2),re([a({type:Number,attribute:"icon-size"})],Nt.prototype,"iconSize",2),re([a({type:Number,attribute:"icon-top"})],Nt.prototype,"iconTop",2),re([a({type:Number,attribute:"cluster-count"})],Nt.prototype,"clusterCount",2),Nt=re([S("ds-map-pin")],Nt);const td=v`
1577
- :host {
1578
- transition: display 300ms ease allow-discrete;
1579
- }
1580
-
1581
- .animate {
1582
- transition:
1583
- opacity 300ms ease,
1584
- display 300ms ease allow-discrete;
1585
- }
1586
-
1587
- .container {
1588
- flex-direction: column;
1589
- justify-content: center;
1590
- align-items: center;
1591
- opacity: 1;
1592
- @starting-style {
1593
- opacity: 0;
1594
- }
1595
- }
1596
-
1597
- .open {
1598
- display: flex;
1599
- }
1600
-
1601
- .close {
1602
- display: none;
1603
- opacity: 0;
1604
- }
1605
-
1606
- .close-button {
1607
- position: absolute;
1608
- right: 8px;
1609
- top: 24px;
1610
- z-index: 1;
1611
- }
1612
-
1613
- .content-container {
1614
- max-height: calc(100dvh - 48px);
1615
- box-sizing: content-box;
1616
- width: 100%;
1617
- display: grid;
1618
- grid-gap: 16px;
1619
- grid-template-rows: auto 1fr auto auto;
1620
- grid-template-areas:
1621
- 'title'
1622
- 'content'
1623
- 'cancelButton'
1624
- 'confirmButton';
1625
- }
1626
-
1627
- ::slotted([slot='title']) {
1628
- grid-area: title;
1629
- width: calc(100% - 32px);
1630
- }
1631
-
1632
- ::slotted([slot='content']) {
1633
- grid-area: content;
1634
- overflow: auto;
1635
- margin: 16px 0 24px;
1636
- }
1637
-
1638
- .cancel-button {
1639
- grid-area: cancelButton;
1640
- }
1641
-
1642
- .confirm-button {
1643
- grid-area: confirmButton;
1644
- }
1645
-
1646
- ${ct.m} {
1647
- .content-container.full-width {
1648
- max-width: 700px;
1649
- }
1650
-
1651
- .content-container {
1652
- max-width: 456px;
1653
- grid-row-gap: 40px;
1654
- grid-column-gap: 32px;
1655
- grid-template-rows: auto 1fr auto;
1656
- grid-template-columns: 1fr 1fr;
1657
- grid-template-areas:
1658
- 'title title'
1659
- 'content content'
1660
- 'cancelButton confirmButton';
1661
- }
1662
-
1663
- ::slotted([slot='title']) {
1664
- width: 100%;
1665
- }
1666
-
1667
- ::slotted([slot='content']) {
1668
- margin: 0;
1669
- }
1670
-
1671
- .close-button {
1672
- right: 24px;
1673
- top: 24px;
1674
- }
1675
- }
1676
-
1677
- ${ct.l} {
1678
- .content-container.full-width {
1679
- max-width: 952px;
1680
- }
1681
-
1682
- .content-container {
1683
- max-width: 624px;
1684
- grid-row-gap: 40px;
1685
- grid-column-gap: 32px;
1686
- grid-template-rows: auto 1fr auto;
1687
- grid-template-columns: 2fr 3fr 3fr;
1688
- grid-template-areas:
1689
- 'title title title'
1690
- 'content content content'
1691
- '. cancelButton confirmButton';
1692
- }
1693
- }
1694
-
1695
- ${ct.xl} {
1696
- .content-container.full-width {
1697
- max-width: 1138px;
1698
- }
1699
-
1700
- .content-container {
1701
- max-width: 670px;
1702
- grid-row-gap: 40px;
1703
- grid-column-gap: 32px;
1704
- grid-template-rows: auto 1fr auto;
1705
- grid-template-columns: 1fr 1fr 1fr;
1706
- grid-template-areas:
1707
- 'title title title'
1708
- 'content content content'
1709
- '. cancelButton confirmButton';
1710
- }
1711
- }
1712
- `,ed=v`
1713
- .container.full-screen {
1714
- position: fixed;
1715
- height: 100%;
1716
- width: 100%;
1717
- top: 0;
1718
- left: 0;
1719
- box-sizing: border-box;
1720
- }
1721
-
1722
- .container.full-screen .content-container {
1723
- width: calc(100dvw - 32px);
1724
- }
1725
-
1726
- .icon {
1727
- margin-bottom: 32px;
1728
- }
1729
- `,sd=v`
1730
- .container.dialog {
1731
- position: fixed;
1732
- height: auto;
1733
- width: auto;
1734
- left: 50%;
1735
- }
1736
-
1737
- .backdrop {
1738
- position: fixed;
1739
- top: 0;
1740
- left: 0;
1741
- height: 100%;
1742
- width: 100%;
1743
- max-height: 100dvh;
1744
- max-width: 100dvw;
1745
- opacity: 0.8;
1746
- @starting-style {
1747
- opacity: 0;
1748
- }
1749
- }
1750
-
1751
- .container.dialog .content-container {
1752
- max-height: calc(100dvh - 64px);
1753
- padding: 24px 8px;
1754
- width: calc(100dvw - 32px);
1755
- }
1756
-
1757
- ${ct.m} {
1758
- .container.dialog .content-container {
1759
- max-height: calc(100dvh - 112px);
1760
- padding: 48px;
1761
- }
1762
- }
1763
- `,rd=v`
1764
- .container.fit {
1765
- position: absolute;
1766
- }
1767
- `,id=v`
1768
- .container.full-screen.v-align-default {
1769
- justify-content: flex-start;
1770
- padding-top: 24px;
1771
- }
1772
-
1773
- ${ct.m} {
1774
- .container.full-screen.v-align-default {
1775
- justify-content: center;
1776
- padding-top: 0;
1777
- }
1778
- }
1779
-
1780
- .container.dialog.v-align-default {
1781
- top: 50%;
1782
- transform: translate(-50%, -50%);
1783
- }
1784
-
1785
- .container.full-screen.v-align-start {
1786
- justify-content: flex-start;
1787
- padding-top: 24px;
1788
- }
1789
-
1790
- ${ct.m} {
1791
- .container.full-screen.v-align-start {
1792
- padding-top: 32px;
1793
- }
1794
- }
1795
-
1796
- ${ct.l} {
1797
- .container.full-screen.v-align-start {
1798
- padding-top: 32px;
1799
- }
1800
- }
1801
-
1802
- ${ct.xl} {
1803
- .container.full-screen.v-align-start {
1804
- padding-top: 64px;
1805
- }
1806
- }
1807
-
1808
- .container.dialog.v-align-start {
1809
- top: 0;
1810
- transform: translateX(-50%);
1811
- margin-top: 24px;
1812
- }
1813
-
1814
- .container.full-screen.v-align-center {
1815
- justify-content: center;
1816
- padding-top: 0;
1817
- }
1818
-
1819
- .container.dialog.v-align-center {
1820
- top: 50%;
1821
- transform: translate(-50%, -50%);
1822
- }
1823
-
1824
- .container.full-screen.v-align-end {
1825
- justify-content: flex-end;
1826
- padding-bottom: 24px;
1827
- }
1828
-
1829
- ${ct.m} {
1830
- .container.full-screen.v-align-end {
1831
- padding-bottom: 32px;
1832
- }
1833
- }
1834
-
1835
- ${ct.l} {
1836
- .container.full-screen.v-align-end {
1837
- padding-bottom: 32px;
1838
- }
1839
- }
1840
-
1841
- ${ct.xl} {
1842
- .container.full-screen.v-align-end {
1843
- padding-bottom: 64px;
1844
- }
1845
- }
1846
-
1847
- .container.dialog.v-align-end {
1848
- bottom: 0;
1849
- transform: translateX(-50%);
1850
- margin-bottom: 24px;
1851
- }
1852
- `;var od=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,Ct=(e,t,s,r)=>{for(var i=r>1?void 0:r?nd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&od(t,s,i),i};let pt=class extends ee(C){constructor(){super(...arguments),this.withCloseButton=!0,this.variant="fullScreen",this.zIndex=2e3,this.disableScrollLock=!1,this.fullWidth=!1,this.vAlign="default"}disconnectedCallback(){super.disconnectedCallback(),document.body.style.paddingRight="0",document.body.style.overflow=""}handleScroll(){const t=this.open&&!this.disableScrollLock,s=window.innerWidth>document.documentElement.clientWidth;document.body.style.paddingRight=t&&s?`${window.innerWidth-document.documentElement.clientWidth}px`:"0",document.body.style.overflow=t?"hidden":""}updated(t){super.updated(t),(t.has("open")||t.has("disableScrollLock"))&&this.handleScroll()}get backdropClasses(){return{backdrop:!0,animate:!0,open:this.open,close:!this.open}}get backdropTemplate(){return this.variant==="dialog"?d`<div class=${b(this.backdropClasses)} />`:u}get buttonSize(){return["xs","s","m"].includes(this.viewport)?"medium":"large"}get closeButtonSize(){return this.variant==="dialog"||["xs","s"].includes(this.viewport)?"small":"medium"}get closeButtonTemplate(){return this.withCloseButton?this.componentFactory.createIconButton({class:"close-button","data-aria-label":"close-button","@click":this.handleClickCloseButton,size:this.closeButtonSize,"icon-name":"cross",mode:"light",variant:"primary"}):u}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:"icon","icon-name":this.iconName,size:64}):u}get cancelButtonTemplate(){return this.cancelButtonText?this.componentFactory.createButton({class:"cancel-button",variant:"secondary",size:this.buttonSize,"@click":this.handleClickCancelButton,children:this.cancelButtonText}):u}get confirmButtonTemplate(){return this.confirmButtonText?this.componentFactory.createButton({class:"confirm-button",variant:"primary",size:this.buttonSize,"@click":this.handleClickConfirmButton,children:this.confirmButtonText}):u}get modalClasses(){return{container:!0,animate:!0,open:this.open,close:!this.open,dialog:this.variant==="dialog","full-screen":this.variant==="fullScreen"||this.variant==="fit",fit:this.variant==="fit",[`v-align-${this.vAlign}`]:!!this.vAlign}}get contentClasses(){return{"content-container":!0,"full-width":!!this.fullWidth}}render(){return d`
1853
- <style>
1854
- :host {
1855
- ${!this.open&&"display: none;"}
1856
- }
1857
- .container, .backdrop {
1858
- z-index: ${this.zIndex};
1859
- }
1860
- </style>
1861
- ${this.backdropTemplate}
1862
- <div
1863
- role="dialog"
1864
- aria-labelledby="ds-modal-title"
1865
- class=${b(this.modalClasses)}
1866
- @transitionend=${this.handleTransitionEnd}
1867
- >
1868
- ${this.closeButtonTemplate}
1869
- ${this.iconTemplate}
1870
- <div class=${b(this.contentClasses)}>
1871
- <slot id="ds-modal-title" name="title"></slot>
1872
- <slot name="content"></slot>
1873
- ${this.cancelButtonTemplate}
1874
- ${this.confirmButtonTemplate}
1875
- </div>
1876
- </div>
1877
- `}handleClickCancelButton(){this.open=!1,this.dispatchEvent(new CustomEvent("click-cancel-button",{bubbles:!0,composed:!0}))}handleClickConfirmButton(){this.dispatchEvent(new CustomEvent("click-confirm-button",{bubbles:!0,composed:!0}))}handleClickCloseButton(){this.open=!1,this.dispatchEvent(new CustomEvent("click-close-button",{bubbles:!0,composed:!0}))}handleTransitionEnd(t){t.propertyName==="opacity"&&(this.open?this.dispatchEvent(new CustomEvent("open-transition-end",{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent("close-transition-end",{bubbles:!0,composed:!0})))}};pt.styles=[ed,sd,rd,td,id],Ct([a({type:Boolean,reflect:!0,converter:$})],pt.prototype,"open",2),Ct([a({type:Boolean,attribute:"with-close-button",converter:$})],pt.prototype,"withCloseButton",2),Ct([a({type:String,attribute:"cancel-button-text"})],pt.prototype,"cancelButtonText",2),Ct([a({type:String,attribute:"confirm-button-text"})],pt.prototype,"confirmButtonText",2),Ct([a({type:String})],pt.prototype,"variant",2),Ct([a({type:Number,attribute:"z-index"})],pt.prototype,"zIndex",2),Ct([a({type:Boolean,converter:$,attribute:"disable-scroll-lock"})],pt.prototype,"disableScrollLock",2),Ct([a({type:String,attribute:"icon-name"})],pt.prototype,"iconName",2),Ct([a({type:Boolean,converter:$,attribute:"full-width"})],pt.prototype,"fullWidth",2),Ct([a({type:String,attribute:"v-align"})],pt.prototype,"vAlign",2),pt=Ct([S("ds-modal")],pt);const ui=e=>class extends e{constructor(){super(...arguments),this.inputStates={currentValue:"",focus:!1,focusVisible:!1,invalid:!1,filled:!1,disabled:!1},this.keyboardMode=!1,this._updateStates=()=>{var t,s,r,i,o;this.inputStates.currentValue=(t=this.nativeInput)==null?void 0:t.value,this.inputStates.invalid=!((s=this.nativeInput)!=null&&s.validity.valid),this.inputStates.focus=document.activeElement===this.nativeInput,this.inputStates.disabled=(r=this.nativeInput)==null?void 0:r.disabled,this.inputStates.filled=((o=(i=this.nativeInput)==null?void 0:i.value)==null?void 0:o.length)>0,this.requestUpdate()},this._handleKeydown=()=>{this.keyboardMode=!0},this._handleMousedown=()=>{this.keyboardMode=!1},this._handlePointerdown=()=>{this.keyboardMode=!1},this._handleFocusIn=t=>{t.target===this.nativeInput&&(this.inputStates.focus=!0,this.inputStates.focusVisible=!!this.keyboardMode,this.requestUpdate())},this._handleFocusOut=()=>{this.inputStates.focus=!1,this.inputStates.focusVisible=!1,this.requestUpdate()}}onInputReady(t){}firstUpdated(t){super.firstUpdated(t),window==null||window.addEventListener("keydown",this._handleKeydown),window==null||window.addEventListener("mousedown",this._handleMousedown),window==null||window.addEventListener("pointerdown",this._handlePointerdown);const s=()=>{var r,i,o;const n=this.querySelector("input")||this.querySelector("textarea")||((r=this.shadowRoot)==null?void 0:r.querySelector("input"))||((i=this.shadowRoot)==null?void 0:i.querySelector("textarea"));n&&(this.nativeInput=n,this._setupInputObservers(),this.onInputReady(n),(o=this.hostMutationObserver)==null||o.disconnect())};s(),this.hostMutationObserver=new MutationObserver(s),this.hostMutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0})}_setupInputObservers(){this.nativeInput.addEventListener("input",this._updateStates),this.nativeInput.addEventListener("focusin",this._handleFocusIn),this.nativeInput.addEventListener("focusout",this._handleFocusOut),this.inputMutationObserver=new MutationObserver(this._updateStates),this.inputMutationObserver.observe(this.nativeInput,{attributes:!0}),this._updateStates()}disconnectedCallback(){var t,s;super.disconnectedCallback(),window==null||window.removeEventListener("keydown",this._handleKeydown),window==null||window.removeEventListener("mousedown",this._handleMousedown),window==null||window.removeEventListener("pointerdown",this._handlePointerdown),(t=this.hostMutationObserver)==null||t.disconnect(),(s=this.inputMutationObserver)==null||s.disconnect(),this.nativeInput&&(this.nativeInput.removeEventListener("input",this._updateStates),this.nativeInput.removeEventListener("focusin",this._handleFocusIn),this.nativeInput.removeEventListener("focusout",this._handleFocusOut))}};function mi(e){return!e||typeof e!="string"&&typeof e!="number"?!1:(typeof e=="string"?Number(e):e)>0}const ad=v`
1878
- :host {
1879
- display: contents;
1880
- }
1881
- `;var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,Ke=(e,t,s,r)=>{for(var i=r>1?void 0:r?cd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&ld(t,s,i),i};let Ht=class extends ui(C){constructor(){super(...arguments),this.keyboardMode=!1,this.size="medium",this.helperText="",this.forcedError="",this.invalidError="",this.dataAriaLabelRemoveButton="",this.handleClickIcon=()=>{this.nativeInput.value="",this.nativeInput.focus(),["input","change"].forEach(t=>this.nativeInput.dispatchEvent(new Event(t,{bubbles:!0,composed:!0})))}}get classes(){return{container:!0,error:!!this.forcedError,[this.size]:!!this.size,disabled:this.inputStates.disabled,filled:this.inputStates.filled,invalid:this.inputStates.invalid,focus:this.inputStates.focus,"focus-visible":this.inputStates.focusVisible}}render(){return d`
1882
- <div class=${b(this.classes)}>
1883
- <div class="input-container">
1884
- <div><slot></slot></div>
1885
- ${this.iconTemplate}
1886
- </div>
1887
- <div class="footer">
1888
- ${this.helperTextTemplate}
1889
- ${this.forcedErrorTemplate}
1890
- ${this.invalidErrorTemplate}
1891
- ${this.lengthTemplate}
1892
- </div>
1893
- </div>
1894
- `}get iconTemplate(){var t,s,r;return(s=(t=this.nativeInput)==null?void 0:t.value)!=null&&s.length?this.componentFactory.createIconButton({class:"icon-button","icon-name":"cross",size:this.size,disabled:!!((r=this.nativeInput)!=null&&r.disabled),variant:"standard","@click":this.handleClickIcon,"data-aria-label":this.dataAriaLabelRemoveButton||"remove button"}):u}get lengthTemplate(){var t,s,r;const i=(s=(t=this.nativeInput)==null?void 0:t.maxLength)==null?void 0:s.toString();return mi(i)?d`<span class="char-counter">${((r=this.inputStates.currentValue)==null?void 0:r.length)||0}/${i}</span>`:u}get helperTextTemplate(){return this.forcedError||this.inputStates.invalid&&this.invalidError?u:d`<span class="support-text helper-text">${this.helperText}</span>`}get forcedErrorTemplate(){return this.forcedError?d`<span class="support-text error-text forced-error">${this.forcedError}</span>`:u}get invalidErrorTemplate(){return this.forcedError||!this.inputStates.invalid||!this.invalidError?u:d`<span class="support-text error-text invalid-error">${this.invalidError}</span>`}};Ht.styles=[ad],Ke([a({type:String})],Ht.prototype,"size",2),Ke([a({type:String,attribute:"helper-text"})],Ht.prototype,"helperText",2),Ke([a({type:String,attribute:"forced-error"})],Ht.prototype,"forcedError",2),Ke([a({type:String,attribute:"invalid-error"})],Ht.prototype,"invalidError",2),Ke([a({type:String,attribute:"data-aria-label-remove-button"})],Ht.prototype,"dataAriaLabelRemoveButton",2),Ht=Ke([S("ds-text-input")],Ht);var dd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,cr=(e,t,s,r)=>{for(var i=r>1?void 0:r?hd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&dd(t,s,i),i};let Es=class extends Ht{constructor(){super(...arguments),this.dataAriaLabelHideButton="",this.dataAriaLabelShowButton="",this.visible=!1,this.handleClickIcon=()=>{this.visible?(this.nativeInput.setAttribute("type","password"),this.visible=!1):(this.nativeInput.setAttribute("type","text"),this.visible=!0)}}get iconTemplate(){var t;return this.componentFactory.createIconButton({class:"icon-button","icon-name":this.visible?"eye-crossed-out":"eye",disabled:!!((t=this.nativeInput)!=null&&t.disabled),size:this.size,variant:"standard","@click":this.handleClickIcon,"data-aria-label":this.visible?this.dataAriaLabelHideButton||"hide":this.dataAriaLabelShowButton||"show"})}};cr([a({type:String,attribute:"data-aria-label-hide-button"})],Es.prototype,"dataAriaLabelHideButton",2),cr([a({type:String,attribute:"data-aria-label-show-button"})],Es.prototype,"dataAriaLabelShowButton",2),cr([T()],Es.prototype,"visible",2),Es=cr([S("ds-password-input",{extendComponentNames:["ds-text-input"]})],Es);const pd=v`
1895
- :host {
1896
- display: contents;
1897
- }
1898
- `;var ud=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Os=(e,t,s,r)=>{for(var i=r>1?void 0:r?md(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&ud(t,s,i),i};let Se=class extends ee(C){constructor(){super(...arguments),this.variant="without-border",this.size="medium",this.loading=!1,this.selected=!1}get containerClasses(){const e=typeof this.size=="string"?this.size:this.size[this.viewport];return{container:!0,[e]:!!e,selected:this.selected,loading:this.loading}}handleClick(){this.selected||this.loading||this.dispatchEvent(new CustomEvent("ds-picker-item:click",{bubbles:!0,composed:!0}))}get imageContainerClasses(){return{"image-container":!0,[this.variant]:!!this.variant}}get loadingTemplate(){return this.loading?d`
1899
- <div class="overlay">
1900
- <svg class="spinner" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
1901
- <path
1902
- d="M38.3334 20.0001C38.3334 30.1253 30.1252 38.3334 20 38.3334C9.8748 38.3334 1.66669 30.1253 1.66669 20.0001C1.66669 9.87486 9.8748 1.66675 20 1.66675C30.1252 1.66675 38.3334 9.87486 38.3334 20.0001ZM7.97929 20.0001C7.97929 26.6389 13.3612 32.0208 20 32.0208C26.6389 32.0208 32.0207 26.6389 32.0207 20.0001C32.0207 13.3612 26.6389 7.97935 20 7.97935C13.3612 7.97935 7.97929 13.3612 7.97929 20.0001Z"
1903
- fill="#2F3A41"
1904
- />
1905
- <path
1906
- d="M4.99998 19.9999C4.0795 19.9999 3.32468 20.748 3.41657 21.6639C3.69704 24.4593 4.68091 27.1482 6.28825 29.4744C8.2125 32.2592 10.9391 34.3921 14.1053 35.5893C17.2714 36.7865 20.7271 36.9913 24.0125 36.1764C27.2979 35.3614 30.2573 33.5655 32.4969 31.0273C34.7366 28.4892 36.1503 25.3294 36.55 21.9681C36.9498 18.6068 36.3165 15.2035 34.7346 12.2109C33.1527 9.21836 30.6971 6.7784 27.6944 5.21568C25.1863 3.91033 22.3958 3.26875 19.5872 3.33835C18.667 3.36115 18.0187 4.20321 18.1332 5.11653C18.2478 6.02985 19.0826 6.66636 20.0031 6.66657C22.1369 6.66706 24.2483 7.17991 26.1555 8.17253C28.5576 9.42271 30.5221 11.3747 31.7877 13.7687C33.0532 16.1628 33.5598 18.8854 33.24 21.5745C32.9202 24.2635 31.7893 26.7914 29.9975 28.8219C28.2058 30.8523 25.8383 32.2891 23.21 32.9411C20.5817 33.593 17.8171 33.4292 15.2842 32.4715C12.7513 31.5137 10.57 29.8074 9.0306 27.5795C7.80833 25.8106 7.03672 23.7795 6.77067 21.6623C6.65591 20.749 5.92045 19.9999 4.99998 19.9999Z"
1907
- fill="#E1E6EA"
1908
- />
1909
- </svg>
1910
- </div>
1911
- `:u}render(){return d`
1912
- <div class=${b(this.containerClasses)} @click=${this.handleClick}>
1913
- <div class=${b(this.imageContainerClasses)}>
1914
- <slot></slot>
1915
- </div>
1916
- ${this.loadingTemplate}
1917
- </div>
1918
- `}};Se.styles=[pd],Os([a({type:String})],Se.prototype,"variant",2),Os([a({type:String,converter:bs})],Se.prototype,"size",2),Os([a({type:Boolean,converter:$})],Se.prototype,"loading",2),Os([a({type:Boolean,converter:$})],Se.prototype,"selected",2),Se=Os([S("ds-picker-item")],Se);var fd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,Mo=(e,t,s,r)=>{for(var i=r>1?void 0:r?yd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&fd(t,s,i),i};let fi=class extends Mt{constructor(){super(...arguments),this.nodes=[],this.querySelectorText="body"}render(){return d`<slot></slot>`}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.nodes)==null||e.forEach(t=>t.remove())}updated(e){super.updated(e),requestAnimationFrame(()=>{const t=document.querySelector(this.querySelectorText)||document.body;if(!t)return;const s=this.renderRoot.querySelector("slot"),r=(s==null?void 0:s.assignedNodes())||[];this.nodes=r,r.forEach(i=>{t.appendChild(i)})})}};Mo([a({type:String,attribute:"query-selector-text"})],fi.prototype,"querySelectorText",2),fi=Mo([S("ds-portal",{skipTagAsComponentName:!0})],fi);const gd=v`
1919
- .fill {
1920
- transition: all 200ms ease-in-out;
1921
- }
1922
- `;var vd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,wd=Object.getPrototypeOf,xd=Reflect.get,Lo=(e,t,s,r)=>{for(var i=r>1?void 0:r?bd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&vd(t,s,i),i},$d=(e,t,s)=>xd(wd(e),s,t);let Ye=class extends Ss{render(){return this.show?d`
1923
- <style>
1924
- .fill {
1925
- width: ${this.progress}%;
1926
- }
1927
- </style>
1928
- ${this.barTemplate}
1929
- `:u}};Ye.styles=[...$d(Ye,Ye,"styles"),gd],Lo([a({type:Number})],Ye.prototype,"progress",2),Ye=Lo([S("ds-progress-bar",{skipTagAsComponentName:!0})],Ye);const Sd=v`
1930
- :host {
1931
- display: contents;
1932
- }
1933
-
1934
- .container {
1935
- display: block;
1936
- }
1937
-
1938
- .container.vertical ::slotted(ds-radio-button) {
1939
- display: block;
1940
- }
1941
-
1942
- .container.horizontal ::slotted(ds-radio-button) {
1943
- display: inline-flex;
1944
- vertical-align: top;
1945
- }
1946
- `;var kd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,ke=(e,t,s,r)=>{for(var i=r>1?void 0:r?Td(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&kd(t,s,i),i};const Bo=Symbol("ds-radio-button-group:disabled"),Fo=Symbol("ds-radio-button-group:error"),Ro=Symbol("ds-radio-button-group:error-text"),Vo=Symbol("ds-radio-button-group:helper-text"),Uo=Symbol("ds-radio-button-group:size");let qt=class extends C{constructor(){super(...arguments),this.error=!1,this.errorText="",this.helperText="",this.disabled=!1,this.size="medium",this.orientation="vertical"}get classes(){return{container:!0,error:this.error,disabled:!!this.disabled,[this.size]:!0,[this.orientation]:!0}}render(){return d`
1947
- <div
1948
- data-testid="ds-radio-button-group-container"
1949
- class=${b(this.classes)}
1950
- .aria-invalid=${this.error}
1951
- >
1952
- <slot name="title"></slot>
1953
- <slot name="description"></slot>
1954
- <div class="radio-buttons-container">
1955
- <slot></slot>
1956
- </div>
1957
- ${!this.error&&this.helperText?d`<div class = 'helper-text' > ${this.helperText}</div>`:u}
1958
- ${this.error&&this.errorText?d`<div class="error-text">${this.errorText}</div>`:u}
1959
- </div>
1960
- `}};qt.styles=[Sd],ke([je({context:Fo}),a({type:Boolean,converter:$})],qt.prototype,"error",2),ke([je({context:Ro}),a({type:String,attribute:"error-text"})],qt.prototype,"errorText",2),ke([je({context:Vo}),a({type:String,attribute:"helper-text"})],qt.prototype,"helperText",2),ke([je({context:Bo}),a({type:Boolean,converter:$})],qt.prototype,"disabled",2),ke([je({context:Uo}),a({type:String})],qt.prototype,"size",2),ke([a({type:String,reflect:!0})],qt.prototype,"orientation",2),qt=ke([S("ds-radio-button-group")],qt);const Cd=v`
1961
- :host {
1962
- display: block;
1963
- flex: 0 0 auto;
1964
- }
1965
-
1966
- :host:has(.disabled) {
1967
- pointer-events: none;
1968
- }
1969
-
1970
- .container {
1971
- cursor: pointer;
1972
- display: flex;
1973
- justify-content: flex-start;
1974
- align-items: flex-start;
1975
- }
1976
-
1977
- ::slotted([slot='input']) {
1978
- cursor: inherit;
1979
- appearance: none;
1980
- background-color: transparent;
1981
- margin: 0;
1982
- font: inherit;
1983
- border-radius: 100%;
1984
- display: inline-flex;
1985
- justify-content: center;
1986
- align-items: center;
1987
- border-style: solid;
1988
- }
1989
-
1990
- ::slotted([slot='input'])::after {
1991
- content: '';
1992
- border-radius: 100%;
1993
- transform: scale(0);
1994
- transition: 200ms transform ease-in-out;
1995
- }
1996
-
1997
- ::slotted([slot='input']:checked)::after {
1998
- transform: scale(1);
1999
- }
2000
-
2001
- ::slotted([slot='label']) {
2002
- cursor: pointer;
2003
- }
2004
- `;var Ed=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,it=(e,t,s,r)=>{for(var i=r>1?void 0:r?Od(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ed(t,s,i),i};let Q=class extends C{constructor(){super(...arguments),this.inputPlacement="left",this._size="medium",this.errorText="",this.helperText="",this._disabled=!1,this.handleChange=t=>{this.checkInputState(t.target)},this.handleClick=()=>{var t;(t=this.input[0])==null||t.click()}}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>{this.createContextConsumers([{context:Fo,callback:t=>{this.errorGroup=t}},{context:Ro,callback:t=>{this.errorTextGroup=t}},{context:Bo,callback:t=>{this.disabledGroup=t}},{context:Vo,callback:t=>{this.helperTextGroup=t}},{context:Uo,callback:t=>{this.sizeGroup=t}}])})}firstUpdated(t){var s;super.firstUpdated(t);const r=(s=this.input)==null?void 0:s[0];r&&(r.addEventListener("change",this.handleChange),this.observeInputAttributes(),this.checkInputState(r),this.applyAriaAttributes())}createContextConsumers(t){t.forEach(({context:s,callback:r})=>{new qr(this,{context:s,callback:r,subscribe:!0})})}disconnectedCallback(){var t;super.disconnectedCallback();const s=(t=this.input)==null?void 0:t[0];s&&(s.removeEventListener("change",this.handleChange),this.inputMutationObserver.disconnect())}checkInputState(t){this._disabled=this.disabledGroup??(t==null?void 0:t.disabled)}observeInputAttributes(){const t=new MutationObserver(()=>{this.checkInputState(this.input[0])});t.observe(this.input[0],{attributes:!0,attributeFilter:["required","disabled"]}),this.inputMutationObserver=t}updated(t){super.updated(t),(t.has("error")||t.has("errorText")||t.has("helperText"))&&this.applyAriaAttributes()}applyAriaAttributes(){var t;const s=(t=this.input)==null?void 0:t[0];if(!s)return;const r=!!this.error,i=r?this.errorText||this.errorTextGroup:this.helperText||this.helperTextGroup||null;s.setAttribute("aria-disabled",this.disabled?"true":"false"),s.setAttribute("aria-invalid",r?"true":"false"),i?s.setAttribute("aria-description",i):s.removeAttribute("aria-description")}get containerClasses(){return{container:!0,error:this.error,disabled:this.disabled,[this.size]:!0,[this.inputPlacement]:!0}}get error(){return this._error??this.errorGroup}get disabled(){return this.disabledGroup??this._disabled}get size(){return this.sizeGroup||this._size}render(){return d`
2005
- <div @click=${this.handleClick} class=${b(this.containerClasses)}>
2006
- <span class="input-container">
2007
- <slot name="input"></slot>
2008
- </span>
2009
- <div class="text-container">
2010
- <slot name="label"></slot>
2011
- ${!(this.error&&this.errorText)&&this.helperText?d`<div class="helper-text" > ${this.helperText}</div>`:u}
2012
- ${this.error&&this.errorText?d`<div class="error-text">${this.errorText}</div>`:u}
2013
- </div>
2014
- </div>
2015
- `}};Q.styles=[Cd],it([a({type:String,attribute:"input-placement"})],Q.prototype,"inputPlacement",2),it([a({type:String,attribute:"size"})],Q.prototype,"_size",2),it([a({type:Boolean,attribute:"error",converter:$})],Q.prototype,"_error",2),it([a({type:String,attribute:"error-text"})],Q.prototype,"errorText",2),it([a({type:String,attribute:"helper-text"})],Q.prototype,"helperText",2),it([T()],Q.prototype,"errorGroup",2),it([T()],Q.prototype,"errorTextGroup",2),it([T()],Q.prototype,"disabledGroup",2),it([T()],Q.prototype,"helperTextGroup",2),it([T()],Q.prototype,"sizeGroup",2),it([T()],Q.prototype,"_disabled",2),it([T()],Q.prototype,"inputMutationObserver",2),it([xt({slot:"input",selector:"input"})],Q.prototype,"input",2),Q=it([S("ds-radio-button")],Q);const Pd=v`
2016
- :host {
2017
- display: flex;
2018
- flex-direction: column;
2019
- align-items: flex-start;
2020
- width: 100%;
2021
- }
2022
-
2023
- .container {
2024
- padding: 0;
2025
- border: none;
2026
- display: contents;
2027
- }
2028
- `;var _d=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,Xe=(e,t,s,r)=>{for(var i=r>1?void 0:r?Id(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&_d(t,s,i),i};let ie=class extends rr(Mt){constructor(){super(...arguments),this.mode="light",this.size="large"}updateRadioChecked(){requestAnimationFrame(()=>{this.radioElements.forEach(e=>{e.checked=e.value===this.value})})}setRadioProps(e){requestAnimationFrame(()=>{["name","size","mode"].forEach(t=>{e.has(t)&&this.radioElements.forEach(s=>{s[t]=this[t]})})})}updated(e){super.updated(e),this.setRadioProps(e)}firstUpdated(e){super.firstUpdated(e),this.updateRadioChecked(),this.setRadioProps(e)}handleChangeRadio(e){var t;this.value=(t=e.detail)==null?void 0:t.value}get classes(){return{container:!0}}render(){return d`
2029
- <fieldset class=${b(this.classes)} @change=${this.handleChangeRadio}>
2030
- <slot></slot>
2031
- </fieldset>
2032
- `}};ie.styles=[Pd],Xe([a({type:String})],ie.prototype,"name",2),Xe([a({type:String,reflect:!0})],ie.prototype,"value",2),Xe([a({type:String,reflect:!0})],ie.prototype,"mode",2),Xe([a({type:String})],ie.prototype,"size",2),Xe([xt({selector:"ds-radio"})],ie.prototype,"radioElements",2),ie=Xe([S("ds-radio-group",{skipTagAsComponentName:!0})],ie);const Ad=v`
2033
- :host {
2034
- display: inline-block;
2035
- }
2036
-
2037
- label {
2038
- width: 100%;
2039
- cursor: pointer;
2040
- display: inline-flex;
2041
- justify-content: center;
2042
- align-items: center;
2043
- }
2044
-
2045
- label ::slotted(input) {
2046
- cursor: inherit;
2047
- appearance: none;
2048
- background-color: transparent;
2049
- margin: 0;
2050
- font: inherit;
2051
- border-radius: 100%;
2052
- display: inline-flex;
2053
- justify-content: center;
2054
- align-items: center;
2055
- border-style: solid;
2056
- }
2057
-
2058
- label ::slotted(input)::before {
2059
- content: '';
2060
- border-radius: 100%;
2061
- transform: scale(0);
2062
- transition: 200ms transform ease-in-out;
2063
- }
2064
-
2065
- label ::slotted(input:checked)::before {
2066
- transform: scale(1);
2067
- }
2068
- `;var Nd=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,Wt=(e,t,s,r)=>{for(var i=r>1?void 0:r?zd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Nd(t,s,i),i};let Et=class extends C{constructor(){super(...arguments),this.readonly=!1,this.checked=!1,this.disabled=!1,this.mode="light",this.size="large",this.handleClickInput=t=>{this.readonly&&t.preventDefault()},this.handleClickLabel=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("click",{bubbles:!0,composed:!0,detail:{value:this.value}})),this.readonly||(this.input.checked=!0,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value}})))}}connectedCallback(){super.connectedCallback(),this.input=document.createElement("input"),this.input.type="radio",this.input.slot="radio",this.input.ariaLabel=this.value,this.input.addEventListener("click",this.handleClickInput),this.appendChild(this.input)}disconnectedCallback(){super.disconnectedCallback(),this.input.removeEventListener("click",this.handleClickInput)}updated(t){super.updated(t),["name","value"].forEach(s=>{t.has(s)&&(this.input[s]=this[s])}),t.has("checked")&&requestAnimationFrame(()=>{this.input.checked=this.checked}),t.has("disabled")&&(this.input.disabled=this.disabled)}get labelClasses(){return{disabled:this.disabled,[this.mode]:!!this.mode,[this.size]:!!this.size}}get styleTokens(){return B`
2069
- <style>
2070
- :host{
2071
- color-scheme: ${this.mode};
2072
- pointer-events: ${this.disabled?"none":"visible"};
2073
- }
2074
- </style>
2075
- `}render(){return d`
2076
- ${this.styleTokens}
2077
- <label @click=${this.handleClickLabel} class=${b(this.labelClasses)}>
2078
- <slot name="radio"></slot>
2079
- <slot></slot>
2080
- </label>
2081
- `}};Et.styles=[Ad],Wt([a({type:Boolean,converter:$,reflect:!0})],Et.prototype,"readonly",2),Wt([a({type:String,reflect:!0})],Et.prototype,"name",2),Wt([a({type:String})],Et.prototype,"value",2),Wt([a({type:Boolean,converter:$,reflect:!0})],Et.prototype,"checked",2),Wt([a({type:Boolean,converter:$,reflect:!0})],Et.prototype,"disabled",2),Wt([a({type:String,reflect:!0})],Et.prototype,"mode",2),Wt([a({type:String})],Et.prototype,"size",2),Wt([ei({slot:"",flatten:!0})],Et.prototype,"_defaultSlotNodes",2),Et=Wt([S("ds-radio")],Et);const Dd=v`
2082
- :host {
2083
- display: contents;
2084
- }
2085
- `;var jd=Object.defineProperty,Md=Object.getOwnPropertyDescriptor,zt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Md(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&jd(t,s,i),i};let yt=class extends ui(C){constructor(){super(...arguments),this.size="medium",this.variant="primary",this.loading=!1,this.helperText="",this.forcedError="",this.invalidError="",this.dataAriaLabelRemoveButton="",this.dataAriaLabelPositionButton="",this.withPositionButton=!0,this.handleRemove=()=>{this.nativeInput.value="",this.nativeInput.focus(),["input","change"].forEach(t=>this.nativeInput.dispatchEvent(new Event(t,{bubbles:!0,composed:!0})))},this.handleClickPositionButton=()=>{this.dispatchEvent(new Event("ds-search-input:click-position-button",{bubbles:!0,composed:!0}))}}get classes(){return{container:!0,error:!!this.forcedError,loading:this.loading,[this.size]:!!this.size,[this.variant]:!!this.variant,disabled:this.inputStates.disabled,filled:this.inputStates.filled,invalid:this.inputStates.invalid,focus:this.inputStates.focus,"focus-visible":this.inputStates.focusVisible}}render(){return d`
2086
- <div part="container" class=${b(this.classes)}>
2087
- <div part="input-container" class="input-container">
2088
- ${this.searchIconTemplate}
2089
- <slot></slot>
2090
- <span class="buttons-container">
2091
- ${this.removeTemplate}
2092
- ${this.positionTemplate}
2093
- ${this.loaderSpinnerTemplate}
2094
- </span>
2095
- </div>
2096
- ${this.footerTemplate}
2097
- </div>
2098
- `}get searchIconTemplate(){return this.componentFactory.createIcon({class:"icon","icon-name":"magnifying-glass",variant:"standard"})}get removeTemplate(){var t,s,r;return!((s=(t=this.nativeInput)==null?void 0:t.value)!=null&&s.length)||this.loading?u:this.componentFactory.createIconButton({class:"remove-icon-button","icon-name":"cross",disabled:!!((r=this.nativeInput)!=null&&r.disabled),size:this.size,variant:"standard","@click":this.handleRemove,"data-aria-label":this.dataAriaLabelRemoveButton||"remove button"})}get positionTemplate(){var t;return this.loading||!this.withPositionButton?u:this.componentFactory.createIconButton({class:"position-icon-button","icon-name":"position",disabled:!!((t=this.nativeInput)!=null&&t.disabled),size:this.size,variant:"standard","@click":this.handleClickPositionButton,"data-aria-label":this.dataAriaLabelPositionButton||"position button"})}get loaderSpinnerTemplate(){return this.componentFactory.createLoaderSpinner({show:this.loading})}get footerTemplate(){var t,s;return!((t=this.helperText)!=null&&t.length)&&!this.forcedError&&(!this.inputStates.invalid||!this.invalidError)&&Number((s=this.nativeInput)==null?void 0:s.maxLength)<0?u:d`
2099
- <div class="footer">
2100
- ${this.helperTextTemplate}
2101
- ${this.forcedErrorTemplate}
2102
- ${this.invalidErrorTemplate}
2103
- ${this.lengthTemplate}
2104
- </div>
2105
- `}get helperTextTemplate(){var t;return this.forcedError||this.inputStates.invalid&&this.invalidError||!((t=this.helperText)!=null&&t.length)?u:d`<span class="support-text helper-text">${this.helperText}</span>`}get forcedErrorTemplate(){return this.forcedError?d`<span class="support-text error-text forced-error">${this.forcedError}</span>`:u}get invalidErrorTemplate(){return this.forcedError||!this.inputStates.invalid||!this.invalidError?u:d`<span class="support-text error-text invalid-error">${this.invalidError}</span>`}get lengthTemplate(){var t,s,r;const i=(s=(t=this.nativeInput)==null?void 0:t.maxLength)==null?void 0:s.toString();return mi(i)?d`<span class="char-counter">${((r=this.inputStates.currentValue)==null?void 0:r.length)||0}/${i}</span>`:u}};yt.styles=[Dd],zt([a({type:String})],yt.prototype,"size",2),zt([a({type:String})],yt.prototype,"variant",2),zt([a({type:Boolean,converter:$})],yt.prototype,"loading",2),zt([a({type:String,attribute:"helper-text"})],yt.prototype,"helperText",2),zt([a({type:String,attribute:"forced-error"})],yt.prototype,"forcedError",2),zt([a({type:String,attribute:"invalid-error"})],yt.prototype,"invalidError",2),zt([a({type:String,attribute:"data-aria-label-remove-button"})],yt.prototype,"dataAriaLabelRemoveButton",2),zt([a({type:String,attribute:"data-aria-label-position-button"})],yt.prototype,"dataAriaLabelPositionButton",2),zt([a({type:Boolean,converter:$,attribute:"with-position-button"})],yt.prototype,"withPositionButton",2),yt=zt([S("ds-search-input")],yt);const Ld=v`
2106
- :host {
2107
- display: block;
2108
- width: 100%;
2109
- }
2110
-
2111
- .error-text,
2112
- .helper-text {
2113
- user-select: none;
2114
- }
2115
- `,Bd=v`
2116
- .container {
2117
- position: relative;
2118
- }
2119
- `,Fd=v`
2120
- .input-field::-webkit-search-decoration,
2121
- .input-field::-webkit-search-cancel-button,
2122
- .input-field::-webkit-search-results-button,
2123
- .input-field::-webkit-search-results-decoration,
2124
- .input-field::-webkit-inner-spin-button,
2125
- .input-field::-webkit-calendar-picker-indicator {
2126
- display: none;
2127
- }
2128
-
2129
- .input-field {
2130
- box-sizing: border-box;
2131
- width: 100%;
2132
- border: none;
2133
- outline: none;
2134
- background-color: transparent;
2135
- }
2136
-
2137
- .input-field:focus {
2138
- outline: none;
2139
- }
2140
- `,Rd=v`
2141
- .helper-text {
2142
- cursor: pointer;
2143
- display: flex;
2144
- justify-content: flex-start;
2145
- align-items: center;
2146
- }
2147
- `,Vd=v`
2148
- .input-container {
2149
- align-items: center;
2150
- justify-content: center;
2151
- display: flex;
2152
- position: relative;
2153
- }
2154
- `;var Ud=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,tt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Hd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ud(t,s,i),i};let X=class extends rr(C){constructor(){super(...arguments),this.initialValue="",this.label="",this.helperText="",this.errorText="",this.disabled=!1,this.success=!1,this.mode="light",this.size="large",this.name="",this.placeholder="",this.type="text",this.focused=!1,this.handleFocus=()=>{this.focused=!0},this.handleBlur=()=>{this.focused=!1},this.handleClickClearIcon=()=>{this._value="",this.dispatchEvent(new CustomEvent("ds-search:clear",{bubbles:!0,composed:!0}))},this.handleInput=t=>{const s=t.target;this._value=s.value||""},this.handleSuccess=t=>{this.dispatchEvent(new CustomEvent("ds-search:position-success",{bubbles:!0,composed:!0,detail:{position:t}}))},this.handleError=t=>{this.dispatchEvent(new CustomEvent("ds-search:position-error",{bubbles:!0,composed:!0,detail:{error:t}}))}}firstUpdated(){this._value=this.initialValue}get value(){return this._value}set value(t){this._value=t}get classes(){return{container:!0,focused:this.focused,error:!!this.errorText,success:this.success,disabled:this.disabled,[this.size]:!0,[this.mode]:!0}}get searchIconTemplate(){return d`
2155
- ${this.componentFactory.createIcon({class:"search-icon","icon-name":"magnifying-glass"})}
2156
- `}get positionIconTemplate(){return d`
2157
- ${this.componentFactory.createIcon({class:"position-icon","icon-name":"position"})}
2158
- `}get clearIconTemplate(){return d`
2159
- ${this.componentFactory.createIcon({class:"clear-icon","data-testid":"clear-icon","icon-name":"cross","@click":this.handleClickClearIcon})}
2160
- `}get inputTemplate(){return d`
2161
- <input
2162
- class="input-field"
2163
- type=${this.type}
2164
- name=${this.name}
2165
- maxlength=${this.maxLength}
2166
- .placeholder=${this.placeholder}
2167
- .value=${this._value}
2168
- aria-label=${this._value}
2169
- @focus=${this.handleFocus}
2170
- @blur=${this.handleBlur}
2171
- @input=${this.handleInput}
2172
- ?disabled=${this.disabled}
2173
- />
2174
- `}get helperTextTemplate(){return this.helperText?d`
2175
- <div class="helper-text" @click=${this.handleClickHelperText}>
2176
- ${this.positionIconTemplate}
2177
- ${this.helperText}
2178
- </div>
2179
- `:u}get errorTextTemplate(){return this.errorText?d`<div class="error-text">${this.errorText}</div>`:u}get styleTokens(){return B`
2180
- <style>
2181
- :host{
2182
- color-scheme: ${this.mode};
2183
- pointer-events: ${this.disabled?"none":"visible"};
2184
- }
2185
- </style>
2186
- `}handleClickHelperText(){navigator.geolocation.getCurrentPosition(this.handleSuccess,this.handleError)}render(){return d`
2187
- ${this.styleTokens}
2188
- <div class=${b(this.classes)}>
2189
- <div class="input-container">
2190
- ${this.searchIconTemplate}
2191
- ${this.inputTemplate}
2192
- ${this.clearIconTemplate}
2193
- </div>
2194
- ${this.errorTextTemplate}
2195
- ${this.helperTextTemplate}
2196
- </div>
2197
- `}};X.styles=[Ld,Bd,Rd,Fd,Vd],tt([a({type:String,reflect:!0,attribute:"initial-value"})],X.prototype,"initialValue",2),tt([a({type:String})],X.prototype,"label",2),tt([a({type:String,attribute:"helper-text"})],X.prototype,"helperText",2),tt([a({type:String,attribute:"error-text"})],X.prototype,"errorText",2),tt([a({type:Boolean,converter:$})],X.prototype,"disabled",2),tt([a({type:Boolean,converter:$})],X.prototype,"success",2),tt([a({type:String,reflect:!0})],X.prototype,"mode",2),tt([a({type:String})],X.prototype,"size",2),tt([a({type:String})],X.prototype,"name",2),tt([a({type:String})],X.prototype,"placeholder",2),tt([a({type:String,attribute:"max-length"})],X.prototype,"maxLength",2),tt([a({type:String})],X.prototype,"type",2),tt([T()],X.prototype,"_value",2),tt([T()],X.prototype,"focused",2),tt([_t(".input-field")],X.prototype,"inputField",2),X=tt([S("ds-search")],X);const qd=v`
2198
- :host {
2199
- display: contents;
2200
- }
2201
- `;var Wd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,Dt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Gd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Wd(t,s,i),i};let gt=class extends ee(C){constructor(){super(...arguments),this.dropdownButtonText="Menu",this.openItems=!1,this.openCtas=!1,this.hasScrollLeft=!1,this.hasScrollRight=!1,this.resizeObserver=new ResizeObserver(()=>{this.handleScroll()}),this.handleScroll=()=>{var t,s,r,i;const o=((t=this.itemsContainer)==null?void 0:t.scrollLeft)+((s=this.itemsContainer)==null?void 0:s.clientWidth);this.hasScrollLeft=((r=this.itemsContainer)==null?void 0:r.scrollLeft)>0,this.hasScrollRight=o<((i=this.itemsContainer)==null?void 0:i.scrollWidth)}}updated(t){super.updated(t),t.has("viewport")&&this.updateCtas(),t.has("selectedIndex")&&this.updateSelectedItem()}firstUpdated(t){var s;super.firstUpdated(t),this.handleScroll(),this.resizeObserver.observe(this.itemsContainer),window.addEventListener("resize",this.handleScroll),(s=this.itemsContainer)==null||s.addEventListener("scroll",this.handleScroll)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.handleScroll)}get selectedItemText(){var t,s,r;return((r=(s=(t=this.items)==null?void 0:t[this.selectedIndex])==null?void 0:s.textContent)==null?void 0:r.trim())||this.dropdownButtonText}get classes(){return{nav:!0,"ds-blur":!0,"scroll-left":this.hasScrollLeft,"scroll-right":this.hasScrollRight}}toggleItemsDropdown(){this.openItems=!this.openItems,this.openItems&&(this.openCtas=!1)}toggleActionsDropdown(){this.openCtas=!this.openCtas,this.openCtas&&(this.openItems=!1)}closeDropdowns(){this.openItems=!1,this.openCtas=!1}handleItemsSlotChange(){this.updateSelectedItem()}handleActionsSlotChange(){this.updateCtas()}updateSelectedItem(){var t;(t=this.items)==null||t.forEach((s,r)=>{r===this.selectedIndex?s.classList.add("selected"):s.classList.remove("selected")})}updateCtas(){var t;(t=this.ctas)==null||t.forEach(s=>{["xxl","xl"].includes(this.viewport)?s==null||s.setAttribute("size","large"):s==null||s.setAttribute("size","medium")})}handleItemClick(t){var s,r;const i=t.target,o=((s=this.items)==null?void 0:s.indexOf(i))??-1;if(o!==-1){this.selectedIndex=o,this.updateSelectedItem();const n=((r=i.textContent)==null?void 0:r.trim())||i.getAttribute("data-label")||"";this.dispatchEvent(new CustomEvent("ds-secondary-navigation:select",{detail:{index:o,label:n},bubbles:!0,composed:!0})),this.closeDropdowns()}}render(){return d`
2202
- ${this.backdropTemplate}
2203
- <div class="container gutter">
2204
- <nav data-testid="ds-secondary-navigation-container" class=${b(this.classes)}>
2205
- ${this.itemsTemplate}
2206
- ${this.itemsDropdownButtonTemplate}
2207
- ${this.actionsTemplate}
2208
- ${this.actionsDropdownButtonTemplate}
2209
- </nav>
2210
- ${this.itemsDropdownTemplate}
2211
- ${this.actionsDropdownTemplate}
2212
- </div>
2213
- `}get itemsTemplate(){return["l","xl","xxl"].includes(this.viewport)?d`
2214
- <div class="items-container">
2215
- <div>
2216
- <slot name="items" @slotchange=${this.handleItemsSlotChange} @click=${this.handleItemClick}></slot>
2217
- </div>
2218
- </div>
2219
- `:u}get actionsTemplate(){return["m","l","xl","xxl"].includes(this.viewport)?d`
2220
- <div class="actions-container">
2221
- <slot name="actions" @slotchange=${this.handleActionsSlotChange}></slot>
2222
- </div>
2223
- `:u}get iconTemplate(){return this.componentFactory.createIcon({class:"icon","icon-name":this.openItems?"arrow-up":"arrow-down",size:20})}get itemsDropdownButtonTemplate(){return["xxs","xs","s","m"].includes(this.viewport)?d`
2224
- <button
2225
- class="items-dropdown-button"
2226
- @click=${this.toggleItemsDropdown}
2227
- aria-expanded=${this.openItems}
2228
- aria-haspopup="true"
2229
- >
2230
- <span>${this.selectedItemText}</span>
2231
- ${this.iconTemplate}
2232
- </button>
2233
- `:u}get itemsDropdownTemplate(){return["xxs","xs","s","m"].includes(this.viewport)?d`
2234
- <div
2235
- class=${b({gutter:!0,"dropdown-container":!0,"items-dropdown":!0,open:this.openItems})}
2236
- role="menu"
2237
- aria-hidden=${!this.openItems}
2238
- >
2239
- <div
2240
- class="dropdown ds-blur"
2241
- >
2242
- <slot name="items" @slotchange=${this.handleItemsSlotChange} @click=${this.handleItemClick}></slot>
2243
- </div>
2244
- </div>
2245
- `:u}get actionsDropdownButtonTemplate(){return["xxs","xs","s"].includes(this.viewport)?this.componentFactory.createIconButton({class:"nav-arrow","data-aria-label":"open actions dropdown","@click":this.toggleActionsDropdown,size:"medium","icon-name":"triple-dot-v"}):u}get actionsDropdownTemplate(){return["xxs","xs","s"].includes(this.viewport)?d`
2246
- <div
2247
- class=${b({gutter:!0,"dropdown-container":!0,"actions-dropdown":!0,open:this.openCtas})}
2248
- role="menu"
2249
- aria-hidden=${!this.openCtas}
2250
- >
2251
- <div
2252
- class="dropdown ds-blur"
2253
-
2254
- >
2255
- <slot name="actions"></slot>
2256
- </div>
2257
- </div>
2258
- `:u}get backdropTemplate(){return!this.openItems&&!this.openCtas?u:d`<div class="dropdown-backdrop" @click=${this.closeDropdowns}></div>`}};gt.styles=[qd],Dt([a({type:String,attribute:"dropdown-button-text"})],gt.prototype,"dropdownButtonText",2),Dt([a({type:Number,attribute:"selected-index"})],gt.prototype,"selectedIndex",2),Dt([T()],gt.prototype,"openItems",2),Dt([T()],gt.prototype,"openCtas",2),Dt([T()],gt.prototype,"hasScrollLeft",2),Dt([T()],gt.prototype,"hasScrollRight",2),Dt([xt({slot:"items"})],gt.prototype,"items",2),Dt([xt({slot:"actions"})],gt.prototype,"ctas",2),Dt([_t(".items-container")],gt.prototype,"itemsContainer",2),gt=Dt([S("ds-secondary-navigation")],gt);const Kd=v`
2259
- :host {
2260
- display: flex;
2261
- flex: 1 1 auto;
2262
- }
2263
-
2264
- .container {
2265
- display: inline-flex;
2266
- padding: 0;
2267
- border: 0;
2268
- background: gray;
2269
- border-radius: 2em;
2270
- flex: 0 0 auto;
2271
- min-width: 0;
2272
- max-width: 100%;
2273
- }
2274
-
2275
- .container.full-width {
2276
- display: flex;
2277
- }
2278
-
2279
- ::slotted(input) {
2280
- position: absolute;
2281
- opacity: 0;
2282
- width: 0;
2283
- height: 0;
2284
- margin: 0;
2285
- padding: 0;
2286
- }
2287
-
2288
- ::slotted(label) {
2289
- cursor: pointer;
2290
- display: block;
2291
- align-content: center;
2292
- text-align: center;
2293
- overflow: hidden;
2294
- text-overflow: ellipsis;
2295
- white-space: nowrap;
2296
- flex: 1 1 auto;
2297
- }
2298
-
2299
- .full-width ::slotted(label) {
2300
- flex: 1 1 content;
2301
- }
2302
-
2303
- ::slotted(label.checked) {
2304
- flex-shrink: 0;
2305
- }
2306
- `;var Yd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,dr=(e,t,s,r)=>{for(var i=r>1?void 0:r?Xd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Yd(t,s,i),i};let Je=class extends C{constructor(){super(...arguments),this.size="medium",this.fullWidth=!1}get classes(){return{container:!0,[this.size]:!0,"full-width":this.fullWidth}}firstUpdated(){this.addEventListener("change",()=>this.updateCheckedStates()),this.addEventListener("focusin",t=>this.updateFocusState(t,!0)),this.addEventListener("focusout",t=>this.updateFocusState(t,!1)),this.updateCheckedStates()}updateCheckedStates(){this.slottedElements.forEach(t=>{if(t.tagName==="LABEL"){const s=t,r=this.querySelector(`#${s.htmlFor}`);r&&s.classList.toggle("checked",r.checked)}})}updateFocusState(t,s){const r=t.target,i=r.matches(":focus-visible"),o=this.slottedElements.find(n=>n.tagName==="LABEL"&&n.htmlFor===r.id);o&&o.classList.toggle("focused",i)}render(){return d`
2307
- <fieldset class=${b(this.classes)}>
2308
- <slot @slotchange=${this.updateCheckedStates}></slot>
2309
- </fieldset>
2310
- `}};Je.styles=[Kd],dr([a({type:String})],Je.prototype,"size",2),dr([a({type:Boolean,converter:$,attribute:"full-width"})],Je.prototype,"fullWidth",2),dr([xt({slot:"",flatten:!0})],Je.prototype,"slottedElements",2),Je=dr([S("ds-segmented-control")],Je);const yi=class{static handleKeydownWhenOpen(t,s){switch(this.KEYS_WHEN_OPEN.has(t.key)&&t.preventDefault(),t.key){case" ":case"Enter":s.commit();break;case"ArrowDown":s.navigateNext();break;case"ArrowUp":s.navigatePrev();break;case"Home":s.navigateFirst();break;case"End":s.navigateLast();break;case"Escape":s.close();break}}static handleKeydownWhenClosed(t,s){this.KEYS_WHEN_CLOSED.has(t.key)&&(t.preventDefault(),s.open())}};yi.KEYS_WHEN_OPEN=new Set(["ArrowDown","ArrowUp","Home","End","Enter","Escape"," "]),yi.KEYS_WHEN_CLOSED=new Set(["ArrowDown","ArrowUp"," "]);let Ho=yi;const Jd=v`
2311
- :host {
2312
- display: contents;
2313
- }
2314
-
2315
- ::slotted(:not([slot])) {
2316
- display: none;
2317
- }
2318
-
2319
- .disabled {
2320
- pointer-events: none;
2321
- }
2322
-
2323
- .select,
2324
- .option {
2325
- cursor: pointer;
2326
- }
2327
-
2328
- .option.selected {
2329
- pointer-events: none;
2330
- }
2331
- `;var Zd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,ot=(e,t,s,r)=>{for(var i=r>1?void 0:r?Qd(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Zd(t,s,i),i};let K=class extends C{constructor(){super(...arguments),this.mode="light",this.size="medium",this.variant="primary",this._open=!1,this.nativeSelect=null,this.nativeLabel=null,this.nativeOptions=[],this.activeIndex=-1,this.hasForcedError=!1,this.handleMutations=t=>{t.forEach(s=>{s.type==="childList"&&this.syncNativeOptions()}),this.requestUpdate()},this.syncNativeOptions=()=>{this.nativeOptions=Array.from(this.nativeSelect.options)},this.handleOpen=()=>{this._open=!0,this.activeIndex=this.findSelectedOptionIndex(),this.focusDisplaySelect()},this.handleClose=()=>{this._open=!1},this.handleClickDisplaySelect=()=>{this._open?this.handleClose():this.handleOpen()},this.handleKeydown=t=>{this._open?Ho.handleKeydownWhenOpen(t,{commit:()=>this.commitSelection(),navigateNext:()=>this.advanceSelection(1),navigatePrev:()=>this.advanceSelection(-1),navigateFirst:()=>this.advanceToFirst(),navigateLast:()=>this.advanceToLast(),close:this.handleClose}):Ho.handleKeydownWhenClosed(t,{open:this.handleOpen})}}firstUpdated(){this.initializeNativeSelect()}disconnectedCallback(){super.disconnectedCallback(),this.cleanup()}initializeNativeSelect(){var t,s;this.nativeSelect=(t=this.nativeSelects)==null?void 0:t[0],this.nativeLabel=(s=this.nativeLabels)==null?void 0:s[0],this.nativeSelect&&(this.syncNativeOptions(),this.setupNativeElementsAttributes(),this.setupEventListeners())}handleChangeForcedError(){var t;this.hasForcedError=((t=this.forcedError)==null?void 0:t.length)>0}setupNativeElementsAttributes(){this.nativeSelect.setAttribute("aria-hidden","true"),this.nativeSelect.setAttribute("tabindex","-1")}setupEventListeners(){this.nativeSelect.addEventListener("change",this.syncNativeOptions),this.observer=new MutationObserver(this.handleMutations),this.observer.observe(this.nativeSelect,{childList:!0,subtree:!0,attributes:!0})}cleanup(){var t,s;(t=this.nativeSelect)==null||t.removeEventListener("change",this.syncNativeOptions),(s=this.observer)==null||s.disconnect()}findSelectedOptionIndex(){var t;const s=this.nativeOptions.findIndex(r=>r.value===this.nativeSelect.value);return(t=this.nativeOptions[s])!=null&&t.hidden?this.nativeOptions.findIndex(r=>!r.hidden):s}focusDisplaySelect(){this.updateComplete.then(()=>{var t;(t=this.displaySelect)==null||t.focus()})}advanceToFirst(){if(this.nativeOptions.length){const t=this.nativeOptions.findIndex(s=>!s.hidden);this.advanceSelection(t-this.activeIndex)}}advanceToLast(){if(this.nativeOptions.length){let t=-1;for(let s=this.nativeOptions.length-1;s>=0;s--)if(!this.nativeOptions[s].hidden){t=s;break}this.advanceSelection(t-this.activeIndex)}}advanceSelection(t){const s=this.nativeOptions.length;this.activeIndex=(this.activeIndex+t+s)%s,this.shouldSkipHiddenOption()?this.advanceSelection(Math.sign(t)):this.scrollToActive(this.nativeOptions[this.activeIndex])}shouldSkipHiddenOption(){return this.nativeOptions.some(t=>!t.hidden)&&this.nativeOptions[this.activeIndex].hidden}scrollToActive(t){var s;(s=t==null?void 0:t.scrollIntoView)==null||s.call(t,{block:"nearest"})}commitSelection(){this.handleClose();const t=this.nativeOptions[this.activeIndex];this.nativeSelect&&t!=null&&t.value&&this.updateNativeSelectValue(t.value)}updateNativeSelectValue(t){this.nativeSelect.value=t,["input","change"].forEach(s=>this.nativeSelect.dispatchEvent(new Event(s,{bubbles:!0,composed:!0})))}get containerClasses(){var t,s,r,i;return{container:!0,open:this._open,disabled:!!((t=this.nativeSelect)!=null&&t.disabled),filled:!!((r=(s=this.nativeOptions)==null?void 0:s.find(o=>o.selected&&!o.hidden))!=null&&r.selected),invalid:!((i=this.nativeSelect)!=null&&i.validity.valid),error:this.hasForcedError,[this.size]:!!this.size,[this.mode]:!!this.mode,[this.variant]:!!this.variant}}set open(t){this._open=t}get open(){return this._open}render(){return d`
2332
- <slot @slotchange=${this.initializeNativeSelect}></slot>
2333
- <div class=${b(this.containerClasses)}>
2334
- ${this.displaySelectTemplate}
2335
- ${this.optionsContainerTemplate}
2336
- <slot name="helper-text"></slot>
2337
- <slot name="forced-error" @slotchange=${this.handleChangeForcedError}></slot>
2338
- <slot name="invalid-error"></slot>
2339
- </div>
2340
- `}get iconTemplate(){return this.componentFactory.createIcon({class:"icon","icon-name":this._open?"arrow-up":"arrow-down"})}get displaySelectTemplate(){var t,s,r;const i=this.nativeOptions.find(n=>n.selected),o=(t=Array.from((i==null?void 0:i.childNodes)||[]))==null?void 0:t.map(n=>{const l=n.cloneNode(!0);if(n.nodeType!==3)return l;if(n.textContent.trim()==="")return"";const c=document.createElement("span");return c.classList.add("text"),c.appendChild(l),c});return d`
2341
- <div class="select-outline">
2342
- <div class="select-container">
2343
- <label id="display-label" class="label">${(s=this.nativeLabel)==null?void 0:s.innerText}</label>
2344
- <div
2345
- class="select"
2346
- role="combobox"
2347
- tabindex="0"
2348
- aria-expanded="${this._open}"
2349
- aria-activedescendant="${this.activeDescendantId}"
2350
- aria-controls="options-container"
2351
- aria-labelledby="display-label"
2352
- aria-disabled=${!!((r=this.nativeSelect)!=null&&r.disabled)}
2353
- @click=${this.handleClickDisplaySelect}
2354
- @keydown=${this.handleKeydown}
2355
- @blur=${this.handleClose}
2356
- >
2357
- <span class="select-content">${o}</span>
2358
- ${this.iconTemplate}
2359
- </div>
2360
- </div>
2361
- </div>
2362
- `}get activeDescendantId(){return this._open&&this.activeIndex>=0?`${K.ARIA_OPTION_PREFIX}${this.nativeOptions[this.activeIndex].value}`:""}get optionsContainerTemplate(){return d`
2363
- <div id="options-container" class="options-container" role="listbox">
2364
- ${this.nativeOptions.map((t,s)=>t.hidden?u:this.renderOptionClone(t,s))}
2365
- </div>
2366
- `}renderOptionClone(t,s){const r=Array.from(t.childNodes).map(i=>i.cloneNode(!0));return d`
2367
- <div
2368
- id="${K.ARIA_OPTION_PREFIX}${t.value}"
2369
- class=${b({option:!0,active:s===this.activeIndex,selected:t.value===this.nativeSelect.value})}
2370
- role="option"
2371
- aria-selected="${t.value===this.nativeSelect.value}"
2372
- tabindex="-1"
2373
- @mousedown=${()=>{this.activeIndex=s,this.commitSelection()}}
2374
- >
2375
- ${r}
2376
- </div>
2377
- `}};K.styles=[Jd],K.ARIA_OPTION_PREFIX="option-",ot([a({type:String})],K.prototype,"mode",2),ot([a({type:String})],K.prototype,"size",2),ot([a({type:String})],K.prototype,"variant",2),ot([T()],K.prototype,"_open",2),ot([T()],K.prototype,"nativeSelect",2),ot([T()],K.prototype,"nativeLabel",2),ot([T()],K.prototype,"nativeOptions",2),ot([T()],K.prototype,"activeIndex",2),ot([T()],K.prototype,"hasForcedError",2),ot([xt({slot:"",selector:"select",flatten:!0})],K.prototype,"nativeSelects",2),ot([xt({slot:"",selector:"label",flatten:!0})],K.prototype,"nativeLabels",2),ot([xt({slot:"forced-error",flatten:!0})],K.prototype,"forcedError",2),ot([_t(".select")],K.prototype,"displaySelect",2),K=ot([S("ds-select")],K);const th=v`
2378
- :host {
2379
- display: inline-block;
2380
- }
2381
-
2382
- .container {
2383
- display: inline-block;
2384
- cursor: pointer;
2385
- }
2386
- `;var eh=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,qo=(e,t,s,r)=>{for(var i=r>1?void 0:r?sh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&eh(t,s,i),i};let hr=class extends C{get iconTemplate(){return this.componentFactory.createIcon({class:"icon",size:40,"icon-name":this.checked?"check":"plus"})}get classes(){return{container:!0,checked:this.checked}}handleClick(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{checked:this.checked}}))}render(){return d`
2387
- <span data-testid="ds-selection-container" class=${b(this.classes)} @click=${this.handleClick}>
2388
- ${this.iconTemplate}
2389
- </span>
2390
- `}};hr.styles=[th],qo([a({type:Boolean,converter:$})],hr.prototype,"checked",2),hr=qo([S("ds-selection")],hr);function gi({value:e,min:t,max:s}){return Math.min(Math.max(e,t),s)}const Wo=(e,t,s=10)=>{const r=Math.pow(10,s),i=Math.round(e*r),o=Math.round(t*r);return(i+o)/r},Ps=({step:e=1,min:t=0,max:s=100,proposedValue:r,role:i,currentValues:o})=>{const n=i==="min"?1:2,l=r;let c,h=t,m=s;return Number.isFinite(l)?(Object.keys(o).forEach(p=>{if(Number(p)<n&&o[p]>=h){if(h=o[p],e===0)return;let f=t;for(;f<=h;)f=Wo(f,e);h=f}if(Number(p)>n&&o[p]<=m){if(m=o[p],e===0)return;let f=t;for(;f+e<m;)f=Wo(f,e);m=f}h=gi({value:h,min:t,max:s}),m=gi({value:m,min:t,max:s})}),l<=h||l>=m?(c=Math.max(h,Math.min(m,l)),{stepValue:c,minLimit:h,maxLimit:m}):e===0?{stepValue:l,minLimit:h,maxLimit:m}:(c=Math.round((l-h)/e)*e+h,c=l-c>m-l?m:c,c=gi({value:c,min:h,max:m}),{stepValue:c,minLimit:h,maxLimit:m})):{stepValue:o[String(n)],minLimit:h,maxLimit:m}},rh=({value:e,fractionDigits:t})=>{const s=Math.pow(10,t);return Math.round(e*s)/s},ih=v`
2391
- :host {
2392
- display: block;
2393
- }
2394
- `,oh=xe`
2395
- .current-value-container {
2396
- position: relative;
2397
- }
2398
-
2399
- .current-value-text {
2400
- display: inline-flex;
2401
- position: absolute;
2402
- }
2403
- `,nh=xe`
2404
- .range-value-container {
2405
- display: flex;
2406
- justify-content: space-between;
2407
- }
2408
-
2409
- .range-value-text {
2410
- display: inline-flex;
2411
- }
2412
-
2413
- .range-value-label:after {
2414
- content: ':';
2415
- }
2416
- `,ah=xe`
2417
- .track {
2418
- position: relative;
2419
- cursor: pointer;
2420
- top: 0;
2421
- }
2422
-
2423
- .track-range {
2424
- z-index: 1;
2425
- top: 50%;
2426
- transform: translateY(-50%);
2427
- position: absolute;
2428
- }
2429
-
2430
- .track, .track-range {
2431
- background-clip: content-box;
2432
- }
2433
- `,lh=xe`
2434
- .thumb {
2435
- z-index: 2;
2436
- position: absolute;
2437
- }
2438
- `;var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,N=(e,t,s,r)=>{for(var i=r>1?void 0:r?dh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&ch(t,s,i),i};let A=class extends ee(C){constructor(){super(...arguments),this.min=0,this.max=100,this.minLabel="",this.maxLabel="",this.step=1,this.initialValueMin=0,this.mode="light",this.locale=void 0,this.localeMatcher="lookup",this.useGrouping=!0,this.minimumIntegerDigits=1,this.minimumFractionDigits=0,this.maximumFractionDigits=3,this.size="medium",this.disabled=!1,this.keyboardMode=!1,this.getNewValue=t=>{const{width:s,left:r}=this.track.getBoundingClientRect(),i=t.type.indexOf("mouse")!==-1?t.clientX:t.touches[0].clientX,o=Math.min(Math.max(0,i-r),s)*100/s;return this.min+o*(this.max-this.min)/100},this.setActiveThumb=t=>{const s=this.getNewValue(t);typeof this.valueMax!="number"||s<=this.valueMin?this.activeThumb="min":s>=this.valueMax?this.activeThumb="max":s-this.valueMin<this.valueMax-s?this.activeThumb="min":this.activeThumb="max"},this.handleMouseMove=t=>{this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest),this.animationFrameRequest=requestAnimationFrame(()=>{const s=this.getNewValue(t),r=this.activeThumb??"min",{stepValue:i}=Ps({step:this.step,min:this.min,max:this.max,proposedValue:s,role:r,currentValues:{1:this.valueMin,...typeof this.valueMax=="number"?{2:this.valueMax}:{}}});this.handleChange({value:i,role:r})})},this.handleMouseDown=t=>{var s;this.disabled||((s=t==null?void 0:t.preventDefault)==null||s.call(t),this.setActiveThumb(t),this.handleMouseMove(t),window==null||window.addEventListener("mousemove",this.handleMouseMove),window==null||window.addEventListener("touchmove",this.handleMouseMove),window==null||window.addEventListener("pointerup",this.handlePointerUp))},this.handlePointerUp=()=>{window==null||window.removeEventListener("mousemove",this.handleMouseMove),window==null||window.removeEventListener("touchmove",this.handleMouseMove),window==null||window.removeEventListener("pointerup",this.handlePointerUp)},this.handleKeydown=()=>{this.keyboardMode=!0},this.handlePointerOrMouseDown=()=>{this.keyboardMode=!1},this.onInputFocus=(t,s)=>{const r=t.currentTarget,i=s===1?"min":"max";this.editingField=i,r.type="number",r.step=String(this.step??1);const o=i==="min"?this.valueMin:this.valueMax;r.value=String(o??""),this.keyboardMode&&r.classList.add("focus-visible")},this.commitInputValue=(t,s)=>{const r=t.currentTarget,i=s===1?"min":"max",{stepValue:o}=Ps({step:this.step,min:this.min,max:this.max,proposedValue:Number(r.value),role:i,currentValues:{1:this.valueMin,...typeof this.valueMax=="number"?{2:this.valueMax}:{}}});this.handleChange({value:o,role:i}),r.value=String(o)},this.onInputBlur=t=>{var s;this.editingField=void 0;const r=t.currentTarget;(s=r==null?void 0:r.classList)==null||s.remove("focus-visible")},this.onInputKeyDown=(t,s)=>{t.key==="Enter"&&(t.preventDefault(),this.commitInputValue(t,s))},this.onThumbKeyDown=(t,s)=>{if(!this.disabled&&(t.key==="ArrowLeft"||t.key==="ArrowRight")){t.preventDefault();const r=this.step??1,i=t.key==="ArrowLeft"?-r:r,o=s===1?"min":"max",n=(o==="min"?this.valueMin:this.valueMax)+i,{stepValue:l}=Ps({step:this.step,min:this.min,max:this.max,proposedValue:n,role:o,currentValues:{1:this.valueMin,...typeof this.valueMax=="number"?{2:this.valueMax}:{}}});this.handleChange({value:l,role:o})}}}disconnectedCallback(){super.disconnectedCallback(),window==null||window.removeEventListener("mousemove",this.handleMouseMove),window==null||window.removeEventListener("touchmove",this.handleMouseMove),window==null||window.removeEventListener("pointerup",this.handlePointerUp),window==null||window.removeEventListener("keydown",this.handleKeydown),window==null||window.removeEventListener("mousedown",this.handlePointerOrMouseDown),window==null||window.removeEventListener("pointerdown",this.handlePointerOrMouseDown)}firstUpdated(t){super.firstUpdated(t),window==null||window.addEventListener("keydown",this.handleKeydown),window==null||window.addEventListener("mousedown",this.handlePointerOrMouseDown),window==null||window.addEventListener("pointerdown",this.handlePointerOrMouseDown),["min","max"].forEach(s=>{const r=this[s==="min"?"initialValueMin":"initialValueMax"];if(typeof r!="number")return;const{stepValue:i}=Ps({step:this.step,min:this.min,max:this.max,proposedValue:r,role:s,currentValues:{1:this.valueMin,...typeof this.valueMax=="number"?{2:this.valueMax}:{}}});this[s==="min"?"valueMin":"valueMax"]!==i&&this.handleChange({value:i,role:s})})}getTrackPct(t){const s=this.max-this.min;return s===0?0:(t-this.min)/s*100}handleChange({value:t,role:s}){const r=rh({value:t,fractionDigits:this.maximumFractionDigits}),i=s==="min"?"valueMin":"valueMax";this[i]!==r&&(this[i]=r,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{role:s,value:r}})))}formatNumber(t){const s={value:t,locale:this.locale,...this.unitStyle&&{style:this.unitStyle},...this.currency&&{currency:this.currency},...this.unit&&{unit:this.unit},localeMatcher:this.localeMatcher,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,thousandSeparator:this.thousandSeparator,fractionSeparator:this.fractionSeparator,useGrouping:this.useGrouping};return Io(s)}get rangeValuesTemplates(){const{formattedValue:t,unitSymbol:s,unitSymbolPosition:r}=this.formatNumber(this.min),i=this.unitSymbol??s,o=this.unitSymbolPosition??r,{formattedValue:n}=this.formatNumber(this.max);return d`
2439
- <div class="range-value-text">
2440
- ${this.minLabel?d`<span class="range-value-label">${this.minLabel}</span>`:u}
2441
- ${o==="left"?d`<span>${i}</span>`:u}
2442
- <span>${t}</span>
2443
- ${o==="right"?d`<span>${i}</span>`:u}
2444
- </div>
2445
- <div class="range-value-text">
2446
- ${this.maxLabel?d` <span class="range-value-label">${this.maxLabel}</span>`:u}
2447
- ${o==="left"?d`<span>${i}</span>`:u}
2448
- <span>${n}</span>
2449
- ${o==="right"?d`<span>${i}</span>`:u}
2450
- </div>
2451
- `}getThumbTemplate(t){const s=t===1?"min":"max",r=s==="min"?this.valueMin:this.valueMax,{minLimit:i,maxLimit:o}=Ps({step:this.step,min:this.min,max:this.max,proposedValue:r,role:s,currentValues:{1:this.valueMin,...typeof this.valueMax=="number"?{2:this.valueMax}:{}}}),n=this.getTrackPct(r);return d`
2452
- <style>
2453
- .thumb${t} {
2454
- left: ${n}%;
2455
- }
2456
- </style>
2457
- <div
2458
- class="thumb${t} thumb"
2459
- @focus=${()=>{this.activeThumb=t===1?"min":"max"}}
2460
- @keydown=${l=>this.onThumbKeyDown(l,t)}
2461
- role="slider"
2462
- tabindex=${this.disabled?-1:0}
2463
- aria-disabled=${String(!!this.disabled)}
2464
- aria-label=${t===1?"Minumum value":"Maximum Value"}
2465
- aria-valuemin=${i}
2466
- aria-valuemax=${o}
2467
- aria-valuenow=${r}
2468
- >
2469
- <svg
2470
- class="thumb-svg"
2471
- xmlns="http://www.w3.org/2000/svg"
2472
- viewBox="0 0 34 34"
2473
- fill="none"
2474
- >
2475
- <circle cx="17" cy="17" r="16" class="thumb-circle" />
2476
- </svg>
2477
- </div>
2478
- `}get thumbTemplates(){return d`
2479
- ${this.getThumbTemplate(1)}
2480
- ${typeof this.initialValueMax=="number"?this.getThumbTemplate(2):u}
2481
- `}get trackRangeTemplate(){let t,s;return typeof this.initialValueMax!="number"?(t=0,s=this.getTrackPct(this.valueMin)):(t=this.getTrackPct(this.valueMin),s=this.getTrackPct(this.valueMax)-t),d`
2482
- <style>
2483
- .track-range {
2484
- left: ${t}%;
2485
- width: ${s}%;
2486
- }
2487
- </style>
2488
- <div class="track-range" role="presentation"></div>
2489
- `}getInputTemplate(t){const s=t===1?"min":"max",r=this.editingField===s,i=s==="min"?this.valueMin:this.valueMax,{formattedValue:o,unitSymbol:n,unitSymbolPosition:l}=this.formatNumber(i),c=this.unitSymbolPosition??l,h=this.unitSymbol??n,m=h?c==="left"?`${h} ${o}`:`${o} ${h}`:`${o}`,p=r?"number":"text",f=r?String(i??""):m,g=t===1?this.inputMinAriaLabel:this.inputMaxAriaLabel,w=typeof this.initialValueMax=="number"?t===1?"Start value":"End value":"Value",k=g??w;return d`
2490
- <div class="input-wrapper">
2491
- <input
2492
- class="input-value input-value-${t}"
2493
- type=${p}
2494
- .value=${f}
2495
- step=${String(this.step??1)}
2496
- ?disabled=${this.disabled}
2497
- tabindex=${this.disabled?-1:0}
2498
- aria-disabled=${String(!!this.disabled)}
2499
- aria-label=${k}
2500
- ?readonly=${this.disabled}
2501
- @focus=${O=>this.onInputFocus(O,t)}
2502
- @blur=${this.onInputBlur}
2503
- @change=${O=>this.commitInputValue(O,t)}
2504
- @keydown=${O=>this.onInputKeyDown(O,t)}
2505
- title=${f}
2506
- />
2507
- </div>
2508
- `}get inputsTemplate(){return d`
2509
- <div class="inputs-container">
2510
- ${this.getInputTemplate(1)}
2511
- ${typeof this.initialValueMax=="number"?this.getInputTemplate(2):u}
2512
- </div>
2513
- `}get containerClasses(){var t;const s=typeof this.size=="string"?this.size:(t=this.size)==null?void 0:t[this.viewport];return{container:!0,[this.mode]:!!this.mode,[s]:!!s,disabled:!!this.disabled}}get styleTokens(){return B`
2514
- <style>
2515
- :host{
2516
- color-scheme: ${this.mode};
2517
- }
2518
- </style>
2519
- `}render(){return d`
2520
- ${this.styleTokens}
2521
- <div class=${b(this.containerClasses)}>
2522
- <div @touchstart=${this.handleMouseDown} @mousedown=${this.handleMouseDown} class="track" role="presentation">
2523
- ${this.thumbTemplates}
2524
- ${this.trackRangeTemplate}
2525
- </div>
2526
- <div class="range-value-container">${this.rangeValuesTemplates}</div>
2527
- ${this.inputsTemplate}
2528
- </div>
2529
- `}};A.styles=[ih,ah,lh,oh,nh],N([a({type:Number})],A.prototype,"min",2),N([a({type:Number})],A.prototype,"max",2),N([a({type:String,attribute:"min-label"})],A.prototype,"minLabel",2),N([a({type:String,attribute:"max-label"})],A.prototype,"maxLabel",2),N([a({type:Number})],A.prototype,"step",2),N([a({type:Number,attribute:"initial-value-min"})],A.prototype,"initialValueMin",2),N([a({type:Number,attribute:"initial-value-max"})],A.prototype,"initialValueMax",2),N([a({type:String,reflect:!0})],A.prototype,"mode",2),N([a({type:String,attribute:"locale"})],A.prototype,"locale",2),N([a({type:String,attribute:"locale-matcher"})],A.prototype,"localeMatcher",2),N([a({type:String,attribute:"unit-symbol"})],A.prototype,"unitSymbol",2),N([a({type:String,attribute:"unit-symbol-position"})],A.prototype,"unitSymbolPosition",2),N([a({type:String,attribute:"unit-style"})],A.prototype,"unitStyle",2),N([a({type:String,attribute:"currency"})],A.prototype,"currency",2),N([a({type:String,attribute:"unit"})],A.prototype,"unit",2),N([a({type:String,attribute:"use-grouping",converter:e=>e==="auto"?"auto":typeof e=="boolean"?e:e==="true"||e===""?!0:e!=="false"})],A.prototype,"useGrouping",2),N([a({type:Number,attribute:"minimum-integer-digits"})],A.prototype,"minimumIntegerDigits",2),N([a({type:Number,attribute:"minimum-fraction-digits"})],A.prototype,"minimumFractionDigits",2),N([a({type:Number,attribute:"maximum-fraction-digits"})],A.prototype,"maximumFractionDigits",2),N([a({type:String,attribute:"thousand-separator"})],A.prototype,"thousandSeparator",2),N([a({type:String,attribute:"fraction-separator"})],A.prototype,"fractionSeparator",2),N([a({type:String,converter:bs})],A.prototype,"size",2),N([a({type:Boolean,converter:$})],A.prototype,"disabled",2),N([a({type:String,attribute:"input-min-aria-label"})],A.prototype,"inputMinAriaLabel",2),N([a({type:String,attribute:"input-max-aria-label"})],A.prototype,"inputMaxAriaLabel",2),N([_t(".track")],A.prototype,"track",2),N([T()],A.prototype,"valueMin",2),N([T()],A.prototype,"valueMax",2),N([T()],A.prototype,"activeThumb",2),N([T()],A.prototype,"animationFrameRequest",2),N([T()],A.prototype,"editingField",2),N([T()],A.prototype,"keyboardMode",2),A=N([S("ds-slider")],A);const hh=v`
2530
- :host {
2531
- display: block;
2532
- width: 100%;
2533
- }
2534
- `,ph=v`
2535
- nav {
2536
- display: flex;
2537
- justify-content: flex-start;
2538
- overflow-x: auto;
2539
- scroll-behavior: smooth;
2540
- }
2541
-
2542
- nav::-webkit-scrollbar {
2543
- display: none;
2544
- }
2545
-
2546
- .nav-container {
2547
- position: relative;
2548
- display: flex;
2549
- }
2550
-
2551
- .nav-container.scroll-left nav {
2552
- mask-image: linear-gradient(
2553
- to left,
2554
- rgba(0, 0, 0, 1) 0%,
2555
- rgba(0, 0, 0, 1) 90%,
2556
- rgba(0, 0, 0, 0.5) 95%,
2557
- rgba(0, 0, 0, 0) 100%
2558
- );
2559
- }
2560
-
2561
- .nav-container.scroll-right nav {
2562
- mask-image: linear-gradient(
2563
- to right,
2564
- rgba(0, 0, 0, 1) 0%,
2565
- rgba(0, 0, 0, 1) 90%,
2566
- rgba(0, 0, 0, 0.5) 95%,
2567
- rgba(0, 0, 0, 0) 100%
2568
- );
2569
- }
2570
-
2571
- .nav-container.scroll-left.scroll-right nav {
2572
- mask-image: linear-gradient(
2573
- to right,
2574
- rgba(0, 0, 0, 0) 0%,
2575
- rgba(0, 0, 0, 0.5) 5%,
2576
- rgba(0, 0, 0, 1) 10%,
2577
- rgba(0, 0, 0, 1) 90%,
2578
- rgba(0, 0, 0, 0.5) 95%,
2579
- rgba(0, 0, 0, 0) 100%
2580
- );
2581
- }
2582
-
2583
- .nav-arrow {
2584
- visibility: hidden;
2585
- }
2586
-
2587
- .nav-container:hover .nav-arrow {
2588
- visibility: visible;
2589
- }
2590
- `,uh=v`
2591
- ::slotted([slot='tab']) {
2592
- white-space: nowrap;
2593
- -webkit-user-select: none;
2594
- -ms-user-select: none;
2595
- user-select: none;
2596
- cursor: pointer;
2597
- flex: 0 1 auto;
2598
- text-align: center;
2599
- position: relative;
2600
- display: flex;
2601
- justify-content: center;
2602
- align-items: center;
2603
- }
2604
-
2605
- ::slotted([slot='tab'][selected]) {
2606
- cursor: auto;
2607
- }
2608
- `,mh=v`
2609
- ::slotted([slot='panel']) {
2610
- display: none;
2611
- }
2612
- ::slotted([slot='panel'][selected]) {
2613
- display: block;
2614
- }
2615
- `,fh={cupra:{"icon-button-variant":"primary"},"cupra-diagonal":{"icon-button-variant":"standard"},seat:{"icon-button-variant":"primary"}};var yh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,vt=(e,t,s,r)=>{for(var i=r>1?void 0:r?gh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&yh(t,s,i),i};let nt=class extends C{constructor(){super(...arguments),this.selectedTab=0,this.mode="light",this.variant="primary",this.size="large",this.disabled=!1,this.focusedTabIndex=-1,this.handleKeyDown=t=>{var s,r,i,o;if(!(this.focusedTabIndex<0))switch(t.key){case"ArrowRight":case"Right":t.preventDefault(),this.focusedTabIndex+1<((s=this.tabs)==null?void 0:s.length)&&(this.focusedTabIndex+=1,(r=this.tabs[this.focusedTabIndex])==null||r.focus());break;case"ArrowLeft":case"Left":t.preventDefault(),this.focusedTabIndex-1>=0&&(this.focusedTabIndex-=1,(i=this.tabs[this.focusedTabIndex])==null||i.focus());break;case"Enter":case" ":t.preventDefault(),this.focusedTabIndex>=0&&this.focusedTabIndex<((o=this.tabs)==null?void 0:o.length)&&this.handleChangeSelectedTab(this.focusedTabIndex);break}},this.hasScrollLeft=!1,this.hasScrollRight=!1,this.resizeObserver=new ResizeObserver(()=>{this.handleScrollNav()}),this.handleScrollNav=()=>{var t,s,r,i;const o=((t=this.nav)==null?void 0:t.scrollLeft)+((s=this.nav)==null?void 0:s.clientWidth);this.hasScrollLeft=((r=this.nav)==null?void 0:r.scrollLeft)>0,this.hasScrollRight=o<((i=this.nav)==null?void 0:i.scrollWidth)},this.handleScrollLeft=()=>{this.nav.scrollBy({left:-150,behavior:"smooth"})},this.handleScrollRight=()=>{this.nav.scrollBy({left:150,behavior:"smooth"})},this.handleFocus=t=>{var s;const r=t.target,i=((s=this.tabs)==null?void 0:s.findIndex(o=>o===r))??-1;if(i<0||this.disabled){t.preventDefault();return}this.focusedTabIndex=i},this.handleBlur=()=>{this.focusedTabIndex=-1}}connectedCallback(){super.connectedCallback(),this.tabs=Array.from(this.querySelectorAll("[slot=tab]")),this.panels=Array.from(this.querySelectorAll("[slot=panel]"))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.handleScrollNav)}getScrollButtonTemplate(t,s){var r;if(!this.theme||t==="left"&&!this.hasScrollLeft||t==="right"&&!this.hasScrollRight)return u;const i=`arrow-${t}`,o=(r=fh[this.theme])==null?void 0:r["icon-button-variant"];return this.componentFactory.createIconButton({class:`nav-arrow ${t}`,"data-aria-label":`nav-arrow-${t}`,"@click":s,size:["xxsmall","xsmall","small"].includes(this.size)?"medium":"large","icon-name":i,mode:this.mode,variant:o})}firstUpdated(){this.handleScrollNav(),this.resizeObserver.observe(this.nav),this.tabs.forEach(t=>this.resizeObserver.observe(t)),window.addEventListener("resize",this.handleScrollNav),this.nav.addEventListener("scroll",this.handleScrollNav),this.setTabsFocusable()}updated(t){if(super.updated(t),t.has("selectedTab")&&this.selectTab(this.selectedTab),t.has("variant")){const s=this.variant==="secondary"||this.variant==="primary"?this.variant:"primary";this.variant!==s&&(this.variant=s)}this.setupTabAccessibility()}handleTabsSlotchange(t){this.tabs=t.target.assignedNodes({flatten:!0}),this.setTabsFocusable()}handlePanelSlotchange(t){this.panels=t.target.assignedNodes({flatten:!0}),this.setTabsFocusable()}setTabsFocusable(){var t;(t=this.tabs)==null||t.forEach(s=>{s.setAttribute("tabindex","0")})}selectTab(t){var s,r,i,o,n;(s=this.tabs)==null||s.forEach((c,h)=>{c.removeAttribute("selected"),c.setAttribute("aria-selected",h===t?"true":"false")}),(r=this.tabs[t])==null||r.setAttribute("selected",""),this.panels.forEach(c=>c.removeAttribute("selected")),(i=this.panels[t])==null||i.setAttribute("selected","");const l=(o=this.tabs)==null?void 0:o[this.selectedTab];this.nav.scrollLeft=(l==null?void 0:l.offsetLeft)-((n=this.nav)==null?void 0:n.offsetWidth)/2}setupTabAccessibility(){var t;(t=this.tabs)==null||t.forEach((s,r)=>{s.setAttribute("role","tab"),s.setAttribute("tabindex",r===this.selectedTab&&!this.disabled?"0":"-1"),s.addEventListener("focus",this.handleFocus),s.addEventListener("blur",this.handleBlur)})}handleChangeSelectedTab(t){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{selectedTab:t}})),this.selectedTab=t}handleSelect(t){let s;this.tabs.forEach((r,i)=>{(r===t.target||r.contains(t.target))&&(s=i)}),!(typeof s!="number"||s===this.selectedTab)&&this.handleChangeSelectedTab(s)}get classes(){return{container:!0,[this.size]:!0,[this.mode]:!0,[this.variant]:!0,disabled:this.disabled}}get navContainerClasses(){return{"nav-container":!0,"scroll-left":this.hasScrollLeft,"scroll-right":this.hasScrollRight}}render(){return d`
2616
- <div part="container" class=${b(this.classes)}>
2617
- <div class=${b(this.navContainerClasses)}>
2618
- ${this.getScrollButtonTemplate("left",this.handleScrollLeft)}
2619
- <nav tabindex="-1" role="tablist" @scroll=${this.handleScrollNav} @keydown=${this.handleKeyDown}>
2620
- <slot @slotchange=${this.handleTabsSlotchange} name="tab" @click=${this.handleSelect}></slot>
2621
- </nav>
2622
- ${this.getScrollButtonTemplate("right",this.handleScrollRight)}
2623
- </div>
2624
- <slot @slotchange=${this.handlePanelSlotchange} name="panel"></slot>
2625
- </div>
2626
- `}};nt.styles=[hh,ph,uh,mh],vt([a({type:Number,attribute:"selected-tab",reflect:!0})],nt.prototype,"selectedTab",2),vt([a({type:String,reflect:!0})],nt.prototype,"mode",2),vt([a({type:String,reflect:!0})],nt.prototype,"variant",2),vt([a({type:String})],nt.prototype,"size",2),vt([a({type:Boolean,converter:$})],nt.prototype,"disabled",2),vt([T()],nt.prototype,"focusedTabIndex",2),vt([_t("nav")],nt.prototype,"nav",2),vt([T()],nt.prototype,"tabs",2),vt([T()],nt.prototype,"panels",2),vt([T()],nt.prototype,"hasScrollLeft",2),vt([T()],nt.prototype,"hasScrollRight",2),nt=vt([S("ds-tabs")],nt);const vh=xe`
2627
- :host {
2628
- display: inline-block;
2629
- }
2630
-
2631
- .container {
2632
- display: inline-flex;
2633
- justify-content: center;
2634
- align-items: center;
2635
- }
2636
- `,bh=xe`
2637
- .icon.clicable {
2638
- cursor: pointer;
2639
- }
2640
- `;var wh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,Te=(e,t,s,r)=>{for(var i=r>1?void 0:r?xh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&wh(t,s,i),i};let Gt=class extends C{constructor(){super(...arguments),this.show=!0,this.clickableIcon=!1,this.iconPosition="left",this.color="black"}get classes(){return{container:!0,[this.color]:!0}}get iconClasses(){return{icon:!0,clicable:!!this.clickableIcon}}handleClickIcon(){if(!this.clickableIcon)return;const e=new CustomEvent("clickicon",{bubbles:!0,composed:!0});this.dispatchEvent(e)}get iconTemplate(){return this.iconName?this.componentFactory.createIcon({class:b(this.iconClasses),"icon-name":this.iconName,size:16,"@click":this.handleClickIcon}):u}render(){return this.show?d`
2641
- <div class=${b(this.classes)}>
2642
- ${It(this.iconPosition==="left",()=>d`${this.iconTemplate}`)}
2643
- <slot></slot>
2644
- ${It(this.iconPosition==="right",()=>d`${this.iconTemplate}`)}
2645
- </div>
2646
- `:u}};Gt.styles=[vh,bh],Te([a({type:Boolean,converter:$})],Gt.prototype,"show",2),Te([a({type:Boolean,converter:$,attribute:"clickable-icon"})],Gt.prototype,"clickableIcon",2),Te([a({type:String,attribute:"icon-name"})],Gt.prototype,"iconName",2),Te([a({type:String,attribute:"icon-position"})],Gt.prototype,"iconPosition",2),Te([a({type:String,attribute:"color"})],Gt.prototype,"color",2),Te([T()],Gt.prototype,"onClickHandler",2),Gt=Te([S("ds-tag")],Gt);const $h=v`
2647
- :host {
2648
- display: contents;
2649
- }
2650
-
2651
- ::slotted(*),
2652
- .text {
2653
- color: inherit;
2654
- font-size: inherit;
2655
- font-weight: inherit;
2656
- line-height: inherit;
2657
- margin: 0;
2658
- }
2659
-
2660
- .text + ::slotted(*) {
2661
- display: none;
2662
- }
2663
-
2664
- .uppercase {
2665
- text-transform: uppercase;
2666
- }
2667
- `;var Sh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Kt=(e,t,s,r)=>{for(var i=r>1?void 0:r?kh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Sh(t,s,i),i};let Ot=class extends C{constructor(){super(...arguments),this.size="medium",this.weight="regular",this.variant="body",this.mode="light"}get classes(){return{container:!0,[`size-${this.size}`]:!!this.size,[`mode-${this.mode}`]:!!this.mode,[`weight-${this.weight}`]:!!this.weight,[`variant-${this.variant}`]:!!this.variant,uppercase:this.uppercase}}get customElementTemplate(){return!this.htmlTagName||!this.value?u:d`${tr(`<${this.htmlTagName} class="text">${this.value}</${this.htmlTagName}>`)}`}get styles(){return B`
2668
- <style>
2669
- .container {
2670
- color: ${this.color||"var(--ds-text-color)"}
2671
- }
2672
- </style>
2673
- `}render(){return d`
2674
- ${this.styles}
2675
- <div data-testid="ds-text-container" class=${b(this.classes)}>
2676
- ${this.customElementTemplate}
2677
- <slot></slot>
2678
- </div>
2679
- `}};Ot.styles=[$h],Kt([a({type:String})],Ot.prototype,"size",2),Kt([a({type:String})],Ot.prototype,"weight",2),Kt([a({type:String})],Ot.prototype,"variant",2),Kt([a({type:String,attribute:"html-tag-name"})],Ot.prototype,"htmlTagName",2),Kt([a({type:String})],Ot.prototype,"value",2),Kt([a({type:String,reflect:!0})],Ot.prototype,"mode",2),Kt([a({type:String,reflect:!0})],Ot.prototype,"color",2),Kt([a({type:Boolean,converter:$,reflect:!0})],Ot.prototype,"uppercase",2),Ot=Kt([S("ds-text")],Ot);const Th=v`
2680
- :host {
2681
- display: contents;
2682
- }
2683
- `;var Ch=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Ze=(e,t,s,r)=>{for(var i=r>1?void 0:r?Eh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ch(t,s,i),i};let oe=class extends ui(C){constructor(){super(...arguments),this.keyboardMode=!1,this.size="medium",this.helperText="",this.forcedError="",this.invalidError="",this.mode="light"}onInputReady(e){e.classList.add("ds-scroll")}get classes(){return{container:!0,error:!!this.forcedError,[this.size]:!!this.size,[this.mode]:!!this.mode,disabled:this.inputStates.disabled,filled:this.inputStates.filled,invalid:this.inputStates.invalid,focus:this.inputStates.focus,"focus-visible":this.inputStates.focusVisible}}render(){return d`
2684
- <div class=${b(this.classes)}>
2685
- <div class="input-container">
2686
- <slot></slot>
2687
- </div>
2688
- <div class="footer">
2689
- ${this.helperTextTemplate}
2690
- ${this.forcedErrorTemplate}
2691
- ${this.invalidErrorTemplate}
2692
- ${this.lengthTemplate}
2693
- </div>
2694
- </div>
2695
- `}get lengthTemplate(){var e,t,s;const r=(t=(e=this.nativeInput)==null?void 0:e.maxLength)==null?void 0:t.toString();return mi(r)?d`<span class="char-counter">${((s=this.inputStates.currentValue)==null?void 0:s.length)||0}/${r}</span>`:u}get helperTextTemplate(){return this.forcedError||this.inputStates.invalid&&this.invalidError?u:d`<span class="support-text helper-text">${this.helperText}</span>`}get forcedErrorTemplate(){return this.forcedError?d`<span class="support-text error-text forced-error">${this.forcedError}</span>`:u}get invalidErrorTemplate(){return this.forcedError||!this.inputStates.invalid||!this.invalidError?u:d`<span class="support-text error-text invalid-error">${this.invalidError}</span>`}};oe.styles=[Th],Ze([a({type:String})],oe.prototype,"size",2),Ze([a({type:String,attribute:"helper-text"})],oe.prototype,"helperText",2),Ze([a({type:String,attribute:"forced-error"})],oe.prototype,"forcedError",2),Ze([a({type:String,attribute:"invalid-error"})],oe.prototype,"invalidError",2),Ze([a({type:String})],oe.prototype,"mode",2),oe=Ze([S("ds-textarea")],oe);const Oh={cupra:{fonts:[{name:"cupra-screen",weight:"300",file:"CupraScreen-Light"},{name:"cupra-screen",weight:"350",file:"CupraScreen-Book"},{name:"cupra-screen",weight:"400",file:"CupraScreen-Regular"},{name:"cupra-screen",weight:"500",file:"CupraScreen-Medium"}]},"cupra-diagonal":{fonts:[{name:"cupra-screen",weight:"300",file:"CupraScreen-Light"},{name:"cupra-screen",weight:"350",file:"CupraScreen-Book"},{name:"cupra-screen",weight:"400",file:"CupraScreen-Regular"},{name:"cupra-screen",weight:"500",file:"CupraScreen-Medium"}]},seat:{fonts:[{name:"seat",weight:"400",file:"SeatBcn-Regular"},{name:"seat",weight:"500",file:"SeatBcn-Medium"},{name:"seat",weight:"700",file:"SeatBcn-Bold"}]}};var Ph=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,Qe=(e,t,s,r)=>{for(var i=r>1?void 0:r?_h(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ph(t,s,i),i};let Ce=class extends Mt{constructor(){super(...arguments),this.loadFonts=!0,this.loadStyles=!0,this.cssLoaded=!1,this.loadedFonts=new Set}updated(e){super.updated(e),e.has("theme")&&(Me.publish("theme",this.theme),window.DS_THEME=this.theme,this.loadThemeFonts(),this.loadThemeStyles().then(()=>{this.cssLoaded=!0}))}loadThemeFonts(){var e;(e=Oh[this.theme])==null||e.fonts.forEach(t=>{this.loadThemeFont(t)})}async loadThemeFont({weight:e,name:t,file:s}){if(!this.loadFonts)return Promise.resolve();const r=`${t}-${e}`;if(this.loadedFonts.has(r))return;const i=new FontFace(t,`url('https://ds-assets.cupra.com/fonts/${this.theme}/${s}.woff2') format('woff2'),
2696
- url('https://ds-assets.cupra.com/fonts/${this.theme}/${s}.woff') format('woff'),
2697
- url('https://ds-assets.cupra.com/fonts/${this.theme}/${s}.ttf') format('truetype'),
2698
- url('https://ds-assets.cupra.com/fonts/${this.theme}/${s}.otf') format('opentype')`,{style:"normal",weight:e,display:"swap"});try{await i.load(),document.fonts.add(i),this.loadedFonts.add(r)}catch(o){console.error(`Error loading "${t}" font with "${e}" weight:`,o)}}loadThemeStyles(){return this.loadStyles?new Promise((e,t)=>{const s="/1.0.0-canary.9",r=`https://ds-assets.cupra.com${s}/styles/${this.theme}/theme.css`;if(document.head.querySelector(`link[href="${r}"]`))e();else{const i=`ui-kit-theme-${s}`,o=document.getElementById(i),n=document.createElement("link");n.id=i,n.rel="stylesheet",n.href=r,n.onload=()=>e(),n.onerror=()=>t(new Error(`Failed to load theme CSS: ${r}`)),document.head.appendChild(n),o==null||o.remove()}}):Promise.resolve()}render(){return this.cssLoaded?d`<slot></slot>`:u}};Qe([a({type:Boolean,converter:$,attribute:"load-fonts"})],Ce.prototype,"loadFonts",2),Qe([a({type:Boolean,converter:$,attribute:"load-styles"})],Ce.prototype,"loadStyles",2),Qe([je({context:Wr}),a({type:String})],Ce.prototype,"theme",2),Qe([T()],Ce.prototype,"cssLoaded",2),Qe([T()],Ce.prototype,"loadedFonts",2),Ce=Qe([S("ds-theme-provider")],Ce);const Ih=v`
2699
- :host {
2700
- display: contents;
2701
- }
2702
- `;var Ah=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,ts=(e,t,s,r)=>{for(var i=r>1?void 0:r?Nh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Ah(t,s,i),i};let ne=class extends C{constructor(){super(...arguments),this.status="default",this.dataId="",this.title="",this.text="",this.dataTemplate=!0}getIconName(){switch(this.status){case"success":return"check-mark-circle";case"error":return"cross-circle";case"warning":return"exclamation-mark-circle";case"info":return"info-circle";default:return"chat-bubble"}}handleClickCloseButton(){const e=new CustomEvent("toast:remove",{bubbles:!0,composed:!0,detail:{id:this.dataId}});this.dispatchEvent(e)}get toastMessageClasses(){return{container:!0,[this.status||"default"]:!0}}get iconTemplate(){return this.componentFactory.createIcon({class:"icon","icon-name":this.getIconName(),size:24})}get closeButtonTemplate(){return this.componentFactory.createIconButton({"data-aria-label":"close-button","@click":this.handleClickCloseButton,"icon-name":"cross",variant:"standard",size:"medium"})}render(){return this.dataTemplate?u:d`
2703
- <div class=${b(this.toastMessageClasses)}>
2704
- ${this.iconTemplate}
2705
- <div class="content">
2706
- <div class="header">
2707
- ${It(this.title,()=>d`<div class="title">${this.title}</div>`)}
2708
- ${It(this.text,()=>d`<div class="message">${this.text}</div>`)}
2709
- </div>
2710
- <slot></slot>
2711
- </div>
2712
- ${this.closeButtonTemplate}
2713
- </div>
2714
- `}};ne.styles=[Ih],ts([a({type:String})],ne.prototype,"status",2),ts([a({type:String,attribute:"data-id",reflect:!0})],ne.prototype,"dataId",2),ts([a({type:String})],ne.prototype,"title",2),ts([a({type:String})],ne.prototype,"text",2),ts([a({type:Boolean,converter:$,attribute:"data-template",reflect:!0})],ne.prototype,"dataTemplate",2),ne=ts([S("ds-toast-message")],ne);const zh=1e4,Dh=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Math.random().toString(36).substring(2),Go=(class Gs{constructor(){this.toasts=[],this.subscribers=[],this.defaultDuration=zh,this.handleAddToast=t=>{const{id:s=Dh(),status:r="default",duration:i=this.defaultDuration,...o}=t.detail||{},n={id:s,status:r,...o,exiting:!1};n.timeoutId=window.setTimeout(()=>{this.toasts.find(l=>l.id===s).exiting=!0,this.notifySubscribers()},i),this.toasts=[...this.toasts,n],this.notifySubscribers()},this.handleRemoveToast=t=>{const{id:s,referenceId:r}=t.detail||{};if(!s&&!r)return;let i;s?i=this.toasts.find(o=>o.id===s):r&&(i=this.toasts.find(o=>o.referenceId===r)),i&&(i!=null&&i.timeoutId&&window.clearTimeout(i.timeoutId),i.exiting=!0,this.notifySubscribers())},this.initialize()}initialize(){window.addEventListener("toast:add",this.handleAddToast),window.addEventListener("toast:remove",this.handleRemoveToast)}static getInstance(){return Gs.instance||(Gs.instance=new Gs),Gs.instance}removeToast(t){const s=this.toasts.find(r=>r.id===t);s!=null&&s.timeoutId&&window.clearTimeout(s.timeoutId),this.toasts=this.toasts.filter(r=>r.id!==t),this.notifySubscribers()}getToasts(){return[...this.toasts]}subscribe(t){return this.subscribers.push(t),()=>{this.subscribers=this.subscribers.filter(s=>s!==t)}}notifySubscribers(){const t=this.getToasts();this.subscribers.forEach(s=>s(t))}}).getInstance();/**
2715
- * @license
2716
- * Copyright 2020 Google LLC
2717
- * SPDX-License-Identifier: BSD-3-Clause
2718
- */const{I:jh}=nl,Ko=()=>document.createComment(""),_s=(e,t,s)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(Ko(),o),l=i.insertBefore(Ko(),o);s=new jh(n,l,e,e.options)}else{const n=s._$AB.nextSibling,l=s._$AM,c=l!==e;if(c){let h;(r=s._$AQ)==null||r.call(s,e),s._$AM=e,s._$AP!==void 0&&(h=e._$AU)!==l._$AU&&s._$AP(h)}if(n!==o||c){let h=s._$AA;for(;h!==n;){const m=h.nextSibling;i.insertBefore(h,o),h=m}}}return s},Ee=(e,t,s=e)=>(e._$AI(t,s),e),Mh={},Lh=(e,t=Mh)=>e._$AH=t,Bh=e=>e._$AH,vi=e=>{e._$AR(),e._$AA.remove()};/**
2719
- * @license
2720
- * Copyright 2017 Google LLC
2721
- * SPDX-License-Identifier: BSD-3-Clause
2722
- */const Yo=(e,t,s)=>{const r=new Map;for(let i=t;i<=s;i++)r.set(e[i],i);return r},Fh=ii(class extends oi{constructor(e){if(super(e),e.type!==ri.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,s){let r;s===void 0?s=t:t!==void 0&&(r=t);const i=[],o=[];let n=0;for(const l of e)i[n]=r?r(l,n):n,o[n]=s(l,n),n++;return{values:o,keys:i}}render(e,t,s){return this.dt(e,t,s).values}update(e,[t,s,r]){const i=Bh(e),{values:o,keys:n}=this.dt(t,s,r);if(!Array.isArray(i))return this.ut=n,o;const l=this.ut??(this.ut=[]),c=[];let h,m,p=0,f=i.length-1,g=0,w=o.length-1;for(;p<=f&&g<=w;)if(i[p]===null)p++;else if(i[f]===null)f--;else if(l[p]===n[g])c[g]=Ee(i[p],o[g]),p++,g++;else if(l[f]===n[w])c[w]=Ee(i[f],o[w]),f--,w--;else if(l[p]===n[w])c[w]=Ee(i[p],o[w]),_s(e,c[w+1],i[p]),p++,w--;else if(l[f]===n[g])c[g]=Ee(i[f],o[g]),_s(e,i[p],i[f]),f--,g++;else if(h===void 0&&(h=Yo(n,g,w),m=Yo(l,p,f)),h.has(l[p]))if(h.has(l[f])){const k=m.get(n[g]),O=k!==void 0?i[k]:null;if(O===null){const I=_s(e,i[p]);Ee(I,o[g]),c[g]=I}else c[g]=Ee(O,o[g]),_s(e,i[p],O),i[k]=null;g++}else vi(i[f]),f--;else vi(i[p]),p++;for(;g<=w;){const k=_s(e,c[w+1]);Ee(k,o[g]),c[g++]=k}for(;p<=f;){const k=i[p++];k!==null&&vi(k)}return this.ut=n,Lh(e,c),jt}}),Rh=v`
2723
- :host {
2724
- display: contents;
2725
- }
2726
-
2727
- .toast-container {
2728
- position: fixed;
2729
- z-index: var(--ds-z-index-toast);
2730
- display: flex;
2731
- flex-direction: column-reverse;
2732
- pointer-events: none;
2733
- }
2734
-
2735
- .toast-container.top-right {
2736
- top: 1rem;
2737
- right: 1rem;
2738
- align-items: flex-end;
2739
- }
2740
-
2741
- .toast-container.top-left {
2742
- top: 1rem;
2743
- left: 1rem;
2744
- align-items: flex-start;
2745
- }
2746
-
2747
- .toast-container.bottom-right,
2748
- .toast-container.bottom-left {
2749
- flex-direction: column;
2750
- }
2751
-
2752
- .toast-container.bottom-right {
2753
- bottom: 1rem;
2754
- right: 1rem;
2755
- align-items: flex-end;
2756
- }
2757
-
2758
- .toast-container.bottom-left {
2759
- bottom: 1rem;
2760
- left: 1rem;
2761
- align-items: flex-start;
2762
- }
2763
- `,Vh=v`
2764
- .toast {
2765
- margin-bottom: 1rem;
2766
- animation: toast-in-top 0.3s cubic-bezier(0, 0, 0.2, 1) forwards;
2767
- transform: translateY(-1rem);
2768
- }
2769
-
2770
- .toast-container.bottom-left .toast,
2771
- .toast-container.bottom-right .toast {
2772
- animation: toast-in-bottom 0.3s cubic-bezier(0, 0, 0.2, 1) forwards;
2773
- transform: translateY(1rem);
2774
- }
2775
-
2776
- .toast-container.bottom-left .toast.exiting,
2777
- .toast-container.top-left .toast.exiting {
2778
- animation: toast-out-left 0.3s cubic-bezier(0, 0, 0.2, 1) forwards;
2779
- }
2780
-
2781
- .toast-container.bottom-right .toast.exiting,
2782
- .toast-container.top-right .toast.exiting {
2783
- animation: toast-out-right 0.3s cubic-bezier(0, 0, 0.2, 1) forwards;
2784
- }
2785
-
2786
- @keyframes toast-in-bottom {
2787
- from {
2788
- transform: translateY(1rem);
2789
- }
2790
- to {
2791
- transform: translateY(0);
2792
- }
2793
- }
2794
-
2795
- @keyframes toast-in-top {
2796
- from {
2797
- transform: translateY(-1rem);
2798
- }
2799
- to {
2800
- transform: translateY(0);
2801
- }
2802
- }
2803
-
2804
- @keyframes toast-out-left {
2805
- from {
2806
- opacity: 1;
2807
- transform: translateX(0);
2808
- }
2809
- to {
2810
- opacity: 0;
2811
- transform: translateX(-1rem);
2812
- }
2813
- }
2814
-
2815
- @keyframes toast-out-right {
2816
- from {
2817
- opacity: 1;
2818
- transform: translateX(0);
2819
- }
2820
- to {
2821
- opacity: 0;
2822
- transform: translateX(1rem);
2823
- }
2824
- }
2825
- `;var Uh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,bi=(e,t,s,r)=>{for(var i=r>1?void 0:r?Hh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Uh(t,s,i),i};let Is=class extends C{constructor(){super(...arguments),this.position="top-right",this.toasts=[],this.unsubscribe=null}connectedCallback(){super.connectedCallback(),this.unsubscribe=Go.subscribe(t=>{this.toasts=t})}disconnectedCallback(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),super.disconnectedCallback()}handleAnimationEnd(t){const s=t.target;if(s.classList.contains("exiting")&&(t.animationName==="toast-out-left"||t.animationName==="toast-out-right")){const r=s.getAttribute("data-id");r&&Go.removeToast(r)}}getToastMessageTemplate(t){const s={toast:!0,[t.status]:!0,exiting:t.exiting};let r=u;if(t.referenceId){const i=document.querySelector(`[data-id="${t.referenceId}"]`);if(i){const o=i.cloneNode(!0);o.setAttribute("data-template","false"),o.setAttribute("data-id",t.id),r=tr(o.outerHTML)}}else r=this.componentFactory.createToastMessage({"data-id":t.id,"data-template":!1,title:t.title,text:t.text,status:t.status});return d`<div class=${b(s)} data-id="${t.id}">${r}</div>`}get containerClasses(){return{"toast-container":!0,[this.position]:!0}}render(){return d`
2826
- <div
2827
- part="toast-container"
2828
- class=${b(this.containerClasses)}
2829
- @animationend=${this.handleAnimationEnd}
2830
- aria-live="polite"
2831
- >
2832
- ${Fh(this.toasts,t=>t.id,t=>this.getToastMessageTemplate(t))}
2833
- </div>
2834
- `}};Is.styles=[Rh,Vh],bi([a({type:String})],Is.prototype,"position",2),bi([T()],Is.prototype,"toasts",2),Is=bi([S("ds-toast")],Is);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,As=(e,t,s,r)=>{for(var i=r>1?void 0:r?Wh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&qh(t,s,i),i};let es=class extends W{constructor(){super(...arguments),this.checked=!1,this.checkedText="",this.uncheckedText="",this.rounded=!0}updated(t){super.updated(t),this.iconName=this.checked?"minus":"plus",this.variant=this.checked?"primary":"secondary"}handleClick(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{checked:this.checked}}))}render(){var t;return d`
2835
- <style>
2836
- :host {
2837
- pointer-events: ${this.disabled?"none":"visible"};
2838
- }
2839
- </style>
2840
- ${this.cssTokens}
2841
- <button
2842
- aria-label=${(t=this.textContent)==null?void 0:t.replace(/^\s+|\s+$/g,"")}
2843
- class=${b(this.classes)}
2844
- ?disabled=${this.disabled}
2845
- type=${this.type}
2846
- @click=${this.handleClick}
2847
- >
2848
- ${It(this.iconPosition==="left",()=>d`${this.iconTemplate}`)}
2849
- ${this.checked?this.checkedText:this.uncheckedText}
2850
- ${It(this.iconPosition==="right",()=>d`${this.iconTemplate}`)}
2851
- </button>
2852
- `}};As([a({type:Boolean,converter:$,reflect:!0})],es.prototype,"checked",2),As([a({type:String,attribute:"checked-text"})],es.prototype,"checkedText",2),As([a({type:String,attribute:"unchecked-text"})],es.prototype,"uncheckedText",2),As([a({type:Boolean,converter:$})],es.prototype,"rounded",2),es=As([S("ds-toggle-button",{skipTagAsComponentName:!0,extendComponentNames:["ds-button"]})],es);const Gh=v`
2853
- .container {
2854
- display: flex;
2855
- justify-content: flex-start;
2856
- align-items: center;
2857
- }
2858
-
2859
- ::slotted([slot='on']),
2860
- ::slotted([slot='off']) {
2861
- cursor: pointer;
2862
- transition: color 200ms ease-in-out;
2863
- }
2864
-
2865
- .track-container {
2866
- display: inline-flex;
2867
- justify-content: flex-start;
2868
- align-items: center;
2869
- position: relative;
2870
- background: transparent;
2871
- border: none;
2872
- outline: none;
2873
- padding: 0;
2874
- cursor: pointer;
2875
- }
2876
-
2877
- .fill {
2878
- transition: width 200ms ease-in-out;
2879
- position: absolute;
2880
- left: 0;
2881
- top: 50%;
2882
- }
2883
-
2884
- .dot {
2885
- border-radius: 100%;
2886
- position: absolute;
2887
- top: 0;
2888
- left: 0;
2889
- transition: left 200ms ease-in-out;
2890
- }
2891
- `;var Kh=Object.defineProperty,Yh=Object.getOwnPropertyDescriptor,ss=(e,t,s,r)=>{for(var i=r>1?void 0:r?Yh(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Kh(t,s,i),i};let ae=class extends C{constructor(){super(...arguments),this.size="medium",this.checked=!1,this.disabled=!1,this.mode="light"}handleClick(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{checked:this.checked}}))}handleClickOff(){this.checked&&this.handleClick()}handleClickOn(){this.checked||this.handleClick()}get styleTokens(){return B`
2892
- <style>
2893
- :host {
2894
- color-scheme: ${this.mode};
2895
- }
2896
- </style>
2897
- `}get labelClasses(){return{container:!0,[this.size]:!!this.size,checked:this.checked,disabled:this.disabled,[this.mode]:!!this.mode}}render(){return d`
2898
- ${this.styleTokens}
2899
- <div class=${b(this.labelClasses)} @click=${this.handleClick}>
2900
- <slot name="off" @click=${this.handleClickOff}></slot>
2901
- <slot name="label"></slot>
2902
- <button
2903
- class="track-container"
2904
- type="button"
2905
- role="switch"
2906
- aria-checked=${this.checked}
2907
- aria-label=${this.dataAriaLabel}
2908
- data-action="aria-switch"
2909
- ?disabled=${this.disabled}
2910
- >
2911
- <span class="track"></span>
2912
- <span class="fill"></span>
2913
- <span class="dot"></span>
2914
- </button>
2915
- <slot name="on" @click=${this.handleClickOn}></slot>
2916
- </div>
2917
- `}};ae.styles=[Gh],ss([a({type:String})],ae.prototype,"size",2),ss([a({type:Boolean,converter:$,reflect:!0})],ae.prototype,"checked",2),ss([a({type:Boolean,converter:$,reflect:!0})],ae.prototype,"disabled",2),ss([a({type:String,reflect:!0})],ae.prototype,"mode",2),ss([a({type:String,attribute:"data-aria-label"})],ae.prototype,"dataAriaLabel",2),ae=ss([S("ds-toggle-switch")],ae);const Xh=v`
2918
- :host {
2919
- position: relative;
2920
- display: inline-block;
2921
- }
2922
-
2923
- .title {
2924
- text-align: left;
2925
- }
2926
-
2927
- .body {
2928
- text-align: left;
2929
- }
2930
-
2931
- .buttons-container {
2932
- display: grid;
2933
- grid-template-columns: 1fr 1fr;
2934
- justify-content: flex-end;
2935
- }
2936
- `,Jh=v`
2937
- .tooltip {
2938
- width: max-content;
2939
- white-space: normal;
2940
- box-sizing: border-box;
2941
- position: absolute;
2942
- }
2943
-
2944
- .tooltip.complex {
2945
- padding: 12px;
2946
- }
2947
-
2948
- .tooltip.top {
2949
- bottom: 100%;
2950
- margin-bottom: 13px;
2951
- }
2952
-
2953
- .tooltip.bottom {
2954
- top: 100%;
2955
- margin-top: 13px;
2956
- }
2957
-
2958
- .tooltip.left {
2959
- right: 100%;
2960
- margin-right: 13px;
2961
- }
2962
-
2963
- .tooltip.right {
2964
- left: 100%;
2965
- margin-left: 13px;
2966
- }
2967
-
2968
- .tooltip.top.center,
2969
- .tooltip.bottom.center {
2970
- left: 50%;
2971
- transform: translateX(-50%);
2972
- }
2973
-
2974
- .tooltip.left.center,
2975
- .tooltip.right.center {
2976
- top: 50%;
2977
- transform: translateY(-50%);
2978
- }
2979
-
2980
- .tooltip.top.start,
2981
- .tooltip.bottom.start {
2982
- left: 0;
2983
- transform: none;
2984
- }
2985
-
2986
- .tooltip.left.start,
2987
- .tooltip.right.start {
2988
- top: 0;
2989
- transform: none;
2990
- }
2991
-
2992
- .tooltip.top.end,
2993
- .tooltip.bottom.end {
2994
- left: auto;
2995
- right: 0;
2996
- transform: none;
2997
- }
2998
-
2999
- .tooltip.left.end,
3000
- .tooltip.right.end {
3001
- top: auto;
3002
- bottom: 0;
3003
- transform: none;
3004
- }
3005
- `,Zh=v`
3006
- .arrow {
3007
- width: 0;
3008
- height: 0;
3009
- border-style: solid;
3010
- position: absolute;
3011
- }
3012
-
3013
- .arrow.top {
3014
- border-width: 5px 6px 0 6px;
3015
- bottom: calc(100% + 9px);
3016
- }
3017
-
3018
- .arrow.bottom {
3019
- border-width: 0 6px 5px 6px;
3020
- top: calc(100% + 9px);
3021
- }
3022
-
3023
- .arrow.left {
3024
- border-width: 6px 0 6px 5px;
3025
- right: calc(100% + 9px);
3026
- }
3027
-
3028
- .arrow.right {
3029
- border-width: 6px 5px 6px 0;
3030
- left: calc(100% + 9px);
3031
- }
3032
-
3033
- .arrow.top,
3034
- .arrow.bottom {
3035
- left: 50%;
3036
- transform: translateX(-50%);
3037
- }
3038
-
3039
- .arrow.left,
3040
- .arrow.right {
3041
- top: 50%;
3042
- transform: translateY(-50%);
3043
- }
3044
-
3045
- .arrow.top.start.not-positionable,
3046
- .arrow.bottom.start.not-positionable {
3047
- left: 6px;
3048
- transform: none;
3049
- }
3050
-
3051
- .arrow.top.end.not-positionable,
3052
- .arrow.bottom.end.not-positionable {
3053
- left: auto;
3054
- right: 6px;
3055
- transform: none;
3056
- }
3057
-
3058
- .arrow.left.start.not-positionable,
3059
- .arrow.right.start.not-positionable {
3060
- top: 6px;
3061
- transform: none;
3062
- }
3063
-
3064
- .arrow.left.end.not-positionable,
3065
- .arrow.right.end.not-positionable {
3066
- top: auto;
3067
- bottom: 6px;
3068
- transform: none;
3069
- }
3070
- `;var Qh=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,ut=(e,t,s,r)=>{for(var i=r>1?void 0:r?tp(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&Qh(t,s,i),i};let st=class extends ee(C){constructor(){super(...arguments),this.mode="light",this.titleText="",this.bodyText="",this.position="bottom",this.align="center",this.show=!1,this.zIndex=2e3,this.bodyWidth="unset",this.handleResize=Hr({func:()=>this.requestUpdate()}),this.handleClickOutside=t=>{var s;const r=t.target;r!==this&&!this.contains(r)&&!((s=this.shadowRoot)!=null&&s.contains(r))&&(this.show=!1)}}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}willUpdate(t){t.has("show")&&(this.show?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside))}get arrowClasses(){var t;return{arrow:!0,[this.position]:!0,[this.align]:!0,[this.mode]:!0,"not-positionable":(this==null?void 0:this.offsetWidth)>((t=this.tooltip)==null?void 0:t.offsetWidth)}}get tooltipClasses(){return{tooltip:!0,[this.position]:!0,[this.align]:!0,[this.mode]:!0,complex:this.cancelButtonText||this.confirmButtonText}}get buttonsTemplate(){if(!this.cancelButtonText&&!this.confirmButtonText)return u;const t=this.mode==="light"?"dark":"light";return d`
3071
- <div class="buttons-container">
3072
- ${this.cancelButtonText?this.componentFactory.createButton({class:"cancel-button","@click":this.handleClickCancelButton,size:"small",variant:"secondary",mode:t,children:this.cancelButtonText}):u}
3073
- ${this.confirmButtonText?this.componentFactory.createButton({class:"confirm-button","@click":this.handleClickConfirmButton,size:"small",variant:"primary",mode:t,children:this.confirmButtonText}):u}
3074
- </div>
3075
- `}get tooltipTemplate(){return this.show?d`
3076
- <div class=${b(this.arrowClasses)} @mouseout="${this.handleMouseOut}"></div>
3077
- <div class=${b(this.tooltipClasses)} @mouseout=${this.handleMouseOut}>
3078
- ${this.titleText?d`<div class="title">${this.titleText}</div>`:u}
3079
- ${this.bodyText?d`<div class="body">${this.bodyText}</div>`:u}
3080
- ${this.buttonsTemplate}
3081
- </div>
3082
- `:u}getTooltipWidth(){const t=this.offsetLeft+this.scrollLeft+this.clientLeft,s=document.body.clientWidth-t-this.clientWidth;let r;return this.position==="left"?r=t-13:this.position==="right"?r=s-13:this.align==="center"?r=(t<s?t:s)*2+this.clientWidth:this.align==="start"?r=document.body.clientWidth-t:this.align==="end"&&(r=t+this.clientWidth),`${r-16-32}px`}get styleTokens(){return B`
3083
- <style>
3084
- :host {
3085
- color-scheme: ${this.mode};
3086
- }
3087
- </style>
3088
- `}render(){return d`
3089
- <style>
3090
- .tooltip {
3091
- max-width: ${this.getTooltipWidth()};
3092
- }
3093
- .tooltip,
3094
- .arrow {
3095
- z-index: ${this.zIndex};
3096
- }
3097
- .body {
3098
- max-width: ${this.bodyWidth};
3099
- }
3100
- </style>
3101
- ${this.styleTokens}
3102
- <slot
3103
- @mouseover="${this.handleMouseOver}"
3104
- @mouseout="${this.handleMouseOut}"
3105
- @click=${this.handleClickSlot}
3106
- ></slot>
3107
-
3108
- ${this.tooltipTemplate}
3109
- `}handleClickSlot(){["xs","s","m"].includes(this.viewport)&&(this.show=!this.show)}handleMouseOver(){["xs","s","m"].includes(this.viewport)||(this.show=!0)}handleMouseOut(){["xs","s","m"].includes(this.viewport)||setTimeout(()=>{var t,s,r,i,o;!((s=(t=this.tooltip)==null?void 0:t.matches)!=null&&s.call(t,":hover"))&&!((i=(r=this.arrow)==null?void 0:r.matches)!=null&&i.call(r,":hover"))&&!((o=this==null?void 0:this.matches)!=null&&o.call(this,":hover"))&&(this.show=!1)},150)}handleClickCancelButton(){this.dispatchEvent(new CustomEvent("click-cancel-button",{bubbles:!0,composed:!0})),this.show=!1}handleClickConfirmButton(){this.dispatchEvent(new CustomEvent("click-confirm-button",{bubbles:!0,composed:!0}))}};st.styles=[Xh,Jh,Zh],ut([a({type:String,reflect:!0})],st.prototype,"mode",2),ut([a({type:String,attribute:"title-text"})],st.prototype,"titleText",2),ut([a({type:String,attribute:"body-text"})],st.prototype,"bodyText",2),ut([a({type:String})],st.prototype,"position",2),ut([a({type:String})],st.prototype,"align",2),ut([a({type:String,attribute:"cancel-button-text"})],st.prototype,"cancelButtonText",2),ut([a({type:String,attribute:"confirm-button-text"})],st.prototype,"confirmButtonText",2),ut([a({type:Boolean,reflect:!0,converter:$})],st.prototype,"show",2),ut([a({type:Number,attribute:"z-index"})],st.prototype,"zIndex",2),ut([a({type:String,attribute:"body-width"})],st.prototype,"bodyWidth",2),ut([_t(".tooltip")],st.prototype,"tooltip",2),ut([_t(".arrow")],st.prototype,"arrow",2),st=ut([S("ds-tooltip")],st);const ep=v`
3110
- :host {
3111
- display: contents;
3112
- }
3113
- `;var sp=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,Ns=(e,t,s,r)=>{for(var i=r>1?void 0:r?rp(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&sp(t,s,i),i};let Oe=class extends C{constructor(){super(...arguments),this.size="medium",this.disabled=!1}get iconTemplate(){return this.componentFactory.createIcon({class:"icon","icon-name":"user"})}get initialsTemplate(){const e=this.getInitialsFromName(this.name);return d`<span class="initials" aria-hidden="true">${e}</span>`}getInitialsFromName(e){return e?e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(t=>t[0]).join("").toUpperCase():""}get classes(){return{container:!0,disabled:this.disabled,[this.size]:!0,[`mode-${this.mode}`]:!0}}get hasImage(){return Array.isArray(this.assignedImages)&&this.assignedImages.length>0}get mode(){var e;return this.hasImage?"media":(e=this.name)!=null&&e.trim()?"text":"icon"}handleSlotChange(){this.requestUpdate()}get styleTokens(){return B`
3114
- <style>
3115
- :host{
3116
- pointer-events: ${this.disabled?"none":"auto"};
3117
- }
3118
- </style>
3119
- `}handleKeyDown(e){this.disabled||(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}render(){return d`
3120
- ${this.styleTokens}
3121
- <div
3122
- class=${b(this.classes)}
3123
- title=${lt(this.name)}
3124
- aria-label=${`Open ${this.name?this.name+"'s ":""}profile menu`}
3125
- aria-disabled=${lt(this.disabled?"true":void 0)}
3126
- role="button"
3127
- tabindex=${this.disabled?-1:0}
3128
- @keydown=${this.handleKeyDown}
3129
- >
3130
- ${this.mode==="icon"?this.iconTemplate:u}
3131
- ${this.mode==="text"?this.initialsTemplate:u}
3132
- <div class="media" aria-hidden=${String(this.mode!=="media")}><slot name="media" @slotchange=${this.handleSlotChange}></slot></div>
3133
- </div>
3134
- `}};Oe.styles=[ep],Ns([a({type:String})],Oe.prototype,"size",2),Ns([a({type:String})],Oe.prototype,"name",2),Ns([a({type:Boolean,converter:$,reflect:!0})],Oe.prototype,"disabled",2),Ns([xt({slot:"media",selector:"img"})],Oe.prototype,"assignedImages",2),Oe=Ns([S("ds-avatar")],Oe);const ip=v`
3135
- :host {
3136
- display: contents;
3137
- }
3138
- `;var op=Object.defineProperty,np=Object.getOwnPropertyDescriptor,wi=(e,t,s,r)=>{for(var i=r>1?void 0:r?np(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&op(t,s,i),i};let zs=class extends C{constructor(){super(...arguments),this.steps=0,this.currentStep=-1}get classes(){return{container:!0}}render(){if(!this.steps)return u;const t=Math.max(-1,Math.min(this.currentStep,this.steps));return d`
3139
- <div
3140
- data-testid="ds-stepper-container"
3141
- class=${b(this.classes)}
3142
- role="list"
3143
- aria-label="Steps"
3144
- >
3145
- ${Array.from({length:this.steps},(s,r)=>{const i=r<=t,o=r===t;return d`<span class=${b({step:!0,active:i,current:o})} role="listitem" aria-posinset=${r+1} aria-setsize=${this.steps} aria-current=${o?"step":"false"}></span>`})}
3146
- </div>
3147
- `}};zs.styles=[ip],wi([a({type:Number,attribute:"steps",reflect:!0})],zs.prototype,"steps",2),wi([a({type:Number,attribute:"current-step",reflect:!0})],zs.prototype,"currentStep",2),zs=wi([S("ds-stepper")],zs);const ap=v`
3148
- :host {
3149
- display: contents;
3150
- }
3151
- `;var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,pr=(e,t,s,r)=>{for(var i=r>1?void 0:r?cp(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&lp(t,s,i),i};let rs=class extends ee(C){constructor(){super(...arguments),this.size="medium"}get classes(){const t=typeof this.size=="string"?this.size:this.size[this.viewport];return{container:!0,[t]:!!t}}get styleTokens(){var t,s;return B`
3152
- <style>
3153
- .header {
3154
- display: ${((t=this.headerItems)==null?void 0:t.length)>0?"block":"none"};
3155
- }
3156
-
3157
- .footer {
3158
- display: ${((s=this.footerItems)==null?void 0:s.length)>0?"block":"none"};
3159
- }
3160
- </style>
3161
- `}render(){return d`
3162
- ${this.styleTokens}
3163
- <div part="container" data-testid="ds-static-box-container" class=${b(this.classes)}>
3164
- <div class="body">
3165
- <div part="header" class="header">
3166
- <slot name="header"></slot>
3167
- </div>
3168
- <div part="main" class="main ds-scroll">
3169
- <slot name="main"></slot>
3170
- </div>
3171
- </div>
3172
- <div part="footer" class="footer">
3173
- <slot name="footer"></slot>
3174
- </div>
3175
- </div>
3176
- `}};rs.styles=[ap],pr([a({type:String,converter:bs})],rs.prototype,"size",2),pr([ei({slot:"header",flatten:!0})],rs.prototype,"headerItems",2),pr([ei({slot:"footer",flatten:!0})],rs.prototype,"footerItems",2),rs=pr([S("ds-static-box")],rs);const dp=v`
3177
- :host {
3178
- display: contents;
3179
- }
3180
- `;var hp=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,ur=(e,t,s,r)=>{for(var i=r>1?void 0:r?pp(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&hp(t,s,i),i};let is=class extends C{constructor(){super(...arguments),this.size="medium",this.selected=!1,this.error=!1,this.handleClick=t=>{t.stopPropagation()}}get classes(){return{container:!0,selected:this.selected,[this.size]:!!this.size}}get errorClasses(){return{error:!0,selected:this.selected,[this.size]:!!this.size}}get iconTemplate(){return this.componentFactory.createIcon({class:"icon","icon-name":"cross-circle",size:24})}get contentTemplate(){return this.error?u:d`
3181
- <div part="container" class=${b(this.classes)} data-testid="ds-interactive-card-container" tabindex="0">
3182
- <header class="header" part="header">
3183
- <div class="header-main">
3184
- <slot name="title" class="title" part="title"></slot>
3185
- <slot name="subtitle" class="subtitle" part="subtitle"></slot>
3186
- </div>
3187
- <div class="meta" part="meta"><slot name="meta"></slot></div>
3188
- </header>
3189
- <div data-testid="ds-interactive-card-content" class="content" part="content"><slot name="content"></slot></div>
3190
- <footer @click=${this.handleClick} class="cta" part="cta"><slot name="cta"></slot></footer>
3191
- </div>
3192
- `}get errorTemplate(){return this.error?d`
3193
- <div part="error" class=${b(this.errorClasses)}>
3194
- ${this.iconTemplate}
3195
- <div class="error-content" part="error-text">
3196
- <slot class="error-title" name="error-title"></slot>
3197
- <slot class="error-text" name="error-text" data-testid="ds-interactive-card-error-text"></slot>
3198
- </div>
3199
- </div>
3200
- `:u}render(){return d`
3201
- ${this.contentTemplate}
3202
- ${this.errorTemplate}
3203
- `}};is.styles=[dp],ur([a({type:String})],is.prototype,"size",2),ur([a({type:Boolean,converter:$})],is.prototype,"selected",2),ur([a({type:Boolean,converter:$})],is.prototype,"error",2),is=ur([S("ds-interactive-card")],is);const up=v`
3204
- :host {
3205
- display: contents;
3206
- }
3207
-
3208
- .container {
3209
- width: 100%;
3210
- }
3211
-
3212
- .nav {
3213
- position: absolute;
3214
- left: 0;
3215
- bottom: 0;
3216
- width: 100%;
3217
- display: flex;
3218
- box-sizing: border-box;
3219
- }
3220
- `;var mp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,xi=(e,t,s,r)=>{for(var i=r>1?void 0:r?fp(t,s):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(i=(r?n(t,s,i):n(i))||i);return r&&i&&mp(t,s,i),i};let Ds=class extends C{constructor(){super(...arguments),this.open=!1,this.toggleModal=()=>{this.open=!this.open},this.handleSlotChange=t=>{const s=t.target.assignedElements().find(r=>r.tagName==="DS-BUTTON");this.setMainCtaSize(s)},this.setMainCtaSize=t=>{t&&t.setAttribute("size",JSON.stringify({xxl:"large",xl:"large",l:"medium",m:"medium",s:"small",xs:"small",xxs:"small"}))}}firstUpdated(t){var s;super.firstUpdated(t);const r=(s=this.mainCtas)==null?void 0:s[0];r&&this.setMainCtaSize(r)}modalButtonTemplate(){return this.componentFactory.createIconButton({class:"modal-button","icon-name":this.open?"cross":"triple-dot-v","@click":this.toggleModal,"data-testid":"modal-button","data-aria-label":"more actions",size:JSON.stringify({xxl:"large",xl:"large",l:"medium",m:"medium",s:"small",xs:"small",xxs:"small"})})}classes(){return{container:!0,open:this.open}}render(){return d`
3221
- <div class=${b(this.classes())}>
3222
- <nav class="nav" part="bar">
3223
- <div class="aside" part="aside">
3224
- <slot name="aside-text"></slot>
3225
- <span class="helper-text-container">
3226
- <slot name="aside-icon"></slot>
3227
- <slot name="aside-helper-text"></slot>
3228
- </span>
3229
- </div>
3230
- <div class="actions-container" part="actions-container">
3231
- <slot name="main-cta" @slotchange=${this.handleSlotChange}></slot>
3232
- ${this.modalButtonTemplate()}
3233
- </div>
3234
- </nav>
3235
- <div part="modal" class="modal">
3236
- <slot name="ctas"></slot>
3237
- </div>
3238
- </div>
3239
- `}};Ds.styles=[up],xi([T()],Ds.prototype,"open",2),xi([xt({slot:"main-cta",selector:"ds-button",flatten:!0})],Ds.prototype,"mainCtas",2),Ds=xi([S("ds-sidebar-navigation")],Ds);const Sm=["9-circles","ad-color","ae-color","af-color","ag-color","ai-color","al-color","am-color","an-color","ao-color","ar-color","arrow-down","arrow-down-line","arrow-download","arrow-exit","arrow-expand","arrow-external-link","arrow-left","arrow-left-line","arrow-reload","arrow-right","arrow-right-line","arrow-rotate-360","arrow-rotate-360-horizontal","arrow-switch","arrow-up","arrow-up-line","arrow-upload","at-color","au-color","aw-color","ax-color","az-color","b-color","ba-color","battery-g-4-01","battery-inclined-fill","battery-vertical-100","battery-2-sub-arrows-up","battery-3-sub-arrows-up","bb-color","bd-color","be-color","bell","bf-color","bg-color","bh-color","bi-color","bill","bin","bj-color","bm-color","bn-color","bo-color","book-mark","box","br-color","bs-color","bt-color","bw-color","by-color","bz-color","c-color","ca-color","cable","caf-color","calendar","camera","car-arrow-down","car-compare","car-door","car-frontal","car-imodel","car-in-window","car-lateral","car-model","car-seat","cart","cart-down","cas-color","cd-color","cercle-ribbon-check","ceu-color","cf-color","cg-color","ch-color","charger-acc","charger-type-2","chat-bubble","check","check-mark-circle","ci-color","city","cl-color","clock","cloud-co-2","cm-color","cn-color","cna-color","co-color","coc-color","computer-display","cr-color","credit-card","cross","cross-circle","csa-color","cu-color","cv-color","cy-color","cz-color","de-color","dj-color","dk-color","dm-color","do-color","document","document-check","document-copy","document-download","document-time","dot","dz-color","ec-color","eco-color","ee-color","eg-color","electric-station","engine","envelope","equals-sign","er-color","es-color","et-color","eu-color","euro","exclamation-mark-circle","exclamation-mark-triangle","eye","eye-crossed-out","facebook","fi-color","filter","fj-color","fk-color","fm-color","fr-color","fuel-station","ga-color","garage","gb-color","gd-color","ge-color","gear","gg-color","gh-color","gi-color","globe","gm-color","gn-color","gq-color","gr-color","gt-color","gw-color","gy-color","half-star-filled","headlight","heart","heart-filled","highway","hk-color","hn-color","hr-color","ht-color","hu-color","id-color","ie-color","il-color","im-color","in-color","info-circle","info-triangle","instagram","iq-color","ir-color","is-color","it-color","je-color","jm-color","jo-color","jp-color","ke-color","key","kg-color","kh-color","km-color","kn-color","kp-color","kr-color","kw-color","ky-color","kz-color","la-color","label-a-color","label-b-color","label-c-color","label-d-color","label-e-color","label-f-color","label-g-color","label-h-color","label-i-color","label-j-color","label-k-color","label-l-color","label-m-color","lb-color","lc-color","li-color","light","lightning","link","linkedin","list","lk-color","loader","location-poi","lock-locked","lock-unlocked","logo","logo-light","logo-lockup","logo-wordmark","lr-color","ls-color","lt-color","lu-color","lv-color","ly-color","ma-color","magnifying-glass","magnifying-glass-minus","magnifying-glass-plus","math-symbols-square","mc-color","md-color","me-color","menu","mg-color","micro","micro-crossed-out","minus","mk-color","ml-color","mm-color","mn-color","mo-color","mobile","moon","mountains","mr-color","ms-color","mt-color","mu-color","mv-color","mw-color","mx-color","my-color","mz-color","na-color","ne-color","ng-color","ni-color","nl-color","no-color","np-color","nz-color","om-color","pa-color","parking","pause","pause-loading","pcircle","pe-color","pen","pen-paper","person-open-arms","pf-color","pg-color","ph-color","phone-contact","pig-coin","pk-color","pl-color","play","play-circle","plug-regular","plus","position","pr-color","pt-color","pw-color","py-color","qa-color","question-mark","ro-color","road","road-mountain","rs-color","ru-color","rw-color","sa-color","sb-color","sc-color","sd-color","se-color","seat-front","sg-color","sh-color","share","shopping-bag","si-color","sk-color","sl-color","sm-color","sn-color","so-color","speaker","speaker-crossed-out","spray","sr-color","st-color","star","star-filled","store","suitcase","sun","sv-color","sy-color","sz-color","tag","tc-color","td-color","telegram","tg-color","th-color","ticket","tj-color","tl-color","tm-color","tn-color","to-color","tr-color","transmission-automatic","transmission-manual","triple-dot-h","triple-dot-v","tt-color","tw-color","twitter","tz-color","ua-color","ug-color","us-color","user","uy-color","uz-color","vc-color","ve-color","vg-color","video-camera","video-camera-crossed-out","vimeo","vn-color","vu-color","wall-charger","whatsapp","wheel","wifi","wrench-hammer","ws-color","ww-color","ye-color","youtube","za-color","zero-color","zm-color","zw-color"],mr=({children:e,...t})=>y.jsx("ds-accordion-react",{...t,children:e}),yp=({children:e})=>y.jsx("div",{slot:"title",children:e}),gp=({children:e})=>y.jsx("div",{slot:"content",children:e});mr.Title=yp,mr.Content=gp;const Xo=({className:e,...t})=>y.jsx("ds-bullets-react",{class:e,...t}),$i=["xs","s","m","l","xl","xxl"];function Jo(){const e={};return $i.forEach((t,s)=>{const r=`(min-width: ${et[t]}px)`;let i="";if(s<$i.length-1){const o=$i[s+1];i=` and (max-width: ${et[o]-1}px)`}e[t]=window.matchMedia(r+i)}),e}const Zo=()=>{const[e,t]=E.useState(()=>{const s=Jo();let r="";return Object.keys(s).forEach(i=>{s[i].matches&&(r=i)}),r});return E.useLayoutEffect(()=>{const s=Jo(),r=Object.keys(s).map(i=>{const o=n=>{n.matches&&t(i)};return s[i].addListener(o),()=>{s[i].removeListener(o)}});return()=>{r.forEach(i=>{i()})}},[]),e},Qo=e=>{E.useEffect(()=>{const t=[];return e.forEach(s=>{const{eventName:r,handler:i,options:o,target:n=document}=s,l=h=>{i(h)};n.addEventListener(r,l,o);const c=()=>{n.removeEventListener(r,l,o)};t.push(c)}),()=>{t.forEach(s=>{s()})}},e.flatMap(({dependencies:t})=>t??[]))};function D(e){const t=E.useRef(null),s=E.useRef(e);return E.useEffect(()=>{s.current=e},[e]),E.useEffect(()=>{const r=t.current;if(!r)return;const i={};return Object.keys(s.current).forEach(o=>{const n=l=>{const c=s.current[o];c&&c(l)};i[o]=n,r.addEventListener(o,n)}),()=>{Object.keys(i).forEach(o=>{r.removeEventListener(o,i[o])})}},[]),{ref:t}}const km=e=>{const t=E.useRef(null),s=E.useCallback(()=>{if(!t.current){const r=document.createElement("script");r.src=e,r.type="module",document.head.appendChild(r),t.current=r}},[e]);return E.useEffect(()=>(s(),()=>{t.current&&(document.head.removeChild(t.current),t.current=null)}),[s]),s};function tn(e){const{callback:t,element:s}=e;E.useEffect(()=>{if(!s)return;const r=new ResizeObserver(t);return r.observe(s),()=>{r==null||r.disconnect()}},[s,t])}const vp=Object.freeze(Object.defineProperty({__proto__:null,useBreakpoint:Zo,useEventListeners:Qo,useHandleEvent:D,useResizeObserver:tn},Symbol.toStringTag,{value:"Module"}));function en(e){const{className:t,children:s,onClick:r,size:i,...o}=e,{ref:n}=D({click:r});return y.jsx("ds-button-react",{ref:n,size:typeof i=="string"?i:JSON.stringify(i),class:t,...o,children:s})}function sn(e){const{className:t,children:s,...r}=e;return y.jsx("ds-carousel-indicator-react",{class:t,...r})}function rn({onChange:e,children:t,...s}){const{ref:r}=D({change:e});return y.jsx("ds-checkbox-react",{ref:r,...s,children:t})}function on(e){const{className:t,children:s,...r}=e;return y.jsx("ds-chip-react",{class:t,...r,children:s})}function nn(e){const{className:t,children:s,onChange:r,...i}=e,{ref:o}=D({"ds-chips:change":r});return y.jsx("ds-chips-react",{ref:o,class:t,...i,children:s})}function an(e){const{className:t,...s}=e;return y.jsx("ds-currency-react",{class:t,...s})}function ln(e){const{className:t,children:s,onClose:r,withPortal:i,...o}=e,{ref:n}=D({"ds-dialog:close":r});if(!o.open)return null;const l=y.jsx("ds-dialog-react",{ref:n,class:t,...o,children:s});return i?y.jsx("ds-portal-react",{style:{display:"none"},children:l}):l}function cn(e){const{className:t,children:s,...r}=e;return y.jsx("ds-dialog-body-react",{class:t,...r,children:s})}function dn(e){const{className:t,children:s,...r}=e;return y.jsx("ds-dialog-footer-react",{class:t,...r,children:s})}function hn(e){const{className:t,children:s,...r}=e;return y.jsx("ds-dialog-header-react",{class:t,...r,children:s})}function pn({className:e,...t}){return y.jsx("ds-divider-react",{class:e,...t})}function un({children:e,onClick:t,...s}){const{ref:r}=D({click:t});return y.jsx("ds-hyperlink-react",{ref:r,...s,children:e})}function mn(e){const{"icon-name":t,className:s,...r}=e;return y.jsx("ds-icon-react",{"icon-name":t,class:s,...r})}function fn(e){const{className:t,onClick:s,size:r,...i}=e,{ref:o}=D({click:s});return y.jsx("ds-icon-button-react",{ref:o,size:typeof r=="string"?r:JSON.stringify(r),class:t,...i})}const Si=E.forwardRef(({className:e,onInput:t,onKeyDown:s,onChange:r,...i},o)=>{const{ref:n}=D({input:t,keydown:s,change:r});return E.useImperativeHandle(o,()=>n.current,[]),y.jsx("ds-input-react",{ref:n,class:e,...i})});Si.displayName="Input";function yn({children:e,onClick:t,...s}){const{ref:r}=D({click:t});return y.jsx("ds-link-button-react",{ref:r,...s,children:e})}function ki(e){return y.jsx("ds-loader-logo-react",{...e})}function bp(e){return y.jsx("ds-loader-bar-react",{...e})}function wp(e){return y.jsx("ds-loader-dots-react",{...e})}function xp(e){return y.jsx("ds-loader-spinner-react",{...e,children:e.text&&y.jsx("div",{slot:"text",children:e.text})})}const gn={Logo:ki,Bar:bp,Dots:wp,Spinner:xp};function vn(e){const{className:t,children:s,...r}=e;return y.jsx("ds-logo-react",{class:t,...r})}function bn({onChange:e,...t}){const{ref:s}=D({change:e});return y.jsx("ds-map-pin-react",{ref:s,...t})}var Ti=function(e,t){return Ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},Ti(e,t)};function $p(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ti(e,t);function s(){this.constructor=e}e.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}var q=function(){return q=Object.assign||function(t){for(var s,r=1,i=arguments.length;r<i;r++){s=arguments[r];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(t[o]=s[o])}return t},q.apply(this,arguments)};function Sp(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(s[r[i]]=e[r[i]]);return s}function kp(e,t,s,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,s):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,s,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(o=(i<3?n(o):i>3?n(t,s,o):n(t,s))||o);return i>3&&o&&Object.defineProperty(t,s,o),o}function Tp(e,t){return function(s,r){t(s,r,e)}}function Tm(e,t,s,r,i,o){function n(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}for(var l=r.kind,c=l==="getter"?"get":l==="setter"?"set":"value",h=!t&&e?r.static?e:e.prototype:null,m=t||(h?Object.getOwnPropertyDescriptor(h,r.name):{}),p,f=!1,g=s.length-1;g>=0;g--){var w={};for(var k in r)w[k]=k==="access"?{}:r[k];for(var k in r.access)w.access[k]=r.access[k];w.addInitializer=function(I){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(n(I||null))};var O=(0,s[g])(l==="accessor"?{get:m.get,set:m.set}:m[c],w);if(l==="accessor"){if(O===void 0)continue;if(O===null||typeof O!="object")throw new TypeError("Object expected");(p=n(O.get))&&(m.get=p),(p=n(O.set))&&(m.set=p),(p=n(O.init))&&i.unshift(p)}else(p=n(O))&&(l==="field"?i.unshift(p):m[c]=p)}h&&Object.defineProperty(h,r.name,m),f=!0}function Cm(e,t,s){for(var r=arguments.length>2,i=0;i<t.length;i++)s=r?t[i].call(e,s):t[i].call(e);return r?s:void 0}function Em(e){return typeof e=="symbol"?e:"".concat(e)}function Om(e,t,s){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:s?"".concat(s," ",t):t})}function Cp(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Ep(e,t,s,r){function i(o){return o instanceof s?o:new s(function(n){n(o)})}return new(s||(s=Promise))(function(o,n){function l(m){try{h(r.next(m))}catch(p){n(p)}}function c(m){try{h(r.throw(m))}catch(p){n(p)}}function h(m){m.done?o(m.value):i(m.value).then(l,c)}h((r=r.apply(e,t||[])).next())})}function Op(e,t){var s={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,n;return n={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(h){return function(m){return c([h,m])}}function c(h){if(r)throw new TypeError("Generator is already executing.");for(;n&&(n=0,h[0]&&(s=0)),s;)try{if(r=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,i=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){s.label=h[1];break}if(h[0]===6&&s.label<o[1]){s.label=o[1],o=h;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(h);break}o[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(m){h=[6,m],i=0}finally{r=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Ci=Object.create?(function(e,t,s,r){r===void 0&&(r=s);var i=Object.getOwnPropertyDescriptor(t,s);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,r,i)}):(function(e,t,s,r){r===void 0&&(r=s),e[r]=t[s]});function Pp(e,t){for(var s in e)s!=="default"&&!Object.prototype.hasOwnProperty.call(t,s)&&Ci(t,e,s)}function Ei(e){var t=typeof Symbol=="function"&&Symbol.iterator,s=t&&e[t],r=0;if(s)return s.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function wn(e,t){var s=typeof Symbol=="function"&&e[Symbol.iterator];if(!s)return e;var r=s.call(e),i,o=[],n;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){n={error:l}}finally{try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(n)throw n.error}}return o}function _p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wn(arguments[t]));return e}function Ip(){for(var e=0,t=0,s=arguments.length;t<s;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<s;t++)for(var o=arguments[t],n=0,l=o.length;n<l;n++,i++)r[i]=o[n];return r}function Yt(e,t,s){if(s||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function js(e){return this instanceof js?(this.v=e,this):new js(e)}function Ap(e,t,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=s.apply(e,t||[]),i,o=[];return i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i;function n(f){r[f]&&(i[f]=function(g){return new Promise(function(w,k){o.push([f,g,w,k])>1||l(f,g)})})}function l(f,g){try{c(r[f](g))}catch(w){p(o[0][3],w)}}function c(f){f.value instanceof js?Promise.resolve(f.value.v).then(h,m):p(o[0][2],f)}function h(f){l("next",f)}function m(f){l("throw",f)}function p(f,g){f(g),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Np(e){var t,s;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(n){return(s=!s)?{value:js(e[i](n)),done:!1}:o?o(n):n}:o}}function zp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],s;return t?t.call(e):(e=typeof Ei=="function"?Ei(e):e[Symbol.iterator](),s={},r("next"),r("throw"),r("return"),s[Symbol.asyncIterator]=function(){return this},s);function r(o){s[o]=e[o]&&function(n){return new Promise(function(l,c){n=e[o](n),i(l,c,n.done,n.value)})}}function i(o,n,l,c){Promise.resolve(c).then(function(h){o({value:h,done:l})},n)}}function Dp(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var jp=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function Mp(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&Ci(t,e,s);return jp(t,e),t}function Lp(e){return e&&e.__esModule?e:{default:e}}function Bp(e,t,s,r){if(s==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?r:s==="a"?r.call(e):r?r.value:t.get(e)}function Fp(e,t,s,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,s):i?i.value=s:t.set(e,s),s}function Rp(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Vp(e,t,s){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:s})}else s&&e.stack.push({async:!0});return t}var Up=typeof SuppressedError=="function"?SuppressedError:function(e,t,s){var r=new Error(s);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function Hp(e){function t(r){e.error=e.hasError?new Up(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function s(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(s,function(o){return t(o),s()})}catch(o){t(o)}}if(e.hasError)throw e.error}return s()}const Pm={__extends:$p,__assign:q,__rest:Sp,__decorate:kp,__param:Tp,__metadata:Cp,__awaiter:Ep,__generator:Op,__createBinding:Ci,__exportStar:Pp,__values:Ei,__read:wn,__spread:_p,__spreadArrays:Ip,__spreadArray:Yt,__await:js,__asyncGenerator:Ap,__asyncDelegator:Np,__asyncValues:zp,__makeTemplateObject:Dp,__importStar:Mp,__importDefault:Lp,__classPrivateFieldGet:Bp,__classPrivateFieldSet:Fp,__classPrivateFieldIn:Rp,__addDisposableResource:Vp,__disposeResources:Hp};function qp(e){var t=Object.create(null);return function(s){return t[s]===void 0&&(t[s]=e(s)),t[s]}}var Wp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gp=qp(function(e){return Wp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_m=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Im(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Am(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}function Nm(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),s}var Oi,xn;function Yp(){return xn||(xn=1,Oi=function(t,s,r,i){var o=r?r.call(i,t,s):void 0;if(o!==void 0)return!!o;if(t===s)return!0;if(typeof t!="object"||!t||typeof s!="object"||!s)return!1;var n=Object.keys(t),l=Object.keys(s);if(n.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(s),h=0;h<n.length;h++){var m=n[h];if(!c(m))return!1;var p=t[m],f=s[m];if(o=r?r.call(i,p,f,m):void 0,o===!1||o===void 0&&p!==f)return!1}return!0}),Oi}var Xp=Yp();const Jp=Kp(Xp);var L="-ms-",Ms="-moz-",j="-webkit-",$n="comm",Ls="rule",Pi="decl",zm="@page",Dm="@media",Zp="@import",jm="@charset",Mm="@viewport",Lm="@supports",Bm="@document",Fm="@namespace",Sn="@keyframes",Rm="@font-face",Vm="@counter-style",Um="@font-feature-values",Qp="@layer",Hm="@scope",kn=Math.abs,fr=String.fromCharCode,_i=Object.assign;function tu(e,t){return Y(e,0)^45?(((t<<2^Y(e,0))<<2^Y(e,1))<<2^Y(e,2))<<2^Y(e,3):0}function Tn(e){return e.trim()}function Xt(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,s){return e.replace(t,s)}function yr(e,t,s){return e.indexOf(t,s)}function Y(e,t){return e.charCodeAt(t)|0}function le(e,t,s){return e.slice(t,s)}function Pt(e){return e.length}function gr(e){return e.length}function ce(e,t){return t.push(e),e}function Cn(e,t){return e.map(t).join("")}function En(e,t){return e.filter(function(s){return!Xt(s,t)})}var vr=1,os=1,On=0,mt=0,V=0,ns="";function br(e,t,s,r,i,o,n,l){return{value:e,root:t,parent:s,type:r,props:i,children:o,line:vr,column:os,length:n,return:"",siblings:l}}function de(e,t){return _i(br("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function as(e){for(;e.root;)e=de(e.root,{children:[e]});ce(e,e.siblings)}function eu(){return V}function su(){return V=mt>0?Y(ns,--mt):0,os--,V===10&&(os=1,vr--),V}function bt(){return V=mt<On?Y(ns,mt++):0,os++,V===10&&(os=1,vr++),V}function Pe(){return Y(ns,mt)}function wr(){return mt}function xr(e,t){return le(ns,e,t)}function $r(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pn(e){return vr=os=1,On=Pt(ns=e),mt=0,[]}function _n(e){return ns="",e}function Sr(e){return Tn(xr(mt-1,Ii(e===91?e+2:e===40?e+1:e)))}function ru(e){return _n(ou(Pn(e)))}function iu(e){for(;(V=Pe())&&V<33;)bt();return $r(e)>2||$r(V)>3?"":" "}function ou(e){for(;bt();)switch($r(V)){case 0:ce(In(mt-1),e);break;case 2:ce(Sr(V),e);break;default:ce(fr(V),e)}return e}function nu(e,t){for(;--t&&bt()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return xr(e,wr()+(t<6&&Pe()==32&&bt()==32))}function Ii(e){for(;bt();)switch(V){case e:return mt;case 34:case 39:e!==34&&e!==39&&Ii(V);break;case 40:e===41&&Ii(e);break;case 92:bt();break}return mt}function au(e,t){for(;bt()&&e+V!==57;)if(e+V===84&&Pe()===47)break;return"/*"+xr(t,mt-1)+"*"+fr(e===47?e:bt())}function In(e){for(;!$r(Pe());)bt();return xr(e,mt)}function lu(e){return _n(kr("",null,null,null,[""],e=Pn(e),0,[0],e))}function kr(e,t,s,r,i,o,n,l,c){for(var h=0,m=0,p=n,f=0,g=0,w=0,k=1,O=1,I=1,F=0,M="",R=i,U=o,z=r,_=M;O;)switch(w=F,F=bt()){case 40:if(w!=108&&Y(_,p-1)==58){yr(_+=P(Sr(F),"&","&\f"),"&\f",kn(h?l[h-1]:0))!=-1&&(I=-1);break}case 34:case 39:case 91:_+=Sr(F);break;case 9:case 10:case 13:case 32:_+=iu(w);break;case 92:_+=nu(wr()-1,7);continue;case 47:switch(Pe()){case 42:case 47:ce(cu(au(bt(),wr()),t,s,c),c);break;default:_+="/"}break;case 123*k:l[h++]=Pt(_)*I;case 125*k:case 59:case 0:switch(F){case 0:case 125:O=0;case 59+m:I==-1&&(_=P(_,/\f/g,"")),g>0&&Pt(_)-p&&ce(g>32?Nn(_+";",r,s,p-1,c):Nn(P(_," ","")+";",r,s,p-2,c),c);break;case 59:_+=";";default:if(ce(z=An(_,t,s,h,m,i,l,M,R=[],U=[],p,o),o),F===123)if(m===0)kr(_,t,z,z,R,o,p,l,U);else switch(f===99&&Y(_,3)===110?100:f){case 100:case 108:case 109:case 115:kr(e,z,z,r&&ce(An(e,z,z,0,0,i,l,M,i,R=[],p,U),U),i,U,p,l,r?R:U);break;default:kr(_,z,z,z,[""],U,0,l,U)}}h=m=g=0,k=I=1,M=_="",p=n;break;case 58:p=1+Pt(_),g=w;default:if(k<1){if(F==123)--k;else if(F==125&&k++==0&&su()==125)continue}switch(_+=fr(F),F*k){case 38:I=m>0?1:(_+="\f",-1);break;case 44:l[h++]=(Pt(_)-1)*I,I=1;break;case 64:Pe()===45&&(_+=Sr(bt())),f=Pe(),m=p=Pt(M=_+=In(wr())),F++;break;case 45:w===45&&Pt(_)==2&&(k=0)}}return o}function An(e,t,s,r,i,o,n,l,c,h,m,p){for(var f=i-1,g=i===0?o:[""],w=gr(g),k=0,O=0,I=0;k<r;++k)for(var F=0,M=le(e,f+1,f=kn(O=n[k])),R=e;F<w;++F)(R=Tn(O>0?g[F]+" "+M:P(M,/&\f/g,g[F])))&&(c[I++]=R);return br(e,t,s,i===0?Ls:l,c,h,m,p)}function cu(e,t,s,r){return br(e,t,s,$n,fr(eu()),le(e,2,-2),0,r)}function Nn(e,t,s,r,i){return br(e,t,s,Pi,le(e,0,r),le(e,r+1,-1),r,i)}function zn(e,t,s){switch(tu(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 4789:return Ms+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+Ms+e+L+e+e;case 5936:switch(Y(e,t+11)){case 114:return j+e+L+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+L+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+L+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return j+e+L+e+e;case 6165:return j+e+L+"flex-"+e+e;case 5187:return j+e+P(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return j+e+L+"flex-item-"+P(e,/flex-|-self/g,"")+(Xt(e,/flex-|baseline/)?"":L+"grid-row-"+P(e,/flex-|-self/g,""))+e;case 4675:return j+e+L+"flex-line-pack"+P(e,/align-content|flex-|-self/g,"")+e;case 5548:return j+e+L+P(e,"shrink","negative")+e;case 5292:return j+e+L+P(e,"basis","preferred-size")+e;case 6060:return j+"box-"+P(e,"-grow","")+j+e+L+P(e,"grow","positive")+e;case 4554:return j+P(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4200:if(!Xt(e,/flex-|baseline/))return L+"grid-column-align"+le(e,t)+e;break;case 2592:case 3360:return L+P(e,"template-","")+e;case 4384:case 3616:return s&&s.some(function(r,i){return t=i,Xt(r.props,/grid-\w+-end/)})?~yr(e+(s=s[t].value),"span",0)?e:L+P(e,"-start","")+e+L+"grid-row-span:"+(~yr(s,"span",0)?Xt(s,/\d+/):+Xt(s,/\d+/)-+Xt(e,/\d+/))+";":L+P(e,"-start","")+e;case 4896:case 4128:return s&&s.some(function(r){return Xt(r.props,/grid-\w+-start/)})?e:L+P(P(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pt(e)-1-t>6)switch(Y(e,t+1)){case 109:if(Y(e,t+4)!==45)break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ms+(Y(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yr(e,"stretch",0)?zn(P(e,"stretch","fill-available"),t,s)+e:e}break;case 5152:case 5920:return P(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,n,l,c,h){return L+i+":"+o+h+(n?L+i+"-span:"+(l?c:+c-+o)+h:"")+e});case 4949:if(Y(e,t+6)===121)return P(e,":",":"+j)+e;break;case 6444:switch(Y(e,Y(e,14)===45?18:11)){case 120:return P(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+j+(Y(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+L+"$2box$3")+e;case 100:return P(e,":",":"+L)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return P(e,"scroll-","scroll-snap-")+e}return e}function Tr(e,t){for(var s="",r=0;r<e.length;r++)s+=t(e[r],r,e,t)||"";return s}function du(e,t,s,r){switch(e.type){case Qp:if(e.children.length)break;case Zp:case Pi:return e.return=e.return||e.value;case $n:return"";case Sn:return e.return=e.value+"{"+Tr(e.children,r)+"}";case Ls:if(!Pt(e.value=e.props.join(",")))return""}return Pt(s=Tr(e.children,r))?e.return=e.value+"{"+s+"}":""}function hu(e){var t=gr(e);return function(s,r,i,o){for(var n="",l=0;l<t;l++)n+=e[l](s,r,i,o)||"";return n}}function pu(e){return function(t){t.root||(t=t.return)&&e(t)}}function uu(e,t,s,r){if(e.length>-1&&!e.return)switch(e.type){case Pi:e.return=zn(e.value,e.length,s);return;case Sn:return Tr([de(e,{value:P(e.value,"@","@"+j)})],r);case Ls:if(e.length)return Cn(s=e.props,function(i){switch(Xt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":as(de(e,{props:[P(i,/:(read-\w+)/,":"+Ms+"$1")]})),as(de(e,{props:[i]})),_i(e,{props:En(s,r)});break;case"::placeholder":as(de(e,{props:[P(i,/:(plac\w+)/,":"+j+"input-$1")]})),as(de(e,{props:[P(i,/:(plac\w+)/,":"+Ms+"$1")]})),as(de(e,{props:[P(i,/:(plac\w+)/,L+"input-$1")]})),as(de(e,{props:[i]})),_i(e,{props:En(s,r)});break}return""})}}function qm(e){switch(e.type){case Ls:e.props=e.props.map(function(t){return Cn(ru(t),function(s,r,i){switch(Y(s,0)){case 12:return le(s,1,Pt(s));case 0:case 40:case 43:case 62:case 126:return s;case 58:i[++r]==="global"&&(i[r]="",i[++r]="\f"+le(i[r],r=1,-1));case 32:return r===1?"":s;default:switch(r){case 0:return e=s,gr(i)>1?"":s;case(r=gr(i)-1):case 2:return r===2?s+e+e:s+e;default:return s}}})})}}var mu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Dn="active",Cr="data-styled-version",ls="6.1.19",Ai=`/*!sc*/
3240
- `,Er=typeof window<"u"&&typeof document<"u",fu=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),yu={},jn=/invalid hook call/i,Or=new Set,Mn=function(e,t){if(process.env.NODE_ENV!=="production"){var s=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(s,` has been created dynamically.
3241
- `)+`You may see this warning because you've called styled inside another component.
3242
- To resolve this only create new StyledComponents outside of any render method and function component.
3243
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
3244
- `,i=console.error;try{var o=!0;console.error=function(n){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];jn.test(n)?(o=!1,Or.delete(r)):i.apply(void 0,Yt([n],l,!1))},E.useRef(),o&&!Or.has(r)&&(console.warn(r),Or.add(r))}catch(n){jn.test(n.message)&&Or.delete(r)}finally{console.error=i}}},Pr=Object.freeze([]),cs=Object.freeze({});function Ni(e,t,s){return s===void 0&&(s=cs),e.theme!==s.theme&&e.theme||t||s.theme}var zi=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),gu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vu=/(^-|-$)/g;function Ln(e){return e.replace(gu,"-").replace(vu,"")}var bu=/(a)(d)/gi,_r=52,Bn=function(e){return String.fromCharCode(e+(e>25?39:97))};function Di(e){var t,s="";for(t=Math.abs(e);t>_r;t=t/_r|0)s=Bn(t%_r)+s;return(Bn(t%_r)+s).replace(bu,"$1-$2")}var ji,Fn=5381,_e=function(e,t){for(var s=t.length;s;)e=33*e^t.charCodeAt(--s);return e},Rn=function(e){return _e(Fn,e)};function Mi(e){return Di(Rn(e)>>>0)}function Ir(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Li(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Vn=typeof Symbol=="function"&&Symbol.for,Un=Vn?Symbol.for("react.memo"):60115,wu=Vn?Symbol.for("react.forward_ref"):60112,xu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$u={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Su=((ji={})[wu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ji[Un]=Hn,ji);function qn(e){return("type"in(t=e)&&t.type.$$typeof)===Un?Hn:"$$typeof"in e?Su[e.$$typeof]:xu;var t}var ku=Object.defineProperty,Tu=Object.getOwnPropertyNames,Wn=Object.getOwnPropertySymbols,Cu=Object.getOwnPropertyDescriptor,Eu=Object.getPrototypeOf,Gn=Object.prototype;function Bi(e,t,s){if(typeof t!="string"){if(Gn){var r=Eu(t);r&&r!==Gn&&Bi(e,r,s)}var i=Tu(t);Wn&&(i=i.concat(Wn(t)));for(var o=qn(e),n=qn(t),l=0;l<i.length;++l){var c=i[l];if(!(c in $u||s&&s[c]||n&&c in n||o&&c in o)){var h=Cu(t,c);try{ku(e,c,h)}catch{}}}}return e}function Ie(e){return typeof e=="function"}function Fi(e){return typeof e=="object"&&"styledComponentId"in e}function Ae(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Bs(e,t){if(e.length===0)return"";for(var s=e[0],r=1;r<e.length;r++)s+=t?t+e[r]:e[r];return s}function ds(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ri(e,t,s){if(s===void 0&&(s=!1),!s&&!ds(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ri(e[r],t[r]);else if(ds(t))for(var r in t)e[r]=Ri(e[r],t[r]);return e}function Vi(e,t){Object.defineProperty(e,"toString",{value:t})}var Ou=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
3245
-
3246
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
3247
-
3248
- - Are you trying to reuse it across renders?
3249
- - Are you accidentally calling collectStyles twice?
3250
-
3251
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
3252
-
3253
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
3254
-
3255
- - Does this error occur on the client and is your target falsy?
3256
- - Does this error occur on the server and is the sheet falsy?
3257
-
3258
- `,5:`The clone method cannot be used on the client!
3259
-
3260
- - Are you running in a client-like environment on the server?
3261
- - Are you trying to run SSR on the client?
3262
-
3263
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
3264
-
3265
- - Are you using a custom target that isn't mounted?
3266
- - Does your document not have a valid head element?
3267
- - Have you accidentally removed a style tag manually?
3268
-
3269
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
3270
-
3271
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
3272
-
3273
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
3274
-
3275
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
3276
-
3277
- `,14:`ThemeProvider: "theme" prop is required.
3278
-
3279
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
3280
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
3281
- as for instance in your render method then you may be running into this limitation.
3282
-
3283
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
3284
- Has styled-components' style tag been unmounted or altered by another script?
3285
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Pu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var s=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(n){s=s.replace(/%[a-z]/,n)}),s}function at(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Pu.apply(void 0,Yt([Ou[e]],t,!1)).trim())}var _u=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var s=0,r=0;r<t;r++)s+=this.groupSizes[r];return s},e.prototype.insertRules=function(t,s){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw at(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var n=i;n<o;n++)this.groupSizes[n]=0}for(var l=this.indexOfGroup(t+1),c=(n=0,s.length);n<c;n++)this.tag.insertRule(l,s[n])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var s=this.groupSizes[t],r=this.indexOfGroup(t),i=r+s;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var s="";if(t>=this.length||this.groupSizes[t]===0)return s;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,n=i;n<o;n++)s+="".concat(this.tag.getRule(n)).concat(Ai);return s},e})(),Iu=1<<30,Ar=new Map,Nr=new Map,zr=1,Dr=function(e){if(Ar.has(e))return Ar.get(e);for(;Nr.has(zr);)zr++;var t=zr++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Iu))throw at(16,"".concat(t));return Ar.set(e,t),Nr.set(t,e),t},Au=function(e,t){zr=t+1,Ar.set(e,t),Nr.set(t,e)},Nu="style[".concat(Jt,"][").concat(Cr,'="').concat(ls,'"]'),zu=new RegExp("^".concat(Jt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Du=function(e,t,s){for(var r,i=s.split(","),o=0,n=i.length;o<n;o++)(r=i[o])&&e.registerName(t,r)},ju=function(e,t){for(var s,r=((s=t.textContent)!==null&&s!==void 0?s:"").split(Ai),i=[],o=0,n=r.length;o<n;o++){var l=r[o].trim();if(l){var c=l.match(zu);if(c){var h=0|parseInt(c[1],10),m=c[2];h!==0&&(Au(m,h),Du(e,m,c[3]),e.getTag().insertRules(h,i)),i.length=0}else i.push(l)}}},Kn=function(e){for(var t=document.querySelectorAll(Nu),s=0,r=t.length;s<r;s++){var i=t[s];i&&i.getAttribute(Jt)!==Dn&&(ju(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Ui(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Yn=function(e){var t=document.head,s=e||t,r=document.createElement("style"),i=(function(l){var c=Array.from(l.querySelectorAll("style[".concat(Jt,"]")));return c[c.length-1]})(s),o=i!==void 0?i.nextSibling:null;r.setAttribute(Jt,Dn),r.setAttribute(Cr,ls);var n=Ui();return n&&r.setAttribute("nonce",n),s.insertBefore(r,o),r},Mu=(function(){function e(t){this.element=Yn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(s){if(s.sheet)return s.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var n=r[i];if(n.ownerNode===s)return n}throw at(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,s){try{return this.sheet.insertRule(s,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var s=this.sheet.cssRules[t];return s&&s.cssText?s.cssText:""},e})(),Lu=(function(){function e(t){this.element=Yn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,s){if(t<=this.length&&t>=0){var r=document.createTextNode(s);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Bu=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,s){return t<=this.length&&(this.rules.splice(t,0,s),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Xn=Er,Fu={isServer:!Er,useCSSOMInjection:!fu},hs=(function(){function e(t,s,r){t===void 0&&(t=cs),s===void 0&&(s={});var i=this;this.options=q(q({},Fu),t),this.gs=s,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Er&&Xn&&(Xn=!1,Kn(this)),Vi(this,function(){return(function(o){for(var n=o.getTag(),l=n.length,c="",h=function(p){var f=(function(I){return Nr.get(I)})(p);if(f===void 0)return"continue";var g=o.names.get(f),w=n.getGroup(p);if(g===void 0||!g.size||w.length===0)return"continue";var k="".concat(Jt,".g").concat(p,'[id="').concat(f,'"]'),O="";g!==void 0&&g.forEach(function(I){I.length>0&&(O+="".concat(I,","))}),c+="".concat(w).concat(k,'{content:"').concat(O,'"}').concat(Ai)},m=0;m<l;m++)h(m);return c})(i)})}return e.registerId=function(t){return Dr(t)},e.prototype.rehydrate=function(){!this.server&&Er&&Kn(this)},e.prototype.reconstructWithOptions=function(t,s){return s===void 0&&(s=!0),new e(q(q({},this.options),t),this.gs,s&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(s){var r=s.useCSSOMInjection,i=s.target;return s.isServer?new Bu(i):r?new Mu(i):new Lu(i)})(this.options),new _u(t)));var t},e.prototype.hasNameForId=function(t,s){return this.names.has(t)&&this.names.get(t).has(s)},e.prototype.registerName=function(t,s){if(Dr(t),this.names.has(t))this.names.get(t).add(s);else{var r=new Set;r.add(s),this.names.set(t,r)}},e.prototype.insertRules=function(t,s,r){this.registerName(t,s),this.getTag().insertRules(Dr(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dr(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Ru=/&/g,Vu=/^\s*\/\/.*$/gm;function Jn(e,t){return e.map(function(s){return s.type==="rule"&&(s.value="".concat(t," ").concat(s.value),s.value=s.value.replaceAll(",",",".concat(t," ")),s.props=s.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(s.children)&&s.type!=="@keyframes"&&(s.children=Jn(s.children,t)),s})}function Zn(e){var t,s,r,i=e===void 0?cs:e,o=i.options,n=o===void 0?cs:o,l=i.plugins,c=l===void 0?Pr:l,h=function(f,g,w){return w.startsWith(s)&&w.endsWith(s)&&w.replaceAll(s,"").length>0?".".concat(t):f},m=c.slice();m.push(function(f){f.type===Ls&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Ru,s).replace(r,h))}),n.prefix&&m.push(uu),m.push(du);var p=function(f,g,w,k){g===void 0&&(g=""),w===void 0&&(w=""),k===void 0&&(k="&"),t=k,s=g,r=new RegExp("\\".concat(s,"\\b"),"g");var O=f.replace(Vu,""),I=lu(w||g?"".concat(w," ").concat(g," { ").concat(O," }"):O);n.namespace&&(I=Jn(I,n.namespace));var F=[];return Tr(I,hu(m.concat(pu(function(M){return F.push(M)})))),F};return p.hash=c.length?c.reduce(function(f,g){return g.name||at(15),_e(f,g.name)},Fn).toString():"",p}var Qn=new hs,Hi=Zn(),qi=E.createContext({shouldForwardProp:void 0,styleSheet:Qn,stylis:Hi}),Wm=qi.Consumer,Uu=E.createContext(void 0);function jr(){return E.useContext(qi)}function Hu(e){var t=E.useState(e.stylisPlugins),s=t[0],r=t[1],i=jr().styleSheet,o=E.useMemo(function(){var c=i;return e.sheet?c=e.sheet:e.target&&(c=c.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[e.disableCSSOMInjection,e.sheet,e.target,i]),n=E.useMemo(function(){return Zn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:s})},[e.enableVendorPrefixes,e.namespace,s]);E.useEffect(function(){Jp(s,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var l=E.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:o,stylis:n}},[e.shouldForwardProp,o,n]);return E.createElement(qi.Provider,{value:l},E.createElement(Uu.Provider,{value:n},e.children))}var Wi=(function(){function e(t,s){var r=this;this.inject=function(i,o){o===void 0&&(o=Hi);var n=r.name+o.hash;i.hasNameForId(r.id,n)||i.insertRules(r.id,n,o(r.rules,n,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=s,Vi(this,function(){throw at(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Hi),this.name+t.hash},e})(),qu=function(e){return e>="A"&&e<="Z"};function ta(e){for(var t="",s=0;s<e.length;s++){var r=e[s];if(s===1&&r==="-"&&e[0]==="-")return e;qu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ea=function(e){return e==null||e===!1||e===""},sa=function(e){var t,s,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!ea(o)&&(Array.isArray(o)&&o.isCss||Ie(o)?r.push("".concat(ta(i),":"),o,";"):ds(o)?r.push.apply(r,Yt(Yt(["".concat(i," {")],sa(o),!1),["}"],!1)):r.push("".concat(ta(i),": ").concat((t=i,(s=o)==null||typeof s=="boolean"||s===""?"":typeof s!="number"||s===0||t in mu||t.startsWith("--")?String(s).trim():"".concat(s,"px")),";")))}return r};function he(e,t,s,r){if(ea(e))return[];if(Fi(e))return[".".concat(e.styledComponentId)];if(Ie(e)){if(!Ie(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Wi||ds(i)||i===null||console.error("".concat(Ir(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),he(i,t,s,r)}var o;return e instanceof Wi?s?(e.inject(s,r),[e.getName(r)]):[e]:ds(e)?sa(e):Array.isArray(e)?Array.prototype.concat.apply(Pr,e.map(function(n){return he(n,t,s,r)})):[e.toString()]}function ra(e){for(var t=0;t<e.length;t+=1){var s=e[t];if(Ie(s)&&!Fi(s))return!1}return!0}var Wu=Rn(ls),Gu=(function(){function e(t,s,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ra(t),this.componentId=s,this.baseHash=_e(Wu,s),this.baseStyle=r,hs.registerId(s)}return e.prototype.generateAndInjectStyles=function(t,s,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,s,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&s.hasNameForId(this.componentId,this.staticRulesId))i=Ae(i,this.staticRulesId);else{var o=Bs(he(this.rules,t,s,r)),n=Di(_e(this.baseHash,o)>>>0);if(!s.hasNameForId(this.componentId,n)){var l=r(o,".".concat(n),void 0,this.componentId);s.insertRules(this.componentId,n,l)}i=Ae(i,n),this.staticRulesId=n}else{for(var c=_e(this.baseHash,r.hash),h="",m=0;m<this.rules.length;m++){var p=this.rules[m];if(typeof p=="string")h+=p,process.env.NODE_ENV!=="production"&&(c=_e(c,p));else if(p){var f=Bs(he(p,t,s,r));c=_e(c,f+m),h+=f}}if(h){var g=Di(c>>>0);s.hasNameForId(this.componentId,g)||s.insertRules(this.componentId,g,r(h,".".concat(g),void 0,this.componentId)),i=Ae(i,g)}}return i},e})(),Ne=E.createContext(void 0),Gm=Ne.Consumer;function Km(){var e=E.useContext(Ne);if(!e)throw at(18);return e}function Ym(e){var t=E.useContext(Ne),s=E.useMemo(function(){return(function(r,i){if(!r)throw at(14);if(Ie(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw at(7);return o}if(Array.isArray(r)||typeof r!="object")throw at(8);return i?q(q({},i),r):r})(e.theme,t)},[e.theme,t]);return e.children?E.createElement(Ne.Provider,{value:s},e.children):null}var Gi={},ia=new Set;function Ku(e,t,s){var r=Fi(e),i=e,o=!Li(e),n=t.attrs,l=n===void 0?Pr:n,c=t.componentId,h=c===void 0?(function(R,U){var z=typeof R!="string"?"sc":Ln(R);Gi[z]=(Gi[z]||0)+1;var _="".concat(z,"-").concat(Mi(ls+z+Gi[z]));return U?"".concat(U,"-").concat(_):_})(t.displayName,t.parentComponentId):c,m=t.displayName,p=m===void 0?(function(R){return Li(R)?"styled.".concat(R):"Styled(".concat(Ir(R),")")})(e):m,f=t.displayName&&t.componentId?"".concat(Ln(t.displayName),"-").concat(t.componentId):t.componentId||h,g=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,w=t.shouldForwardProp;if(r&&i.shouldForwardProp){var k=i.shouldForwardProp;if(t.shouldForwardProp){var O=t.shouldForwardProp;w=function(R,U){return k(R,U)&&O(R,U)}}else w=k}var I=new Gu(s,f,r?i.componentStyle:void 0);function F(R,U){return(function(z,_,pe){var ps=z.attrs,pm=z.componentStyle,um=z.defaultProps,mm=z.foldedComponentIds,ja=z.styledComponentId,fm=z.target,ym=E.useContext(Ne),gm=jr(),eo=z.shouldForwardProp||gm.shouldForwardProp;process.env.NODE_ENV!=="production"&&E.useDebugValue(ja);var Ma=Ni(_,ym,um)||cs,Qt=(function(Rr,Us,Vr){for(var us,De=q(q({},Us),{className:void 0,theme:Vr}),io=0;io<Rr.length;io+=1){var Ur=Ie(us=Rr[io])?us(De):us;for(var ue in Ur)De[ue]=ue==="className"?Ae(De[ue],Ur[ue]):ue==="style"?q(q({},De[ue]),Ur[ue]):Ur[ue]}return Us.className&&(De.className=Ae(De.className,Us.className)),De})(ps,_,Ma),Rs=Qt.as||fm,Vs={};for(var wt in Qt)Qt[wt]===void 0||wt[0]==="$"||wt==="as"||wt==="theme"&&Qt.theme===Ma||(wt==="forwardedAs"?Vs.as=Qt.forwardedAs:eo&&!eo(wt,Rs)||(Vs[wt]=Qt[wt],eo||process.env.NODE_ENV!=="development"||Gp(wt)||ia.has(wt)||!zi.has(Rs)||(ia.add(wt),console.warn('styled-components: it looks like an unknown prop "'.concat(wt,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var so=(function(Rr,Us){var Vr=jr(),us=Rr.generateAndInjectStyles(Us,Vr.styleSheet,Vr.stylis);return process.env.NODE_ENV!=="production"&&E.useDebugValue(us),us})(pm,Qt);process.env.NODE_ENV!=="production"&&z.warnTooManyClasses&&z.warnTooManyClasses(so);var ro=Ae(mm,ja);return so&&(ro+=" "+so),Qt.className&&(ro+=" "+Qt.className),Vs[Li(Rs)&&!zi.has(Rs)?"class":"className"]=ro,pe&&(Vs.ref=pe),E.createElement(Rs,Vs)})(M,R,U)}F.displayName=p;var M=E.forwardRef(F);return M.attrs=g,M.componentStyle=I,M.displayName=p,M.shouldForwardProp=w,M.foldedComponentIds=r?Ae(i.foldedComponentIds,i.styledComponentId):"",M.styledComponentId=f,M.target=r?i.target:e,Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=r?(function(U){for(var z=[],_=1;_<arguments.length;_++)z[_-1]=arguments[_];for(var pe=0,ps=z;pe<ps.length;pe++)Ri(U,ps[pe],!0);return U})({},i.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(Mn(p,f),M.warnTooManyClasses=(function(R,U){var z={},_=!1;return function(pe){if(!_&&(z[pe]=!0,Object.keys(z).length>=200)){var ps=U?' with the id of "'.concat(U,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat(ps,`.
3286
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
3287
- Example:
3288
- const Component = styled.div.attrs(props => ({
3289
- style: {
3290
- background: props.background,
3291
- },
3292
- }))\`width: 100%;\`
3293
-
3294
- <Component />`),_=!0,z={}}}})(p,f)),Vi(M,function(){return".".concat(M.styledComponentId)}),o&&Bi(M,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),M}function oa(e,t){for(var s=[e[0]],r=0,i=t.length;r<i;r+=1)s.push(t[r],e[r+1]);return s}var na=function(e){return Object.assign(e,{isCss:!0})};function Ki(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(Ie(e)||ds(e))return na(he(oa(Pr,Yt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?he(r):na(he(oa(r,t)))}function Yi(e,t,s){if(s===void 0&&(s=cs),!t)throw at(1,t);var r=function(i){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return e(t,s,Ki.apply(void 0,Yt([i],o,!1)))};return r.attrs=function(i){return Yi(e,t,q(q({},s),{attrs:Array.prototype.concat(s.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Yi(e,t,q(q({},s),i))},r}var aa=function(e){return Yi(Ku,e)},Xi=aa;zi.forEach(function(e){Xi[e]=aa(e)});var Yu=(function(){function e(t,s){this.rules=t,this.componentId=s,this.isStatic=ra(t),hs.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,s,r,i){var o=i(Bs(he(this.rules,s,r,i)),""),n=this.componentId+t;r.insertRules(n,n,o)},e.prototype.removeStyles=function(t,s){s.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,s,r,i){t>2&&hs.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,s,r,i)},e})();function Xm(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];var r=Ki.apply(void 0,Yt([e],t,!1)),i="sc-global-".concat(Mi(JSON.stringify(r))),o=new Yu(r,i);process.env.NODE_ENV!=="production"&&Mn(i);var n=function(c){var h=jr(),m=E.useContext(Ne),p=E.useRef(h.styleSheet.allocateGSInstance(i)).current;return process.env.NODE_ENV!=="production"&&E.Children.count(c.children)&&console.warn("The global style component ".concat(i," was given child JSX. createGlobalStyle does not render children.")),process.env.NODE_ENV!=="production"&&r.some(function(f){return typeof f=="string"&&f.indexOf("@import")!==-1})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),h.styleSheet.server&&l(p,c,h.styleSheet,m,h.stylis),E.useLayoutEffect(function(){if(!h.styleSheet.server)return l(p,c,h.styleSheet,m,h.stylis),function(){return o.removeStyles(p,h.styleSheet)}},[p,c,h.styleSheet,m,h.stylis]),null};function l(c,h,m,p,f){if(o.isStatic)o.renderStyles(c,yu,m,f);else{var g=q(q({},h),{theme:Ni(h,p,n.defaultProps)});o.renderStyles(c,g,m,f)}}return E.memo(n)}function Jm(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Bs(Ki.apply(void 0,Yt([e],t,!1))),i=Mi(r);return new Wi(i,r)}function Zm(e){var t=E.forwardRef(function(s,r){var i=Ni(s,E.useContext(Ne),e.defaultProps);return process.env.NODE_ENV!=="production"&&i===void 0&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(Ir(e),'"')),E.createElement(e,q({},s,{theme:i,ref:r}))});return t.displayName="WithTheme(".concat(Ir(e),")"),Bi(t,e)}var Qm=(function(){function e(){var t=this;this._emitSheetCSS=function(){var s=t.instance.toString();if(!s)return"";var r=Ui(),i=Bs([r&&'nonce="'.concat(r,'"'),"".concat(Jt,'="true"'),"".concat(Cr,'="').concat(ls,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(s,"</style>")},this.getStyleTags=function(){if(t.sealed)throw at(2);return t._emitSheetCSS()},this.getStyleElement=function(){var s;if(t.sealed)throw at(2);var r=t.instance.toString();if(!r)return[];var i=((s={})[Jt]="",s[Cr]=ls,s.dangerouslySetInnerHTML={__html:r},s),o=Ui();return o&&(i.nonce=o),[E.createElement("style",q({},i,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new hs({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(t){if(this.sealed)throw at(2);return E.createElement(Hu,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){throw at(3)},e})(),tf={StyleSheet:hs,mainSheet:Qn};process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
3295
- Perhaps you're looking to import 'styled-components/native'?
3296
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Mr="__sc-".concat(Jt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Mr]||(window[Mr]=0),window[Mr]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
3297
-
3298
- See https://s-c.sh/2BAXzed for more info.`),window[Mr]+=1);function Ji(){}const Xu=Xi.div`
3299
- margin: 0;
3300
- width: 100%;
3301
- height: 100%;
3302
- position: absolute;
3303
- top: 50%;
3304
- left: 50%;
3305
- transform: translate(-50%, -50%);
3306
- `;function Fs(e){const{children:t,onClickCloseButton:s=Ji,onClickConfirmButton:r=Ji,onClickCancelButton:i=Ji,className:o,withPortal:n,...l}=e,{ref:c}=D({"click-close-button":s,"click-confirm-button":r,"click-cancel-button":i});if(!l.open)return null;const h=y.jsx("ds-modal-react",{ref:c,class:o,...l,children:t});return n?y.jsx("ds-portal-react",{style:{display:"none"},children:h}):h}function Ju({children:e}){return y.jsx("div",{slot:"title",children:e})}function Zu({className:e="",children:t}){return y.jsx("div",{slot:"content",className:`ds-scroll ${e}`.trim(),children:t})}function Qu({children:e}){return y.jsx(Xu,{slot:"content",children:e})}Fs.Title=Ju,Fs.Content=Zu,Fs.FullScreenContent=Qu;function la(e){const{className:t,children:s,onChange:r,onInput:i,inputId:o,placeHolder:n,value:l,label:c,required:h,disabled:m,pattern:p,maxLength:f,minLength:g,...w}=e,{ref:k}=D({change:r,input:i}),O={type:"password",...!!o&&{id:o},...!!n&&{placeholder:n},...!!l&&{value:l},...!!h&&{required:h},...!!m&&{disabled:m},...!!g&&{minLength:g},...!!f&&{maxLength:f},...!!p&&{pattern:p}};return y.jsxs("ds-password-input-react",{ref:k,class:t,...w,children:[y.jsx("label",{htmlFor:o,children:c}),y.jsx("input",{...O})]})}function ca(e){const{className:t,children:s,onClick:r,size:i,...o}=e,{ref:n}=D({"ds-picker-item:click":r});return y.jsx("ds-picker-item-react",{ref:n,size:typeof i=="string"?i:JSON.stringify(i),class:t,...o,children:s})}const da={Group:({children:e,onChange:t,className:s,...r})=>{const{ref:i}=D({change:t});return y.jsx("ds-radio-group-react",{ref:i,class:s,...r,children:e})},Button:({children:e,className:t,...s})=>y.jsx("ds-radio-react",{class:t,...s,children:e})};function ha(e){const{className:t,children:s,onChange:r,...i}=e,{ref:o}=D({change:r});return y.jsx("ds-radio-button-react",{ref:o,class:t,...i,children:s})}function pa(e){const{className:t,children:s,onChange:r,...i}=e,{ref:o}=D({change:r});return y.jsx("ds-radio-button-group-react",{ref:o,class:t,...i,children:s})}const Zi=E.forwardRef(({onInput:e,className:t,...s},r)=>y.jsx("ds-search-react",{ref:r,class:t,onInput:e,...s}));Zi.displayName="Search";function ua(e){const{className:t,children:s,onChange:r,onInput:i,onClickPositionButton:o,placeHolder:n,type:l,value:c,label:h,required:m,disabled:p,pattern:f,maxLength:g,minLength:w,inputProps:k,...O}=e,{ref:I}=D({change:r,input:i,"ds-search-input:click-position-button":o});return y.jsx("ds-search-input-react",{ref:I,class:t,...O,children:y.jsx("input",{type:"text","aria-label":h,placeholder:n,value:c,required:m,disabled:p,minLength:w,maxLength:g,pattern:f,...k})})}function Lr(e){const{className:t,children:s,onSelect:r,...i}=e,{ref:o}=D({"ds-secondary-navigation:select":r});return y.jsx("ds-secondary-navigation-react",{ref:o,class:t,...i,children:s})}const tm=({children:e})=>y.jsx("div",{slot:"items",children:e}),em=({children:e})=>y.jsx("div",{slot:"actions",children:e});Lr.Items=tm,Lr.Actions=em;function ma(e){const{onChange:t,className:s,children:r,...i}=e,{ref:o}=D({change:t});return y.jsx("ds-segmented-control-react",{ref:o,class:s,...i,children:r})}const fa=({children:e,...t})=>y.jsx("ds-select-react",{...t,children:e});function ya(e){const{className:t,children:s,...r}=e;return y.jsx("ds-selection-react",{class:t,...r})}function ga(e){const{className:t,children:s,size:r,...i}=e;return y.jsx("ds-slider-react",{size:typeof r=="string"?r:JSON.stringify(r),class:t,...i})}function Br({children:e,onChange:t,...s}){const{ref:r}=D({change:t});return y.jsx("ds-tabs-react",{ref:r,...s,children:e})}function sm({children:e}){return y.jsx("div",{role:"tab",slot:"tab",children:e})}function rm({children:e}){return y.jsx("div",{role:"tabpanel",slot:"panel",children:e})}Br.Tab=sm,Br.Panel=rm;function va(e){const{children:t,onClickIcon:s,className:r,...i}=e,{ref:o}=D({clickicon:s});return y.jsx("ds-tag-react",{ref:o,class:r,...i,children:t})}function ba(e){const{className:t,children:s,...r}=e;return y.jsx("ds-text-react",{class:t,...r,children:s})}function wa(e){const{className:t,children:s,onChange:r,onInput:i,onKeyDown:o,inputId:n,placeHolder:l,type:c,value:h,label:m,required:p,disabled:f,pattern:g,maxLength:w,minLength:k,...O}=e,{ref:I}=D({change:r,input:i,keydown:o});return y.jsxs("ds-text-input-react",{ref:I,class:t,...O,children:[y.jsx("label",{htmlFor:n,children:m}),y.jsx("input",{id:n,type:c||"text",placeholder:l,value:h,required:p,disabled:f,minLength:k,maxLength:w,pattern:g})]})}function xa(e){const{className:t,children:s,onChange:r,onInput:i,textareaId:o,placeholder:n,value:l,label:c,required:h,disabled:m,minLength:p,maxLength:f,rows:g,cols:w,forcedError:k,helperText:O,invalidError:I,...F}=e,{ref:M}=D({change:r,input:i});return y.jsxs("ds-textarea-react",{ref:M,class:t,"forced-error":k,"helper-text":O,"invalid-error":I,...F,children:[y.jsx("label",{htmlFor:o,children:c}),y.jsx("textarea",{id:o,placeholder:n,value:l,required:h,disabled:m,minLength:p,maxLength:f,rows:g,cols:w})]})}const $a=({children:e,...t})=>y.jsx("ds-theme-provider-react",{...t,children:e});function Sa({onChange:e,...t}){const{ref:s}=D({change:e});return y.jsx("ds-toggle-button-react",{ref:s,...t})}function Fr({label:e,onChange:t,...s}){const{ref:r}=D({change:t});return y.jsxs("ds-toggle-switch-react",{ref:r,...s,children:[e&&y.jsx("div",{slot:"label",children:e}),s.children]})}function im({children:e}){return y.jsx("div",{slot:"off",children:e})}function om({children:e}){return y.jsx("div",{slot:"on",children:e})}Fr.Off=im,Fr.On=om;const nm=Xi.div`
3307
- display: flex;
3308
- align-items: center;
3309
- `;function ka({children:e,onClickCancelButton:t,onClickConfirmButton:s,...r}){const{ref:i}=D({"click-cancel-button":t,"click-confirm-button":s});return y.jsx("ds-tooltip-react",{ref:i,...r,children:y.jsx(nm,{children:e})})}function Qi(e){const{className:t,...s}=e;return y.jsx("ds-toast-react",{class:t,...s})}Qi.add=e=>{window.dispatchEvent(new CustomEvent("toast:add",{detail:e}))};function Ta(e){const{className:t,children:s,onClose:r,...i}=e,{ref:o}=D({"toast:remove":r});return y.jsx("ds-toast-message-react",{ref:o,class:t,...i,children:s})}function Ca(e){const{className:t,onClick:s,image:r,...i}=e,{ref:o}=D({click:s}),n=r&&E.isValidElement(r)?E.cloneElement(r,{slot:"media",...r.props}):null;return y.jsx("ds-avatar-react",{ref:o,class:t,...i,children:n})}function Ea(e){const{className:t,children:s,size:r,...i}=e,{ref:o}=D({});return y.jsx("ds-static-box-react",{ref:o,size:typeof r=="string"?r:JSON.stringify(r),class:t,...i,children:s})}const Oa=({className:e,...t})=>y.jsx("ds-stepper-react",{class:e,...t});function Zt(e){const{className:t,children:s,onClick:r,...i}=e,{ref:o}=D({click:r});return y.jsx("ds-interactive-card-react",{ref:o,class:t,...i,children:s})}const Pa=({children:e})=>y.jsx("div",{slot:"title",children:e}),_a=({children:e})=>y.jsx("div",{slot:"subtitle",children:e}),Ia=({children:e})=>y.jsx("div",{slot:"meta",children:e}),Aa=({children:e})=>y.jsx("div",{slot:"content",children:e}),Na=({children:e})=>y.jsx("div",{slot:"cta",children:e}),za=({children:e})=>y.jsx("div",{slot:"error-title",children:e}),Da=({children:e})=>y.jsx("div",{slot:"error-text",children:e});Zt.Title=Pa,Zt.Subtitle=_a,Zt.Meta=Ia,Zt.Content=Aa,Zt.Cta=Na,Zt.ErrorTitle=za,Zt.ErrorText=Da,Pa.displayName="InteractiveCard.Title",_a.displayName="InteractiveCard.Subtitle",Ia.displayName="InteractiveCard.Meta",Aa.displayName="InteractiveCard.Content",Na.displayName="InteractiveCard.Cta",za.displayName="InteractiveCard.ErrorTitle",Da.displayName="InteractiveCard.ErrorText";function ze(e){const{className:t,children:s,...r}=e;return y.jsx("ds-sidebar-navigation-react",{class:t,...r,children:s})}const am=({children:e})=>y.jsx("div",{slot:"aside-text",children:e}),lm=({children:e})=>y.jsx("div",{slot:"aside-icon",children:e}),cm=({children:e})=>y.jsx("div",{slot:"aside-helper-text",children:e}),dm=({children:e})=>y.jsx("div",{slot:"main-cta",children:e}),hm=({children:e})=>y.jsx("div",{slot:"ctas",children:e});ze.AsideText=am,ze.AsideIcon=lm,ze.AsideHelperText=cm,ze.MainCta=dm,ze.Ctas=hm;const to={...Object.freeze(Object.defineProperty({__proto__:null,Accordion:mr,Avatar:Ca,Bullets:Xo,Button:en,CarouselIndicator:sn,Checkbox:rn,Chip:on,Chips:nn,Currency:an,Dialog:ln,DialogBody:cn,DialogFooter:dn,DialogHeader:hn,Divider:pn,Hyperlink:un,Icon:mn,IconButton:fn,Input:Si,InteractiveCard:Zt,LinkButton:yn,Loader:gn,LoaderLogo:ki,Logo:vn,MapPin:bn,Modal:Fs,PasswordInput:la,PickerItem:ca,Radio:da,RadioButton:ha,RadioButtonGroup:pa,Search:Zi,SearchInput:ua,SecondaryNavigation:Lr,SegmentedControl:ma,Select:fa,Selection:ya,SidebarNavigation:ze,Slider:ga,StaticBox:Ea,Stepper:Oa,Tabs:Br,Tag:va,Text:ba,TextInput:wa,Textarea:xa,ThemeProvider:$a,Toast:Qi,ToastMessage:Ta,ToggleButton:Sa,ToggleSwitch:Fr,Tooltip:ka},Symbol.toStringTag,{value:"Module"})),...vp};try{const e=globalThis??(typeof window<"u"?window:void 0);e&&(e.CupraUiReact=to)}catch{}x.Accordion=mr,x.Avatar=Ca,x.Bullets=Xo,x.Button=en,x.CarouselIndicator=sn,x.Checkbox=rn,x.Chip=on,x.Chips=nn,x.CupraUiReact=to,x.Currency=an,x.Dialog=ln,x.DialogBody=cn,x.DialogFooter=dn,x.DialogHeader=hn,x.Divider=pn,x.Hyperlink=un,x.Icon=mn,x.IconButton=fn,x.Input=Si,x.InteractiveCard=Zt,x.LinkButton=yn,x.Loader=gn,x.LoaderLogo=ki,x.Logo=vn,x.MapPin=bn,x.Modal=Fs,x.PasswordInput=la,x.PickerItem=ca,x.Radio=da,x.RadioButton=ha,x.RadioButtonGroup=pa,x.Search=Zi,x.SearchInput=ua,x.SecondaryNavigation=Lr,x.SegmentedControl=ma,x.Select=fa,x.Selection=ya,x.SidebarNavigation=ze,x.Slider=ga,x.StaticBox=Ea,x.Stepper=Oa,x.Tabs=Br,x.Tag=va,x.Text=ba,x.TextInput=wa,x.Textarea=xa,x.ThemeProvider=$a,x.Toast=Qi,x.ToastMessage=Ta,x.ToggleButton=Sa,x.ToggleSwitch=Fr,x.Tooltip=ka,x.default=to,x.useBreakpoint=Zo,x.useEventListeners=Qo,x.useHandleEvent=D,x.useResizeObserver=tn,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ import { Accordion as t } from "./components/Accordion/Accordion.js";
2
+ import { Bullets as x } from "./components/Bullets/Bullets.js";
3
+ import { Button as f } from "./components/Button/Button.js";
4
+ import { CarouselIndicator as i } from "./components/CarouselIndicator/CarouselIndicator.js";
5
+ import { Checkbox as d } from "./components/Checkbox/Checkbox.js";
6
+ import { Chip as u } from "./components/Chip/Chip.js";
7
+ import { Chips as c } from "./components/Chips/Chips.js";
8
+ import { Currency as S } from "./components/Currency/Currency.js";
9
+ import { Dialog as B } from "./components/Dialog/Dialog.js";
10
+ import { DialogBody as I } from "./components/DialogBody/DialogBody.js";
11
+ import { DialogFooter as C } from "./components/DialogFooter/DialogFooter.js";
12
+ import { DialogHeader as k } from "./components/DialogHeader/DialogHeader.js";
13
+ import { Divider as b } from "./components/Divider/Divider.js";
14
+ import { Hyperlink as P } from "./components/Hyperlink/Hyperlink.js";
15
+ import { Icon as H } from "./components/Icon/Icon.js";
16
+ import { IconButton as w } from "./components/IconButton/IconButton.js";
17
+ import { Input as E } from "./components/Input/Input.js";
18
+ import { LinkButton as z } from "./components/LinkButton/LinkButton.js";
19
+ import { Loader as G, LoaderLogo as O } from "./components/Loader/Loader.js";
20
+ import { Logo as q } from "./components/Logo/Logo.js";
21
+ import { MapPin as K } from "./components/MapPin/MapPin.js";
22
+ import { Modal as U } from "./components/Modal/Modal.js";
23
+ import { PasswordInput as W } from "./components/PasswordInput/PasswordInput.js";
24
+ import { PickerItem as Y } from "./components/PickerItem/PickerItem.js";
25
+ import { Radio as _ } from "./components/Radio/Radio.js";
26
+ import { RadioButton as oo } from "./components/RadioButton/RadioButton.js";
27
+ import { RadioButtonGroup as eo } from "./components/RadioButtonGroup/RadioButtonGroup.js";
28
+ import { Search as po } from "./components/Search/Search.js";
29
+ import { SearchInput as mo } from "./components/SearchInput/SearchInput.js";
30
+ import { SecondaryNavigation as ao } from "./components/SecondaryNavigation/SecondaryNavigation.js";
31
+ import { SegmentedControl as no } from "./components/SegmentedControl/SegmentedControl.js";
32
+ import { Select as uo } from "./components/Select/Select.js";
33
+ import { Selection as co } from "./components/Selection/Selection.js";
34
+ import { Slider as So } from "./components/Slider/Slider.js";
35
+ import { Tabs as Bo } from "./components/Tabs/Tabs.js";
36
+ import { Tag as Io } from "./components/Tag/Tag.js";
37
+ import { Text as Co } from "./components/Text/Text.js";
38
+ import { TextInput as ko } from "./components/TextInput/TextInput.js";
39
+ import { Textarea as bo } from "./components/Textarea/Textarea.js";
40
+ import { ThemeProvider as Po } from "./components/ThemeProvider/ThemeProvider.js";
41
+ import { ToggleButton as Ho } from "./components/ToggleButton/ToggleButton.js";
42
+ import { ToggleSwitch as wo } from "./components/ToggleSwitch/ToggleSwitch.js";
43
+ import { Tooltip as Eo } from "./components/Tooltip/Tooltip.js";
44
+ import { Toast as zo } from "./components/Toast/Toast.js";
45
+ import { ToastMessage as Go } from "./components/ToastMessage/ToastMessage.js";
46
+ import { Avatar as jo } from "./components/Avatar/Avatar.js";
47
+ import { StaticBox as Jo } from "./components/StaticBox/StaticBox.js";
48
+ import { Stepper as Qo } from "./components/Stepper/Stepper.js";
49
+ import { InteractiveCard as Vo } from "./components/InteractiveCard/InteractiveCard.js";
50
+ import { SidebarNavigation as Xo } from "./components/SidebarNavigation/SidebarNavigation.js";
51
+ import { useBreakpoint as Zo } from "./hooks/useBreakpoint.js";
52
+ import { useEventListeners as $o } from "./hooks/useEventListeners.js";
53
+ import { useHandleEvent as rr } from "./hooks/useHandleEvent.js";
54
+ import "react";
55
+ import { useResizeObserver as tr } from "./hooks/useResizeObserver/useResizeObserver.js";
56
+ export {
57
+ t as Accordion,
58
+ jo as Avatar,
59
+ x as Bullets,
60
+ f as Button,
61
+ i as CarouselIndicator,
62
+ d as Checkbox,
63
+ u as Chip,
64
+ c as Chips,
65
+ S as Currency,
66
+ B as Dialog,
67
+ I as DialogBody,
68
+ C as DialogFooter,
69
+ k as DialogHeader,
70
+ b as Divider,
71
+ P as Hyperlink,
72
+ H as Icon,
73
+ w as IconButton,
74
+ E as Input,
75
+ Vo as InteractiveCard,
76
+ z as LinkButton,
77
+ G as Loader,
78
+ O as LoaderLogo,
79
+ q as Logo,
80
+ K as MapPin,
81
+ U as Modal,
82
+ W as PasswordInput,
83
+ Y as PickerItem,
84
+ _ as Radio,
85
+ oo as RadioButton,
86
+ eo as RadioButtonGroup,
87
+ po as Search,
88
+ mo as SearchInput,
89
+ ao as SecondaryNavigation,
90
+ no as SegmentedControl,
91
+ uo as Select,
92
+ co as Selection,
93
+ Xo as SidebarNavigation,
94
+ So as Slider,
95
+ Jo as StaticBox,
96
+ Qo as Stepper,
97
+ Bo as Tabs,
98
+ Io as Tag,
99
+ Co as Text,
100
+ ko as TextInput,
101
+ bo as Textarea,
102
+ Po as ThemeProvider,
103
+ zo as Toast,
104
+ Go as ToastMessage,
105
+ Ho as ToggleButton,
106
+ wo as ToggleSwitch,
107
+ Eo as Tooltip,
108
+ Zo as useBreakpoint,
109
+ $o as useEventListeners,
110
+ rr as useHandleEvent,
111
+ tr as useResizeObserver
112
+ };