@randstad-uca/design-system 1.0.63 → 1.0.65

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,4 +1,4 @@
1
- import{LitElement as t,html as e,nothing as i,css as o,isServer as r}from"lit";import{classMap as s}from"lit/directives/class-map.js";function a(t,e,i,o){var r,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,i,a):r(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 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;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -9,18 +9,18 @@ const l=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)}
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"),o=d.litNonce;void 0!==o&&e.setAttribute("nonce",o),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 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};
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(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&y(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=v(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)??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),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??M)(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,C?.({ReactiveElement:F}),(k.reactiveElementVersions??=[]).push("2.1.0");
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");
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: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 L(t){return(e,i)=>"object"==typeof i?T(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)}
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)}
24
24
  /**
25
25
  * @license
26
26
  * 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,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 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 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`
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,o)=>((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=o`
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`
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=o`
88
+ `,W=r`
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=o`
94
+ `,I=r`
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=o`
100
+ `,N=r`
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
- `,_=o`
106
+ `,_=r`
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=o`
113
+ `,R=r`
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=o`
120
+ `,V=r`
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=o`
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`
128
128
  :host {
129
129
  display: flex;
130
130
  flex-direction: column;
@@ -215,13 +215,13 @@ function j(t,e){return(e,i,o)=>((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=o`
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`
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=o`
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`
225
225
  :host {
226
226
  display: inline-block;
227
227
  --content-padding: 16px;
@@ -547,7 +547,7 @@ function j(t,e){return(e,i,o)=>((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=o`
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`
551
551
  :host {
552
552
  display: inline-block;
553
553
  font-family: "Graphik", sans-serif;
@@ -684,7 +684,7 @@ function j(t,e){return(e,i,o)=>((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=o`
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`
688
688
  :host {
689
689
  display: block;
690
690
  max-width: 100%;
@@ -803,7 +803,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
803
803
  <slot></slot>
804
804
  </span>
805
805
  </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=o`
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`
807
807
  .label-container {
808
808
  display: flex;
809
809
  align-items: center;
@@ -856,7 +856,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
856
856
  visibility: visible;
857
857
  opacity: 1;
858
858
  }
859
- `,K=o`
859
+ `,K=r`
860
860
  :host {
861
861
  display: block;
862
862
  font-family: "Graphik", sans-serif;
@@ -902,7 +902,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
902
902
  randstad-icon {
903
903
  color: var( --primary-color );
904
904
  }
905
- `,Q=o`
905
+ `,Q=r`
906
906
  :host([error]) .input-wrapper, .form.error .form-input {
907
907
  border: 1px solid var( --ui-negative, red ) !important;
908
908
  }
@@ -921,7 +921,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
921
921
  color: var(--ui-negative, #E00F0F);
922
922
  margin-top: 4px;
923
923
  }
924
- `,J=new CSSStyleSheet;J.replaceSync(o`
924
+ `,J=new CSSStyleSheet;J.replaceSync(r`
925
925
  ::-webkit-scrollbar {
926
926
  width: 8px;
927
927
  height: 8px;
@@ -939,7 +939,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
939
939
  ::-webkit-scrollbar-button {
940
940
  display: none;
941
941
  }
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,o`
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
943
  ${K}
944
944
  ${Q}
945
945
  ${X}
@@ -1079,7 +1079,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1079
1079
  height: 24px;
1080
1080
  color: var( --primary-color );
1081
1081
  }
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,o="textarea"===this.type?`height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto;`:"",r=this.labelColor?`--label-color: ${this.labelColor};`:"",s=e`
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`
1083
1083
  <randstad-icon
1084
1084
  name="${this.isPasswordVisible?"eye_crossed":"eye"}"
1085
1085
  size="24px"
@@ -1088,7 +1088,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1088
1088
  `;return e`
1089
1089
  <div
1090
1090
  class="form ${this.error?"error":""} ${this.disabled?"disabled":""}"
1091
- style="${r}"
1091
+ style="${o}"
1092
1092
  >
1093
1093
  ${this.renderLabelContainer()}
1094
1094
 
@@ -1105,7 +1105,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1105
1105
  @input=${this.handleInput}
1106
1106
  @keydown=${this.handleKeyDown}
1107
1107
  maxlength=${this.maxLength??i}
1108
- style="${o}"
1108
+ style="${r}"
1109
1109
  >
1110
1110
  </textarea>
1111
1111
  `:e`
@@ -1161,7 +1161,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1161
1161
 
1162
1162
  ${this.renderHelper()}
1163
1163
  </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=o`
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
1165
  ${K}
1166
1166
  ${Q}
1167
1167
  ${X}
@@ -1196,7 +1196,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1196
1196
 
1197
1197
  ${this.renderHelper()}
1198
1198
  </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=o`
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`
1200
1200
  :host {
1201
1201
  display: inline-flex;
1202
1202
  width: var( --icon-size, 24px );
@@ -1218,11 +1218,11 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1218
1218
  width: 100%;
1219
1219
  height: 100%;
1220
1220
  }
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 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`
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`
1222
1222
  <div class="custom-icon" style="color: ${this.color};">
1223
1223
  ${this.svgTemplate}
1224
1224
  </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=o`
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`
1226
1226
  :host {
1227
1227
  display: block;
1228
1228
  font-family: 'Graphik', sans-serif;
@@ -1279,7 +1279,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1279
1279
 
1280
1280
  <span class="message">${this.message}</span>
1281
1281
  </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 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`
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`
1283
1283
  :host {
1284
1284
  font-family: 'Graphik', sans-serif;
1285
1285
  display: none;
@@ -1478,7 +1478,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1478
1478
  </div>
1479
1479
  </div>
1480
1480
  </div>
1481
- `}};a([L({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"open",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"title",void 0),a([L({type:String}),n("design:type",String)],ot.prototype,"subtitle",void 0),a([L({type:Boolean}),n("design:type",Object)],ot.prototype,"showNotice",void 0),a([L({type:String}),n("design:type",String)],ot.prototype,"noticeType",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"noticeMessage",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"noticeIcon",void 0),a([L({type:Boolean}),n("design:type",Object)],ot.prototype,"showPrimaryButton",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"primaryButtonLabel",void 0),a([L({type:Boolean}),n("design:type",Object)],ot.prototype,"showSecondaryButton",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"secondaryButtonLabel",void 0),a([L({type:Boolean}),n("design:type",Object)],ot.prototype,"isFooterCustom",void 0),a([L({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryLoader",void 0),a([L({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryDisabled",void 0),a([L({type:String}),n("design:type",Object)],ot.prototype,"modalWidth",void 0),a([B(),n("design:type",Object)],ot.prototype,"scrollable",void 0),ot=a([l("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`
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`
1482
1482
  :host {
1483
1483
  display: none;
1484
1484
  position: fixed;
@@ -1670,7 +1670,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1670
1670
  `}
1671
1671
  </div>
1672
1672
  </div>
1673
- `}};a([L({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),a([L({type:String}),n("design:type",String)],rt.prototype,"type",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"icon",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"description",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"width",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"buttonText",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"confirmText",void 0),a([L({type:String}),n("design:type",Object)],rt.prototype,"cancelText",void 0),a([L({type:Array}),n("design:type",Array)],rt.prototype,"stackedActions",void 0),rt=a([l("custom-popup")],rt);let st=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
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`
1674
1674
  :host {
1675
1675
  display: inline-block;
1676
1676
  width: 64px;
@@ -1699,7 +1699,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1699
1699
  stroke: var(--primary-light-blue);
1700
1700
  stroke-linecap: round;
1701
1701
  }
1702
- `}render(){const t=2*Math.PI*28,i=Math.max(this.max,1),o=t*(1-Math.min(this.value/i,1));return e`
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`
1703
1703
  <svg
1704
1704
  viewBox="0 0 64 64"
1705
1705
  role="img"
@@ -1723,7 +1723,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1723
1723
  stroke-width="${6}"
1724
1724
  fill="none"
1725
1725
  stroke-dasharray="${t}"
1726
- stroke-dashoffset="${o}"
1726
+ stroke-dashoffset="${r}"
1727
1727
  transform="rotate(-90 32 32)"
1728
1728
  />
1729
1729
  <!-- Texto -->
@@ -1737,12 +1737,12 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1737
1737
  * Copyright 2023 Google LLC
1738
1738
  * SPDX-License-Identifier: Apache-2.0
1739
1739
  */
