@randstad-uca/design-system 1.0.65 → 1.0.66

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.
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import{LitElement as t,html as e,nothing as i,css as r,isServer as o}from"lit";import{classMap as s}from"lit/directives/class-map.js";function a(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a}function n(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
1
+ import{LitElement as t,html as e,nothing as i,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";function s(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}function n(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const l=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},d=globalThis,c=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),p=new WeakMap;
7
+ const a=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},l=globalThis,d=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */let u=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=p.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&p.set(e,t))}return t}toString(){return this.cssText}};const g=(t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=d.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}},m=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,h))(e)})(t):t,{is:b,defineProperty:y,getOwnPropertyDescriptor:v,getOwnPropertyNames:f,getOwnPropertySymbols:x,getPrototypeOf:w}=Object,k=globalThis,$=k.trustedTypes,S=$?$.emptyScript:"",C=k.reactiveElementPolyfillSupport,D=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},M=(t,e)=>!b(t,e),O={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:M};
12
+ */let p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const u=(t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t,{is:b,defineProperty:m,getOwnPropertyDescriptor:y,getOwnPropertyNames:v,getOwnPropertySymbols:f,getPrototypeOf:w}=Object,x=globalThis,k=x.trustedTypes,$=k?k.emptyScript:"",S=x.reactiveElementPolyfillSupport,D=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},C=(t,e)=>!b(t,e),M={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:C};
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class F extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&y(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=v(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const s=r?.call(this);o?.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=w(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...f(t),...x(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return g(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,r=i._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=r,this[r]=o.fromAttribute(e,t.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const r=this.constructor,o=this[t];if(i??=r.getPropertyOptions(t),!((i.hasChanged??M)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},s){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==o||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,i,r)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),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.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[D("elementProperties")]=new Map,F[D("finalized")]=new Map,C?.({ReactiveElement:F}),(k.reactiveElementVersions??=[]).push("2.1.0");
17
+ */Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class F extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=M){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&m(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=y(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=o?.call(this);r?.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??M}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=w(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...v(t),...f(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,r=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??C)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:r},s){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==r||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),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.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[D("elementProperties")]=new Map,F[D("finalized")]=new Map,S?.({ReactiveElement:F}),(x.reactiveElementVersions??=[]).push("2.1.0");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- const P={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:M},T=(t=P,e,i)=>{const{kind:r,metadata:o}=i;let s=globalThis.litPropertyMetadata.get(o);if(void 0===s&&globalThis.litPropertyMetadata.set(o,s=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===r){const{name:r}=i;return{set(i){const o=e.get.call(this);e.set.call(this,i),this.requestUpdate(r,o,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===r){const{name:r}=i;return function(i){const o=this[r];e.call(this,i),this.requestUpdate(r,o,t)}}throw Error("Unsupported decorator location: "+r)};function L(t){return(e,i)=>"object"==typeof i?T(t,e,i):((t,e,i)=>{const r=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),r?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
23
+ const O={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C},B=(t=O,e,i)=>{const{kind:o,metadata:r}=i;let s=globalThis.litPropertyMetadata.get(r);if(void 0===s&&globalThis.litPropertyMetadata.set(r,s=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function T(t){return(e,i)=>"object"==typeof i?B(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */function B(t){return L({...t,state:!0,attribute:!1})}
28
+ */function L(t){return T({...t,state:!0,attribute:!1})}
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
@@ -36,7 +36,7 @@ const P={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:M},T=(t=P,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let A=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return e`
39
+ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let j=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return e`
40
40
  ${this.label?e`
41
41
  <div class="label-container">
42
42
  ${this.renderLabel()}
@@ -79,52 +79,52 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
79
79
  ${this.helper}
80
80
  </p>
81
81
  `:i}
82
- `}};a([L({type:String}),n("design:type",Object)],A.prototype,"label",void 0),a([L({type:String}),n("design:type",Object)],A.prototype,"placeholder",void 0),a([L({type:String}),n("design:type",Object)],A.prototype,"labelColor",void 0),a([L(),n("design:type",Object)],A.prototype,"value",void 0),a([L({type:Boolean}),n("design:type",Object)],A.prototype,"required",void 0),a([L({type:Boolean}),n("design:type",Object)],A.prototype,"optional",void 0),a([L({type:Boolean}),n("design:type",Object)],A.prototype,"disabled",void 0),a([L({type:Boolean,reflect:!0}),n("design:type",Object)],A.prototype,"error",void 0),a([L({type:String}),n("design:type",Object)],A.prototype,"errorMessage",void 0),a([L({type:String}),n("design:type",Object)],A.prototype,"helper",void 0),a([L({type:String}),n("design:type",String)],A.prototype,"helperAlign",void 0),a([L({type:String}),n("design:type",String)],A.prototype,"help",void 0),a([L({type:String}),n("design:type",String)],A.prototype,"helpLink",void 0),a([L({type:String}),n("design:type",String)],A.prototype,"helpLinkTooltipMessage",void 0),A=a([l("base-control")],A);const z=r`
82
+ `}};s([T({type:String}),n("design:type",Object)],j.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"placeholder",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"labelColor",void 0),s([T(),n("design:type",Object)],j.prototype,"value",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"required",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"optional",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"disabled",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],j.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"errorMessage",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"helper",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helperAlign",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"help",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helpLink",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helpLinkTooltipMessage",void 0),j=s([a("base-control")],j);const A=o`
83
83
  font-family: 'Graphik', sans-serif;
84
84
  font-weight: 400;
85
85
  font-size: 12px;
86
86
  line-height: 15px;
87
87
  letter-spacing: 0%;
88
- `,W=r`
88
+ `,R=o`
89
89
  font-family: 'Graphik', sans-serif;
90
90
  font-weight: 400;
91
91
  font-size: 14px;
92
92
  line-height: 25px;
93
93
  letter-spacing: 0%;
94
- `,I=r`
94
+ `,W=o`
95
95
  font-family: 'Graphik', sans-serif;
96
96
  font-weight: 400;
97
97
  font-size: 16px;
98
98
  line-height: 25px;
99
99
  letter-spacing: 0%;
100
- `,N=r`
100
+ `,z=o`
101
101
  font-family: 'Graphik', sans-serif;
102
102
  font-weight: 400;
103
103
  font-size: 18px;
104
104
  line-height: 30px;
105
105
  letter-spacing: 0%;
106
- `,_=r`
106
+ `,_=o`
107
107
  font-family: 'Graphik', sans-serif;
108
108
  font-weight: 400;
109
109
  font-size: 18px;
110
110
  line-height: 30px;
111
111
  letter-spacing: 0%;
112
112
  vertical-align: middle;
113
- `,R=r`
113
+ `,I=o`
114
114
  font-family: 'Graphik', sans-serif;
115
115
  font-weight: 400;
116
116
  font-size: 20px;
117
117
  line-height: 30px;
118
118
  letter-spacing: -1%;
119
119
  vertical-align: middle;
120
- `,V=r`
120
+ `,N=o`
121
121
  font-family: 'Graphik', sans-serif;
122
122
  font-weight: 400;
123
123
  font-size: 26px;
124
124
  line-height: 30px;
125
125
  letter-spacing: -1%;
126
126
  vertical-align: middle;
127
- `;let U=class extends t{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.innerWidth>940,this.handleResize=()=>{this.isDesktop=window.innerWidth>940}}static{this.styles=r`
127
+ `;let q=class extends t{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.innerWidth>940,this.handleResize=()=>{this.isDesktop=window.innerWidth>940}}static{this.styles=o`
128
128
  :host {
129
129
  display: flex;
130
130
  flex-direction: column;
@@ -143,7 +143,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
143
143
  }
144
144
 
145
145
  .title {
146
- ${I}
146
+ ${W}
147
147
  color: var( --secondary-color );
148
148
  }
149
149
 
@@ -215,13 +215,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
215
215
  <div class="content ${this.isOpen?"open":""}">
216
216
  <slot></slot>
217
217
  </div>
218
- `}};a([L({type:String}),n("design:type",Object)],U.prototype,"title",void 0),a([B(),n("design:type",Object)],U.prototype,"isOpen",void 0),a([B(),n("design:type",Object)],U.prototype,"isDesktop",void 0),U=a([l("accordion-panel")],U);let q=class extends t{static{this.styles=r`
218
+ `}};s([T({type:String}),n("design:type",Object)],q.prototype,"title",void 0),s([L(),n("design:type",Object)],q.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],q.prototype,"isDesktop",void 0),q=s([a("accordion-panel")],q);let V=class extends t{static{this.styles=o`
219
219
  :host {
220
220
  display: flex;
221
221
  flex-direction: column;
222
222
  gap: 16px;
223
223
  }
224
- `}render(){return e`<slot></slot>`}};q=a([l("accordion-list")],q);let Y=class extends t{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=r`
224
+ `}render(){return e`<slot></slot>`}};V=s([a("accordion-list")],V);let U=class extends t{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=o`
225
225
  :host {
226
226
  display: inline-block;
227
227
  --content-padding: 16px;
@@ -261,12 +261,12 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
261
261
  }
262
262
 
263
263
  .button-lg {
264
- ${N}
264
+ ${z}
265
265
  min-height: 62px;
266
266
  }
267
267
 
268
268
  .button-md {
269
- ${I}
269
+ ${W}
270
270
  min-height: 57px;
271
271
  }
272
272
 
@@ -522,7 +522,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
522
522
  <button
523
523
  part="button"
524
524
  type=${this.type}
525
- class=${s(t)}
525
+ class=${r(t)}
526
526
  ?disabled=${this.disabled||this.loader}
527
527
  ?aria-busy=${this.loader}
528
528
  @click=${this.handleClick}
@@ -547,7 +547,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
547
547
  </div>
548
548
  `}
549
549
  </button>
550
- `}};a([L({type:String}),n("design:type",String)],Y.prototype,"type",void 0),a([L({type:String}),n("design:type",String)],Y.prototype,"variant",void 0),a([L({type:String}),n("design:type",String)],Y.prototype,"size",void 0),a([L({type:String}),n("design:type",Object)],Y.prototype,"label",void 0),a([L({type:Boolean}),n("design:type",Object)],Y.prototype,"loader",void 0),a([L({type:String,attribute:"icon-src"}),n("design:type",String)],Y.prototype,"iconSrc",void 0),a([L({type:String}),n("design:type",String)],Y.prototype,"iconPosition",void 0),a([L({type:String}),n("design:type",Object)],Y.prototype,"iconName",void 0),a([L({type:Boolean,reflect:!0}),n("design:type",Boolean)],Y.prototype,"disabled",void 0),a([L({type:String}),n("design:type",Object)],Y.prototype,"idevent",void 0),Y=a([l("randstad-button")],Y);let H=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId="",this.width="",this.height=""}static{this.styles=r`
550
+ `}};s([T({type:String}),n("design:type",String)],U.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"variant",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"label",void 0),s([T({type:Boolean}),n("design:type",Object)],U.prototype,"loader",void 0),s([T({type:String,attribute:"icon-src"}),n("design:type",String)],U.prototype,"iconSrc",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"iconPosition",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"iconName",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Boolean)],U.prototype,"disabled",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"idevent",void 0),U=s([a("randstad-button")],U);let Y=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId="",this.width="",this.height=""}static{this.styles=o`
551
551
  :host {
552
552
  display: inline-block;
553
553
  font-family: "Graphik", sans-serif;
@@ -611,7 +611,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
611
611
  }
612
612
 
613
613
  .title {
614
- ${N}
614
+ ${z}
615
615
  margin: 0;
616
616
  }
617
617
 
@@ -633,7 +633,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
633
633
  }
634
634
 
635
635
  .description {
636
- ${W}
636
+ ${R}
637
637
  margin: 0;
638
638
  }
639
639
 
@@ -684,14 +684,14 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
684
684
  </div>
685
685
  </div>
686
686
  </div>
687
- `}};a([L({type:String}),n("design:type",Object)],H.prototype,"img",void 0),a([L({type:String}),n("design:type",Object)],H.prototype,"name",void 0),a([L({type:String}),n("design:type",Object)],H.prototype,"title",void 0),a([L({type:String}),n("design:type",Object)],H.prototype,"description",void 0),a([L({type:String}),n("design:type",Object)],H.prototype,"buttonLabel",void 0),a([L({type:String}),n("design:type",Object)],H.prototype,"cardId",void 0),a([L({type:Object}),n("design:type",Object)],H.prototype,"onClick",void 0),a([L({type:String}),n("design:type",String)],H.prototype,"width",void 0),a([L({type:String}),n("design:type",String)],H.prototype,"height",void 0),H=a([l("carousel-card")],H);let G=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=r`
687
+ `}};s([T({type:String}),n("design:type",Object)],Y.prototype,"img",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"name",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"title",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"description",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"buttonLabel",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"cardId",void 0),s([T({type:Object}),n("design:type",Object)],Y.prototype,"onClick",void 0),s([T({type:String}),n("design:type",String)],Y.prototype,"width",void 0),s([T({type:String}),n("design:type",String)],Y.prototype,"height",void 0),Y=s([a("carousel-card")],Y);let H=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
688
688
  :host {
689
689
  display: block;
690
690
  max-width: 100%;
691
691
  }
692
692
 
693
693
  label {
694
- ${W}
694
+ ${R}
695
695
  display: flex;
696
696
  align-items: center;
697
697
  gap: 8px;
@@ -787,7 +787,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
787
787
  label.disabled {
788
788
  color: #9FA3B3;
789
789
  }
790
- `}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}render(){return e`
790
+
791
+ input[type="checkbox"]:focus-visible:not(:disabled):not(.error),
792
+ label:not(.error) input[type="checkbox"]:focus-visible:not(:disabled) {
793
+ outline: none;
794
+ box-shadow: 0 0 0 2px rgb( 0, 215, 255 ), 0 0 0 4px var( --secondary-color-10 );
795
+ }
796
+ `}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t;"Enter"!==e&&" "!==e||(t.preventDefault(),this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0})))}render(){return e`
791
797
  <label class="${this.error?"error":""} ${this.disabled?"disabled":""}">
792
798
  <input
793
799
  type="checkbox"
@@ -796,6 +802,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
796
802
  .checked=${this.checked}
797
803
  ?disabled=${this.disabled}
798
804
  @change=${this.toggleCheck}
805
+ @keydown=${this.handleKeyDown}          
799
806
  @focus=${()=>this.setAttribute("focused","")}
800
807
  @blur=${()=>this.removeAttribute("focused")}
801
808
  />
@@ -803,7 +810,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
803
810
  <slot></slot>
804
811
  </span>
805
812
  </label>
806
- `}};a([L({type:Boolean,reflect:!0}),n("design:type",Object)],G.prototype,"checked",void 0),a([L({type:Boolean}),n("design:type",Object)],G.prototype,"error",void 0),a([L({type:Boolean}),n("design:type",Object)],G.prototype,"disabled",void 0),G=a([l("randstad-checkbox")],G);const X=r`
813
+ `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],H.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],H.prototype,"error",void 0),s([T({type:Boolean}),n("design:type",Object)],H.prototype,"disabled",void 0),H=s([a("randstad-checkbox")],H);const G=o`
807
814
  .label-container {
808
815
  display: flex;
809
816
  align-items: center;
@@ -856,7 +863,16 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
856
863
  visibility: visible;
857
864
  opacity: 1;
858
865
  }
859
- `,K=r`
866
+ `,K=o`
867
+ button:focus-visible {
868
+ outline: 2px solid rgb( 0, 215, 255 );
869
+ outline-offset: 1px;
870
+ border-radius: 4px;
871
+ z-index: 100;
872
+ }
873
+ `,X=o`
874
+ ${K}
875
+
860
876
  :host {
861
877
  display: block;
862
878
  font-family: "Graphik", sans-serif;
@@ -865,7 +881,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
865
881
  }
866
882
 
867
883
  .form-label {
868
- ${I}
884
+ ${W}
869
885
  display: flex;
870
886
  align-items: baseline;
871
887
  flex-direction: row;
@@ -880,12 +896,12 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
880
896
  }
881
897
 
882
898
  input::placeholder {
883
- ${N}
899
+ ${z}
884
900
  color: var( --secondary-color-40 );
885
901
  }
886
902
 
887
903
  .helper-description {
888
- ${I}
904
+ ${W}
889
905
  color: var( --secondary-color-40 );
890
906
  margin: 0;
891
907
  }
@@ -896,13 +912,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
896
912
 
897
913
  .optional {
898
914
  color: var( --secondary-color-60 );
899
- ${z}
915
+ ${A}
900
916
  }
901
917
 
902
918
  randstad-icon {
903
919
  color: var( --primary-color );
904
920
  }
905
- `,Q=r`
921
+ `,Q=o`
906
922
  :host([error]) .input-wrapper, .form.error .form-input {
907
923
  border: 1px solid var( --ui-negative, red ) !important;
908
924
  }
@@ -917,11 +933,11 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
917
933
  }
918
934
 
919
935
  .error-message {
920
- ${I}
936
+ ${W}
921
937
  color: var(--ui-negative, #E00F0F);
922
938
  margin-top: 4px;
923
939
  }
924
- `,J=new CSSStyleSheet;J.replaceSync(r`
940
+ `,J=new CSSStyleSheet;J.replaceSync(o`
925
941
  ::-webkit-scrollbar {
926
942
  width: 8px;
927
943
  height: 8px;
@@ -939,10 +955,10 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
939
955
  ::-webkit-scrollbar-button {
940
956
  display: none;
941
957
  }
942
- `.cssText);let Z=class extends A{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[J,r`
943
- ${K}
944
- ${Q}
958
+ `.cssText);let Z=class extends j{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[J,o`
945
959
  ${X}
960
+ ${Q}
961
+ ${G}
946
962
 
947
963
  .form {
948
964
  display: flex;
@@ -952,7 +968,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
952
968
  }
953
969
 
954
970
  .form-input {
955
- ${N}
971
+ ${z}
956
972
  padding: 16px;
957
973
  border: 1px solid var(--secondary-color-10);
958
974
  border-radius: 4px;
@@ -1027,7 +1043,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1027
1043
  }
1028
1044
 
1029
1045
  textarea {
1030
- ${N}
1046
+ ${z}
1031
1047
  resize: none;
1032
1048
  }
1033
1049
 
@@ -1043,7 +1059,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1043
1059
  }
1044
1060
 
1045
1061
  .link-text {
1046
- ${I}
1062
+ ${W}
1047
1063
  color: var(--primary-color);
1048
1064
  cursor: pointer;
1049
1065
  text-align: end;
@@ -1079,7 +1095,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1079
1095
  height: 24px;
1080
1096
  color: var( --primary-color );
1081
1097
  }
1082
- `]}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){this.handleInputCustom(t);const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleInputCustom(t){"number"===this.keydown?this.onlyNumeric(t):"text"===this.keydown&&this.onlyText(t)}onlyNumeric(t){const e=t.target,i=e.value.replace(/[^0-9]/g,"");e.value=i}onlyText(t){const e=t.target,i=e.value.replace(/[^a-zA-Z\sáéíóúñÁÉÍÓÚÑ]/g,"");e.value=i}handleKeyDown(t){if("Enter"!==t.key)return;const e=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),i=this.closest("form");i&&i.dispatchEvent(e)}render(){const t=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type,r="textarea"===this.type?`height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto;`:"",o=this.labelColor?`--label-color: ${this.labelColor};`:"",s=e`
1098
+ `]}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){this.handleInputCustom(t);const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleInputCustom(t){"number"===this.keydown?this.onlyNumeric(t):"text"===this.keydown&&this.onlyText(t)}onlyNumeric(t){const e=t.target,i=e.value.replace(/[^0-9]/g,"");e.value=i}onlyText(t){const e=t.target,i=e.value.replace(/[^a-zA-Z\sáéíóúñÁÉÍÓÚÑ]/g,"");e.value=i}handleInputKeyDown(t){this.handleKeyDown(t),this.handleInputArrowKey(t)}get _isCleanButtonVisible(){return this.cleanButton&&!!this.value&&"password"!==this.type&&"textarea"!==this.type}handleKeyDown(t){if("Enter"!==t.key)return;const e=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),i=this.closest("form");i&&i.dispatchEvent(e)}handleInputArrowKey(t){if("ArrowRight"!==t.key)return;const e=t.target;if(("password"===this.type||this._isCleanButtonVisible)&&e.selectionStart===e.value.length){t.preventDefault();const e=this.shadowRoot?.querySelector(".toggle-password, .clean-button");e?.focus()}}handleButtonArrowKey(t){if("ArrowLeft"!==t.key)return;t.preventDefault();const e=this.shadowRoot?.querySelector(".form-input");e&&(e.focus(),e.selectionStart=e.selectionEnd=e.value.length)}render(){const t="textarea"===this.type?` height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto; `:"",o=this.labelColor?`--label-color: ${this.labelColor};`:"",r=e`
1083
1099
  <randstad-icon
1084
1100
  name="${this.isPasswordVisible?"eye_crossed":"eye"}"
1085
1101
  size="24px"
@@ -1105,7 +1121,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1105
1121
  @input=${this.handleInput}
1106
1122
  @keydown=${this.handleKeyDown}
1107
1123
  maxlength=${this.maxLength??i}
1108
- style="${r}"
1124
+ style="${t}"
1109
1125
  >
1110
1126
  </textarea>
1111
1127
  `:e`
@@ -1116,8 +1132,8 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1116
1132
  .value=${this.value}
1117
1133
  ?disabled=${this.disabled}
1118
1134
  @input=${this.handleInput}
1119
- @keydown=${this.handleKeyDown}
1120
1135
  maxlength=${this.maxLength??i}
1136
+ @keydown=${this.handleInputKeyDown}
1121
1137
  />
1122
1138
 
1123
1139
  ${"password"===this.type?e`
@@ -1126,16 +1142,20 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1126
1142
  class="toggle-password"
1127
1143
  @click=${this.togglePassword}
1128
1144
  ?disabled=${this.disabled}
1145
+ @keydown=${this.handleButtonArrowKey}
1146
+ aria-label="${this.isPasswordVisible?"Hide password":"Show password"}"
1129
1147
  >
1130
- ${s}
1148
+ ${r}
1131
1149
  </button>`:i}
1132
1150
 
1133
- ${t?e`
1151
+ ${this._isCleanButtonVisible?e`
1134
1152
  <button
1135
1153
  type="button"
1136
1154
  class="clean-button"
1137
1155
  @click=${this.handleClear}
1138
1156
  ?disabled=${this.disabled}
1157
+ @keydown=${this.handleButtonArrowKey}
1158
+ aria-label="Clear input"
1139
1159
  >
1140
1160
  <randstad-icon
1141
1161
  name="close"
@@ -1161,10 +1181,10 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1161
1181
 
1162
1182
  ${this.renderHelper()}
1163
1183
  </div>
1164
- `}};a([L({type:String}),n("design:type",Object)],Z.prototype,"keydown",void 0),a([L({type:String}),n("design:type",String)],Z.prototype,"size",void 0),a([L({type:String}),n("design:type",Object)],Z.prototype,"icon",void 0),a([L({type:Boolean}),n("design:type",Boolean)],Z.prototype,"typing",void 0),a([L({type:String}),n("design:type",String)],Z.prototype,"type",void 0),a([L({type:String}),n("design:type",String)],Z.prototype,"linkText",void 0),a([L({type:String}),n("design:type",String)],Z.prototype,"linkRoute",void 0),a([L({type:Boolean,reflect:!0}),n("design:type",Object)],Z.prototype,"isPasswordVisible",void 0),a([L({type:Boolean}),n("design:type",Boolean)],Z.prototype,"cleanButton",void 0),a([L({type:Number}),n("design:type",Number)],Z.prototype,"maxLength",void 0),a([L({type:String}),n("design:type",String)],Z.prototype,"heightTextArea",void 0),a([L({type:String}),n("design:type",String)],Z.prototype,"maxHeightTextArea",void 0),Z=a([l("randstad-form")],Z);let tt=class extends A{constructor(){super(...arguments),this.rows=""}static{this.styles=r`
1165
- ${K}
1166
- ${Q}
1184
+ `}};s([T({type:String}),n("design:type",Object)],Z.prototype,"keydown",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],Z.prototype,"icon",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Z.prototype,"typing",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"linkText",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"linkRoute",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Z.prototype,"isPasswordVisible",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Z.prototype,"cleanButton",void 0),s([T({type:Number}),n("design:type",Number)],Z.prototype,"maxLength",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"heightTextArea",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"maxHeightTextArea",void 0),Z=s([a("randstad-form")],Z);let tt=class extends j{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1167
1185
  ${X}
1186
+ ${Q}
1187
+ ${G}
1168
1188
 
1169
1189
  :host {
1170
1190
  display: flex;
@@ -1196,7 +1216,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1196
1216
 
1197
1217
  ${this.renderHelper()}
1198
1218
  </div>
1199
- `}};a([L({type:String}),n("design:type",String)],tt.prototype,"rows",void 0),tt=a([l("randstad-form-group")],tt);class et extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=r`
1219
+ `}};s([T({type:String}),n("design:type",String)],tt.prototype,"rows",void 0),tt=s([a("randstad-form-group")],tt);class et extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
1200
1220
  :host {
1201
1221
  display: inline-flex;
1202
1222
  width: var( --icon-size, 24px );
@@ -1218,18 +1238,18 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1218
1238
  width: 100%;
1219
1239
  height: 100%;
1220
1240
  }
1221
- `}updated(t){super.updated(t),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color),t.has("name")&&this.name&&this.loadIcon()}async loadIcon(){try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");let i=await t.text();i=i.replace(/fill="[^"]*"/g,""),i=i.replace(/fill='[^']*'/g,"");const r=new DOMParser,o=r.parseFromString(i,"image/svg+xml").documentElement;this.svgTemplate=e` ${o} `}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.innerHTML=" <span>⚠️</span> "}}render(){return this.svgTemplate?e`
1241
+ `}updated(t){super.updated(t),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color),t.has("name")&&this.name&&this.loadIcon()}async loadIcon(){try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");let i=await t.text();i=i.replace(/fill="[^"]*"/g,""),i=i.replace(/fill='[^']*'/g,"");const o=new DOMParser,r=o.parseFromString(i,"image/svg+xml").documentElement;this.svgTemplate=e` ${r} `}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.innerHTML=" <span>⚠️</span> "}}render(){return this.svgTemplate?e`
1222
1242
  <div class="custom-icon" style="color: ${this.color};">
1223
1243
  ${this.svgTemplate}
1224
1244
  </div>
1225
- `:e``}}a([L({type:String}),n("design:type",Object)],et.prototype,"name",void 0),a([L({type:String}),n("design:type",Object)],et.prototype,"size",void 0),a([L({type:String}),n("design:type",Object)],et.prototype,"color",void 0),a([B(),n("design:type",Object)],et.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",et);let it=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=r`
1245
+ `:e``}}s([T({type:String}),n("design:type",Object)],et.prototype,"name",void 0),s([T({type:String}),n("design:type",Object)],et.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],et.prototype,"color",void 0),s([L(),n("design:type",Object)],et.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",et);let it=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
1226
1246
  :host {
1227
1247
  display: block;
1228
1248
  font-family: 'Graphik', sans-serif;
1229
1249
  }
1230
1250
 
1231
1251
  .container {
1232
- ${I}
1252
+ ${W}
1233
1253
  display: flex;
1234
1254
  align-items: flex-start;
1235
1255
  gap: 8px;
@@ -1279,7 +1299,9 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1279
1299
 
1280
1300
  <span class="message">${this.message}</span>
1281
1301
  </div>
1282
- `}};a([L({type:String}),n("design:type",String)],it.prototype,"type",void 0),a([L({type:String}),n("design:type",String)],it.prototype,"icon",void 0),a([L({type:String}),n("design:type",String)],it.prototype,"message",void 0),a([L({type:Boolean}),n("design:type",Boolean)],it.prototype,"open",void 0),it=a([l("randstad-notice")],it);let rt=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,r`
1302
+ `}};s([T({type:String}),n("design:type",String)],it.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],it.prototype,"icon",void 0),s([T({type:String}),n("design:type",String)],it.prototype,"message",void 0),s([T({type:Boolean}),n("design:type",Boolean)],it.prototype,"open",void 0),it=s([a("randstad-notice")],it);let ot=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
1303
+ ${K}
1304
+
1283
1305
  :host {
1284
1306
  font-family: 'Graphik', sans-serif;
1285
1307
  display: none;
@@ -1337,11 +1359,12 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1337
1359
  @media (max-width: 940px) {
1338
1360
  .modal {
1339
1361
  /* Se estira para ocupar casi toda la pantalla */
1340
- width: 96dvw;
1341
- height: 96dvh;
1362
+ width: 100dvw;
1363
+ height: 100dvh;
1342
1364
  max-width: none;
1343
1365
  max-height: none;
1344
1366
  margin: 0;
1367
+ border-radius: 0;
1345
1368
  }
1346
1369
 
1347
1370
  .modal-header,
@@ -1378,13 +1401,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1378
1401
  }
1379
1402
 
1380
1403
  .modal-title {
1381
- ${V}
1404
+ ${N}
1382
1405
  margin: 0;
1383
1406
  color: var(--secondary-color);
1384
1407
  }
1385
1408
 
1386
1409
  .modal-subtitle {
1387
- ${I}
1410
+ ${W}
1388
1411
  margin: 0;
1389
1412
  color: var(--secondary-color-60);
1390
1413
  }
@@ -1478,7 +1501,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1478
1501
  </div>
1479
1502
  </div>
1480
1503
  </div>
1481
- `}};a([L({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),a([L({type:String}),n("design:type",String)],rt.prototype,"subtitle",void 0),a([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showNotice",void 0),a([L({type:String}),n("design:type",String)],rt.prototype,"noticeType",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"noticeMessage",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"noticeIcon",void 0),a([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showPrimaryButton",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"primaryButtonLabel",void 0),a([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showSecondaryButton",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"secondaryButtonLabel",void 0),a([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isFooterCustom",void 0),a([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isPrimaryLoader",void 0),a([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isPrimaryDisabled",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"modalWidth",void 0),a([B(),n("design:type",Object)],rt.prototype,"scrollable",void 0),rt=a([l("custom-modal")],rt);let ot=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.stackedActions=[],this._onBackgroundClick=t=>{const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=r`
1504
+ `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"open",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"title",void 0),s([T({type:String}),n("design:type",String)],ot.prototype,"subtitle",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showNotice",void 0),s([T({type:String}),n("design:type",String)],ot.prototype,"noticeType",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"noticeMessage",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"noticeIcon",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showPrimaryButton",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"primaryButtonLabel",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showSecondaryButton",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"secondaryButtonLabel",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isFooterCustom",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryLoader",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryDisabled",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"modalWidth",void 0),s([L(),n("design:type",Object)],ot.prototype,"scrollable",void 0),ot=s([a("custom-modal")],ot);let rt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.stackedActions=[],this._onBackgroundClick=t=>{const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
1482
1505
  :host {
1483
1506
  display: none;
1484
1507
  position: fixed;
@@ -1540,13 +1563,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1540
1563
  }
1541
1564
 
1542
1565
  .popup-title {
1543
- ${R}
1566
+ ${I}
1544
1567
  margin: 0;
1545
1568
  color: var(--secondary-color-80);
1546
1569
  }
1547
1570
 
1548
1571
  .popup-description {
1549
- ${I}
1572
+ ${W}
1550
1573
  margin: 0;
1551
1574
  color: var(--secondary-color-60);
1552
1575
  }
@@ -1670,7 +1693,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1670
1693
  `}