1740
- const at=Symbol("attachableController");let nt;r||(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}}
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
1741
  /**
1742
1742
  * @license
1743
1743
  * Copyright 2021 Google LLC
1744
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(!r)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=o`: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}}
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
1746
  `
1747
1747
  /**
1748
1748
  * @license
@@ -1764,13 +1764,13 @@ const gt="cubic-bezier(0.2, 0, 0, 1)";
1764
1764
  * @license
1765
1765
  * Copyright 2022 Google LLC
1766
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=r?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),o=Math.max(.35*i,75),r=Math.floor(.2*i),s=Math.sqrt(e**2+t**2)+10;this.initialSize=r,this.rippleScale=""+(s+o)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:i}=window,{left:o,top:r}=this.getBoundingClientRect(),s=e+o,a=i+r,{pageX:n,pageY:l}=t;return{x:n-s,y:l-a}}getTranslationCoordinates(t){const{height:e,width:i}=this.getBoundingClientRect(),o={x:(i-this.initialSize)/2,y:(e-this.initialSize)/2};let r;return r=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:i/2,y:e/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:o}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:i}=this.getTranslationCoordinates(t),o=`${e.x}px, ${e.y}px`,r=`${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(${o}) scale(1)`,`translate(${r}) 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:o,bottom:r,right:s}=this.getBoundingClientRect();return t>=o&&t<=s&&e>=i&&e<=r}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(!r)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);
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
1768
  /**
1769
1769
  * @license
1770
1770
  * Copyright 2024 Google LLC
1771
1771
  * SPDX-License-Identifier: Apache-2.0
1772
1772
  */
1773
- const ft=o`: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}
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
1774
  `
1775
1775
  /**
1776
1776
  * @license
@@ -1816,17 +1816,17 @@ class zt{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{}
1816
1816
  * @license
1817
1817
  * Copyright 2023 Google LLC
1818
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:o,required:r}of t)r&&(e=!0),o&&(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 o=t[i],r=e[i];if(o.checked!==r.checked||o.required!==r.required)return!1}return!0}copy(t){return t.map((({checked:t,required:e})=>({checked:t,required:e})))}}
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
1820
  /**
1821
1821
  * @license
1822
1822
  * Copyright 2022 Google LLC
1823
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,o="ArrowLeft"===t.key,r="ArrowRight"===t.key;if(!(o||r||e||i))return;const s=this.controls;if(!s.length)return;t.preventDefault();const a="rtl"===getComputedStyle(this.host).direction?o||e:r||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}}
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
1825
  /**
1826
1826
  * @license
1827
1827
  * Copyright 2018 Google LLC
1828
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(r)return;this[Et]||(this[Et]=this[Ct]());const{validity:t,validationMessage:e}=this[Et].getValidity(),i=!!this[Ot],o=this[Ot]||e;this[$t].setValidity({...t,customError:i},o,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,o;class r extends t{constructor(){super(...arguments),this[e]=!0,this[i]=null,this[o]=!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,o=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})],r.prototype,"tabIndex",void 0),r}(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),r||(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`
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
1830
  <div class="container ${s(t)}" aria-hidden="true">
1831
1831
  <md-ripple
1832
1832
  part="ripple"
@@ -1855,13 +1855,13 @@ class zt{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{}
1855
1855
  * Copyright 2024 Google LLC
1856
1856
  * SPDX-License-Identifier: Apache-2.0
1857
1857
  */
1858
- const Yt=o`@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}}}
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
1859
  `