1671
1694
  </div>
1672
1695
  </div>
1673
- `}};a([L({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"open",void 0),a([L({type:String}),n("design:type",String)],ot.prototype,"type",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"icon",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"title",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"description",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"width",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"buttonText",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"confirmText",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"cancelText",void 0),a([L({type:Array}),n("design:type",Array)],ot.prototype,"stackedActions",void 0),ot=a([l("custom-popup")],ot);let st=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=r`
1696
+ `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),s([T({type:String}),n("design:type",String)],rt.prototype,"type",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"icon",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"description",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"width",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"buttonText",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"confirmText",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"cancelText",void 0),s([T({type:Array}),n("design:type",Array)],rt.prototype,"stackedActions",void 0),rt=s([a("custom-popup")],rt);let st=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1674
1697
  :host {
1675
1698
  display: inline-block;
1676
1699
  width: 64px;
@@ -1683,7 +1706,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1683
1706
  }
1684
1707
 
1685
1708
  .circle-text {
1686
- ${z};
1709
+ ${A};
1687
1710
  text-align: center;
1688
1711
  vertical-align: middle;
1689
1712
  fill: var(--randstad-dark-blue-40);
@@ -1699,7 +1722,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1699
1722
  stroke: var(--primary-light-blue);
1700
1723
  stroke-linecap: round;
1701
1724
  }
1702
- `}render(){const t=2*Math.PI*28,i=Math.max(this.max,1),r=t*(1-Math.min(this.value/i,1));return e`
1725
+ `}render(){const t=2*Math.PI*28,i=Math.max(this.max,1),o=t*(1-Math.min(this.value/i,1));return e`
1703
1726
  <svg
1704
1727
  viewBox="0 0 64 64"
1705
1728
  role="img"
@@ -1723,7 +1746,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1723
1746
  stroke-width="${6}"
1724
1747
  fill="none"
1725
1748
  stroke-dasharray="${t}"
1726
- stroke-dashoffset="${r}"
1749
+ stroke-dashoffset="${o}"
1727
1750
  transform="rotate(-90 32 32)"
1728
1751
  />
1729
1752
  <!-- Texto -->
@@ -1731,206 +1754,154 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1731
1754
  ${this.value} de ${this.max}
1732
1755
  </text>
1733
1756
  </svg>
1734
- `}};a([L({type:Number}),n("design:type",Object)],st.prototype,"value",void 0),a([L({type:Number}),n("design:type",Object)],st.prototype,"max",void 0),st=a([l("progress-circle")],st);
1735
- /**
1736
- * @license
1737
- * Copyright 2023 Google LLC
1738
- * SPDX-License-Identifier: Apache-2.0
1739
- */
1740
- const at=Symbol("attachableController");let nt;o||(nt=new MutationObserver((t=>{for(const e of t)e.target[at]?.hostConnected()})));class lt{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){null===t?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[at]=this,nt?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}
1741
- /**
1742
- * @license
1743
- * Copyright 2021 Google LLC
1744
- * SPDX-License-Identifier: Apache-2.0
1745
- */const dt=["focusin","focusout","pointerdown"];class ct extends t{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new lt(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[ht]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[ht]=!0}}onControlChange(t,e){if(!o)for(const i of dt)t?.removeEventListener(i,this),e?.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}a([L({type:Boolean,reflect:!0})],ct.prototype,"visible",void 0),a([L({type:Boolean,reflect:!0})],ct.prototype,"inward",void 0);const ht=Symbol("handledByFocusRing"),pt=r`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
1746
- `
1747
- /**
1748
- * @license
1749
- * Copyright 2021 Google LLC
1750
- * SPDX-License-Identifier: Apache-2.0
1751
- */;
1752
- /**
1753
- * @license
1754
- * Copyright 2024 Google LLC
1755
- * SPDX-License-Identifier: Apache-2.0
1756
- */let ut=class extends ct{};ut.styles=[pt],ut=a([l("md-focus-ring")],ut);
1757
- /**
1758
- * @license
1759
- * Copyright 2021 Google LLC
1760
- * SPDX-License-Identifier: Apache-2.0
1761
- */
1762
- const gt="cubic-bezier(0.2, 0, 0, 1)";
1763
- /**
1764
- * @license
1765
- * Copyright 2022 Google LLC
1766
- * SPDX-License-Identifier: Apache-2.0
1767
- */var mt;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(mt||(mt={}));const bt=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],yt=o?null:window.matchMedia("(forced-colors: active)");class vt extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=mt.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new lt(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return e`<div class="surface ${s(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==mt.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==mt.HOLDING)return this.state===mt.TOUCH_DELAY?(this.state=mt.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=mt.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=mt.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=mt.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===mt.TOUCH_DELAY&&(this.state=mt.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==mt.WAITING_FOR_CLICK?this.state===mt.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),i=Math.max(t,e),r=Math.max(.35*i,75),o=Math.floor(.2*i),s=Math.sqrt(e**2+t**2)+10;this.initialSize=o,this.rippleScale=""+(s+r)/o,this.rippleSize=`${o}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:i}=window,{left:r,top:o}=this.getBoundingClientRect(),s=e+r,a=i+o,{pageX:n,pageY:l}=t;return{x:n-s,y:l-a}}getTranslationCoordinates(t){const{height:e,width:i}=this.getBoundingClientRect(),r={x:(i-this.initialSize)/2,y:(e-this.initialSize)/2};let o;return o=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:i/2,y:e/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2},{startPoint:o,endPoint:r}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:i}=this.getTranslationCoordinates(t),r=`${e.x}px, ${e.y}px`,o=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${o}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:gt,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=mt.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:i,left:r,bottom:o,right:s}=this.getBoundingClientRect();return t>=r&&t<=s&&e>=i&&e<=o}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!yt?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!o)for(const i of bt)t?.removeEventListener(i,this),e?.addEventListener(i,this)}}a([L({type:Boolean,reflect:!0})],vt.prototype,"disabled",void 0),a([B()],vt.prototype,"hovered",void 0),a([B()],vt.prototype,"pressed",void 0),a([j(".surface")],vt.prototype,"mdRoot",void 0);
1768
- /**
1769
- * @license
1770
- * Copyright 2024 Google LLC
1771
- * SPDX-License-Identifier: Apache-2.0
1772
- */
1773
- const ft=r`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
1774
- `
1775
- /**
1776
- * @license
1777
- * Copyright 2022 Google LLC
1778
- * SPDX-License-Identifier: Apache-2.0
1779
- */;let xt=class extends vt{};
1780
- /**
1781
- * @license
1782
- * Copyright 2021 Google LLC
1783
- * SPDX-License-Identifier: Apache-2.0
1784
- */
1785
- function wt(t){return t.currentTarget===t.target&&(t.composedPath()[0]===t.target&&(!t.target.disabled&&!function(t){const e=kt;e&&(t.preventDefault(),t.stopImmediatePropagation());return async function(){kt=!0,await null,kt=!1}
1786
- /**
1787
- * @license
1788
- * Copyright 2023 Google LLC
1789
- * SPDX-License-Identifier: Apache-2.0
1790
- */(),e}(t)))}xt.styles=[ft],xt=a([l("md-ripple")],xt);let kt=!1;const $t=Symbol("internals"),St=Symbol("privateInternals");
1791
- /**
1792
- * @license
1793
- * Copyright 2023 Google LLC
1794
- * SPDX-License-Identifier: Apache-2.0
1795
- */
1796
- const Ct=Symbol("createValidator"),Dt=Symbol("getValidityAnchor"),Et=Symbol("privateValidator"),Mt=Symbol("privateSyncValidity"),Ot=Symbol("privateCustomValidationMessage");
1797
- /**
1798
- * @license
1799
- * Copyright 2023 Google LLC
1800
- * SPDX-License-Identifier: Apache-2.0
1801
- */
1802
- const Ft=Symbol("isFocusable"),Pt=Symbol("privateIsFocusable"),Tt=Symbol("externalTabIndex"),Lt=Symbol("isUpdatingTabIndex"),Bt=Symbol("updateTabIndex");
1803
- /**
1804
- * @license
1805
- * Copyright 2023 Google LLC
1806
- * SPDX-License-Identifier: Apache-2.0
1807
- */
1808
- const jt=Symbol("getFormValue"),At=Symbol("getFormState");
1809
- /**
1810
- * @license
1811
- * Copyright 2023 Google LLC
1812
- * SPDX-License-Identifier: Apache-2.0
1813
- */
1814
- class zt{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const t=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,t)))return this.currentValidity;const{validity:e,validationMessage:i}=this.computeValidity(t);return this.prevState=this.copy(t),this.currentValidity={validationMessage:i,validity:{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing}},this.currentValidity}}
1815
- /**
1816
- * @license
1817
- * Copyright 2023 Google LLC
1818
- * SPDX-License-Identifier: Apache-2.0
1819
- */class Wt extends zt{computeValidity(t){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let e=!1,i=!1;for(const{checked:r,required:o}of t)o&&(e=!0),r&&(i=!0);return this.radioElement.checked=i,this.radioElement.required=e,{validity:{valueMissing:e&&!i},validationMessage:this.radioElement.validationMessage}}equals(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const r=t[i],o=e[i];if(r.checked!==o.checked||r.required!==o.required)return!1}return!0}copy(t){return t.map((({checked:t,required:e})=>({checked:t,required:e})))}}
1820
- /**
1821
- * @license
1822
- * Copyright 2022 Google LLC
1823
- * SPDX-License-Identifier: Apache-2.0
1824
- */class It{get controls(){const t=this.host.getAttribute("name");return t&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll(`[name="${t}"]`)):[this.host]}constructor(t){this.host=t,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=t=>{const e="ArrowDown"===t.key,i="ArrowUp"===t.key,r="ArrowLeft"===t.key,o="ArrowRight"===t.key;if(!(r||o||e||i))return;const s=this.controls;if(!s.length)return;t.preventDefault();const a="rtl"===getComputedStyle(this.host).direction?r||e:o||e,n=s.indexOf(this.host);let l=a?n+1:n-1;for(;l!==n;){l>=s.length?l=0:l<0&&(l=s.length-1);const t=s[l];if(!t.hasAttribute("disabled")){for(const e of s)e!==t&&(e.checked=!1,e.tabIndex=-1,e.blur());t.checked=!0,t.tabIndex=0,t.focus(),t.dispatchEvent(new Event("change",{bubbles:!0}));break}a?l++:l--}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const t of this.controls)t!==this.host&&(t.checked=!1)}updateTabIndices(){const t=this.controls,e=t.find((t=>t.checked));if(e||this.focused){const i=e||this.host;i.tabIndex=0;for(const e of t)e!==i&&(e.tabIndex=-1)}else for(const e of t)e.tabIndex=0}}
1825
- /**
1826
- * @license
1827
- * Copyright 2018 Google LLC
1828
- * SPDX-License-Identifier: Apache-2.0
1829
- */var Nt;const _t=Symbol("checked");let Rt=0;const Vt=function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[Mt](),this[$t].validity}get validationMessage(){return this[Mt](),this[$t].validationMessage}get willValidate(){return this[Mt](),this[$t].willValidate}checkValidity(){return this[Mt](),this[$t].checkValidity()}reportValidity(){return this[Mt](),this[$t].reportValidity()}setCustomValidity(t){this[Ot]=t,this[Mt]()}requestUpdate(t,e,i){super.requestUpdate(t,e,i),this[Mt]()}firstUpdated(t){super.firstUpdated(t),this[Mt]()}[(e=Ot,Mt)](){if(o)return;this[Et]||(this[Et]=this[Ct]());const{validity:t,validationMessage:e}=this[Et].getValidity(),i=!!this[Ot],r=this[Ot]||e;this[$t].setValidity({...t,customError:i},r,this[Dt]()??void 0)}[Ct](){throw new Error("Implement [createValidator]")}[Dt](){throw new Error("Implement [getValidityAnchor]")}}return i}(function(t){class e extends t{get form(){return this[$t].form}get labels(){return this[$t].labels}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,e,i){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,e,i);else{const i="disabled"===t?null!==e:e;this.requestUpdate(t,i)}}requestUpdate(t,e,i){super.requestUpdate(t,e,i),this[$t].setFormValue(this[jt](),this[At]())}[jt](){throw new Error("Implement [getFormValue]")}[At](){return this[jt]()}formDisabledCallback(t){this.disabled=t}}return e.formAssociated=!0,a([L({noAccessor:!0})],e.prototype,"name",null),a([L({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}((Ut=function(t){var e,i,r;class o extends t{constructor(){super(...arguments),this[e]=!0,this[i]=null,this[r]=!1}get[Ft](){return this[Pt]}set[Ft](t){this[Ft]!==t&&(this[Pt]=t,this[Bt]())}connectedCallback(){super.connectedCallback(),this[Bt]()}attributeChangedCallback(t,e,i){if("tabindex"===t){if(this.requestUpdate("tabIndex",Number(e??-1)),!this[Lt])return this.hasAttribute("tabindex")?void(this[Tt]=this.tabIndex):(this[Tt]=null,void this[Bt]())}else super.attributeChangedCallback(t,e,i)}[(e=Pt,i=Tt,r=Lt,Bt)](){const t=this[Ft]?0:-1,e=this[Tt]??t;this[Lt]=!0,this.tabIndex=e,this[Lt]=!1}}return a([L({noAccessor:!0})],o.prototype,"tabIndex",void 0),o}(t),class extends Ut{get[$t](){return this[St]||(this[St]=this.attachInternals()),this[St]}})));var Ut;class qt extends Vt{get checked(){return this[_t]}set checked(t){const e=this.checked;e!==t&&(this[_t]=t,this.requestUpdate("checked",e),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout"+ ++Rt,this[Nt]=!1,this.required=!1,this.value="on",this.selectionController=new It(this),this.addController(this.selectionController),o||(this[$t].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this)))}render(){const t={checked:this.checked};return e`
1830
- <div class="container ${s(t)}" aria-hidden="true">
1831
- <md-ripple
1832
- part="ripple"
1833
- .control=${this}
1834
- ?disabled=${this.disabled}></md-ripple>
1835
- <md-focus-ring part="focus-ring" .control=${this}></md-focus-ring>
1836
- <svg class="icon" viewBox="0 0 20 20">
1837
- <mask id="${this.maskId}">
1838
- <rect width="100%" height="100%" fill="white" />
1839
- <circle cx="10" cy="10" r="8" fill="black" />
1840
- </mask>
1841
- <circle
1842
- class="outer circle"
1843
- cx="10"
1844
- cy="10"
1845
- r="10"
1846
- mask="url(#${this.maskId})" />
1847
- <circle class="inner circle" cx="10" cy="10" r="5" />
1848
- </svg>
1849
-
1850
- <div class="touch-target"></div>
1851
- </div>
1852
- `}updated(){this[$t].ariaChecked=String(this.checked)}async handleClick(t){this.disabled||(await 0,t.defaultPrevented||(wt(t)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(t){await 0," "!==t.key||t.defaultPrevented||this.click()}[(Nt=_t,jt)](){return this.checked?this.value:null}[At](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(t){this.checked="true"===t}[Ct](){return new Wt((()=>this.selectionController?this.selectionController.controls:[this]))}[Dt](){return this.container}}a([L({type:Boolean})],qt.prototype,"checked",null),a([L({type:Boolean})],qt.prototype,"required",void 0),a([L()],qt.prototype,"value",void 0),a([j(".container")],qt.prototype,"container",void 0);
1853
- /**
1854
- * @license
1855
- * Copyright 2024 Google LLC
1856
- * SPDX-License-Identifier: Apache-2.0
1857
- */
1858
- const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
1859
- `
1860
- /**
1861
- * @license
1862
- * Copyright 2022 Google LLC
1863
- * SPDX-License-Identifier: Apache-2.0
1864
- */;let Ht=class extends qt{};Ht.styles=[Yt],Ht=a([l("md-radio")],Ht);let Gt=class extends t{constructor(){super(...arguments),this.name="radio-group",this.checked=!1,this.disabled=!1,this.error=!1}static{this.styles=r`
1865
- :host {
1866
- font-family: "Graphik", sans-serif;
1867
- }
1757
+ `}};s([T({type:Number}),n("design:type",Object)],st.prototype,"value",void 0),s([T({type:Number}),n("design:type",Object)],st.prototype,"max",void 0),st=s([a("progress-circle")],st);let nt=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
1758
+ :host {
1759
+ font-family: "Graphik", sans-serif;
1868
1760
 
1869
- .radio-container {
1870
- display: flex;
1871
- align-items: center;
1872
- gap: 8px;
1873
- cursor: pointer;
1874
- }
1761
+ --focus-color: var( --primary-color, #2175D9 );
1762
+ --error-focus-color: var( --ui-negative, #E00F0F );
1763
+ --disabled-focus-color: var( --secondary-color-20, #CFD1D9 );
1764
+ --disabled-checked-dot-color: var( --secondary-color-40, #9FA3B3 );
1765
+ }
1875
1766
 
1876
- md-radio {
1877
- width: 24px;
1878
- height: 24px;
1879
- border-radius: 50%;
1880
- background: var(--white);
1881
- border: 1px solid var(--secondary-color-20);
1882
- }
1767
+ /* Base styles */
1768
+ .radio-container {
1769
+ display: flex;
1770
+ align-items: center;
1771
+ gap: 8px;
1772
+ cursor: pointer;
1773
+ outline: none;
1774
+ }
1775
+
1776
+ .radio-circle {
1777
+ width: 24px;
1778
+ height: 24px;
1779
+ border-radius: 50%;
1780
+ box-sizing: border-box;
1781
+ display: flex;
1782
+ align-items: center;
1783
+ justify-content: center;
1784
+ transition: all 0.2s ease-in-out, box-shadow 0.15s ease-in-out;
1785
+ }
1883
1786
 
1884
- md-radio::part(container):hover {
1885
- box-shadow: 0px 0px 0px 4px #0F19411A;
1886
- border: 1px solid var(--secondary-color-20);
1887
- border-radius: 50%;
1888
- }
1787
+ .radio-dot {
1788
+ width: 10px;
1789
+ height: 10px;
1790
+ border-radius: 50%;
1791
+ background-color: transparent;
1792
+ transition: background-color 0.2s ease-in-out;
1793
+ }
1889
1794
 
1890
- md-radio:focus-visible::part(container) {
1891
- border: 1px solid var(--primary-color);
1892
- }
1795
+ .radio-circle {
1796
+ background-color: var( --white, #FFFFFF );
1797
+ border: 1px solid rgba(207, 209, 217, 1);
1798
+ }
1799
+ /* */
1893
1800
 
1894
- md-radio.checked {
1895
- background: var(--primary-color);
1896
- border: 1px solid var(--primary-color);
1897
- }
1801
+ /* Checked styles */
1802
+ .radio-container.checked .radio-circle {
1803
+ background-color: var( --primary-color, #2175D9 );
1804
+ border: 1px solid var( --primary-color, #2175D9 );
1805
+ }
1898
1806
 
1899
- md-radio.checked.error {
1900
- background: var(--ui-negative);
1901
- border: 1px solid var(--ui-negative);
1902
- }
1807
+ .radio-container.checked .radio-dot {
1808
+ background-color: var( --white, #FFFFFF );
1809
+ }
1810
+ /* */
1811
+
1812
+ /* Hover/Focus General */
1813
+ .radio-container:not(.disabled):hover:not(:focus-visible) .radio-circle {
1814
+ box-shadow: 0 0 0 4px var( --secondary-color-10, #E7E8EC );
1815
+ }
1903
1816
 
1904
- md-radio.error {
1905
- border: 1px solid var(--ui-negative);
1906
- }
1817
+ .radio-container:focus-visible .radio-circle {
1818
+ box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --focus-color );
1819
+ border: 1px solid var( --primary-color, #2175D9 );
1820
+ }
1821
+
1822
+ .radio-container:not(.checked):focus-visible .radio-circle {
1823
+ border: 1px solid rgba( 207, 209, 217, 1 );
1824
+ }
1825
+ /* */
1907
1826
 
1908
- md-radio.disabled {
1909
- border: 1px solid var(--secondary-color-20);
1910
- background: var(--secondary-color-20);
1911
- cursor: default;
1912
- }
1827
+ /* Disabled styles */
1828
+ .radio-container.disabled {
1829
+ cursor: default;
1830
+ color: #9FA3B3;
1831
+ }
1832
+
1833
+ .radio-container.disabled .radio-circle {
1834
+ border: 1px solid var( --secondary-color-20, #CFD1D9 );
1835
+ background-color: var( --secondary-color-20, #CFD1D9 );
1836
+ box-shadow: none;
1837
+ }
1838
+
1839
+ .radio-container.disabled:focus-visible .radio-circle {
1840
+ box-shadow: none;
1841
+ border: 1px solid var( --secondary-color-20, #CFD1D9 );
1842
+ }
1843
+
1844
+ .radio-container.checked.disabled .radio-dot {
1845
+ background-color: #9FA3B3;
1846
+ }
1847
+ /* */
1913
1848
 
1914
- .radio-container.disabled {
1915
- color: #9FA3B3;
1916
- cursor: default;
1917
- }
1918
- `}render(){const t=[this.checked?"checked":"",this.error?"error":"",this.disabled?"disabled":""].join(" ");return e`
1919
- <label class="radio-container ${this.disabled?"disabled":""}">
1920
- <md-radio
1921
- name=${this.name}
1922
- class=${t}
1923
- ?checked=${this.checked}
1924
- ?disabled=${this.disabled}
1925
- >
1926
- </md-radio>
1849
+ /* Error styles */
1850
+ .radio-container.error:not(.checked) .radio-circle {
1851
+ background-color: var( --white, #FFFFFF );
1852
+ border: 1px solid var( --ui-negative, #E00F0F );
1853
+ }
1854
+
1855
+ .radio-container.checked.error .radio-circle {
1856
+ background-color: var( --ui-negative, #E00F0F );
1857
+ border: 1px solid var( --ui-negative, #E00F0F );
1858
+ }
1859
+
1860
+ .radio-container.checked.error .radio-dot {
1861
+ background-color: var( --white, #FFFFFF );
1862
+ }
1927
1863
 
1928
- <span>${this.checked?"On":"Off"} ${this.error?"Error":""}</span>
1929
- </label>
1930
- `}};a([L({type:String}),n("design:type",Object)],Gt.prototype,"name",void 0),a([L({type:Boolean}),n("design:type",Object)],Gt.prototype,"checked",void 0),a([L({type:Boolean}),n("design:type",Object)],Gt.prototype,"disabled",void 0),a([L({type:Boolean}),n("design:type",Object)],Gt.prototype,"error",void 0),Gt=a([l("custom-radio")],Gt);let Xt=class extends A{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,r`
1931
- ${K}
1932
- ${Q}
1864
+ .radio-container.error:focus-visible .radio-circle {
1865
+ box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --error-focus-color );
1866
+ }
1867
+
1868
+ .radio-container.error.disabled:not(.checked) .radio-circle {
1869
+ background-color: var( --secondary-color-20, #CFD1D9 );
1870
+ border: 1px solid var( --secondary-color-20, #CFD1D9 );
1871
+ box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --disabled-focus-color );
1872
+ }
1873
+
1874
+ .radio-container.checked.error.disabled .radio-circle {
1875
+ background-color: var( --secondary-color-20, #CFD1D9 );
1876
+ border: 1px solid var( --secondary-color-20, #CFD1D9 );
1877
+ box-shadow: 0 0 0 2px var( --white, #FFFFFF ), 0 0 0 5px var( --disabled-focus-color );
1878
+ }
1879
+
1880
+ .radio-container.checked.error.disabled .radio-dot {
1881
+ background-color: var( --white, #FFFFFF );
1882
+ }
1883
+
1884
+ .radio-container.disabled:focus-visible .radio-circle {
1885
+ box-shadow: none;
1886
+ }
1887
+ /* */
1888
+ `}handleSelect(){this.disabled||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0})))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t;"Enter"!==e&&" "!==e||(t.preventDefault(),this.handleSelect())}handleClick(){this.handleSelect()}render(){const t=["radio-container",this.checked?"checked":"",this.error?"error":"",this.disabled?"disabled":""].join(" "),i=this.error?` Error ${this.checked?"On":"Off"} `:` ${this.checked?"On":"Off"} `,o=this.label||i;return e`
1889
+ <label
1890
+ class=${t}
1891
+ @click=${this.handleClick}
1892
+ tabindex=${this.disabled?"-1":"0"}
1893
+ @keydown=${this.handleKeyDown}
1894
+ >
1895
+ <span class="radio-circle">
1896
+ <span class="radio-dot"></span>
1897
+ </span>
1898
+
1899
+ <span> ${o} </span>
1900
+ </label>
1901
+ `}};s([T({type:String}),n("design:type",Object)],nt.prototype,"name",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"disabled",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],nt.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],nt.prototype,"value",void 0),nt=s([a("custom-radio")],nt);let at=class extends j{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.isRenderClearButton=!1,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,o`
1933
1902
  ${X}
1903
+ ${Q}
1904
+ ${G}
1934
1905
 
1935
1906
  /* --- Own Error Styles --- */
1936
1907
  :host([error]) .input-container:not(.open) .input-wrapper:hover {
@@ -2039,7 +2010,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2039
2010
  }
2040
2011
 
2041
2012
  .filter-input {
2042
- ${N};
2013
+ ${z};
2043
2014
  padding: 16px;
2044
2015
  padding-right: 40px;
2045
2016
  border: none;
@@ -2060,7 +2031,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2060
2031
  }
2061
2032
 
2062
2033
  .filter-input::placeholder {
2063
- ${N};
2034
+ ${z};
2064
2035
    color: var( --filter-text-color, var( --secondary-color-40 ) );
2065
2036
  }
2066
2037
 
@@ -2105,7 +2076,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2105
2076
  }
2106
2077
 
2107
2078
  .options-list li {
2108
- ${N};
2079
+ ${z};
2109
2080
  padding: 8px 16px 8px 16px;
2110
2081
  cursor: pointer;
2111
2082
  color: var(--secondary-color-80);
@@ -2175,7 +2146,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2175
2146
  }
2176
2147
 
2177
2148
  .filter-fake {
2178
- ${N};
2149
+ ${z};
2179
2150
  padding: 15px;
2180
2151
  padding-right: 40px;
2181
2152
  width: 100%;
@@ -2245,15 +2216,15 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2245
2216
  margin-right: 8px;
2246
2217
  flex-shrink: 0;
2247
2218
  }
2248
- `]}update(t){if(t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")||t.has("options")||t.has("value")){if(this._isCleared)return void super.update(t);const e=this.value||this.defaultValue,i=this.options.find((t=>"string"==typeof t?t===e:t.value===e));i?(this.filterValue="string"==typeof i?i:i.label,this.value="string"==typeof i?i:i.value):(this.filterValue="",this.value="")}super.update(t)}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.filterValue=i,this.value="",this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.mobileFilterValue=i,this.value="",this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(i))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0}))}),300)}handleSelect(t){this._isCleared=!1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.filterable&&this.filterValue?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate())}handleClickOutside(t){const e=t.target;e instanceof Node&&(this.contains(e)||(this.isOpen=!1,this.requestUpdate()))}handleKeyDown(t){const{key:e}=t;if(!this.isOpen&&("Enter"===e||" "===e))return t.preventDefault(),void(this.isOpen=!0);if(this.isOpen)if("ArrowDown"===e)t.preventDefault(),this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredOptions.length-1),this.requestUpdate();else if("ArrowUp"===e)t.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,0),this.requestUpdate();else if("Enter"===e){t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];e&&this.handleSelect(e)}else"Escape"===e&&(t.preventDefault(),this.isOpen=!1)}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?e`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:i}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}render(){const t=this.isMobile,r=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,o=e`
2219
+ `]}update(t){if(t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")||t.has("options")||t.has("value")){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}super.update(t)}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;if(this.filterValue=i,this.isOpen=!0,""===i)this.value="",this.filteredOptions=[...this.options];else{const t=this.options.find((t=>("string"==typeof t?t:t.label)===i));this.value=t?"string"==typeof t?t:t.value:"";const e=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(e)))}this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;this.mobileFilterValue=i,this.value="";const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0}))}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=!0===this.isRenderClearButton;this.value&&""!==this.value&&t?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(this.contains(e)||(this.isOpen=!1,this.requestUpdate()))}handleKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this.filterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filteredOptions=[...this.options],this.isOpen=!0,this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1;const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()):!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this.filterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this.filterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this.filterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.isOpen||this.value&&""!==this.value||(this.filterValue="",this.filterable&&(this.filteredOptions=[...this.options]),this.requestUpdate())}),100)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?e`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:i}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}_getFilteredOptions(){if(!this.filterable)return this.options;if(!this.filterValue||""===this.filterValue.trim())return this.options;const t=this.filterValue.toLowerCase();return this.options.filter((e=>"string"==typeof e?e.toLowerCase().includes(t):e.label.toLowerCase().includes(t)))}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2249
2220
  <randstad-icon
2250
2221
  name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
2251
2222
  size="24px"
2252
2223
  .color=${"var( --primary-color )"}
2253
2224
  >
2254
2225
  </randstad-icon>
2255
- `;return e`
2256
- <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor};`:""} ${r}">
2226
+ `,s=!0===this.isRenderClearButton;return e`
2227
+ <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor};`:""} ${o}">
2257
2228
  ${this.renderLabelContainer()}
2258
2229
 
2259
2230
  <div class="list-container">
@@ -2264,12 +2235,14 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2264
2235
  class="filter-fake"
2265
2236
  @click="${this.handleInputClick}"
2266
2237
  @keydown="${this.handleKeyDown}"
2238
+ @blur="${this.handleBlur}"
2267
2239
  tabindex="0"
2268
2240
  role="combobox"
2241
+ autocomplete="new-password"
2269
2242
  aria-expanded="${this.isOpen}"
2270
2243
  aria-controls="options-list"
2271
2244
  aria-haspopup="listbox"
2272
- aria-activedescendant=""
2245
+ aria-activedescendant="${this.isOpen&&-1!==this.highlightedIndex?`option-${this.highlightedIndex}`:i}"
2273
2246
  >
2274
2247
  ${this.renderSelectedIcon()}
2275
2248
  <span class="value-text">${this.filterValue||this.placeholder}</span>
@@ -2283,33 +2256,43 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2283
2256
  @click="${this.handleInputClick}"
2284
2257
  @keydown="${this.handleKeyDown}"
2285
2258
  @input=${this.handleInput}
2259
+ @blur="${this.handleBlur}"
2286
2260
  placeholder="${this.filterValue?"":this.placeholder}"
2287
2261
  ?disabled="${this.disabled}"
2288
2262
  ?readonly="${!this.filterable}"
2289
2263
  maxlength="${this.maxLength??""}"
2264
+ tabindex="0"
2265
+ role="combobox"
2266
+ autocomplete="new-password"
2267
+ aria-expanded="${this.isOpen}"
2268
+ aria-controls="options-list"
2269
+ aria-haspopup="listbox"
2270
+ aria-activedescendant="${this.isOpen&&-1!==this.highlightedIndex?`option-${this.highlightedIndex}`:i}"
2290
2271
  />
2291
2272
  `}
2292
2273
 
2293
2274
  <button
2294
2275
  class="icon-button"
2295
2276
  @click="${this.handleIconClick}"
2277
+ @keydown="${this.handleButtonKeyDown}"
2296
2278
  ?disabled="${this.disabled}"
2279
+ tabindex="0"
2280
+ aria-label="${this.value&&""!==this.value?"Clear selection":"Toggle options"}"
2297
2281
  >
2298
- ${this.filterable&&this.filterValue?e`<randstad-icon name="close" size="24px"></randstad-icon>`:o}
2282
+ ${this.value&&""!==this.value&&s?e`<randstad-icon name="close" size="24px"></randstad-icon>`:r}
2299
2283
  </button>
2300
- </div>
2301
2284
 
2302
2285
  ${!t&&this.isOpen&&this.filteredOptions.length>0?e`
2303
2286
  <ul class="options-list">
2304
- ${this.filteredOptions.map(((t,i)=>{const r="string"==typeof t?t:t.label,o="object"==typeof t&&t.disabled,s="object"==typeof t?t.icon:void 0;return e`
2287
+ ${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,s="object"==typeof t?t.icon:void 0;return e`
2305
2288
  <li
2306
- class="${o?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2289
+ class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2307
2290
  role="option"
2308
2291
  aria-selected="${i===this.highlightedIndex}"
2309
- @click="${()=>{o||this.handleSelect(t)}}"
2292
+ @click="${()=>{r||this.handleSelect(t)}}"
2310
2293
  >
2311
2294
  ${this.renderOptionIcon(s)}
2312
- ${r}
2295
+ ${o}
2313
2296
  </li>
2314
2297
  `}))}
2315
2298
  </ul>
@@ -2339,22 +2322,22 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2339
2322
  </div>
2340
2323
 
2341
2324
  <ul class="options-list">
2342
- ${this.filteredOptions.map(((t,i)=>{const r="string"==typeof t?t:t.label,o="object"==typeof t&&t.disabled,s="object"==typeof t?t.icon:void 0;return e`
2325
+ ${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,s="object"==typeof t?t.icon:void 0;return e`
2343
2326
  <li
2344
- class="${o?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2327
+ class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2345
2328
  role="option"
2346
2329
  aria-selected="${i===this.highlightedIndex}"
2347
- @click="${()=>{o||this.handleSelect(t)}}"
2330
+ @click="${()=>{r||this.handleSelect(t)}}"
2348
2331
  >
2349
2332
  ${this.renderOptionIcon(s)}
2350
- ${r}
2333
+ ${o}
2351
2334
  </li>
2352
2335
  `}))}
2353
2336
  </ul>
2354
2337
  </div>
2355
2338
  </div>
2356
2339
  `:i}
2357
- `}};a([L({type:Object}),n("design:type",Object)],Xt.prototype,"value",void 0),a([L({type:String,attribute:"default-value"}),n("design:type",Object)],Xt.prototype,"defaultValue",void 0),a([L({type:Array}),n("design:type",Array)],Xt.prototype,"options",void 0),a([L({type:Boolean}),n("design:type",Object)],Xt.prototype,"filterable",void 0),a([L({type:Number}),n("design:type",Number)],Xt.prototype,"maxLength",void 0),a([B(),n("design:type",Boolean)],Xt.prototype,"isMobile",void 0),a([B(),n("design:type",Object)],Xt.prototype,"highlightedIndex",void 0),a([B(),n("design:type",Boolean)],Xt.prototype,"_isCleared",void 0),a([B(),n("design:type",Array)],Xt.prototype,"filteredOptions",void 0),a([B(),n("design:type",Object)],Xt.prototype,"filterValue",void 0),a([B(),n("design:type",Object)],Xt.prototype,"isOpen",void 0),a([B(),n("design:type",Object)],Xt.prototype,"mobileFilterValue",void 0),Xt=a([l("filterable-select")],Xt);const Kt=new CSSStyleSheet;Kt.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n\n .body-l {\n font-family: Graphik;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n }\n");class Qt extends t{static{this.styles=[Kt,r`
2340
+ `}};s([T({type:Object}),n("design:type",Object)],at.prototype,"value",void 0),s([T({type:String,attribute:"default-value"}),n("design:type",Object)],at.prototype,"defaultValue",void 0),s([T({type:Array}),n("design:type",Array)],at.prototype,"options",void 0),s([T({type:Boolean}),n("design:type",Object)],at.prototype,"filterable",void 0),s([T({type:Number}),n("design:type",Number)],at.prototype,"maxLength",void 0),s([T({type:Boolean}),n("design:type",Object)],at.prototype,"isRenderClearButton",void 0),s([L(),n("design:type",Boolean)],at.prototype,"isMobile",void 0),s([L(),n("design:type",Object)],at.prototype,"highlightedIndex",void 0),s([L(),n("design:type",Boolean)],at.prototype,"_isCleared",void 0),s([L(),n("design:type",Array)],at.prototype,"filteredOptions",void 0),s([L(),n("design:type",Object)],at.prototype,"filterValue",void 0),s([L(),n("design:type",Object)],at.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],at.prototype,"mobileFilterValue",void 0),at=s([a("filterable-select")],at);const lt=new CSSStyleSheet;lt.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n\n .body-l {\n font-family: Graphik;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n }\n");class dt extends t{static{this.styles=[lt,o`
2358
2341
  :host {
2359
2342
  display: flex;
2360
2343
  position: fixed;
@@ -2424,7 +2407,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2424
2407
  }
2425
2408
 
2426
2409
  .container {
2427
- ${W};
2410
+ ${R};
2428
2411
  display: flex;
2429
2412
  align-items: center;
2430
2413
  box-sizing: border-box;
@@ -2490,7 +2473,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2490
2473
  <randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
2491
2474
  <span class="message">${this.message}</span>
2492
2475
  </div>
2493
- `}}customElements.define("randstad-snackbar",Qt);let Jt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=r`
2476
+ `}}customElements.define("randstad-snackbar",dt);let ct=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
2494
2477
  .stepper {
2495
2478
  display: flex;
2496
2479
  gap: 20px;
@@ -2590,7 +2573,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2590
2573
  </div>
2591
2574
  `))}
2592
2575
  </div>
2593
- `}};a([L({type:Number}),n("design:type",Object)],Jt.prototype,"totalSteps",void 0),a([L({type:Number}),n("design:type",Object)],Jt.prototype,"currentStep",void 0),Jt=a([l("custom-stepper")],Jt);let Zt=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:r}=t;this.showPrev=e>0,this.showNext=e+r<i-1}}static{this.styles=r`
2576
+ `}};s([T({type:Number}),n("design:type",Object)],ct.prototype,"totalSteps",void 0),s([T({type:Number}),n("design:type",Object)],ct.prototype,"currentStep",void 0),ct=s([a("custom-stepper")],ct);let ht=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
2594
2577
  :host {
2595
2578
  display: block;
2596
2579
  border-bottom: 1px solid #E7E8EC;
@@ -2701,11 +2684,11 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2701
2684
 
2702
2685
  @media (max-width: 940px) {
2703
2686
  .tab {
2704
- ${I};
2687
+ ${W};
2705
2688
  padding: 16px;
2706
2689
  }
2707
2690
  }
2708
- `}firstUpdated(){this.handleScroll()}updated(t){t.has("selected")&&(this.internalSelected=this.selected)}selectTab(t){this.internalSelected=t;const e=this.tabs.find((e=>e.value===t));e&&this.dispatchEvent(new CustomEvent("tab-change",{detail:e,bubbles:!0,composed:!0}))}scrollTabsLeft(){const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const e=t.scrollLeft,i=Array.from(t.querySelectorAll(".tab"));for(let r=i.length-1;r>=0;r--){const o=i[r].offsetLeft;if(o<e+this.SCROLL_OFFSET-1){const e=o-this.SCROLL_OFFSET;t.scrollTo({left:e,behavior:"smooth"});break}}setTimeout((()=>this.handleScroll()),300)}scrollTabsRight(){const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const e=t.scrollLeft,i=Array.from(t.querySelectorAll(".tab"));for(const r of i)if(r.offsetLeft>e+this.SCROLL_OFFSET){const e=r.offsetLeft-this.SCROLL_OFFSET;t.scrollTo({left:e,behavior:"smooth"});break}setTimeout((()=>this.handleScroll()),300)}render(){return e`
2691
+ `}firstUpdated(){this.handleScroll()}updated(t){t.has("selected")&&(this.internalSelected=this.selected)}selectTab(t){this.internalSelected=t;const e=this.tabs.find((e=>e.value===t));e&&this.dispatchEvent(new CustomEvent("tab-change",{detail:e,bubbles:!0,composed:!0}))}scrollTabsLeft(){const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const e=t.scrollLeft,i=Array.from(t.querySelectorAll(".tab"));for(let o=i.length-1;o>=0;o--){const r=i[o].offsetLeft;if(r<e+this.SCROLL_OFFSET-1){const e=r-this.SCROLL_OFFSET;t.scrollTo({left:e,behavior:"smooth"});break}}setTimeout((()=>this.handleScroll()),300)}scrollTabsRight(){const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const e=t.scrollLeft,i=Array.from(t.querySelectorAll(".tab"));for(const o of i)if(o.offsetLeft>e+this.SCROLL_OFFSET){const e=o.offsetLeft-this.SCROLL_OFFSET;t.scrollTo({left:e,behavior:"smooth"});break}setTimeout((()=>this.handleScroll()),300)}render(){return e`
2709
2692
  <div class="scroll-container">
2710
2693
  ${this.showPrev?e`
2711
2694
  <button class="scroll-button prev" @click=${this.scrollTabsLeft}>
@@ -2729,7 +2712,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2729
2712
  </button>
2730
2713
  `:null}
2731
2714
  </div>
2732
- `}};a([L({type:Array}),n("design:type",Array)],Zt.prototype,"tabs",void 0),a([L({type:String}),n("design:type",String)],Zt.prototype,"selected",void 0),a([B(),n("design:type",String)],Zt.prototype,"internalSelected",void 0),a([B(),n("design:type",Object)],Zt.prototype,"showPrev",void 0),a([B(),n("design:type",Object)],Zt.prototype,"showNext",void 0),Zt=a([l("tabs-bar")],Zt);let te=class extends A{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.loading=!1,this.progress=0,this.errorTextMessage=null}baseGetTextMaxFileSize(t){return t/1048576}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const r=i.pop();return`${i.join(", ")} y ${r}`}validateFiles(t,e,i,r,o,s){const a=e>0,n=i.length>0;for(const l of t){if(n&&!i.includes(l.type))return this.setError(s,r),!1;if(a&&l.size>e)return this.setError(s,o),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:r,acceptedFileTypes:o,errorMessageType:s,errorMessageSize:a,typeError:n}=e;if(this.setError(n,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=Number.isFinite(i)&&i>0?i:1,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(n,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,r,o,s,a,n))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null)}setError(t="file",e){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e)}renderLoadingContainer(t){return e`
2715
+ `}};s([T({type:Array}),n("design:type",Array)],ht.prototype,"tabs",void 0),s([T({type:String}),n("design:type",String)],ht.prototype,"selected",void 0),s([L(),n("design:type",String)],ht.prototype,"internalSelected",void 0),s([L(),n("design:type",Object)],ht.prototype,"showPrev",void 0),s([L(),n("design:type",Object)],ht.prototype,"showNext",void 0),ht=s([a("tabs-bar")],ht);let pt=class extends j{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=t=>`El formato del archivo ${this.isMultiple?t:""} no es válido`,this.TEXT_SNACKBAR_ERROR_SIZE=(t,e)=>`El archivo ${this.isMultiple?t:""} es muy grande. Máximo ${e}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,clearTimeout(o.timer),o.timer=setTimeout((()=>o.open=!1),e)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return` ${(t/e).toFixed(2)} MB `}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const n=e>0,a=i.length>0;for(const l of t){if(a&&!i.includes(l.type))return this.setError(s,o,this.TEXT_SNACKBAR_ERROR_TYPE(l.name)),!1;if(n&&l.size>e)return this.setError(s,r,this.TEXT_SNACKBAR_ERROR_SIZE(l.name,this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:s,errorMessageSize:n,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=Number.isFinite(i)&&i>0?i:1,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(a,t,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,o,r,s,n,a))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
2733
2716
  ${this.loading?e`
2734
2717
  <div class="progress-bar-container">
2735
2718
  <div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
@@ -2739,7 +2722,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2739
2722
  `:e`
2740
2723
  ${t}
2741
2724
  `}
2742
- `}};a([L({type:Array}),n("design:type",Array)],te.prototype,"files",void 0),a([L({type:Number}),n("design:type",Object)],te.prototype,"simulatedDelay",void 0),a([B(),n("design:type",Object)],te.prototype,"loading",void 0),a([B(),n("design:type",Object)],te.prototype,"progress",void 0),a([B(),n("design:type",Object)],te.prototype,"errorTextMessage",void 0),a([j('input[ type="file" ]'),n("design:type",HTMLInputElement)],te.prototype,"fileInput",void 0),te=a([l("base-upload")],te);const ee={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},ie={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ee,"text/plain":".txt"},re=r`
2725
+ `}};s([T({type:Array}),n("design:type",Array)],pt.prototype,"files",void 0),s([T({type:Number}),n("design:type",Object)],pt.prototype,"simulatedDelay",void 0),s([T({type:Boolean}),n("design:type",Object)],pt.prototype,"showAlertInError",void 0),s([T({type:String}),n("design:type",Object)],pt.prototype,"typeTextFile",void 0),s([L(),n("design:type",Object)],pt.prototype,"loading",void 0),s([L(),n("design:type",Object)],pt.prototype,"progress",void 0),s([L(),n("design:type",Object)],pt.prototype,"errorTextMessage",void 0),s([P('input[ type="file" ]'),n("design:type",HTMLInputElement)],pt.prototype,"fileInput",void 0),pt=s([a("base-upload")],pt);const ut={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},gt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ut,"text/plain":".txt"},bt=o`
2743
2726
  .progress-bar-container {
2744
2727
  min-height: 23px;
2745
2728
  display: flex;
@@ -2759,9 +2742,9 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2759
2742
  background-color: var( --primary-color );
2760
2743
  transition: width 0.1s ease;
2761
2744
  }
2762
- `;let oe=class extends te{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=r`
2763
- ${K}
2764
- ${re}
2745
+ `;let mt=class extends pt{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
2746
+ ${X}
2747
+ ${bt}
2765
2748
 
2766
2749
  :host {
2767
2750
  font-family: 'Graphik', sans-serif;
@@ -2808,28 +2791,28 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2808
2791
  }
2809
2792
 
2810
2793
  .text-main {
2811
- ${W};
2794
+ ${R};
2812
2795
  text-align: center;
2813
2796
  vertical-align: middle;
2814
2797
  color: var( --secondary-color-80 );
2815
2798
  }
2816
2799
 
2817
2800
  .text-secondary {
2818
- ${z};
2801
+ ${A};
2819
2802
  text-align: center;
2820
2803
  vertical-align: middle;
2821
2804
  color: var( --secondary-color-60 );
2822
2805
  }
2823
2806
 
2824
2807
  .text-tertiary {
2825
- ${z};
2808
+ ${A};
2826
2809
  text-align: center;
2827
2810
  vertical-align: middle;
2828
2811
  color: var( --secondary-color-40 );
2829
2812
  }
2830
2813
 
2831
2814
  .button {
2832
- ${z};
2815
+ ${A};
2833
2816
  background-color: var( --primary-color );
2834
2817
  border: none;
2835
2818
  padding: 4px 16px;
@@ -2888,14 +2871,14 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2888
2871
  .text-main.error {
2889
2872
  color: var(--ui-negative, #E00F0F);
2890
2873
  }
2891
- `}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ee)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3)}render(){const t=this.disabled||this.isMaxFilesReached,r=this.disabled,o=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,a=o?` / max. ${this.getTextMaxFileSize()}MB`:"",n=s?this.getTextAcceptedFileTypes():"",l=this.errorTextMessage||`subí hasta ${this.maxFiles} imágenes`,d=this.errorTextMessage?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",c=`container ${this.isDragging?"dragging":""} ${this.errorTextMessage?"error":""}`,h=e`
2874
+ `}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ut)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}render(){const t=this.disabled||this.isMaxFilesReached,o=this.disabled,r=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,n=!1!==this.isShowInfoSize,a=r&&n?` / max. ${this.getTextMaxFileSize()}`:"",l=s?this.getTextAcceptedFileTypes():"",d=this.errorTextMessage||`subí hasta ${this.maxFiles} imágenes`,c=this.errorTextMessage?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",h=`container ${this.isDragging?"dragging":""} ${this.errorTextMessage?"error":""}`,p=e`
2892
2875
  <label class="button">
2893
2876
  agregar archivo
2894
2877
 
2895
2878
  <input
2896
2879
  type="file"
2897
2880
  accept=${this.acceptedFileTypes.join(",")}
2898
- ?multiple=${this.maxFiles>1}
2881
+ ?multiple=${this.isMultiple}
2899
2882
  @change="${this.onFileInputChange}"
2900
2883
  ?disabled="${t}"
2901
2884
  />
@@ -2915,7 +2898,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2915
2898
  .variant=${"button-icon"}
2916
2899
  .iconName=${"trash"}
2917
2900
  @click=${()=>this.removeFile(i,"image")}
2918
- ?disabled=${r}
2901
+ ?disabled=${o}
2919
2902
  >
2920
2903
  </randstad-button>
2921
2904
  </div>
@@ -2924,7 +2907,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2924
2907
  `:""}
2925
2908
 
2926
2909
  <div
2927
- class="${c}"
2910
+ class="${h}"
2928
2911
  ?disabled="${t}"
2929
2912
  @drop="${this.onDrop}"
2930
2913
  @dragover="${this.onDragOver}"
@@ -2932,37 +2915,39 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2932
2915
  >
2933
2916
  <img
2934
2917
  class="icon"
2935
- src=${d}
2918
+ src=${c}
2936
2919
  alt="Subir imagen"
2937
2920
  />
2938
2921
 
2939
2922
  <div class="text-container">
2940
- <div class="text-main ${this.errorTextMessage?"error":""}">${l}</div>
2923
+ <div class="text-main ${this.errorTextMessage?"error":""}">${d}</div>
2941
2924
 
2942
2925
  <div class="text-secondary">
2943
2926
  Podés agregar un archivo o arrastrar y soltar acá
2944
2927
  </div>
2945
2928
 
2946
- <div class="text-tertiary">${n}${a}</div>
2929
+ <div class="text-tertiary">${l}${a}</div>
2947
2930
  </div>
2948
2931
 
2949
- ${this.renderLoadingContainer(h)}
2932
+ ${this.renderLoadingContainer(p)}
2950
2933
  </div>
2951
2934
  </div>
2952
2935
  </div>
2953
- `}};a([L({type:Array}),n("design:type",Array)],oe.prototype,"acceptedFileTypes",void 0),a([L({type:Number}),n("design:type",Object)],oe.prototype,"maxFiles",void 0),a([L({type:Number}),n("design:type",Object)],oe.prototype,"maxFileSize",void 0),a([B(),n("design:type",Object)],oe.prototype,"isDragging",void 0),a([B(),n("design:type",Array)],oe.prototype,"imageUrls",void 0),a([B(),n("design:type",Boolean)],oe.prototype,"isMaxFilesReached",void 0),oe=a([l("upload-image")],oe);const se=6048e5,ae=Symbol.for("constructDateFrom");function ne(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&ae in t?t[ae](e):t instanceof Date?new t.constructor(e):new Date(e)}function le(t,e){return ne(e||t,t)}function de(t,e,i){const r=le(t,i?.in);if(isNaN(e))return ne(t,NaN);if(!e)return r;const o=r.getDate(),s=ne(t,r.getTime());s.setMonth(r.getMonth()+e+1,0);return o>=s.getDate()?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let ce={};function he(){return ce}function pe(t,e){const i=he(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=le(t,e?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function ue(t,e){return pe(t,{...e,weekStartsOn:1})}function ge(t,e){const i=le(t,e?.in),r=i.getFullYear(),o=ne(i,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=ue(o),a=ne(i,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const n=ue(a);return i.getTime()>=s.getTime()?r+1:i.getTime()>=n.getTime()?r:r-1}function me(t){const e=le(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function be(t,...e){const i=ne.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function ye(t,e){const i=le(t,e?.in);return i.setHours(0,0,0,0),i}function ve(t,e,i){return de(t,12*e,i)}function fe(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+le(t)));var e}function xe(t,e){const i=le(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const we={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ke(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const $e={date:ke({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ke({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ke({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Se={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ce(t){return(e,i)=>{let r;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,o=i?.width?String(i.width):e;r=t.formattingValues[o]||t.formattingValues[e]}else{const e=t.defaultWidth,o=i?.width?String(i.width):t.defaultWidth;r=t.values[o]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function De(t){return(e,i={})=>{const r=i.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const a=s[0],n=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(n)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(n,(t=>t.test(a))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(n,(t=>t.test(a)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(a.length)}}}var Ee;const Me={code:"en-US",formatDistance:(t,e,i)=>{let r;const o=we[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:$e,formatRelative:(t,e,i,r)=>Se[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Ce({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ce({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ce({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ce({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ce({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Ee={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(Ee.matchPattern);if(!i)return null;const r=i[0],o=t.match(Ee.parsePattern);if(!o)return null;let s=Ee.valueCallback?Ee.valueCallback(o[0]):o[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(r.length)}}),era:De({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:De({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:De({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:De({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:De({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Oe(t,e){const i=le(t,e?.in),r=function(t,e){const[i,r]=be(0,t,e),o=ye(i),s=ye(r),a=+o-me(o),n=+s-me(s);return Math.round((a-n)/864e5)}(i,function(t,e){const i=le(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return r+1}function Fe(t,e){const i=le(t,e?.in),r=+ue(i)-+function(t,e){const i=ge(t,e),r=ne(t,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),ue(r)}(i);return Math.round(r/se)+1}function Pe(t,e){const i=le(t,e?.in),r=i.getFullYear(),o=he(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=ne(e?.in||t,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const n=pe(a,e),l=ne(e?.in||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const d=pe(l,e);return+i>=+n?r+1:+i>=+d?r:r-1}function Te(t,e){const i=le(t,e?.in),r=+pe(i,e)-+function(t,e){const i=he(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Pe(t,e),s=ne(e?.in||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),pe(s,e)}(i,e);return Math.round(r/se)+1}function Le(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Be={y(t,e){const i=t.getFullYear(),r=i>0?i:1-i;return Le("yy"===e?r%100:r,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Le(i+1,2)},d:(t,e)=>Le(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Le(t.getHours()%12||12,e.length),H:(t,e)=>Le(t.getHours(),e.length),m:(t,e)=>Le(t.getMinutes(),e.length),s:(t,e)=>Le(t.getSeconds(),e.length),S(t,e){const i=e.length,r=t.getMilliseconds();return Le(Math.trunc(r*Math.pow(10,i-3)),e.length)}},je="midnight",Ae="noon",ze="morning",We="afternoon",Ie="evening",Ne="night",_e={G:function(t,e,i){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return i.ordinalNumber(r,{unit:"year"})}return Be.y(t,e)},Y:function(t,e,i,r){const o=Pe(t,r),s=o>0?o:1-o;if("YY"===e){return Le(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Le(s,e.length)},R:function(t,e){return Le(ge(t),e.length)},u:function(t,e){return Le(t.getFullYear(),e.length)},Q:function(t,e,i){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Le(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Le(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){const r=t.getMonth();switch(e){case"M":case"MM":return Be.M(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Le(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){const o=Te(t,r);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Le(o,e.length)},I:function(t,e,i){const r=Fe(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):Le(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Be.d(t,e)},D:function(t,e,i){const r=Oe(t);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):Le(r,e.length)},E:function(t,e,i){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Le(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Le(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){const r=t.getDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return Le(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,i){const r=t.getHours();let o;switch(o=12===r?Ae:0===r?je:r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){const r=t.getHours();let o;switch(o=r>=17?Ie:r>=12?We:r>=4?ze:Ne,e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Be.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Be.H(t,e)},K:function(t,e,i){const r=t.getHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):Le(r,e.length)},k:function(t,e,i){let r=t.getHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):Le(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Be.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Be.s(t,e)},S:function(t,e){return Be.S(t,e)},X:function(t,e,i){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return Ve(r);case"XXXX":case"XX":return Ue(r);default:return Ue(r,":")}},x:function(t,e,i){const r=t.getTimezoneOffset();switch(e){case"x":return Ve(r);case"xxxx":case"xx":return Ue(r);default:return Ue(r,":")}},O:function(t,e,i){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Re(r,":");default:return"GMT"+Ue(r,":")}},z:function(t,e,i){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Re(r,":");default:return"GMT"+Ue(r,":")}},t:function(t,e,i){return Le(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Le(+t,e.length)}};function Re(t,e=""){const i=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return 0===s?i+String(o):i+String(o)+e+Le(s,2)}function Ve(t,e){if(t%60==0){return(t>0?"-":"+")+Le(Math.abs(t)/60,2)}return Ue(t,e)}function Ue(t,e=""){const i=t>0?"-":"+",r=Math.abs(t);return i+Le(Math.trunc(r/60),2)+e+Le(r%60,2)}const qe=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Ye=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},He={p:Ye,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return qe(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",qe(r,e)).replace("{{time}}",Ye(o,e))}},Ge=/^D+$/,Xe=/^Y+$/,Ke=["D","DD","YY","YYYY"];const Qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Je=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ze=/^'([^]*?)'?$/,ti=/''/g,ei=/[a-zA-Z]/;function ii(t,e,i){const r=he(),o=r.locale??Me,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=le(t,i?.in);if(!fe(n))throw new RangeError("Invalid time value");let l=e.match(Je).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,He[e])(t,o.formatLong)}return t})).join("").match(Qe).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:ri(t)};if(_e[e])return{isToken:!0,value:t};if(e.match(ei))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));o.localize.preprocessor&&(l=o.localize.preprocessor(n,l));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return l.map((i=>{if(!i.isToken)return i.value;const r=i.value;(function(t){return Xe.test(t)}(r)||function(t){return Ge.test(t)}(r))&&function(t,e,i){const r=function(t,e,i){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(r),Ke.includes(t))throw new RangeError(r)}(r,e,String(t));return(0,_e[r[0]])(n,r,o.localize,d)})).join("")}function ri(t){const e=t.match(Ze);return e?e[1].replace(ti,"'"):t}function oi(t,e){return le(t,e?.in).getDate()}function si(t,e){const i=le(t,e?.in),r=i.getFullYear(),o=i.getMonth(),s=ne(i,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function ai(t,e){return+le(t)>+le(e)}function ni(t,e){return+le(t)<+le(e)}function li(t,e,i){const[r,o]=be(0,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function di(t,e,i){const[r,o]=be(0,t,e);return r.getFullYear()===o.getFullYear()}function ci(t,e){return function(t,e){const[i,r]=be(0,t,e);return+ye(i)===+ye(r)}(ne(t,t),function(t){return ne(t,Date.now())}(t))}let hi=class extends t{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[J,r`
2936
+ `}};s([T({type:Array}),n("design:type",Array)],mt.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],mt.prototype,"maxFiles",void 0),s([T({type:Number}),n("design:type",Object)],mt.prototype,"maxFileSize",void 0),s([T({type:Boolean}),n("design:type",Object)],mt.prototype,"isShowInfoSize",void 0),s([L(),n("design:type",Object)],mt.prototype,"isDragging",void 0),s([L(),n("design:type",Array)],mt.prototype,"imageUrls",void 0),s([L(),n("design:type",Boolean)],mt.prototype,"isMaxFilesReached",void 0),mt=s([a("upload-image")],mt);const yt=6048e5,vt=Symbol.for("constructDateFrom");function ft(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&vt in t?t[vt](e):t instanceof Date?new t.constructor(e):new Date(e)}function wt(t,e){return ft(e||t,t)}function xt(t,e,i){const o=wt(t,i?.in);if(isNaN(e))return ft(t,NaN);if(!e)return o;const r=o.getDate(),s=ft(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let kt={};function $t(){return kt}function St(t,e){const i=$t(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=wt(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function Dt(t,e){return St(t,{...e,weekStartsOn:1})}function Et(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=ft(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=Dt(r),n=ft(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=Dt(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Ct(t){const e=wt(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Mt(t,...e){const i=ft.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Ft(t,e){const i=wt(t,e?.in);return i.setHours(0,0,0,0),i}function Ot(t,e,i){return xt(t,12*e,i)}function Bt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+wt(t)));var e}function Tt(t,e){const i=wt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const Lt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const jt={date:Pt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},At={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Rt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Wt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var zt;const _t={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=Lt[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:jt,formatRelative:(t,e,i,o)=>At[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Rt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Rt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Rt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Rt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Rt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(zt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(zt.matchPattern);if(!i)return null;const o=i[0],r=t.match(zt.parsePattern);if(!r)return null;let s=zt.valueCallback?zt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Wt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:Wt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function It(t,e){const i=wt(t,e?.in),o=function(t,e){const[i,o]=Mt(0,t,e),r=Ft(i),s=Ft(o),n=+r-Ct(r),a=+s-Ct(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=wt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Nt(t,e){const i=wt(t,e?.in),o=+Dt(i)-+function(t,e){const i=Et(t,e),o=ft(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Dt(o)}(i);return Math.round(o/yt)+1}function qt(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=$t(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=ft(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=St(n,e),l=ft(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=St(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Vt(t,e){const i=wt(t,e?.in),o=+St(i,e)-+function(t,e){const i=$t(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=qt(t,e),s=ft(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),St(s,e)}(i,e);return Math.round(o/yt)+1}function Ut(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Yt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Ut("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Ut(i+1,2)},d:(t,e)=>Ut(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Ut(t.getHours()%12||12,e.length),H:(t,e)=>Ut(t.getHours(),e.length),m:(t,e)=>Ut(t.getMinutes(),e.length),s:(t,e)=>Ut(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Ut(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Ht="midnight",Gt="noon",Kt="morning",Xt="afternoon",Qt="evening",Jt="night",Zt={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Yt.y(t,e)},Y:function(t,e,i,o){const r=qt(t,o),s=r>0?r:1-r;if("YY"===e){return Ut(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Ut(s,e.length)},R:function(t,e){return Ut(Et(t),e.length)},u:function(t,e){return Ut(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ut(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ut(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Yt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ut(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Vt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Ut(r,e.length)},I:function(t,e,i){const o=Nt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Ut(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Yt.d(t,e)},D:function(t,e,i){const o=It(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Ut(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ut(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ut(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Ut(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Gt:0===o?Ht:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?Qt:o>=12?Xt:o>=4?Kt:Jt,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Yt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Yt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Yt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Yt.s(t,e)},S:function(t,e){return Yt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ee(o);case"XXXX":case"XX":return ie(o);default:return ie(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ee(o);case"xxxx":case"xx":return ie(o);default:return ie(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},t:function(t,e,i){return Ut(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Ut(+t,e.length)}};function te(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Ut(s,2)}function ee(t,e){if(t%60==0){return(t>0?"-":"+")+Ut(Math.abs(t)/60,2)}return ie(t,e)}function ie(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Ut(Math.trunc(o/60),2)+e+Ut(o%60,2)}const oe=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},re=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},se={p:re,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return oe(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",oe(o,e)).replace("{{time}}",re(r,e))}},ne=/^D+$/,ae=/^Y+$/,le=["D","DD","YY","YYYY"];const de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,he=/^'([^]*?)'?$/,pe=/''/g,ue=/[a-zA-Z]/;function ge(t,e,i){const o=$t(),r=o.locale??_t,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=wt(t,i?.in);if(!Bt(a))throw new RangeError("Invalid time value");let l=e.match(ce).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,se[e])(t,r.formatLong)}return t})).join("").match(de).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:be(t)};if(Zt[e])return{isToken:!0,value:t};if(e.match(ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ae.test(t)}(o)||function(t){return ne.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),le.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,Zt[o[0]])(a,o,r.localize,d)})).join("")}function be(t){const e=t.match(he);return e?e[1].replace(pe,"'"):t}function me(t,e){return wt(t,e?.in).getDate()}function ye(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=ft(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function ve(t,e){return+wt(t)>+wt(e)}function fe(t,e){return+wt(t)<+wt(e)}function we(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function xe(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()}function ke(t,e){return function(t,e){const[i,o]=Mt(0,t,e);return+Ft(i)===+Ft(o)}(ft(t,t),function(t){return ft(t,Date.now())}(t))}let $e=class extends t{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[J,o`
2937
+ ${K}
2938
+
2954
2939
  /* Estilos generales del contenedor del calendario (escritorio) */
2955
2940
  .calendar-container {
2956
2941
  position: absolute;
2957
2942
  top: 100%;
2958
2943
  left: 0;
2959
2944
  z-index: 10;
2960
- border: var(--border-weight-default, 1px) solid var(--secondary-randstad-dark-blue-10, #e7e8ec);
2961
- background: var(--secondary-white, #fff);
2945
+ border: 1px solid var( --secondary-color-10, #e7e8ec );
2946
+ background: var( --white, #fff );
2962
2947
  border-radius: 4px;
2963
2948
  margin-top: 8px;
2964
2949
  padding: 16px;
2965
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
2950
+ box-shadow: 0px 4px 8px rgba( 0, 0, 0, 0.1 );
2966
2951
  font-family: Graphik;
2967
2952
  display: flex;
2968
2953
  flex-direction: column;
@@ -2979,7 +2964,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2979
2964
  .weekdays-separator {
2980
2965
  width: 100%;
2981
2966
  height: 1px;
2982
- background-color: var(--secondary-randstad-dark-blue-10, #e7e8ec);
2967
+ background-color: var( --secondary-color-10, #e7e8ec );
2983
2968
  margin-top: 0;
2984
2969
  margin-bottom: 16px;
2985
2970
  }
@@ -2997,14 +2982,14 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2997
2982
  border: none;
2998
2983
  cursor: pointer;
2999
2984
  padding: 8px;
3000
- color: var(--primary-randstad-blue-70, #2175d9);
2985
+ color: var( --primary-color, #2175d9 );
3001
2986
  border-radius: 50%;
3002
2987
  transition: background-color 0.2s;
3003
2988
  gap: 8px;
3004
2989
  }
3005
2990
 
3006
2991
  .nav-button:hover {
3007
- background-color: var(--secondary-randstad-light-blue-10, #e8f1fb);
2992
+ background-color: var( --randstad-blue-10, #e8f1fb );
3008
2993
  }
3009
2994
 
3010
2995
  .header-left,
@@ -3015,7 +3000,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3015
3000
  }
3016
3001
 
3017
3002
  .month-year-button {
3018
- ${W}
3003
+ ${R}
3019
3004
  display: flex;
3020
3005
  align-items: center;
3021
3006
  justify-content: center;
@@ -3024,7 +3009,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3024
3009
  border: none;
3025
3010
  cursor: pointer;
3026
3011
  transition: background-color 0.2s;
3027
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3012
+ color: var( --randstad-blue-80, #3c4257 );
3028
3013
  border-radius: 16px;
3029
3014
  width: auto;
3030
3015
  height: 41px;
@@ -3032,11 +3017,11 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3032
3017
  }
3033
3018
 
3034
3019
  .month-year-button:hover {
3035
- background-color: var(--secondary-randstad-light-blue-10, #e8f1fb);
3020
+ background-color: var( --randstad-blue-10, #e8f1fb );
3036
3021
  }
3037
3022
 
3038
3023
  .month-year-button randstad-icon {
3039
- color: var(--primary-randstad-blue-70, #2175d9);
3024
+ color: var( --primary-color, #2175d9 );
3040
3025
  }
3041
3026
 
3042
3027
  /* Contenedor de los nombres de los días de la semana */
@@ -3045,7 +3030,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3045
3030
  place-items: center;
3046
3031
  grid-template-columns: repeat(7, 1fr);
3047
3032
  text-align: center;
3048
- color: var(--secondary-randstad-dark-blue-60, #6c7387);
3033
+ color: var( --secondary-dark-blue-60, #6c7387 );
3049
3034
  opacity: 1;
3050
3035
  margin-bottom: 8px; /* Gap de 8px entre nombres y días */
3051
3036
  font-size: 16px;
@@ -3064,7 +3049,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3064
3049
 
3065
3050
  /* Estilos para cada botón de día */
3066
3051
  .day {
3067
- ${I}
3052
+ ${W}
3068
3053
  display: flex;
3069
3054
  align-items: center;
3070
3055
  justify-content: center;
@@ -3074,18 +3059,18 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3074
3059
  cursor: pointer;
3075
3060
  background-color: transparent;
3076
3061
  border: none;
3077
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3062
+ color: var( --secondary-color-80, #3c4257 );
3078
3063
  padding: 0;
3079
3064
  position: relative;
3080
3065
  }
3081
3066
 
3082
3067
  .day:hover {
3083
- background-color: var(--secondary-randstad-light-blue-10, #e8f1fb);
3068
+ background-color: var( --randstad-blue-10, #e8f1fb );
3084
3069
  }
3085
3070
 
3086
3071
  /* Estilos para el día, mes y año de hoy */
3087
3072
  .day.today {
3088
- color: var(--primary-randstad-blue-70, #2175d9);
3073
+ color: var( --primary-color, #2175d9 );
3089
3074
  font-weight: 500;
3090
3075
  }
3091
3076
 
@@ -3097,40 +3082,40 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3097
3082
  right: 0;
3098
3083
  width: 100%;
3099
3084
  height: 2px;
3100
- background-color: var(--primary-randstad-blue-70, #2175d9);
3085
+ background-color: var( --primary-color, #2175d9 );
3101
3086
  border-radius: 2px;
3102
3087
  }
3103
3088
 
3104
3089
  /* Estilos para el día seleccionado */
3105
3090
  .day.selected {
3106
- background-color: var(--primary-randstad-blue-70, #2175d9);
3091
+ background-color: var( --primary-color, #2175d9 );
3107
3092
  color: var(--secondary-white, #fff);
3108
3093
  font-weight: 500;
3109
3094
  }
3110
3095
 
3111
3096
  /* Estilos para el día seleccionado cuando se muestra en un mes o año diferente */
3112
3097
  .day.secondary-selected {
3113
- background-color: var(--secondary-randstad-dark-blue-10, #e7e8ec);
3114
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3098
+ background-color: var( --secondary-color-10, #e7e8ec );
3099
+ color: var( --secondary-dark-blue-80, #3c4257 );
3115
3100
  font-weight: 500;
3116
- border: 1px solid var(--secondary-randstad-dark-blue-10, #e7e8ec);
3101
+ border: 1px solid var( --secondary-color-10, #e7e8ec );
3117
3102
  }
3118
3103
 
3119
3104
  /* Grillas para selección de año y mes */
3120
3105
  .year-grid,
3121
3106
  .month-grid {
3122
3107
  display: grid;
3123
- grid-template-columns: repeat(3, 1fr);
3108
+ grid-template-columns: repeat( 3, 1fr );
3124
3109
  gap: 8px;
3125
3110
  }
3126
3111
 
3127
3112
  /* Botones de año y mes en la grilla */
3128
3113
  .year-button,
3129
3114
  .month-button {
3130
- ${I}
3115
+ ${W}
3131
3116
  background: var(--secondary-white, #fff);
3132
3117
  border: 1px solid transparent;
3133
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3118
+ color: var( --secondary-dark-blue-80, #3c4257 );
3134
3119
  cursor: pointer;
3135
3120
  transition: background-color 0.2s, border-color 0.2s;
3136
3121
  border-radius: 9999px;
@@ -3144,23 +3129,23 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3144
3129
 
3145
3130
  .year-button:hover,
3146
3131
  .month-button:hover {
3147
- background-color: var(--secondary-randstad-light-blue-10, #e8f1fb);
3132
+ background-color: var( --randstad-blue-10, #e8f1fb );
3148
3133
  }
3149
3134
 
3150
3135
  /* Estilos para el año o mes seleccionado */
3151
3136
  .year-button.selected,
3152
3137
  .month-button.selected {
3153
- background-color: var(--primary-randstad-blue-70, #2175d9);
3138
+ background-color: var( --primary-color, #2175d9 );
3154
3139
  color: var(--secondary-white, #fff);
3155
- border: 1px solid var(--primary-randstad-blue-70, #2175d9);
3140
+ border: 1px solid var( --primary-color, #2175d9 );
3156
3141
  }
3157
3142
 
3158
3143
  /* Estilos para el mes seleccionado en otro año (estilo secundario) */
3159
3144
  .month-button.secondary-selected {
3160
- background-color: var(--secondary-randstad-dark-blue-10, #e7e8ec);
3161
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3145
+ background-color: var( --secondary-color-10, #e7e8ec );
3146
+ color: var( --secondary-dark-blue-80, #3c4257 );
3162
3147
  font-weight: 500;
3163
- border: 1px solid var(--secondary-randstad-dark-blue-10, #e7e8ec);
3148
+ border: 1px solid var( --secondary-color-10, #e7e8ec );
3164
3149
  }
3165
3150
 
3166
3151
  /* Estilos para el año y mes current */
@@ -3177,12 +3162,12 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3177
3162
  width: 100%;
3178
3163
  height: 2px;
3179
3164
  border-radius: 2px;
3180
- background-color: var(--primary-randstad-blue-70, #2175d9);
3165
+ background-color: var( --primary-color, #2175d9 );
3181
3166
  }
3182
3167
 
3183
3168
  /* Estilos para el botón de navegación deshabilitado */
3184
3169
  .nav-button[disabled] {
3185
- color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3170
+ color: var( --secondary-dark-blue-30, #b1b5c4 );
3186
3171
  pointer-events: none;
3187
3172
  }
3188
3173
 
@@ -3192,7 +3177,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3192
3177
 
3193
3178
  /* Estilos para el botón de día deshabilitado */
3194
3179
  .day[disabled] {
3195
- color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3180
+ color: var( --secondary-dark-blue-30, #b1b5c4 );
3196
3181
  pointer-events: none;
3197
3182
  background-color: transparent;
3198
3183
  }
@@ -3204,7 +3189,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3204
3189
  /* Estilos para los botones de año y mes deshabilitados */
3205
3190
  .year-button[disabled],
3206
3191
  .month-button[disabled] {
3207
- color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3192
+ color: var( --secondary-dark-blue-30, #b1b5c4 );
3208
3193
  pointer-events: none;
3209
3194
  background-color: transparent;
3210
3195
  }
@@ -3218,7 +3203,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3218
3203
  .mobile-backdrop {
3219
3204
  position: fixed;
3220
3205
  inset: 0;
3221
- background-color: rgba(0, 0, 0, 0.4);
3206
+ background-color: rgba( 0, 0, 0, 0.4 );
3222
3207
  z-index: 999;
3223
3208
  font-family: Graphik;
3224
3209
  }
@@ -3231,7 +3216,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3231
3216
  background-color: white;
3232
3217
  z-index: 1000;
3233
3218
  border-radius: 12px 12px 0 0;
3234
- box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
3219
+ box-shadow: 0 -4px 10px rgba( 0, 0, 0, 0.15 );
3235
3220
  display: flex;
3236
3221
  flex-direction: column;
3237
3222
  padding: 24px 16px;
@@ -3243,10 +3228,10 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3243
3228
 
3244
3229
  @keyframes slideUp {
3245
3230
  from {
3246
- transform: translateY(100%);
3231
+ transform: translateY( 100% );
3247
3232
  }
3248
3233
  to {
3249
- transform: translateY(0);
3234
+ transform: translateY( 0 );
3250
3235
  }
3251
3236
  }
3252
3237
 
@@ -3270,7 +3255,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3270
3255
 
3271
3256
  .mobile-modal .days-grid {
3272
3257
  gap: 8px;
3273
- grid-template-columns: repeat(7, 1fr);
3258
+ grid-template-columns: repeat( 7, 1fr );
3274
3259
  place-items: center;
3275
3260
  }
3276
3261
 
@@ -3281,7 +3266,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3281
3266
  }
3282
3267
 
3283
3268
  .mobile-modal .day {
3284
- ${N}
3269
+ ${z}
3285
3270
  font-weight: 500;
3286
3271
  display: flex;
3287
3272
  align-items: center;
@@ -3292,19 +3277,19 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3292
3277
  cursor: pointer;
3293
3278
  background-color: transparent;
3294
3279
  border: none;
3295
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3280
+ color: var( --secondary-dark-blue-80, #3c4257 );
3296
3281
  position: relative;
3297
3282
  }
3298
3283
 
3299
3284
  .mobile-modal .day.selected {
3300
- background-color: var(--primary-randstad-blue-70, #2175d9);
3301
- color: var(--secondary-white, #fff);
3285
+ background-color: var( --primary-color, #2175d9 );
3286
+ color: var( --white, #fff );
3302
3287
  font-weight: 500;
3303
3288
  border-radius: 50%;
3304
3289
  }
3305
3290
 
3306
3291
  .mobile-modal .day.today {
3307
- color: var(--primary-randstad-blue-70, #2175d9);
3292
+ color: var( --primary-color, #2175d9 );
3308
3293
  font-weight: 500;
3309
3294
  }
3310
3295
 
@@ -3314,15 +3299,15 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3314
3299
  bottom: 0;
3315
3300
  width: 40px;
3316
3301
  left: 50%;
3317
- transform: translateX(-50%);
3302
+ transform: translateX( -50% );
3318
3303
  height: 2px;
3319
- background-color: var(--primary-randstad-blue-70, #2175d9);
3304
+ background-color: var( --primary-color, #2175d9 );
3320
3305
  border-radius: 2px;
3321
3306
  }
3322
3307
 
3323
3308
  .mobile-modal .year-grid,
3324
3309
  .mobile-modal .month-grid {
3325
- grid-template-columns: repeat(3, 1fr);
3310
+ grid-template-columns: repeat( 3, 1fr );
3326
3311
  gap: 8px;
3327
3312
  }
3328
3313
 
@@ -3337,23 +3322,23 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3337
3322
 
3338
3323
  .mobile-modal .day.secondary-selected,
3339
3324
  .mobile-modal .month-button.secondary-selected {
3340
- background-color: var(--secondary-randstad-dark-blue-10, #e7e8ec);
3341
- color: var(--secondary-randstad-dark-blue-80, #3c4257);
3325
+ background-color: var( --secondary-color-10, #e7e8ec );
3326
+ color: var( --secondary-dark-blue-80, #3c4257 );
3342
3327
  font-weight: 500;
3343
- border: 1px solid var(--secondary-randstad-dark-blue-10, #e7e8ec);
3328
+ border: 1px solid var( --secondary-color-10, #e7e8ec ) ;
3344
3329
  }
3345
3330
 
3346
3331
  /* Estilos para elementos deshabilitados dentro del modal de móviles. */
3347
3332
  .mobile-modal .day[disabled],
3348
3333
  .mobile-modal .month-button[disabled],
3349
3334
  .mobile-modal .year-button[disabled] {
3350
- color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3335
+ color: var( --secondary-dark-blue-30, #b1b5c4 );
3351
3336
  pointer-events: none;
3352
3337
  background-color: transparent;
3353
3338
  }
3354
3339
 
3355
3340
  .mobile-modal .nav-button[disabled] {
3356
- color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3341
+ color: var( --secondary-dark-blue-30, #b1b5c4 );
3357
3342
  pointer-events: none;
3358
3343
  background-color: transparent;
3359
3344
  }
@@ -3361,10 +3346,25 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3361
3346
  /* Evitamos que el estilo 'today' o 'current' se aplique si el elemento está deshabilitado */
3362
3347
  .mobile-modal .day.today[disabled]::after,
3363
3348
  .mobile-modal .nav-button[disabled] randstad-icon {
3364
- color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3349
+ color: var( --secondary-dark-blue-30, #b1b5c4 );
3365
3350
  }
3366
3351
  /* */
3367
- `]}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?de(this.viewDate,t):"months"===this.currentView?ve(this.viewDate,t):ve(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const r=le(t,i?.in);return isNaN(+r)?ne(t,NaN):(r.setFullYear(e),r)}(this.viewDate,t);this._updateView(e,"months")}handleMonthSelect(t){const e=function(t,e,i){const r=le(t,i?.in),o=r.getFullYear(),s=r.getDate(),a=ne(t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);const n=si(a);return r.setMonth(e,Math.min(s,n)),r}(this.viewDate,t);this._updateView(e,"days")}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}renderHeader(){const t=this.getFullMonthNames();let i="",r=!1,o=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;r=t<=(this.minDate?this.minDate.getFullYear():-1/0),o=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();r=t<=(this.minDate?this.minDate.getFullYear():-1/0),o=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=`${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()}`,this.minDate&&(r=li(xe(this.viewDate),xe(this.minDate))||ni(this.viewDate,this.minDate)),this.maxDate&&(o=li(xe(this.viewDate),xe(this.maxDate))||ai(this.viewDate,this.maxDate))}const s=e`
3352
+
3353
+ /* Focus Buttons */
3354
+ .day:focus-visible {
3355
+ border-radius: 50%;
3356
+ }
3357
+
3358
+ .month-year-button:focus-visible {
3359
+ border-radius: 16px;
3360
+ }
3361
+
3362
+ .year-button:focus-visible,
3363
+ .month-button:focus-visible {
3364
+ border-radius: 9999px;
3365
+ }
3366
+ /* */
3367
+ `]}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this.handleCalendarKeydown.bind(this))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?xt(this.viewDate,t):"months"===this.currentView?Ot(this.viewDate,t):Ot(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=wt(t,i?.in);return isNaN(+o)?ft(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=wt(t,i?.in),r=o.getFullYear(),s=o.getDate(),n=ft(t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);const a=ye(n);return o.setMonth(e,Math.min(s,a)),o}(this.viewDate,t);this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const s=i[r];s&&s.focus()}_focusDayOfWeekEdge(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;if(-1===Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===e)))return;const i=Array.from(this.shadowRoot.querySelectorAll(".days-grid > *")).findIndex((t=>t===e));if(-1===i)return;const o=i%7;let r=null;if("start"===t){const t=i-o;r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e<=i;)e++,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}else{const t=i+(6-o);r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e>=i;)e--,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}r?.focus()}handleCalendarKeydown(t){const{key:e}=t,i=this.shadowRoot?.activeElement;if("Escape"===e)return t.preventDefault(),void this.dispatchEvent(new CustomEvent("close"));if(i&&(i.classList.contains("month-year-button")||i.classList.contains("nav-button"))){t.preventDefault();const o=this.shadowRoot?.querySelector(".month-year-button"),r=this.shadowRoot?.querySelector(".header-right button:first-child"),s=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===s&&this.handleNavClick(1),void this.updateComplete.then((()=>i.focus()));switch(e){case"ArrowUp":return t.preventDefault(),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));case"ArrowRight":(i===o||i===r)&&s?.focus();break;case"ArrowLeft":i===s?r?.focus():i===r&&o?.focus();break;case"ArrowDown":if("days"===this.currentView){const t=this.initialFocusElement||this.shadowRoot?.querySelector(".day:not([disabled])");t?.focus()}else if("months"===this.currentView||"years"===this.currentView){const t=this.shadowRoot?.querySelector(`.${"months"===this.currentView?"month":"year"}-grid button:not([disabled])`);t?.focus()}}}else if(i&&i.classList.contains("day")&&"days"===this.currentView){t.preventDefault();const o=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===i)),r=this.shadowRoot?.querySelector(".month-year-button");switch(e){case"ArrowLeft":this._findAndFocusDayButton(-1);break;case"ArrowRight":this._findAndFocusDayButton(1);break;case"ArrowDown":this._findAndFocusDayButton(7);break;case"ArrowUp":o-7<0?r?.focus():this._findAndFocusDayButton(-7);break;case"Home":this._focusDayOfWeekEdge("start");break;case"End":this._focusDayOfWeekEdge("end");break;case"Enter":i.click()}}else if(i&&(i.classList.contains("month-button")||i.classList.contains("year-button"))){t.preventDefault();const o="months"===this.currentView?".month-button:not([disabled])":".year-button:not([disabled])",r=Array.from(this.shadowRoot.querySelectorAll(o)),s=r.findIndex((t=>t===i)),n=this.shadowRoot?.querySelector(".month-year-button");if(-1===s)return;let a=s;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void n?.focus();break;case"ArrowLeft":a-=1,a<0&&(a=0);break;case"ArrowRight":a+=1,a>=r.length&&(a=r.length-1);break;case"Enter":i.click()}a!==s&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault()}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=we(Tt(this.viewDate),Tt(this.minDate))||fe(this.viewDate,this.minDate)),this.maxDate&&(r=we(Tt(this.viewDate),Tt(this.maxDate))||ve(this.viewDate,this.maxDate))}const s="months"===this.currentView,n=e`
3368
3368
  <randstad-icon
3369
3369
  name="${"days"===this.currentView?"arrow_drop_down":"arrow_drop_up"}"
3370
3370
  class="select-icon"
@@ -3376,37 +3376,45 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3376
3376
  <button class="month-year-button" @click=${this.handleHeaderClick}>
3377
3377
  <span>${i}</span>
3378
3378
 
3379
- ${s}
3379
+ ${n}
3380
3380
  </button>
3381
3381
  </div>
3382
3382
 
3383
3383
  <div class="header-right">
3384
- <button class="nav-button" @click=${()=>this.handleNavClick(-1)} ?disabled=${r}>
3384
+ <button
3385
+ class="nav-button"
3386
+ @click=${()=>this.handleNavClick(-1)}
3387
+ ?disabled=${o||s}
3388
+ >
3385
3389
  <randstad-icon name="arrow_left"></randstad-icon>
3386
3390
  </button>
3387
3391
 
3388
- <button class="nav-button" @click=${()=>this.handleNavClick(1)} ?disabled=${o}>
3392
+ <button
3393
+ class="nav-button"
3394
+ @click=${()=>this.handleNavClick(1)}
3395
+ ?disabled=${r||s}
3396
+ >
3389
3397
  <randstad-icon name="arrow_right"></randstad-icon>
3390
3398
  </button>
3391
3399
  </div>
3392
3400
  </div>
3393
- `}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((e,i)=>t+i)),r=this.selectedDate?this.selectedDate.getFullYear():null,o=(new Date).getFullYear(),s=this.minDate?this.minDate.getFullYear():-1/0,a=this.maxDate?this.maxDate.getFullYear():1/0;return e`
3401
+ `}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((e,i)=>t+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),s=this.minDate?this.minDate.getFullYear():-1/0,n=this.maxDate?this.maxDate.getFullYear():1/0;return e`
3394
3402
  <div class="year-grid">
3395
3403
  ${i.map((t=>e`
3396
3404
  <button
3397
- class="${"year-button "+(t===r?"selected":t===o?"current":"")}"
3405
+ class="${` year-button ${t===o?"selected":t===r?"current":""} `}"
3398
3406
  @click=${()=>this.handleYearSelect(t)}
3399
- ?disabled=${t<s||t>a}
3407
+ ?disabled=${t<s||t>n}
3400
3408
  >
3401
3409
  ${t}
3402
3410
  </button>
3403
3411
  `))}
3404
3412
  </div>
3405
- `}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),r=(new Date).getMonth(),o=this.viewDate.getFullYear();return e`
3413
+ `}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return e`
3406
3414
  <div class="month-grid">
3407
- ${t.map(((t,s)=>{const a=s===r,n=s===i&&this.selectedDate&&di(this.viewDate,this.selectedDate),l=s===i&&this.selectedDate&&!di(this.viewDate,this.selectedDate);let d=!1;this.minDate&&o===this.minDate.getFullYear()&&(d=s<this.minDate.getMonth()),this.maxDate&&o===this.maxDate.getFullYear()&&(d=d||s>this.maxDate.getMonth());return e`
3415
+ ${t.map(((t,s)=>{const n=s===o,a=s===i&&this.selectedDate&&xe(this.viewDate,this.selectedDate),l=s===i&&this.selectedDate&&!xe(this.viewDate,this.selectedDate);let d=!1;this.minDate&&r===this.minDate.getFullYear()&&(d=s<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||s>this.maxDate.getMonth());return e`
3408
3416
  <button
3409
- class="${"month-button "+(n?"selected":l?"secondary-selected":a?"current":"")}"
3417
+ class="${"month-button "+(a?"selected":l?"secondary-selected":n?"current":"")}"
3410
3418
  ?disabled=${d}
3411
3419
  @click=${()=>this.handleMonthSelect(s)}
3412
3420
  >
@@ -3414,24 +3422,24 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3414
3422
  </button>
3415
3423
  `}))}
3416
3424
  </div>
3417
- `}renderDayView(){const t=si(this.viewDate),i=xe(this.viewDate),r=le(i,o?.in).getDay();var o;const s=Array.from({length:0===r?6:r-1},(()=>null)),a=Array.from({length:t},((t,e)=>function(t,e,i){const r=le(t,i?.in);return r.setDate(e),r}(i,e+1))),n=this.getShortWeekdays();return e`
3425
+ `}renderDayView(){const t=ye(this.viewDate),i=Tt(this.viewDate),o=wt(i,r?.in).getDay();var r;const s=Array.from({length:0===o?6:o-1},(()=>null)),n=Array.from({length:t},((t,e)=>function(t,e,i){const o=wt(t,i?.in);return o.setDate(e),o}(i,e+1))),a=this.getShortWeekdays();return e`
3418
3426
  <div class="weekdays">
3419
- ${n.map((t=>e`<div>${t}</div>`))}
3427
+ ${a.map((t=>e`<div>${t}</div>`))}
3420
3428
  </div>
3421
3429
 
3422
3430
  <div class="days-grid">
3423
3431
  ${s.map((()=>e`<div></div>`))}
3424
- ${a.map((t=>{const i=ye(t),r=this.selectedDate?ye(this.selectedDate):null,o=this.minDate&&ni(i,ye(this.minDate))||this.maxDate&&ai(i,ye(this.maxDate)),s=ci(i),a=r&&oi(i)===oi(r),n=a&&r&&li(i,r)&&di(i,r);return e`
3432
+ ${n.map((t=>{const i=Ft(t),o=this.selectedDate?Ft(this.selectedDate):null,r=this.minDate&&fe(i,Ft(this.minDate))||this.maxDate&&ve(i,Ft(this.maxDate)),s=ke(i),n=o&&me(i)===me(o),a=n&&o&&we(i,o)&&xe(i,o);return e`
3425
3433
  <button
3426
- class="${`day ${s?"today":""} ${n?"selected":a&&!n?"secondary-selected":""}`}"
3427
- ?disabled=${o}
3434
+ class="${`day ${s?"today":""} ${a?"selected":n&&!a?"secondary-selected":""}`}"
3435
+ ?disabled=${r}
3428
3436
  @click=${()=>this.handleDayClick(t)}
3429
3437
  >
3430
- ${ii(t,"d")}
3438
+ ${ge(t,"d")}
3431
3439
  </button>
3432
3440
  `}))}
3433
3441
  </div>
3434
- `}render(){let t;t="days"===this.currentView?this.renderDayView():"months"===this.currentView?this.renderMonthsView():this.renderYearsView();const i=e`${this.renderHeader()} <div class="weekdays-separator"></div> ${t}`;return this.isMobile?e`
3442
+ `}render(){let t;t="days"===this.currentView?this.renderDayView():"months"===this.currentView?this.renderMonthsView():this.renderYearsView();const i=e` ${this.renderHeader()} <div class="weekdays-separator"></div> ${t} `;return this.isMobile?e`
3435
3443
  <div
3436
3444
  class="mobile-backdrop"
3437
3445
  @click=${()=>this.dispatchEvent(new CustomEvent("close"))}
@@ -3444,10 +3452,10 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3444
3452
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3445
3453
  ${i}
3446
3454
  </div>
3447
- `}};a([L({type:Object}),n("design:type",Object)],hi.prototype,"selectedDate",void 0),a([L({type:Object}),n("design:type",Date)],hi.prototype,"viewDate",void 0),a([L({type:Boolean}),n("design:type",Object)],hi.prototype,"isMobile",void 0),a([L({type:Number}),n("design:type",Number)],hi.prototype,"calendarWidth",void 0),a([L({type:Object}),n("design:type",Object)],hi.prototype,"minDate",void 0),a([L({type:Object}),n("design:type",Object)],hi.prototype,"maxDate",void 0),a([B(),n("design:type",String)],hi.prototype,"currentView",void 0),hi=a([l("calendar-overlay")],hi);let pi=class extends A{constructor(){super(...arguments),this.isRenderClearButton=!0,this.eighteenOrOlder=!1,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=r`
3448
- ${K}
3449
- ${Q}
3455
+ `}};s([T({type:Object}),n("design:type",Object)],$e.prototype,"selectedDate",void 0),s([T({type:Object}),n("design:type",Date)],$e.prototype,"viewDate",void 0),s([T({type:Boolean}),n("design:type",Object)],$e.prototype,"isMobile",void 0),s([T({type:Number}),n("design:type",Number)],$e.prototype,"calendarWidth",void 0),s([T({type:Object}),n("design:type",Object)],$e.prototype,"minDate",void 0),s([T({type:Object}),n("design:type",Object)],$e.prototype,"maxDate",void 0),s([L(),n("design:type",String)],$e.prototype,"currentView",void 0),s([P(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],$e.prototype,"initialFocusElement",void 0),$e=s([a("calendar-overlay")],$e);let Se=class extends j{constructor(){super(...arguments),this.isRenderClearButton=!0,this.eighteenOrOlder=!1,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=o`
3450
3456
  ${X}
3457
+ ${Q}
3458
+ ${G}
3451
3459
 
3452
3460
  /* Si se proporciona una propiedad width (ej. width="600px"), se usa ese valor. */
3453
3461
  :host {
@@ -3473,7 +3481,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3473
3481
 
3474
3482
  /* Estilos para el estado disabled */
3475
3483
  .input-wrapper.disabled, .input-wrapper.disabled .date-input {
3476
- background-color: var(--secondary-color-10);
3484
+ background-color: var( --secondary-color-10 ) ;
3477
3485
  color: #9FA3B3;
3478
3486
  cursor: default;
3479
3487
  }
@@ -3488,7 +3496,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3488
3496
  .input-wrapper {
3489
3497
  display: flex;
3490
3498
  align-items: center;
3491
- border: 1px solid var(--md-sys-color-outline, #e0e0e0);
3499
+ border: 1px solid var( --md-sys-color-outline, #e0e0e0 );
3492
3500
  border-radius: 4px;
3493
3501
  padding: 0 16px;
3494
3502
  transition: border-color 0.2s;
@@ -3507,12 +3515,12 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3507
3515
  }
3508
3516
 
3509
3517
  .input-wrapper.active {
3510
- border: 1px solid var(--primary-color);
3518
+ border: 1px solid var( --primary-color );
3511
3519
  box-shadow: none;
3512
3520
  }
3513
3521
 
3514
3522
  .date-input {
3515
- ${N}
3523
+ ${z}
3516
3524
  flex-grow: 1;
3517
3525
  border: none;
3518
3526
  outline: none;
@@ -3551,25 +3559,27 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3551
3559
  .calendar-button randstad-icon {
3552
3560
  font-size: 18px;
3553
3561
  }
3554
- `}setMessageErrorFormatInvalid(){return"formato de fecha inválido, se esperaba 'dd-MM-yyyy'"}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(t){t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")&&this._syncValue(this.value),(t.has("isOpen")||t.has("value"))&&this.setInitialWidth(),super.updated(t)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){const e=t.target;this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){this.disabled||(t.stopPropagation(),this.isOpen=!this.isOpen,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate())}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){const e=t.detail.date;if(!e)return;if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=ii(e,"dd-MM-yyyy");this.inputValue=t,this.closeOverlay(t)}else{const t=ii(e,"dd-MM-yyyy");this.inputValue=t,this.selectedDate=null,this.closeOverlay(null)}}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1}_syncValue(t){if(""===t||null===t)return void(this.error||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null));const e=this._parseDate(t);e&&this._validateDate(e)?(this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.value=ii(e,"dd-MM-yyyy"),this.inputValue=this.value):this.selectedDate=e}_validateDate(t){if(!t)return!1;if(this.error=!1,this.errorMessage=null,this.eighteenOrOlder){const e=function(t,e,i){return ve(t,-18,i)}(new Date);if(ai(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}if(!this._isWithinBounds(t)){const t=this._getValidDateRange();return this.error=!0,this.errorMessage=`la fecha debe estar entre ${t?.minDate?ii(t.minDate,"dd-MM-yyyy"):""} y ${t?.maxDate?ii(t.maxDate,"dd-MM-yyyy"):""}.`,!1}return!0}_parseAndValidateDate(t,e){if(this.disabled)return;if(""===t||null===t)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(e&&this.closeOverlay(null));const i=this._parseDate(t);if(i){this._validateDate(i)?(this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,e&&this.closeOverlay(ii(i,"dd-MM-yyyy"))):(this.error=!0,this.selectedDate=null,e&&this.closeOverlay(null))}else this.error=!0,this.errorMessage=this.setMessageErrorFormatInvalid(),this.selectedDate=null,e&&this.closeOverlay(null)}_parseDate(t){const e=t.split("-").map(Number);if(3===e.length){const[i,r,o]=e;if(i&&r&&o&&r>=1&&r<=12&&o>1e3){const e=new Date(o,r-1,i,12);if(fe(e)&&ii(e,"dd-MM-yyyy")===t)return e}}const i=t.split("-").map(Number);if(3===i.length){const[e,r,o]=i;if(e&&r&&o&&r>=1&&r<=12&&e>1e3){const i=new Date(e,r-1,o,12);if(fe(i)&&ii(i,"yyyy-MM-dd")===t)return i}}return null}_parseDateString(t){if(!t)return null;const e=t.split("-").map(Number);if(3===e.length&&!isNaN(e[0])&&!isNaN(e[1])&&!isNaN(e[2])){return new Date(e[0],e[1]-1,e[2],12)}return null}_getValidDateRange(){const t=this._parseDateString(this.minDate),e=this._parseDateString(this.maxDate);return t||e?t&&e&&ai(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!ni(t,e.minDate))&&(!e.maxDate||!ai(t,e.maxDate))}render(){const t=s({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled}),r=this._getValidDateRange();return e`
3562
+ `}setMessageErrorFormatInvalid(){return"formato de fecha inválido, se esperaba 'dd-MM-yyyy'"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(t){t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")&&this._syncValue(this.value),(t.has("isOpen")||t.has("value"))&&this.setInitialWidth(),super.updated(t)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){const e=t.target;this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1;const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate(),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){const e=t.detail.date;if(!e)return;if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=ge(e,"dd-MM-yyyy");this.inputValue=t,this.closeOverlay(t)}else{const t=ge(e,"dd-MM-yyyy");this.inputValue=t,this.selectedDate=null,this.closeOverlay(null)}}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1;const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(this.error||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null));const e=this._parseDate(t);e&&this._validateDate(e)?(this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.value=ge(e,"dd-MM-yyyy"),this.inputValue=this.value):this.selectedDate=e}_validateDate(t){if(!t)return!1;if(this.error=!1,this.errorMessage=null,this.eighteenOrOlder){const e=function(t,e,i){return Ot(t,-18,i)}(new Date);if(ve(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}if(!this._isWithinBounds(t)){const t=this._getValidDateRange();return this.error=!0,this.errorMessage=`la fecha debe estar entre ${t?.minDate?ge(t.minDate,"dd-MM-yyyy"):""} y ${t?.maxDate?ge(t.maxDate,"dd-MM-yyyy"):""}.`,!1}return!0}_parseAndValidateDate(t,e){if(this.disabled)return;if(""===t||null===t)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(e&&this.closeOverlay(null));const i=this._parseDate(t);if(i){this._validateDate(i)?(this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,e&&this.closeOverlay(ge(i,"dd-MM-yyyy"))):(this.error=!0,this.selectedDate=null,e&&this.closeOverlay(null))}else this.error=!0,this.errorMessage=this.setMessageErrorFormatInvalid(),this.selectedDate=null,e&&this.closeOverlay(null)}_parseDate(t){const e=t.split("-").map(Number);if(3===e.length){const[i,o,r]=e;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const e=new Date(r,o-1,i,12);if(Bt(e)&&ge(e,"dd-MM-yyyy")===t)return e}}const i=t.split("-").map(Number);if(3===i.length){const[e,o,r]=i;if(e&&o&&r&&o>=1&&o<=12&&e>1e3){const i=new Date(e,o-1,r,12);if(Bt(i)&&ge(i,"yyyy-MM-dd")===t)return i}}return null}_parseDateString(t){if(!t)return null;const e=t.split("-").map(Number);if(3===e.length&&!isNaN(e[0])&&!isNaN(e[1])&&!isNaN(e[2])){return new Date(e[0],e[1]-1,e[2],12)}return null}_getValidDateRange(){const t=this._parseDateString(this.minDate),e=this._parseDateString(this.maxDate);return t||e?t&&e&&ve(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!fe(t,e.minDate))&&(!e.maxDate||!ve(t,e.maxDate))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input");if("Enter"===e||" "===e)t.preventDefault(),this.isOpen?this.closeOverlay(this.value):(this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate());else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate()),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusCalendar&&t.focusCalendar()})));const o=this.shadowRoot?.querySelector(".clear-button"),r=this.shadowRoot?.querySelector(".calendar-button");"ArrowRight"===e&&(t.preventDefault(),this.shadowRoot?.activeElement===i&&(o?o.focus():r?.focus()))}handleClearButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".calendar-button");"ArrowLeft"===e?(t.preventDefault(),i?.focus()):"ArrowRight"===e&&(t.preventDefault(),o?.focus())}handleCalendarButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".clear-button");"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled}),o=this._getValidDateRange();return e`
3555
3563
  <div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
3556
3564
  ${this.renderLabelContainer()}
3557
3565
 
3558
3566
  <div class="input-container">
3559
3567
  <div class="${t}">
3560
3568
  <input
3561
- type="text"
3562
- class="date-input"
3563
- .value="${this.inputValue??""}"
3564
- placeholder="${this.placeholder}"
3565
- ?disabled=${this.disabled}
3566
- @input=${this.handleInput}
3569
+ type="text"
3570
+ class="date-input"
3571
+ .value="${this.inputValue??""}"
3572
+ placeholder="${this.placeholder}"
3573
+ ?disabled=${this.disabled}
3574
+ @input=${this.handleInput}
3575
+ @keydown=${this.handleKeyDown}
3567
3576
  />
3568
3577
 
3569
3578
  ${this.isRenderClearButton&&this.selectedDate&&!this.disabled?e`
3570
3579
  <button
3571
3580
  class="icon-button clear-button"
3572
3581
  @click=${this.handleClearDate}
3582
+ @keydown=${this.handleClearButtonKeydown}
3573
3583
  >
3574
3584
  <randstad-icon name="close"></randstad-icon>
3575
3585
  </button>
@@ -3578,6 +3588,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3578
3588
  <button
3579
3589
  class="icon-button calendar-button"
3580
3590
  @click=${this.handleCalendarButtonClick}
3591
+ @keydown=${this.handleCalendarButtonKeydown}
3581
3592
  >
3582
3593
  <randstad-icon name="calendar"></randstad-icon>
3583
3594
  </button>
@@ -3589,8 +3600,8 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3589
3600
  .selectedDate=${this.selectedDate}
3590
3601
  .viewDate=${this.viewDate}
3591
3602
  .calendarWidth=${this.calendarWidth}
3592
- .minDate=${r?.minDate}
3593
- .maxDate=${r?.maxDate}
3603
+ .minDate=${o?.minDate}
3604
+ .maxDate=${o?.maxDate}
3594
3605
  @close=${()=>this.isOpen=!1}
3595
3606
  @view-date-change=${this.handleViewDateChange}
3596
3607
  @date-selected=${this.handleDateSelect}
@@ -3603,11 +3614,11 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3603
3614
 
3604
3615
  ${this.renderHelper()}
3605
3616
  </div>
3606
- `}};a([L({type:String}),n("design:type",String)],pi.prototype,"width",void 0),a([L({type:Boolean}),n("design:type",Object)],pi.prototype,"isRenderClearButton",void 0),a([L({type:String}),n("design:type",String)],pi.prototype,"minDate",void 0),a([L({type:String}),n("design:type",String)],pi.prototype,"maxDate",void 0),a([L({type:Boolean}),n("design:type",Object)],pi.prototype,"eighteenOrOlder",void 0),a([B(),n("design:type",Object)],pi.prototype,"isOpen",void 0),a([B(),n("design:type",Object)],pi.prototype,"selectedDate",void 0),a([B(),n("design:type",Date)],pi.prototype,"viewDate",void 0),a([B(),n("design:type",Object)],pi.prototype,"isMobile",void 0),a([B(),n("design:type",Number)],pi.prototype,"calendarWidth",void 0),a([B(),n("design:type",Object)],pi.prototype,"inputValue",void 0),a([j(".input-container"),n("design:type",HTMLDivElement)],pi.prototype,"inputContainer",void 0),pi=a([l("datepicker-component")],pi);let ui=class extends te{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo"}static{this.styles=r`
3607
- ${K}
3608
- ${Q}
3617
+ `}};s([T({type:String}),n("design:type",String)],Se.prototype,"width",void 0),s([T({type:Boolean}),n("design:type",Object)],Se.prototype,"isRenderClearButton",void 0),s([T({type:String}),n("design:type",String)],Se.prototype,"minDate",void 0),s([T({type:String}),n("design:type",String)],Se.prototype,"maxDate",void 0),s([T({type:Boolean}),n("design:type",Object)],Se.prototype,"eighteenOrOlder",void 0),s([L(),n("design:type",Object)],Se.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],Se.prototype,"selectedDate",void 0),s([L(),n("design:type",Date)],Se.prototype,"viewDate",void 0),s([L(),n("design:type",Object)],Se.prototype,"isMobile",void 0),s([L(),n("design:type",Number)],Se.prototype,"calendarWidth",void 0),s([L(),n("design:type",Object)],Se.prototype,"inputValue",void 0),s([P(".input-container"),n("design:type",HTMLDivElement)],Se.prototype,"inputContainer",void 0),Se=s([a("datepicker-component")],Se);let De=class extends pt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo"}static{this.styles=o`
3609
3618
  ${X}
3610
- ${re}
3619
+ ${Q}
3620
+ ${G}
3621
+ ${bt}
3611
3622
 
3612
3623
  :host([width]) {
3613
3624
  width: var( --upload-file-width );
@@ -3646,7 +3657,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3646
3657
  }
3647
3658
 
3648
3659
  .file-name {
3649
- ${I};
3660
+ ${W};
3650
3661
  text-align: right;
3651
3662
  color: var( --secondary-color-40 );
3652
3663
  vertical-align: middle;
@@ -3664,11 +3675,11 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3664
3675
  .progress-bar {
3665
3676
  width: 100%;
3666
3677
  }
3667
- `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}MB`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ie)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}render(){const t=this.files.length>=this.maxFiles,r=this.disabled||t,o=e`
3678
+ `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,gt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
3668
3679
  <randstad-button
3669
3680
  .label=${this.buttonText}
3670
3681
  .variant=${"button-primary"}
3671
- ?disabled=${r}
3682
+ ?disabled=${o}
3672
3683
  @click=${()=>this.fileInput?.click()}
3673
3684
  >
3674
3685
  </randstad-button>
@@ -3676,13 +3687,13 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3676
3687
  <div class="file-container" style="${this.labelColor?`--label-color: ${this.labelColor};`:""}">
3677
3688
  ${this.renderLabelContainer()}
3678
3689
 
3679
- ${this.renderLoadingContainer(o)}
3690
+ ${this.renderLoadingContainer(r)}
3680
3691
 
3681
3692
  <input
3682
3693
  type="file"
3683
3694
  accept=${this.acceptedFileTypes.join(",")}
3684
- ?multiple=${this.maxFiles>1}
3685
- ?disabled=${r}
3695
+ ?multiple=${this.isMultiple}
3696
+ ?disabled=${o}
3686
3697
  @change="${this.onFileInputChange}"
3687
3698
  />
3688
3699
 
@@ -3711,7 +3722,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3711
3722
  </div>
3712
3723
  `:i}
3713
3724
  </div>
3714
- `}};a([L({type:String}),n("design:type",String)],ui.prototype,"width",void 0),a([L({type:Number}),n("design:type",Object)],ui.prototype,"maxFiles",void 0),a([L({type:Array}),n("design:type",Array)],ui.prototype,"acceptedFileTypes",void 0),a([L({type:Number}),n("design:type",Object)],ui.prototype,"maxFileSize",void 0),a([L({type:String}),n("design:type",Object)],ui.prototype,"buttonText",void 0),ui=a([l("upload-file")],ui);let gi=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=r`
3725
+ `}};s([T({type:String}),n("design:type",String)],De.prototype,"width",void 0),s([T({type:Number}),n("design:type",Object)],De.prototype,"maxFiles",void 0),s([T({type:Array}),n("design:type",Array)],De.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],De.prototype,"maxFileSize",void 0),s([T({type:String}),n("design:type",Object)],De.prototype,"buttonText",void 0),De=s([a("upload-file")],De);let Ee=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
3715
3726
  :host {
3716
3727
  display: block;
3717
3728
  width: 100%;
@@ -3988,10 +3999,10 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3988
3999
  padding-right: 0 !important;
3989
4000
  }
3990
4001
  }
3991
- `}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),r=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(r)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const r=this.getCardsToCenterCount();if(0===i.length||0===r)return-1;let o;o=t+5;let s,a=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=o){a=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===a&&t>e&&(a=i.length-r)}if(!e&&t<5)return 0;const n=i.length-r,l=2===r;if(e){s=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:a+1,s=Math.min(s,n)}else s=l&&a<=2?0:a-1,s=Math.max(0,s);return s}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const r=e[t],o=r.getBoundingClientRect().width;if(0===o)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),a=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),n=o*i+(parseFloat(a)||0)*(i-1);let l=r.offsetLeft+n/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,r=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(r,e)}else{const t=this.slider.scrollLeft;i=0;const r=this.getInitialPadding(),o=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?r:o;for(let r=e.length-1;r>=0;r--){const o=e[r];if(Math.round(o.offsetLeft-s)<Math.round(t)-1){i=o.offsetLeft-s;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let r;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);r=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;r=-1;const e=this.getInitialPadding(),o=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?e:o;for(let e=0;e<i.length;e++){const o=i[e];if(Math.round(o.offsetLeft-s)>Math.round(t)+1){r=o.offsetLeft-s;break}}if(-1===r){r=this.slider.scrollWidth-this.slider.clientWidth}}const o=this.slider.scrollWidth-this.slider.clientWidth,s=this.slider.scrollLeft;if(e&&Math.round(s)>=Math.round(o))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:r,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
4002
+ `}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let s,n=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){n=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===n&&t>e&&(n=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){s=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:n+1,s=Math.min(s,a)}else s=l&&n<=2?0:n-1,s=Math.max(0,s);return s}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),n=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),a=r*i+(parseFloat(n)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-s)<Math.round(t)-1){i=r.offsetLeft-s;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-s)>Math.round(t)+1){o=r.offsetLeft-s;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,s=this.slider.scrollLeft;if(e&&Math.round(s)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
3992
4003
  <div class="nav-buttons-container">
3993
4004
  <button
3994
- class=${s(t)}
4005
+ class=${r(t)}
3995
4006
  @click=${this.scrollToPrev}
3996
4007
  >
3997
4008
  <div class="nav-button-inner">
@@ -4000,7 +4011,7 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
4000
4011
  </button>
4001
4012
 
4002
4013
  <button
4003
- class=${s(i)}
4014
+ class=${r(i)}
4004
4015
  @click=${this.scrollToNext}
4005
4016
  >
4006
4017
  <div class="nav-button-inner">
@@ -4008,28 +4019,28 @@ const Yt=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
4008
4019
  </div>
4009
4020
  </button>
4010
4021
  </div>
4011
- `}renderContent(){const t=this.getCardCustomDimensionValue("width",this.cardWidth),i=this.getCardCustomDimensionValue("height",this.cardHeight);return this.cards&&this.cards.length>0?this.cards.map((r=>e`
4022
+ `}renderContent(){const t=this.getCardCustomDimensionValue("width",this.cardWidth),i=this.getCardCustomDimensionValue("height",this.cardHeight);return this.cards&&this.cards.length>0?this.cards.map((o=>e`
4012
4023
  <div class="carousel-card-item">
4013
4024
  <carousel-card
4014
- .img=${r.img}
4015
- .name=${r.name}
4016
- .title=${r.title}
4017
- .description=${r.description}
4018
- .buttonLabel=${r.buttonLabel}
4019
- .cardId=${r.cardId}
4025
+ .img=${o.img}
4026
+ .name=${o.name}
4027
+ .title=${o.title}
4028
+ .description=${o.description}
4029
+ .buttonLabel=${o.buttonLabel}
4030
+ .cardId=${o.cardId}
4020
4031
  .width=${t}
4021
4032
  .height=${i}
4022
- .onClick=${r.onClick}
4033
+ .onClick=${o.onClick}
4023
4034
  >
4024
4035
  </carousel-card>
4025
4036
  </div>
4026
- `)):e`<slot></slot>`}render(){const t=!1!==this.showNavButtons,i=!1===this.isInfiniteScrollPartial,r={"carousel-wrapper":!0,"drag-mode":!t,"dynamic-width-mode":this.isDynamicWidth,"static-width-mode":!this.isDynamicWidth,"not-ininite-scroll-partial":i};return e`
4037
+ `)):e`<slot></slot>`}render(){const t=!1!==this.showNavButtons,i=!1===this.isInfiniteScrollPartial,o={"carousel-wrapper":!0,"drag-mode":!t,"dynamic-width-mode":this.isDynamicWidth,"static-width-mode":!this.isDynamicWidth,"not-ininite-scroll-partial":i};return e`
4027
4038
  <div class="carousel-container">
4028
- <div class=${s(r)}>
4039
+ <div class=${r(o)}>
4029
4040
  ${this.renderContent()}
4030
4041
  </div>
4031
4042
 
4032
4043
  ${this.renderNavButtons()}
4033
4044
  </div>
4034
- `}};a([L({type:Array}),n("design:type",Array)],gi.prototype,"cards",void 0),a([L({type:String}),n("design:type",String)],gi.prototype,"cardWidth",void 0),a([L({type:String}),n("design:type",String)],gi.prototype,"cardHeight",void 0),a([L({type:Number}),n("design:type",Number)],gi.prototype,"navWidth",void 0),a([L({type:Boolean}),n("design:type",Boolean)],gi.prototype,"showNavButtons",void 0),a([L({type:Boolean}),n("design:type",Boolean)],gi.prototype,"isDynamicWidth",void 0),a([L({type:Boolean}),n("design:type",Boolean)],gi.prototype,"isInfiniteScrollPartial",void 0),a([L({type:Number}),n("design:type",Number)],gi.prototype,"autoPlayDelayMs",void 0),a([B(),n("design:type",Object)],gi.prototype,"showPrevButton",void 0),a([B(),n("design:type",Object)],gi.prototype,"showNextButton",void 0),a([j(".carousel-wrapper"),n("design:type",HTMLElement)],gi.prototype,"slider",void 0),a([j("slot"),n("design:type",HTMLSlotElement)],gi.prototype,"slotElement",void 0),gi=a([l("carousel-component"),n("design:paramtypes",[])],gi);export{q as AccordionList,U as AccordionPanel,A as BaseControl,hi as CalendarOverlay,gi as Carousel,H as CarouselCard,G as Checkbox,rt as CustomModal,ot as CustomPopup,Gt as CustomRadio,Jt as CustomStepper,pi as DatePickerComponent,Xt as FilterableSelect,tt as FormGroup,et as IconComponent,st as ProgressCircle,Y as RandstadButton,Z as RandstadForm,it as RandstadNotice,Zt as TabsBar,ui as UploadFile,oe as UploadImage,J as scrollbarStyles};
4045
+ `}};s([T({type:Array}),n("design:type",Array)],Ee.prototype,"cards",void 0),s([T({type:String}),n("design:type",String)],Ee.prototype,"cardWidth",void 0),s([T({type:String}),n("design:type",String)],Ee.prototype,"cardHeight",void 0),s([T({type:Number}),n("design:type",Number)],Ee.prototype,"navWidth",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"showNavButtons",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"isDynamicWidth",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"isInfiniteScrollPartial",void 0),s([T({type:Number}),n("design:type",Number)],Ee.prototype,"autoPlayDelayMs",void 0),s([L(),n("design:type",Object)],Ee.prototype,"showPrevButton",void 0),s([L(),n("design:type",Object)],Ee.prototype,"showNextButton",void 0),s([P(".carousel-wrapper"),n("design:type",HTMLElement)],Ee.prototype,"slider",void 0),s([P("slot"),n("design:type",HTMLSlotElement)],Ee.prototype,"slotElement",void 0),Ee=s([a("carousel-component"),n("design:paramtypes",[])],Ee);export{V as AccordionList,q as AccordionPanel,j as BaseControl,$e as CalendarOverlay,Ee as Carousel,Y as CarouselCard,H as Checkbox,ot as CustomModal,rt as CustomPopup,nt as CustomRadio,ct as CustomStepper,Se as DatePickerComponent,at as FilterableSelect,tt as FormGroup,et as IconComponent,st as ProgressCircle,U as RandstadButton,Z as RandstadForm,it as RandstadNotice,ht as TabsBar,De as UploadFile,mt as UploadImage,J as scrollbarStyles};
4035
4046
  //# sourceMappingURL=index.js.map