1860
1860
  /**
1861
1861
  * @license
1862
1862
  * Copyright 2022 Google LLC
1863
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=o`
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
1865
  :host {
1866
1866
  font-family: "Graphik", sans-serif;
1867
1867
  }
@@ -1927,7 +1927,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
1927
1927
 
1928
1928
  <span>${this.checked?"On":"Off"} ${this.error?"Error":""}</span>
1929
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,o`
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
1931
  ${K}
1932
1932
  ${Q}
1933
1933
  ${X}
@@ -2245,7 +2245,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2245
2245
  margin-right: 8px;
2246
2246
  flex-shrink: 0;
2247
2247
  }
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,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
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`
2249
2249
  <randstad-icon
2250
2250
  name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
2251
2251
  size="24px"
@@ -2253,7 +2253,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2253
2253
  >
2254
2254
  </randstad-icon>
2255
2255
  `;return e`
2256
- <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor};`:""} ${o}">
2256
+ <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor};`:""} ${r}">
2257
2257
  ${this.renderLabelContainer()}
2258
2258
 
2259
2259
  <div class="list-container">
@@ -2295,21 +2295,21 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2295
2295
  @click="${this.handleIconClick}"
2296
2296
  ?disabled="${this.disabled}"
2297
2297
  >
2298
- ${this.filterable&&this.filterValue?e`<randstad-icon name="close" size="24px"></randstad-icon>`:r}
2298
+ ${this.filterable&&this.filterValue?e`<randstad-icon name="close" size="24px"></randstad-icon>`:o}
2299
2299
  </button>
2300
2300
  </div>
2301
2301
 
2302
2302
  ${!t&&this.isOpen&&this.filteredOptions.length>0?e`
2303
2303
  <ul class="options-list">
2304
- ${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`
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`
2305
2305
  <li
2306
- class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2306
+ class="${o?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2307
2307
  role="option"
2308
2308
  aria-selected="${i===this.highlightedIndex}"
2309
- @click="${()=>{r||this.handleSelect(t)}}"
2309
+ @click="${()=>{o||this.handleSelect(t)}}"
2310
2310
  >
2311
2311
  ${this.renderOptionIcon(s)}
2312
- ${o}
2312
+ ${r}
2313
2313
  </li>
2314
2314
  `}))}
2315
2315
  </ul>
@@ -2339,22 +2339,22 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2339
2339
  </div>
2340
2340
 
2341
2341
  <ul class="options-list">
2342
- ${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`
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`
2343
2343
  <li
2344
- class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2344
+ class="${o?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2345
2345
  role="option"
2346
2346
  aria-selected="${i===this.highlightedIndex}"
2347
- @click="${()=>{r||this.handleSelect(t)}}"
2347
+ @click="${()=>{o||this.handleSelect(t)}}"
2348
2348
  >
2349
2349
  ${this.renderOptionIcon(s)}
2350
- ${o}
2350
+ ${r}
2351
2351
  </li>
2352
2352
  `}))}
2353
2353
  </ul>
2354
2354
  </div>
2355
2355
  </div>
2356
2356
  `: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,o`
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`
2358
2358
  :host {
2359
2359
  display: flex;
2360
2360
  position: fixed;
@@ -2490,7 +2490,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2490
2490
  <randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
2491
2491
  <span class="message">${this.message}</span>
2492
2492
  </div>
2493
- `}}customElements.define("randstad-snackbar",Qt);let Jt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
2493
+ `}}customElements.define("randstad-snackbar",Qt);let Jt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=r`
2494
2494
  .stepper {
2495
2495
  display: flex;
2496
2496
  gap: 20px;
@@ -2590,7 +2590,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2590
2590
  </div>
2591
2591
  `))}
2592
2592
  </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:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
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`
2594
2594
  :host {
2595
2595
  display: block;
2596
2596
  border-bottom: 1px solid #E7E8EC;
@@ -2705,7 +2705,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2705
2705
  padding: 16px;
2706
2706
  }
2707
2707
  }
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 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`
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`
2709
2709
  <div class="scroll-container">
2710
2710
  ${this.showPrev?e`
2711
2711
  <button class="scroll-button prev" @click=${this.scrollTabsLeft}>
@@ -2729,7 +2729,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2729
2729
  </button>
2730
2730
  `:null}
2731
2731
  </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 o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const a=e>0,n=i.length>0;for(const l of t){if(n&&!i.includes(l.type))return this.setError(s,o),!1;if(a&&l.size>e)return this.setError(s,r),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,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,o,r,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`
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`
2733
2733
  ${this.loading?e`
2734
2734
  <div class="progress-bar-container">
2735
2735
  <div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
@@ -2739,7 +2739,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2739
2739
  `:e`
2740
2740
  ${t}
2741
2741
  `}
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"},oe=o`
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`
2743
2743
  .progress-bar-container {
2744
2744
  min-height: 23px;
2745
2745
  display: flex;
@@ -2759,9 +2759,9 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2759
2759
  background-color: var( --primary-color );
2760
2760
  transition: width 0.1s ease;
2761
2761
  }
2762
- `;let re=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=o`
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
2763
  ${K}
2764
- ${oe}
2764
+ ${re}
2765
2765
 
2766
2766
  :host {
2767
2767
  font-family: 'Graphik', sans-serif;
@@ -2888,7 +2888,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2888
2888
  .text-main.error {
2889
2889
  color: var(--ui-negative, #E00F0F);
2890
2890
  }
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,o=this.disabled,r=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,a=r?` / 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`
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`
2892
2892
  <label class="button">
2893
2893
  agregar archivo
2894
2894
 
@@ -2915,7 +2915,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2915
2915
  .variant=${"button-icon"}
2916
2916
  .iconName=${"trash"}
2917
2917
  @click=${()=>this.removeFile(i,"image")}
2918
- ?disabled=${o}
2918
+ ?disabled=${r}
2919
2919
  >
2920
2920
  </randstad-button>
2921
2921
  </div>
@@ -2950,7 +2950,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2950
2950
  </div>
2951
2951
  </div>
2952
2952
  </div>
2953
- `}};a([L({type:Array}),n("design:type",Array)],re.prototype,"acceptedFileTypes",void 0),a([L({type:Number}),n("design:type",Object)],re.prototype,"maxFiles",void 0),a([L({type:Number}),n("design:type",Object)],re.prototype,"maxFileSize",void 0),a([B(),n("design:type",Object)],re.prototype,"isDragging",void 0),a([B(),n("design:type",Array)],re.prototype,"imageUrls",void 0),a([B(),n("design:type",Boolean)],re.prototype,"isMaxFilesReached",void 0),re=a([l("upload-image")],re);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 o=le(t,i?.in);if(isNaN(e))return ne(t,NaN);if(!e)return o;const r=o.getDate(),s=ne(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let ce={};function he(){return ce}function pe(t,e){const i=he(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=le(t,e?.in),s=r.getDay(),a=(s<o?7:0)+s-o;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function ue(t,e){return pe(t,{...e,weekStartsOn:1})}function ge(t,e){const i=le(t,e?.in),o=i.getFullYear(),r=ne(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=ue(r),a=ne(i,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);const n=ue(a);return i.getTime()>=s.getTime()?o+1:i.getTime()>=n.getTime()?o:o-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 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 De(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 a=s[0],n=o&&t.parsePatterns[o]||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 o;const r=we[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:$e,formatRelative:(t,e,i,o)=>Se[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: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 o=i[0],r=t.match(Ee.parsePattern);if(!r)return null;let s=Ee.valueCallback?Ee.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.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),o=function(t,e){const[i,o]=be(0,t,e),r=ye(i),s=ye(o),a=+r-me(r),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 o+1}function Fe(t,e){const i=le(t,e?.in),o=+ue(i)-+function(t,e){const i=ge(t,e),o=ne(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),ue(o)}(i);return Math.round(o/se)+1}function Pe(t,e){const i=le(t,e?.in),o=i.getFullYear(),r=he(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=ne(e?.in||t,0);a.setFullYear(o+1,0,s),a.setHours(0,0,0,0);const n=pe(a,e),l=ne(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=pe(l,e);return+i>=+n?o+1:+i>=+d?o:o-1}function Te(t,e){const i=le(t,e?.in),o=+pe(i,e)-+function(t,e){const i=he(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Pe(t,e),s=ne(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),pe(s,e)}(i,e);return Math.round(o/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(),o=i>0?i:1-i;return Le("yy"===e?o%100:o,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,o=t.getMilliseconds();return Le(Math.trunc(o*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 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 Be.y(t,e)},Y:function(t,e,i,o){const r=Pe(t,o),s=r>0?r:1-r;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 o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Le(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 Le(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 Be.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 Le(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=Te(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Le(r,e.length)},I:function(t,e,i){const o=Fe(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Le(o,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 o=Oe(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Le(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 Le(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 Le(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 Le(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?Ae:0===o?je: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?Ie:o>=12?We:o>=4?ze:Ne,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 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 o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Le(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Le(o,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 o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Ve(o);case"XXXX":case"XX":return Ue(o);default:return Ue(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return Ve(o);case"xxxx":case"xx":return Ue(o);default:return Ue(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Re(o,":");default:return"GMT"+Ue(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Re(o,":");default:return"GMT"+Ue(o,":")}},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?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+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?"-":"+",o=Math.abs(t);return i+Le(Math.trunc(o/60),2)+e+Le(o%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+)?/)||[],o=i[1],r=i[2];if(!r)return qe(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}}",qe(o,e)).replace("{{time}}",Ye(r,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 o=he(),r=o.locale??Me,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=o.weekStartsOn??o.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,r.formatLong)}return t})).join("").match(Qe).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:oi(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}}));r.localize.preprocessor&&(l=r.localize.preprocessor(n,l));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return Xe.test(t)}(o)||function(t){return Ge.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),Ke.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,_e[o[0]])(n,o,r.localize,d)})).join("")}function oi(t){const e=t.match(Ze);return e?e[1].replace(ti,"'"):t}function ri(t,e){return le(t,e?.in).getDate()}function si(t,e){const i=le(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=ne(i,0);return s.setFullYear(o,r+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[o,r]=be(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function di(t,e,i){const[o,r]=be(0,t,e);return o.getFullYear()===r.getFullYear()}function ci(t,e){return function(t,e){const[i,o]=be(0,t,e);return+ye(i)===+ye(o)}(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,o`
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`
2954
2954
  /* Estilos generales del contenedor del calendario (escritorio) */
2955
2955
  .calendar-container {
2956
2956
  position: absolute;
@@ -3364,7 +3364,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3364
3364
  color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3365
3365
  }
3366
3366
  /* */
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 o=le(t,i?.in);return isNaN(+o)?ne(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months")}handleMonthSelect(t){const e=function(t,e,i){const o=le(t,i?.in),r=o.getFullYear(),s=o.getDate(),a=ne(t,0);a.setFullYear(r,e,15),a.setHours(0,0,0,0);const n=si(a);return o.setMonth(e,Math.min(s,n)),o}(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="",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=li(xe(this.viewDate),xe(this.minDate))||ni(this.viewDate,this.minDate)),this.maxDate&&(r=li(xe(this.viewDate),xe(this.maxDate))||ai(this.viewDate,this.maxDate))}const s=e`
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`
3368
3368
  <randstad-icon
3369
3369
  name="${"days"===this.currentView?"arrow_drop_down":"arrow_drop_up"}"
3370
3370
  class="select-icon"
@@ -3381,20 +3381,20 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3381
3381
  </div>
3382
3382
 
3383
3383
  <div class="header-right">
3384
- <button class="nav-button" @click=${()=>this.handleNavClick(-1)} ?disabled=${o}>
3384
+ <button class="nav-button" @click=${()=>this.handleNavClick(-1)} ?disabled=${r}>
3385
3385
  <randstad-icon name="arrow_left"></randstad-icon>
3386
3386
  </button>
3387
3387
 
3388
- <button class="nav-button" @click=${()=>this.handleNavClick(1)} ?disabled=${r}>
3388
+ <button class="nav-button" @click=${()=>this.handleNavClick(1)} ?disabled=${o}>
3389
3389
  <randstad-icon name="arrow_right"></randstad-icon>
3390
3390
  </button>
3391
3391
  </div>
3392
3392
  </div>
3393
- `}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,a=this.maxDate?this.maxDate.getFullYear():1/0;return e`
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`
3394
3394
  <div class="year-grid">
3395
3395
  ${i.map((t=>e`
3396
3396
  <button
3397
- class="${"year-button "+(t===o?"selected":t===r?"current":"")}"
3397
+ class="${"year-button "+(t===r?"selected":t===o?"current":"")}"
3398
3398
  @click=${()=>this.handleYearSelect(t)}
3399
3399
  ?disabled=${t<s||t>a}
3400
3400
  >
@@ -3402,9 +3402,9 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3402
3402
  </button>
3403
3403
  `))}
3404
3404
  </div>
3405
- `}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return e`
3405
+ `}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),r=(new Date).getMonth(),o=this.viewDate.getFullYear();return e`
3406
3406
  <div class="month-grid">
3407
- ${t.map(((t,s)=>{const a=s===o,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&&r===this.minDate.getFullYear()&&(d=s<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||s>this.maxDate.getMonth());return e`
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`
3408
3408
  <button
3409
3409
  class="${"month-button "+(n?"selected":l?"secondary-selected":a?"current":"")}"
3410
3410
  ?disabled=${d}
@@ -3414,17 +3414,17 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3414
3414
  </button>
3415
3415
  `}))}
3416
3416
  </div>
3417
- `}renderDayView(){const t=si(this.viewDate),i=xe(this.viewDate),o=le(i,r?.in).getDay();var r;const s=Array.from({length:0===o?6:o-1},(()=>null)),a=Array.from({length:t},((t,e)=>function(t,e,i){const o=le(t,i?.in);return o.setDate(e),o}(i,e+1))),n=this.getShortWeekdays();return e`
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`
3418
3418
  <div class="weekdays">
3419
3419
  ${n.map((t=>e`<div>${t}</div>`))}
3420
3420
  </div>
3421
3421
 
3422
3422
  <div class="days-grid">
3423
3423
  ${s.map((()=>e`<div></div>`))}
3424
- ${a.map((t=>{const i=ye(t),o=this.selectedDate?ye(this.selectedDate):null,r=this.minDate&&ni(i,ye(this.minDate))||this.maxDate&&ai(i,ye(this.maxDate)),s=ci(i),a=o&&ri(i)===ri(o),n=a&&o&&li(i,o)&&di(i,o);return e`
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`
3425
3425
  <button
3426
3426
  class="${`day ${s?"today":""} ${n?"selected":a&&!n?"secondary-selected":""}`}"
3427
- ?disabled=${r}
3427
+ ?disabled=${o}
3428
3428
  @click=${()=>this.handleDayClick(t)}
3429
3429
  >
3430
3430
  ${ii(t,"d")}
@@ -3444,14 +3444,17 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3444
3444
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3445
3445
  ${i}
3446
3446
  </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=o`
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
3448
  ${K}
3449
3449
  ${Q}
3450
3450
  ${X}
3451
3451
 
3452
3452
  /* Si se proporciona una propiedad width (ej. width="600px"), se usa ese valor. */
3453
- :host([width]) {
3454
- width: var(--datepicker-width);
3453
+ :host {
3454
+ display: block;
3455
+ --datepicker-min-width: 100%;
3456
+ --datepicker-max-width: 100%;
3457
+ max-width: var( --datepicker-max-width );
3455
3458
  }
3456
3459
 
3457
3460
  .datepicker-container {
@@ -3459,6 +3462,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3459
3462
  flex-direction: column;
3460
3463
  gap: 8px;
3461
3464
  width: 100%;
3465
+ max-width: var( --datepicker-max-width );
3462
3466
  }
3463
3467
 
3464
3468
  /* Estilos para evitar el desbordamiento en móviles */
@@ -3490,7 +3494,8 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3490
3494
  transition: border-color 0.2s;
3491
3495
  background: white;
3492
3496
  box-sizing: border-box;
3493
- min-width: 360px;
3497
+ min-width: var( --datepicker-min-width );
3498
+ max-width: var( --datepicker-max-width );
3494
3499
  }
3495
3500
 
3496
3501
  .input-wrapper:hover {
@@ -3515,6 +3520,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3515
3520
  cursor: text;
3516
3521
  background: white;
3517
3522
  color: #49454f;
3523
+ min-width: 0;
3518
3524
  }
3519
3525
 
3520
3526
  .icon-button {
@@ -3545,12 +3551,12 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3545
3551
  .calendar-button randstad-icon {
3546
3552
  font-size: 18px;
3547
3553
  }
3548
- `}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("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,o,r]=e;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const e=new Date(r,o-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,o,r]=i;if(e&&o&&r&&o>=1&&o<=12&&e>1e3){const i=new Date(e,o-1,r,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}),o=`width: ${this.width||"100%"};`,r=this._getValidDateRange();return e`
3549
- <div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""} ${o}">
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`
3555
+ <div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
3550
3556
  ${this.renderLabelContainer()}
3551
3557
 
3552
3558
  <div class="input-container">
3553
- <div class="${t}" style="width: 100%">
3559
+ <div class="${t}">
3554
3560
  <input
3555
3561
  type="text"
3556
3562
  class="date-input"
@@ -3597,11 +3603,11 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3597
3603
 
3598
3604
  ${this.renderHelper()}
3599
3605
  </div>
3600
- `}};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=o`
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`
3601
3607
  ${K}
3602
3608
  ${Q}
3603
3609
  ${X}
3604
- ${oe}
3610
+ ${re}
3605
3611
 
3606
3612
  :host([width]) {
3607
3613
  width: var( --upload-file-width );
@@ -3658,11 +3664,11 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3658
3664
  .progress-bar {
3659
3665
  width: 100%;
3660
3666
  }
3661
- `}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,o=this.disabled||t,r=e`
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`
3662
3668
  <randstad-button
3663
3669
  .label=${this.buttonText}
3664
3670
  .variant=${"button-primary"}
3665
- ?disabled=${o}
3671
+ ?disabled=${r}
3666
3672
  @click=${()=>this.fileInput?.click()}
3667
3673
  >
3668
3674
  </randstad-button>
@@ -3670,13 +3676,13 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3670
3676
  <div class="file-container" style="${this.labelColor?`--label-color: ${this.labelColor};`:""}">
3671
3677
  ${this.renderLabelContainer()}
3672
3678
 
3673
- ${this.renderLoadingContainer(r)}
3679
+ ${this.renderLoadingContainer(o)}
3674
3680
 
3675
3681
  <input
3676
3682
  type="file"
3677
3683
  accept=${this.acceptedFileTypes.join(",")}
3678
3684
  ?multiple=${this.maxFiles>1}
3679
- ?disabled=${o}
3685
+ ?disabled=${r}
3680
3686
  @change="${this.onFileInputChange}"
3681
3687
  />
3682
3688
 
@@ -3705,7 +3711,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3705
3711
  </div>
3706
3712
  `:i}
3707
3713
  </div>
3708
- `}};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=o`
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`
3709
3715
  :host {
3710
3716
  display: block;
3711
3717
  width: 100%;
@@ -3862,6 +3868,16 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3862
3868
  padding-right: 0 !important;
3863
3869
  padding-left: 0 !important;
3864
3870
  }
3871
+
3872
+ .carousel-wrapper.drag-mode {
3873
+ padding-left: 100px !important;
3874
+ padding-right: 100px !important;
3875
+ }
3876
+
3877
+ .carousel-wrapper.drag-mode.not-ininite-scroll-partial {
3878
+ padding-right: 0 !important;
3879
+ padding-left: 0 !important;
3880
+ }
3865
3881
 
3866
3882
  .dynamic-width-mode .carousel-card-item {
3867
3883
  width: calc( ( 100% - ( 2 * var( --carousel-cards-gap ) ) + 100px ) / 3 );  
@@ -3889,8 +3905,8 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3889
3905
  }
3890
3906
 
3891
3907
  .carousel-wrapper.drag-mode {
3892
- padding-right: 0 !important;
3893
3908
  padding-left: 50px !important;
3909
+ padding-right: var( --carousel-cards-gap ) !important;
3894
3910
  }
3895
3911
 
3896
3912
  .carousel-wrapper.drag-mode.not-ininite-scroll-partial {
@@ -3901,7 +3917,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3901
3917
  .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper {
3902
3918
  gap: var( --carousel-cards-gap );
3903
3919
  padding-left: 50px !important;
3904
- padding-right: 0 !important;
3920
+ padding-right: var( --carousel-cards-gap ) !important;
3905
3921
  }
3906
3922
 
3907
3923
  .static-width-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial {
@@ -3919,7 +3935,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3919
3935
  }
3920
3936
 
3921
3937
  .dynamic-width-mode.not-ininite-scroll-partial .carousel-card-item {
3922
- width: calc( 100% - var( --nav-width ) - var( --carousel-cards-gap ) ); 
3938
+ width: calc( 100% - var( --nav-width ) - var( --carousel-cards-gap ) - 50px * 2 ); /* Ancho ajustado para nav-mode */ 
3923
3939
 
3924
3940
 
3925
3941
  .dynamic-width-mode.drag-mode .carousel-card-item {
@@ -3944,7 +3960,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3944
3960
  .static-width-mode.carousel-wrapper, .dynamic-width-mode.carousel-wrapper {
3945
3961
  gap: var( --carousel-cards-gap );
3946
3962
  padding-left: 25px !important;
3947
- padding-right: 0;
3963
+ padding-right: var( --carousel-cards-gap ) !important;
3948
3964
  }
3949
3965
 
3950
3966
  .static-width-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.carousel-wrapper.not-ininite-scroll-partial {
@@ -3958,8 +3974,8 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3958
3974
  }
3959
3975
 
3960
3976
  .static-width-mode.drag-mode.carousel-wrapper, .dynamic-width-mode.drag-mode.carousel-wrapper {
3961
- padding-right: 0 !important;
3962
3977
  padding-left: 25px !important;
3978
+ padding-right: var( --carousel-cards-gap ) !important;
3963
3979
  }
3964
3980
 
3965
3981
  .static-width-mode.drag-mode.carousel-wrapper.not-ininite-scroll-partial, .dynamic-width-mode.drag-mode.carousel-wrapper.not-ininite-scroll-partial {
@@ -3972,7 +3988,7 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3972
3988
  padding-right: 0 !important;
3973
3989
  }
3974
3990
  }
3975
- `}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,a=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){a=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===a&&t>e&&(a=i.length-o)}if(!e&&t<5)return 0;const n=i.length-o,l=2===o;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 o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),a=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),n=r*i+(parseFloat(a)||0)*(i-1);let l=o.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,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`
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`
3976
3992
  <div class="nav-buttons-container">
3977
3993
  <button
3978
3994
  class=${s(t)}
@@ -3992,28 +4008,28 @@ const Yt=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3992
4008
  </div>
3993
4009
  </button>
3994
4010
  </div>
3995
- `}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`
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`
3996
4012
  <div class="carousel-card-item">
3997
4013
  <carousel-card
3998
- .img=${o.img}
3999
- .name=${o.name}
4000
- .title=${o.title}
4001
- .description=${o.description}
4002
- .buttonLabel=${o.buttonLabel}
4003
- .cardId=${o.cardId}
4014
+ .img=${r.img}
4015
+ .name=${r.name}
4016
+ .title=${r.title}
4017
+ .description=${r.description}
4018
+ .buttonLabel=${r.buttonLabel}
4019
+ .cardId=${r.cardId}
4004
4020
  .width=${t}
4005
4021
  .height=${i}
4006
- .onClick=${o.onClick}
4022
+ .onClick=${r.onClick}
4007
4023
  >
4008
4024
  </carousel-card>
4009
4025
  </div>
4010
- `)):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`
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`
4011
4027
  <div class="carousel-container">
4012
- <div class=${s(o)}>
4028
+ <div class=${s(r)}>
4013
4029
  ${this.renderContent()}
4014
4030
  </div>
4015
4031
 
4016
4032
  ${this.renderNavButtons()}
4017
4033
  </div>
4018
- `}};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,ot as CustomModal,rt 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,re as UploadImage,J as scrollbarStyles};
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};
4019
4035
  //# sourceMappingURL=index.js.map