@randstad-uca/design-system 1.0.70 → 1.0.71

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
@@ -9,23 +9,23 @@ const a=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 p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const u=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t,{is:g,defineProperty:b,getOwnPropertyDescriptor:m,getOwnPropertyNames:y,getOwnPropertySymbols:v,getPrototypeOf:f}=Object,w=globalThis,x=w.trustedTypes,$=x?x.emptyScript:"",k=w.reactiveElementPolyfillSupport,S=(t,e)=>t,D={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},E=(t,e)=>!g(t,e),C={attribute:!0,type:String,converter:D,reflect:!1,useDefault:!1,hasChanged:E};
12
+ */let p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const u=(t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t,{is:b,defineProperty:m,getOwnPropertyDescriptor:y,getOwnPropertyNames:v,getOwnPropertySymbols:f,getPrototypeOf:w}=Object,x=globalThis,k=x.trustedTypes,$=k?k.emptyScript:"",S=x.reactiveElementPolyfillSupport,D=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},C=(t,e)=>!b(t,e),F={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:C};
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */Symbol.metadata??=Symbol("metadata"),w.litPropertyMetadata??=new WeakMap;class M 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=C){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&&b(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=m(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)??C}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const t=this.properties,e=[...y(t),...v(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(u(t))}else void 0!==t&&e.push(u(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((t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(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:D).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:D;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??E)(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){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[S("elementProperties")]=new Map,M[S("finalized")]=new Map,k?.({ReactiveElement:M}),(w.reactiveElementVersions??=[]).push("2.1.0");
17
+ */Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class M 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=F){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&m(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=y(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=o?.call(this);r?.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??F}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=w(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...v(t),...f(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,r=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??C)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:r},s){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==r||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[D("elementProperties")]=new Map,M[D("finalized")]=new Map,S?.({ReactiveElement:M}),(x.reactiveElementVersions??=[]).push("2.1.0");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- const F={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:E},O=(t=F,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 A(t){return(e,i)=>"object"==typeof i?O(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 O={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C},B=(t=O,e,i)=>{const{kind:o,metadata:r}=i;let s=globalThis.litPropertyMetadata.get(r);if(void 0===s&&globalThis.litPropertyMetadata.set(r,s=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function T(t){return(e,i)=>"object"==typeof i?B(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */function _(t){return A({...t,state:!0,attribute:!1})}
28
+ */function L(t){return T({...t,state:!0,attribute:!1})}
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
@@ -36,7 +36,7 @@ const F={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:E},O=(t=F,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function T(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 B=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return e`
39
+ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let j=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return e`
40
40
  ${this.label?e`
41
41
  <div class="label-container">
42
42
  ${this.renderLabel()}
@@ -79,25 +79,25 @@ function T(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
- `}};s([A({type:String}),n("design:type",Object)],B.prototype,"label",void 0),s([A({type:String}),n("design:type",Object)],B.prototype,"placeholder",void 0),s([A({type:String}),n("design:type",Object)],B.prototype,"labelColor",void 0),s([A(),n("design:type",Object)],B.prototype,"value",void 0),s([A({type:Boolean}),n("design:type",Object)],B.prototype,"required",void 0),s([A({type:Boolean}),n("design:type",Object)],B.prototype,"optional",void 0),s([A({type:Boolean}),n("design:type",Object)],B.prototype,"disabled",void 0),s([A({type:Boolean,reflect:!0}),n("design:type",Object)],B.prototype,"error",void 0),s([A({type:String}),n("design:type",Object)],B.prototype,"errorMessage",void 0),s([A({type:String}),n("design:type",Object)],B.prototype,"helper",void 0),s([A({type:String}),n("design:type",String)],B.prototype,"helperAlign",void 0),s([A({type:String}),n("design:type",String)],B.prototype,"help",void 0),s([A({type:String}),n("design:type",String)],B.prototype,"helpLink",void 0),s([A({type:String}),n("design:type",String)],B.prototype,"helpLinkTooltipMessage",void 0),B=s([a("base-control")],B);const L=o`
82
+ `}};s([T({type:String}),n("design:type",Object)],j.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"placeholder",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"labelColor",void 0),s([T(),n("design:type",Object)],j.prototype,"value",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"required",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"optional",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"disabled",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],j.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"errorMessage",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"helper",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helperAlign",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"help",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helpLink",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helpLinkTooltipMessage",void 0),j=s([a("base-control")],j);const R=o`
83
83
  font-family: 'Graphik', sans-serif;
84
84
  font-weight: 400;
85
85
  font-size: 12px;
86
86
  line-height: 15px;
87
87
  letter-spacing: 0%;
88
- `,P=o`
88
+ `,A=o`
89
89
  font-family: 'Graphik', sans-serif;
90
90
  font-weight: 400;
91
91
  font-size: 14px;
92
92
  line-height: 25px;
93
93
  letter-spacing: 0%;
94
- `,j=o`
94
+ `,W=o`
95
95
  font-family: 'Graphik', sans-serif;
96
96
  font-weight: 400;
97
97
  font-size: 16px;
98
98
  line-height: 25px;
99
99
  letter-spacing: 0%;
100
- `,R=o`
100
+ `,z=o`
101
101
  font-family: 'Graphik', sans-serif;
102
102
  font-weight: 400;
103
103
  font-size: 18px;
@@ -110,21 +110,21 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
110
110
  line-height: 30px;
111
111
  letter-spacing: 0%;
112
112
  vertical-align: middle;
113
- `,W=o`
113
+ `,_=o`
114
114
  font-family: 'Graphik', sans-serif;
115
115
  font-weight: 400;
116
116
  font-size: 20px;
117
117
  line-height: 30px;
118
118
  letter-spacing: -1%;
119
119
  vertical-align: middle;
120
- `,z=o`
120
+ `,I=o`
121
121
  font-family: 'Graphik', sans-serif;
122
122
  font-weight: 400;
123
123
  font-size: 26px;
124
124
  line-height: 30px;
125
125
  letter-spacing: -1%;
126
126
  vertical-align: middle;
127
- `;let I=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 q=class extends t{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.innerWidth>940,this.handleResize=()=>{this.isDesktop=window.innerWidth>940}}static{this.styles=o`
128
128
  :host {
129
129
  display: flex;
130
130
  flex-direction: column;
@@ -143,7 +143,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
143
143
  }
144
144
 
145
145
  .title {
146
- ${j}
146
+ ${W}
147
147
  color: var( --secondary-color );
148
148
  }
149
149
 
@@ -215,13 +215,13 @@ function T(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
- `}};s([A({type:String}),n("design:type",Object)],I.prototype,"title",void 0),s([_(),n("design:type",Object)],I.prototype,"isOpen",void 0),s([_(),n("design:type",Object)],I.prototype,"isDesktop",void 0),I=s([a("accordion-panel")],I);let q=class extends t{static{this.styles=o`
218
+ `}};s([T({type:String}),n("design:type",Object)],q.prototype,"title",void 0),s([L(),n("design:type",Object)],q.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],q.prototype,"isDesktop",void 0),q=s([a("accordion-panel")],q);let V=class extends t{static{this.styles=o`
219
219
  :host {
220
220
  display: flex;
221
221
  flex-direction: column;
222
222
  gap: 16px;
223
223
  }
224
- `}render(){return e`<slot></slot>`}};q=s([a("accordion-list")],q);let V=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>`}};V=s([a("accordion-list")],V);let U=class extends t{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=o`
225
225
  :host {
226
226
  display: inline-block;
227
227
  --content-padding: 16px;
@@ -261,12 +261,12 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
261
261
  }
262
262
 
263
263
  .button-lg {
264
- ${R}
264
+ ${z}
265
265
  min-height: 62px;
266
266
  }
267
267
 
268
268
  .button-md {
269
- ${j}
269
+ ${W}
270
270
  min-height: 57px;
271
271
  }
272
272
 
@@ -547,7 +547,7 @@ function T(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
- `}};s([A({type:String}),n("design:type",String)],V.prototype,"type",void 0),s([A({type:String}),n("design:type",String)],V.prototype,"variant",void 0),s([A({type:String}),n("design:type",String)],V.prototype,"size",void 0),s([A({type:String}),n("design:type",Object)],V.prototype,"label",void 0),s([A({type:Boolean}),n("design:type",Object)],V.prototype,"loader",void 0),s([A({type:String,attribute:"icon-src"}),n("design:type",String)],V.prototype,"iconSrc",void 0),s([A({type:String}),n("design:type",String)],V.prototype,"iconPosition",void 0),s([A({type:String}),n("design:type",Object)],V.prototype,"iconName",void 0),s([A({type:Boolean,reflect:!0}),n("design:type",Boolean)],V.prototype,"disabled",void 0),s([A({type:String}),n("design:type",Object)],V.prototype,"idevent",void 0),V=s([a("randstad-button")],V);let U=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
+ `}};s([T({type:String}),n("design:type",String)],U.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"variant",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"label",void 0),s([T({type:Boolean}),n("design:type",Object)],U.prototype,"loader",void 0),s([T({type:String,attribute:"icon-src"}),n("design:type",String)],U.prototype,"iconSrc",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"iconPosition",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"iconName",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Boolean)],U.prototype,"disabled",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"idevent",void 0),U=s([a("randstad-button")],U);let Y=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId="",this.width="",this.height=""}static{this.styles=o`
551
551
  :host {
552
552
  display: inline-block;
553
553
  font-family: "Graphik", sans-serif;
@@ -611,7 +611,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
611
611
  }
612
612
 
613
613
  .title {
614
- ${R}
614
+ ${z}
615
615
  margin: 0;
616
616
  }
617
617
 
@@ -633,7 +633,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
633
633
  }
634
634
 
635
635
  .description {
636
- ${P}
636
+ ${A}
637
637
  margin: 0;
638
638
  }
639
639
 
@@ -684,14 +684,14 @@ function T(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
- `}};s([A({type:String}),n("design:type",Object)],U.prototype,"img",void 0),s([A({type:String}),n("design:type",Object)],U.prototype,"name",void 0),s([A({type:String}),n("design:type",Object)],U.prototype,"title",void 0),s([A({type:String}),n("design:type",Object)],U.prototype,"description",void 0),s([A({type:String}),n("design:type",Object)],U.prototype,"buttonLabel",void 0),s([A({type:String}),n("design:type",Object)],U.prototype,"cardId",void 0),s([A({type:Object}),n("design:type",Object)],U.prototype,"onClick",void 0),s([A({type:String}),n("design:type",String)],U.prototype,"width",void 0),s([A({type:String}),n("design:type",String)],U.prototype,"height",void 0),U=s([a("carousel-card")],U);let H=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
687
+ `}};s([T({type:String}),n("design:type",Object)],Y.prototype,"img",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"name",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"title",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"description",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"buttonLabel",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"cardId",void 0),s([T({type:Object}),n("design:type",Object)],Y.prototype,"onClick",void 0),s([T({type:String}),n("design:type",String)],Y.prototype,"width",void 0),s([T({type:String}),n("design:type",String)],Y.prototype,"height",void 0),Y=s([a("carousel-card")],Y);let H=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
688
688
  :host {
689
689
  display: block;
690
690
  max-width: 100%;
691
691
  }
692
692
 
693
693
  label {
694
- ${P}
694
+ ${A}
695
695
  display: flex;
696
696
  align-items: center;
697
697
  gap: 8px;
@@ -810,7 +810,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
810
810
  <slot></slot>
811
811
  </span>
812
812
  </label>
813
- `}};s([A({type:Boolean,reflect:!0}),n("design:type",Object)],H.prototype,"checked",void 0),s([A({type:Boolean}),n("design:type",Object)],H.prototype,"error",void 0),s([A({type:Boolean}),n("design:type",Object)],H.prototype,"disabled",void 0),H=s([a("randstad-checkbox")],H);const Y=o`
813
+ `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],H.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],H.prototype,"error",void 0),s([T({type:Boolean}),n("design:type",Object)],H.prototype,"disabled",void 0),H=s([a("randstad-checkbox")],H);const G=o`
814
814
  .label-container {
815
815
  display: flex;
816
816
  align-items: center;
@@ -863,15 +863,15 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
863
863
  visibility: visible;
864
864
  opacity: 1;
865
865
  }
866
- `,G=o`
866
+ `,K=o`
867
867
  .button:focus-visible, button:focus-visible {
868
868
  outline: 2px solid rgb( 0, 215, 255 );
869
869
  outline-offset: 1px;
870
870
  border-radius: 4px;
871
871
  z-index: 100;
872
872
  }
873
- `,K=o`
874
- ${G}
873
+ `,X=o`
874
+ ${K}
875
875
 
876
876
  :host {
877
877
  display: block;
@@ -881,7 +881,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
881
881
  }
882
882
 
883
883
  .form-label {
884
- ${j}
884
+ ${W}
885
885
  display: flex;
886
886
  align-items: baseline;
887
887
  flex-direction: row;
@@ -896,12 +896,12 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
896
896
  }
897
897
 
898
898
  input::placeholder {
899
- ${R}
899
+ ${z}
900
900
  color: var( --secondary-color-40 );
901
901
  }
902
902
 
903
903
  .helper-description {
904
- ${j}
904
+ ${W}
905
905
  color: var( --secondary-color-40 );
906
906
  margin: 0;
907
907
  }
@@ -912,13 +912,13 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
912
912
 
913
913
  .optional {
914
914
  color: var( --secondary-color-60 );
915
- ${L}
915
+ ${R}
916
916
  }
917
917
 
918
918
  randstad-icon {
919
919
  color: var( --primary-color );
920
920
  }
921
- `,X=o`
921
+ `,Q=o`
922
922
  :host([error]) .input-wrapper, .form.error .form-input {
923
923
  border: 1px solid var( --ui-negative, red ) !important;
924
924
  }
@@ -933,11 +933,11 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
933
933
  }
934
934
 
935
935
  .error-message {
936
- ${j}
936
+ ${W}
937
937
  color: var(--ui-negative, #E00F0F);
938
938
  margin-top: 4px;
939
939
  }
940
- `,Q=new CSSStyleSheet;Q.replaceSync(o`
940
+ `,J=new CSSStyleSheet;J.replaceSync(o`
941
941
  ::-webkit-scrollbar {
942
942
  width: 8px;
943
943
  height: 8px;
@@ -955,10 +955,10 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
955
955
  ::-webkit-scrollbar-button {
956
956
  display: none;
957
957
  }
958
- `.cssText);let J=class extends B{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=[Q,o`
959
- ${K}
958
+ `.cssText);let Z=class extends j{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[J,o`
960
959
  ${X}
961
- ${Y}
960
+ ${Q}
961
+ ${G}
962
962
 
963
963
  .form {
964
964
  display: flex;
@@ -968,7 +968,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
968
968
  }
969
969
 
970
970
  .form-input {
971
- ${R}
971
+ ${z}
972
972
  padding: 16px;
973
973
  border: 1px solid var(--secondary-color-10);
974
974
  border-radius: 4px;
@@ -1043,7 +1043,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1043
1043
  }
1044
1044
 
1045
1045
  textarea {
1046
- ${R}
1046
+ ${z}
1047
1047
  resize: none;
1048
1048
  }
1049
1049
 
@@ -1059,7 +1059,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1059
1059
  }
1060
1060
 
1061
1061
  .link-text {
1062
- ${j}
1062
+ ${W}
1063
1063
  color: var(--primary-color);
1064
1064
  cursor: pointer;
1065
1065
  text-align: end;
@@ -1181,10 +1181,10 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1181
1181
 
1182
1182
  ${this.renderHelper()}
1183
1183
  </div>
1184
- `}};s([A({type:String}),n("design:type",Object)],J.prototype,"keydown",void 0),s([A({type:String}),n("design:type",String)],J.prototype,"size",void 0),s([A({type:String}),n("design:type",Object)],J.prototype,"icon",void 0),s([A({type:Boolean}),n("design:type",Boolean)],J.prototype,"typing",void 0),s([A({type:String}),n("design:type",String)],J.prototype,"type",void 0),s([A({type:String}),n("design:type",String)],J.prototype,"linkText",void 0),s([A({type:String}),n("design:type",String)],J.prototype,"linkRoute",void 0),s([A({type:Boolean,reflect:!0}),n("design:type",Object)],J.prototype,"isPasswordVisible",void 0),s([A({type:Boolean}),n("design:type",Boolean)],J.prototype,"cleanButton",void 0),s([A({type:Number}),n("design:type",Number)],J.prototype,"maxLength",void 0),s([A({type:String}),n("design:type",String)],J.prototype,"heightTextArea",void 0),s([A({type:String}),n("design:type",String)],J.prototype,"maxHeightTextArea",void 0),J=s([a("randstad-form")],J);let Z=class extends B{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1185
- ${K}
1184
+ `}};s([T({type:String}),n("design:type",Object)],Z.prototype,"keydown",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],Z.prototype,"icon",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Z.prototype,"typing",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"linkText",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"linkRoute",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Z.prototype,"isPasswordVisible",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Z.prototype,"cleanButton",void 0),s([T({type:Number}),n("design:type",Number)],Z.prototype,"maxLength",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"heightTextArea",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"maxHeightTextArea",void 0),Z=s([a("randstad-form")],Z);let tt=class extends j{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1186
1185
  ${X}
1187
- ${Y}
1186
+ ${Q}
1187
+ ${G}
1188
1188
 
1189
1189
  :host {
1190
1190
  display: flex;
@@ -1216,7 +1216,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1216
1216
 
1217
1217
  ${this.renderHelper()}
1218
1218
  </div>
1219
- `}};s([A({type:String}),n("design:type",String)],Z.prototype,"rows",void 0),Z=s([a("randstad-form-group")],Z);class tt extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
1219
+ `}};s([T({type:String}),n("design:type",String)],tt.prototype,"rows",void 0),tt=s([a("randstad-form-group")],tt);class et extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
1220
1220
  :host {
1221
1221
  display: inline-flex;
1222
1222
  width: var( --icon-size, 24px );
@@ -1242,14 +1242,14 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1242
1242
  <div class="custom-icon" style="color: ${this.color};">
1243
1243
  ${this.svgTemplate}
1244
1244
  </div>
1245
- `:e``}}s([A({type:String}),n("design:type",Object)],tt.prototype,"name",void 0),s([A({type:String}),n("design:type",Object)],tt.prototype,"size",void 0),s([A({type:String}),n("design:type",Object)],tt.prototype,"color",void 0),s([_(),n("design:type",Object)],tt.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",tt);let et=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`
1245
+ `:e``}}s([T({type:String}),n("design:type",Object)],et.prototype,"name",void 0),s([T({type:String}),n("design:type",Object)],et.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],et.prototype,"color",void 0),s([L(),n("design:type",Object)],et.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",et);let it=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
1246
1246
  :host {
1247
1247
  display: block;
1248
1248
  font-family: 'Graphik', sans-serif;
1249
1249
  }
1250
1250
 
1251
1251
  .container {
1252
- ${j}
1252
+ ${W}
1253
1253
  display: flex;
1254
1254
  align-items: flex-start;
1255
1255
  gap: 8px;
@@ -1299,8 +1299,8 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1299
1299
 
1300
1300
  <span class="message">${this.message}</span>
1301
1301
  </div>
1302
- `}};s([A({type:String}),n("design:type",String)],et.prototype,"type",void 0),s([A({type:String}),n("design:type",String)],et.prototype,"icon",void 0),s([A({type:String}),n("design:type",String)],et.prototype,"message",void 0),s([A({type:Boolean}),n("design:type",Boolean)],et.prototype,"open",void 0),et=s([a("randstad-notice")],et);let it=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=[Q,o`
1303
- ${G}
1302
+ `}};s([T({type:String}),n("design:type",String)],it.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],it.prototype,"icon",void 0),s([T({type:String}),n("design:type",String)],it.prototype,"message",void 0),s([T({type:Boolean}),n("design:type",Boolean)],it.prototype,"open",void 0),it=s([a("randstad-notice")],it);let ot=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
1303
+ ${K}
1304
1304
 
1305
1305
  :host {
1306
1306
  font-family: 'Graphik', sans-serif;
@@ -1401,13 +1401,13 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1401
1401
  }
1402
1402
 
1403
1403
  .modal-title {
1404
- ${z}
1404
+ ${I}
1405
1405
  margin: 0;
1406
1406
  color: var(--secondary-color);
1407
1407
  }
1408
1408
 
1409
1409
  .modal-subtitle {
1410
- ${j}
1410
+ ${W}
1411
1411
  margin: 0;
1412
1412
  color: var(--secondary-color-60);
1413
1413
  }
@@ -1501,7 +1501,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1501
1501
  </div>
1502
1502
  </div>
1503
1503
  </div>
1504
- `}};s([A({type:Boolean,reflect:!0}),n("design:type",Object)],it.prototype,"open",void 0),s([A({type:String}),n("design:type",Object)],it.prototype,"title",void 0),s([A({type:String}),n("design:type",String)],it.prototype,"subtitle",void 0),s([A({type:Boolean}),n("design:type",Object)],it.prototype,"showNotice",void 0),s([A({type:String}),n("design:type",String)],it.prototype,"noticeType",void 0),s([A({type:String}),n("design:type",Object)],it.prototype,"noticeMessage",void 0),s([A({type:String}),n("design:type",Object)],it.prototype,"noticeIcon",void 0),s([A({type:Boolean}),n("design:type",Object)],it.prototype,"showPrimaryButton",void 0),s([A({type:String}),n("design:type",Object)],it.prototype,"primaryButtonLabel",void 0),s([A({type:Boolean}),n("design:type",Object)],it.prototype,"showSecondaryButton",void 0),s([A({type:String}),n("design:type",Object)],it.prototype,"secondaryButtonLabel",void 0),s([A({type:Boolean}),n("design:type",Object)],it.prototype,"isFooterCustom",void 0),s([A({type:Boolean}),n("design:type",Object)],it.prototype,"isPrimaryLoader",void 0),s([A({type:Boolean}),n("design:type",Object)],it.prototype,"isPrimaryDisabled",void 0),s([A({type:String}),n("design:type",Object)],it.prototype,"modalWidth",void 0),s([_(),n("design:type",Object)],it.prototype,"scrollable",void 0),it=s([a("custom-modal")],it);let ot=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="",this.description="",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`
1504
+ `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"open",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"title",void 0),s([T({type:String}),n("design:type",String)],ot.prototype,"subtitle",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showNotice",void 0),s([T({type:String}),n("design:type",String)],ot.prototype,"noticeType",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"noticeMessage",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"noticeIcon",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showPrimaryButton",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"primaryButtonLabel",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showSecondaryButton",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"secondaryButtonLabel",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isFooterCustom",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryLoader",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryDisabled",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"modalWidth",void 0),s([L(),n("design:type",Object)],ot.prototype,"scrollable",void 0),ot=s([a("custom-modal")],ot);let rt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="",this.description="",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`
1505
1505
  :host {
1506
1506
  display: none;
1507
1507
  position: fixed;
@@ -1563,13 +1563,13 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1563
1563
  }
1564
1564
 
1565
1565
  .popup-title {
1566
- ${W}
1566
+ ${_}
1567
1567
  margin: 0;
1568
1568
  color: var(--secondary-color-80);
1569
1569
  }
1570
1570
 
1571
1571
  .popup-description {
1572
- ${j}
1572
+ ${W}
1573
1573
  margin: 0;
1574
1574
  color: var(--secondary-color-60);
1575
1575
  }
@@ -1692,7 +1692,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1692
1692
  `}
1693
1693
  </div>
1694
1694
  </div>
1695
- `}};s([A({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"open",void 0),s([A({type:String}),n("design:type",String)],ot.prototype,"type",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"icon",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"title",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"description",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"width",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"buttonText",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"confirmText",void 0),s([A({type:String}),n("design:type",Object)],ot.prototype,"cancelText",void 0),s([A({type:Array}),n("design:type",Array)],ot.prototype,"stackedActions",void 0),ot=s([a("custom-popup")],ot);let rt=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1695
+ `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),s([T({type:String}),n("design:type",String)],rt.prototype,"type",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"icon",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"description",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"width",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"buttonText",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"confirmText",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"cancelText",void 0),s([T({type:Array}),n("design:type",Array)],rt.prototype,"stackedActions",void 0),rt=s([a("custom-popup")],rt);let st=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1696
1696
  :host {
1697
1697
  display: inline-block;
1698
1698
  width: 64px;
@@ -1705,7 +1705,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1705
1705
  }
1706
1706
 
1707
1707
  .circle-text {
1708
- ${L};
1708
+ ${R};
1709
1709
  text-align: center;
1710
1710
  vertical-align: middle;
1711
1711
  fill: var(--randstad-dark-blue-40);
@@ -1753,7 +1753,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1753
1753
  ${this.value} de ${this.max}
1754
1754
  </text>
1755
1755
  </svg>
1756
- `}};s([A({type:Number}),n("design:type",Object)],rt.prototype,"value",void 0),s([A({type:Number}),n("design:type",Object)],rt.prototype,"max",void 0),rt=s([a("progress-circle")],rt);let st=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
1756
+ `}};s([T({type:Number}),n("design:type",Object)],st.prototype,"value",void 0),s([T({type:Number}),n("design:type",Object)],st.prototype,"max",void 0),st=s([a("progress-circle")],st);let nt=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
1757
1757
  :host {
1758
1758
  font-family: "Graphik", sans-serif;
1759
1759
 
@@ -1897,37 +1897,10 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1897
1897
 
1898
1898
  <span> ${o} </span>
1899
1899
  </label>
1900
- `}};s([A({type:String}),n("design:type",Object)],st.prototype,"name",void 0),s([A({type:Boolean}),n("design:type",Object)],st.prototype,"checked",void 0),s([A({type:Boolean}),n("design:type",Object)],st.prototype,"disabled",void 0),s([A({type:Boolean}),n("design:type",Object)],st.prototype,"error",void 0),s([A({type:String}),n("design:type",Object)],st.prototype,"label",void 0),s([A({type:String}),n("design:type",Object)],st.prototype,"value",void 0),st=s([a("custom-radio")],st);
1901
- /**
1902
- * @license
1903
- * Copyright 2017 Google LLC
1904
- * SPDX-License-Identifier: BSD-3-Clause
1905
- */
1906
- const nt=globalThis,at=nt.trustedTypes,lt=at?at.createPolicy("lit-html",{createHTML:t=>t}):void 0,dt="$lit$",ct=`lit$${Math.random().toFixed(9).slice(2)}$`,ht="?"+ct,pt=`<${ht}>`,ut=document,gt=()=>ut.createComment(""),bt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,mt=Array.isArray,yt="[ \t\n\f\r]",vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,wt=/>/g,xt=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,kt=/"/g,St=/^(?:script|style|textarea|title)$/i,Dt=Symbol.for("lit-noChange"),Et=Symbol.for("lit-nothing"),Ct=new WeakMap,Mt=ut.createTreeWalker(ut,129);function Ft(t,e){if(!mt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==lt?lt.createHTML(e):e}const Ot=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":3===e?"<math>":"",n=vt;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===vt?"!--"===l[1]?n=ft:void 0!==l[1]?n=wt:void 0!==l[2]?(St.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=xt):void 0!==l[3]&&(n=xt):n===xt?">"===l[0]?(n=r??vt,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?xt:'"'===l[3]?kt:$t):n===kt||n===$t?n=xt:n===ft||n===wt?n=vt:(n=xt,r=void 0);const h=n===xt&&t[e+1].startsWith("/>")?" ":"";s+=n===vt?i+pt:d>=0?(o.push(a),i.slice(0,d)+dt+i.slice(d)+ct+h):i+ct+(-2===d?e:h)}return[Ft(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class At{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,d]=Ot(t,e);if(this.el=At.createElement(l,i),Mt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Mt.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(dt)){const e=d[s++],i=o.getAttribute(t).split(ct),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:i,ctor:"."===n[1]?Pt:"?"===n[1]?jt:"@"===n[1]?Rt:Lt}),o.removeAttribute(t)}else t.startsWith(ct)&&(a.push({type:6,index:r}),o.removeAttribute(t));if(St.test(o.tagName)){const t=o.textContent.split(ct),e=t.length-1;if(e>0){o.textContent=at?at.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],gt()),Mt.nextNode(),a.push({type:2,index:++r});o.append(t[e],gt())}}}else if(8===o.nodeType)if(o.data===ht)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(ct,t+1));)a.push({type:7,index:r}),t+=ct.length-1}r++}}static createElement(t,e){const i=ut.createElement("template");return i.innerHTML=t,i}}function _t(t,e,i=t,o){if(e===Dt)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const s=bt(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),void 0===s?r=void 0:(r=new s(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=_t(t,r._$AS(t,e.values),r,o)),e}class Tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??ut).importNode(e,!0);Mt.currentNode=o;let r=Mt.nextNode(),s=0,n=0,a=i[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new Bt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new Nt(r,this,t)),this._$AV.push(e),a=i[++n]}s!==a?.index&&(r=Mt.nextNode(),s++)}return Mt.currentNode=ut,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Bt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=Et,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=_t(this,t,e),bt(t)?t===Et||null==t||""===t?(this._$AH!==Et&&this._$AR(),this._$AH=Et):t!==this._$AH&&t!==Dt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Et&&bt(this._$AH)?this._$AA.nextSibling.data=t:this.T(ut.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=At.createElement(Ft(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Tt(o,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=Ct.get(t.strings);return void 0===e&&Ct.set(t.strings,e=new At(t)),e}k(t){mt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Bt(this.O(gt()),this.O(gt()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Lt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=Et,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Et}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=_t(this,t,e,0),s=!bt(t)||t!==this._$AH&&t!==Dt,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=_t(this,o[i+n],e,n),a===Dt&&(a=this._$AH[n]),s||=!bt(a)||a!==this._$AH[n],a===Et?t=Et:t!==Et&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===Et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Pt extends Lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Et?void 0:t}}class jt extends Lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Et)}}class Rt extends Lt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=_t(this,t,e,0)??Et)===Dt)return;const i=this._$AH,o=t===Et&&i!==Et||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==Et&&(i===Et||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Nt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){_t(this,t)}}const Wt=nt.litHtmlPolyfillSupport;Wt?.(At,Bt),(nt.litHtmlVersions??=[]).push("3.3.1");
1907
- /**
1908
- * @license
1909
- * Copyright 2020 Google LLC
1910
- * SPDX-License-Identifier: BSD-3-Clause
1911
- */
1912
- const zt=2;
1913
- /**
1914
- * @license
1915
- * Copyright 2017 Google LLC
1916
- * SPDX-License-Identifier: BSD-3-Clause
1917
- */class It{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
1918
- /**
1919
- * @license
1920
- * Copyright 2017 Google LLC
1921
- * SPDX-License-Identifier: BSD-3-Clause
1922
- */const qt=(t,e)=>{const i=t._$AN;if(void 0===i)return!1;for(const t of i)t._$AO?.(e,!1),qt(t,e);return!0},Vt=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===i?.size)},Ut=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Gt(e)}};function Ht(t){void 0!==this._$AN?(Vt(this),this._$AM=t,Ut(this)):this._$AM=t}function Yt(t,e=!1,i=0){const o=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(o))for(let t=i;t<o.length;t++)qt(o[t],!1),Vt(o[t]);else null!=o&&(qt(o,!1),Vt(o));else qt(this,t)}const Gt=t=>{t.type==zt&&(t._$AP??=Yt,t._$AQ??=Ht)};class Kt extends It{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Ut(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(qt(this,t),Vt(this))}setValue(t){if((t=>void 0===t.strings)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}
1923
- /**
1924
- * @license
1925
- * Copyright 2020 Google LLC
1926
- * SPDX-License-Identifier: BSD-3-Clause
1927
- */class Xt{}const Qt=new WeakMap,Jt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends Kt{render(t){return Et}update(t,[e]){const i=e!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),Et}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let i=Qt.get(e);void 0===i&&(i=new WeakMap,Qt.set(e,i)),void 0!==i.get(this.G)&&this.G.call(this.ht,void 0),i.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?Qt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});let Zt=class extends B{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this.debounceTimeout=null,this.mobileInputRef=new Xt,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[Q,o`
1928
- ${K}
1900
+ `}};s([T({type:String}),n("design:type",Object)],nt.prototype,"name",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"disabled",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],nt.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],nt.prototype,"value",void 0),nt=s([a("custom-radio")],nt);let at=class extends j{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,o`
1929
1901
  ${X}
1930
- ${Y}
1902
+ ${Q}
1903
+ ${G}
1931
1904
 
1932
1905
  /* --- Own Error Styles --- */
1933
1906
  :host([error]) .input-container:not(.open) .input-wrapper:hover {
@@ -2036,7 +2009,7 @@ const zt=2;
2036
2009
  }
2037
2010
 
2038
2011
  .filter-input {
2039
- ${R};
2012
+ ${z};
2040
2013
  padding: 16px;
2041
2014
  padding-right: 40px;
2042
2015
  border: none;
@@ -2058,7 +2031,7 @@ const zt=2;
2058
2031
  }
2059
2032
 
2060
2033
  .filter-input::placeholder {
2061
- ${R};
2034
+ ${z};
2062
2035
  color: var( --filter-text-color, var( --secondary-color-40 ) );
2063
2036
  }
2064
2037
 
@@ -2103,7 +2076,7 @@ const zt=2;
2103
2076
  }
2104
2077
 
2105
2078
  .options-list li {
2106
- ${R};
2079
+ ${z};
2107
2080
  padding: 8px 16px 8px 16px;
2108
2081
  color: var(--secondary-color-80);
2109
2082
  display: flex;
@@ -2147,7 +2120,7 @@ const zt=2;
2147
2120
  }
2148
2121
 
2149
2122
  .mobile-modal .modal-input-container input::placeholder {
2150
- ${R}
2123
+ ${z}
2151
2124
  color: rgba( 159, 163, 179, 1 );
2152
2125
  }
2153
2126
 
@@ -2199,7 +2172,7 @@ const zt=2;
2199
2172
  }
2200
2173
 
2201
2174
  .filter-fake {
2202
- ${R};
2175
+ ${z};
2203
2176
  padding: 15px;
2204
2177
  padding-right: 40px;
2205
2178
  width: 100%;
@@ -2262,7 +2235,7 @@ const zt=2;
2262
2235
  }
2263
2236
 
2264
2237
  options-list li.no-results-item {
2265
- ${R}
2238
+ ${z}
2266
2239
  cursor: default !important;
2267
2240
  background-color: white !important;
2268
2241
  pointer-events: none;
@@ -2274,7 +2247,7 @@ const zt=2;
2274
2247
  .mobile-modal .options-list li.no-results-item.mobile-item {
2275
2248
  text-align: center;
2276
2249
  }
2277
- `]}update(t){if(this.textLabelFilterNotResult=this.textLabelFilterNotResult??"No se encontraron resultados",this.textLabelMobileSearch=this.textLabelMobileSearch??"buscá una opción",this.placeholder=this.placeholder??"seleccioná una opción",t.has("options")){this.filteredOptions=[...this.options];if(this.options.length<=5)this.filterable=!1;else{const t=this.getAttribute("filterable");this.filterable=null===t||"false"!==t}}if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}updated(t){super.updated(t);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&window.setTimeout((()=>{const t=this.mobileInputRef.value;t&&(t.focus(),t.setSelectionRange(t.value.length,t.value.length))}),100)}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;if(this.filterValue=i,this.isOpen=!0,""===i)this.value="",this.filteredOptions=[...this.options],this.showNoResults=!1;else{const t=this.options.find((t=>"object"==typeof t&&t.value===this.value)),e=t&&"string"!=typeof t?t.label:"";this.value&&e.toLowerCase()!==i.toLowerCase()&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})));const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.showNoResults=0===this.filteredOptions.length}this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;this.mobileFilterValue=i;const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.showNoResults=i.length>0&&0===this.filteredOptions.length,this.requestUpdate(),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})):0===i.length&&(this.filteredOptions=[...this.options])}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.mobileFilterValue=this.filterValue,this.filteredOptions=[...this.options],this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(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.isOpen?(this.mobileFilterValue="",this.filteredOptions=[...this.options],this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=[...this.options])),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(this.contains(e)||(this.isOpen=!1,this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=[...this.options]))}handleKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this.filterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;!this.value||r||o||(this.value="",this._isCleared=!0,this.requestUpdate()),(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=[...this.options],this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1;const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()):!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this.filterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this.filterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this.filterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{if(this.isOpen)return;let t=!1,e=!1;if(this.value&&""!==this.value){const i=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));if(i){t=!0,e=("string"==typeof i?i:i.label).toLowerCase()===this.filterValue.toLowerCase()}}const i=!this.filterValue||""===this.filterValue.trim();i||t&&e?i&&this.filterable&&(this.filteredOptions=[...this.options]):(this._isCleared=!0,this.value="",this.filterValue="",this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterable&&(this.filteredOptions=[...this.options])),this.requestUpdate()}),100)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?e`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:i}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}_getFilteredOptions(){if(!this.filterable)return this.options;if(!this.filterValue||""===this.filterValue.trim())return this.options;const t=this.filterValue.toLowerCase();return this.options.filter((e=>"string"==typeof e?e.toLowerCase().includes(t):e.label.toLowerCase().includes(t)))}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2250
+ `]}update(t){if(this.textLabelFilterNotResult=this.textLabelFilterNotResult??"No se encontraron resultados",this.textLabelMobileSearch=this.textLabelMobileSearch??"buscá una opción",this.placeholder=this.placeholder??"seleccioná una opción",t.has("options")){this.filteredOptions=[...this.options];if(this.options.length<=5)this.filterable=!1;else{const t=this.getAttribute("filterable");this.filterable=null===t||"false"!==t}}if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}updated(t){super.updated(t);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;if(this.filterValue=i,this.isOpen=!0,""===i)this.value="",this.filteredOptions=[...this.options],this.showNoResults=!1;else{const t=this.options.find((t=>"object"==typeof t&&t.value===this.value)),e=t&&"string"!=typeof t?t.label:"";this.value&&e.toLowerCase()!==i.toLowerCase()&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})));const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.showNoResults=i.length>0&&0===this.filteredOptions.length}this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;this.mobileFilterValue=i;const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.showNoResults=i.length>0&&0===this.filteredOptions.length,this.requestUpdate(),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})):0===i.length&&(this.filteredOptions=[...this.options])}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.mobileFilterValue=this.filterValue,this.filteredOptions=[...this.options],this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(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.isOpen?(this.mobileFilterValue="",this.filteredOptions=[...this.options],this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=[...this.options])),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(this.contains(e)||(this.isOpen=!1,this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=[...this.options]))}handleKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this.filterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;!this.value||r||o||(this.value="",this._isCleared=!0,this.requestUpdate()),(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=[...this.options],this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1;const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()):!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this.filterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this.filterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this.filterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{if(this.isOpen)return;let t=!1,e=!1;if(this.value&&""!==this.value){const i=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));if(i){t=!0,e=("string"==typeof i?i:i.label).toLowerCase()===this.filterValue.toLowerCase()}}let i=!1;const o=!this.filterValue||""===this.filterValue.trim();if(o||t&&e||(i=!0),i)this._isCleared=!0,this.value="",this.filterValue="",this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterable&&(this.filteredOptions=[...this.options]);else if(o&&this.filterable)this.filteredOptions=[...this.options],this.showNoResults=!1;else if(t&&!e){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));t&&(this.filterValue="string"==typeof t?t:t.label),this.showNoResults=!1}else this.showNoResults&&(this.showNoResults=!1);this.requestUpdate()}),100)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?e`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:i}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}_getFilteredOptions(){if(!this.filterable)return this.options;if(!this.filterValue||""===this.filterValue.trim())return this.options;const t=this.filterValue.toLowerCase();return this.options.filter((e=>"string"==typeof e?e.toLowerCase().includes(t):e.label.toLowerCase().includes(t)))}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2278
2251
  <randstad-icon
2279
2252
  name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
2280
2253
  size="24px"
@@ -2373,7 +2346,6 @@ const zt=2;
2373
2346
  <div class="mobile-modal" @click="${t=>t.stopPropagation()}">
2374
2347
  <div class="modal-input-container">
2375
2348
  <input
2376
- ${Jt(this.mobileInputRef)}
2377
2349
  class="filter-input"
2378
2350
  .value="${this.mobileFilterValue||""}"
2379
2351
  @input=${t=>this.handleMobileInput(t)}
@@ -2412,7 +2384,7 @@ const zt=2;
2412
2384
  </div>
2413
2385
  </div>
2414
2386
  `:i}
2415
- `}};s([A({type:Object}),n("design:type",Object)],Zt.prototype,"value",void 0),s([A({type:String,attribute:"default-value"}),n("design:type",Object)],Zt.prototype,"defaultValue",void 0),s([A({type:Array}),n("design:type",Array)],Zt.prototype,"options",void 0),s([A({type:Boolean}),n("design:type",Object)],Zt.prototype,"filterable",void 0),s([A({type:Number}),n("design:type",Number)],Zt.prototype,"maxLength",void 0),s([A({type:String}),n("design:type",String)],Zt.prototype,"textLabelFilterNotResult",void 0),s([A({type:String}),n("design:type",String)],Zt.prototype,"textLabelMobileSearch",void 0),s([A({type:Boolean}),n("design:type",Object)],Zt.prototype,"isRenderClearButton",void 0),s([_(),n("design:type",Boolean)],Zt.prototype,"isMobile",void 0),s([_(),n("design:type",Object)],Zt.prototype,"highlightedIndex",void 0),s([_(),n("design:type",Boolean)],Zt.prototype,"_isCleared",void 0),s([_(),n("design:type",Array)],Zt.prototype,"filteredOptions",void 0),s([_(),n("design:type",Object)],Zt.prototype,"filterValue",void 0),s([_(),n("design:type",Object)],Zt.prototype,"isOpen",void 0),s([_(),n("design:type",Object)],Zt.prototype,"mobileFilterValue",void 0),s([_(),n("design:type",Boolean)],Zt.prototype,"showNoResults",void 0),Zt=s([a("filterable-select")],Zt);const te=new CSSStyleSheet;te.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 ee extends t{static{this.styles=[te,o`
2387
+ `}};s([T({type:Object}),n("design:type",Object)],at.prototype,"value",void 0),s([T({type:String,attribute:"default-value"}),n("design:type",Object)],at.prototype,"defaultValue",void 0),s([T({type:Array}),n("design:type",Array)],at.prototype,"options",void 0),s([T({type:Boolean}),n("design:type",Object)],at.prototype,"filterable",void 0),s([T({type:Number}),n("design:type",Number)],at.prototype,"maxLength",void 0),s([T({type:String}),n("design:type",String)],at.prototype,"textLabelFilterNotResult",void 0),s([T({type:String}),n("design:type",String)],at.prototype,"textLabelMobileSearch",void 0),s([T({type:Boolean}),n("design:type",Object)],at.prototype,"isRenderClearButton",void 0),s([L(),n("design:type",Boolean)],at.prototype,"isMobile",void 0),s([L(),n("design:type",Object)],at.prototype,"highlightedIndex",void 0),s([L(),n("design:type",Boolean)],at.prototype,"_isCleared",void 0),s([L(),n("design:type",Array)],at.prototype,"filteredOptions",void 0),s([L(),n("design:type",Object)],at.prototype,"filterValue",void 0),s([L(),n("design:type",Object)],at.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],at.prototype,"mobileFilterValue",void 0),s([L(),n("design:type",Boolean)],at.prototype,"showNoResults",void 0),s([P(".mobile-modal .filter-input"),n("design:type",HTMLInputElement)],at.prototype,"mobileInputRef",void 0),at=s([a("filterable-select")],at);const lt=new CSSStyleSheet;lt.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n\n .body-l {\n font-family: Graphik;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n }\n");class dt extends t{static{this.styles=[lt,o`
2416
2388
  :host {
2417
2389
  display: flex;
2418
2390
  position: fixed;
@@ -2482,7 +2454,7 @@ const zt=2;
2482
2454
  }
2483
2455
 
2484
2456
  .container {
2485
- ${P};
2457
+ ${A};
2486
2458
  display: flex;
2487
2459
  align-items: center;
2488
2460
  box-sizing: border-box;
@@ -2504,7 +2476,7 @@ const zt=2;
2504
2476
  -webkit-line-clamp: 2;
2505
2477
  overflow: hidden;
2506
2478
  text-overflow: ellipsis;
2507
- white-space: normal;
2479
+ white-space: pre-wrap;
2508
2480
  max-height: calc(2 * 25px);
2509
2481
  line-height: 25px;
2510
2482
  word-break: break-word;
@@ -2548,7 +2520,7 @@ const zt=2;
2548
2520
  <randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
2549
2521
  <span class="message">${this.message}</span>
2550
2522
  </div>
2551
- `}}customElements.define("randstad-snackbar",ee);let ie=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
2523
+ `}}customElements.define("randstad-snackbar",dt);let ct=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
2552
2524
  .stepper {
2553
2525
  display: flex;
2554
2526
  gap: 20px;
@@ -2648,7 +2620,7 @@ const zt=2;
2648
2620
  </div>
2649
2621
  `))}
2650
2622
  </div>
2651
- `}};s([A({type:Number}),n("design:type",Object)],ie.prototype,"totalSteps",void 0),s([A({type:Number}),n("design:type",Object)],ie.prototype,"currentStep",void 0),ie=s([a("custom-stepper")],ie);let oe=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`
2623
+ `}};s([T({type:Number}),n("design:type",Object)],ct.prototype,"totalSteps",void 0),s([T({type:Number}),n("design:type",Object)],ct.prototype,"currentStep",void 0),ct=s([a("custom-stepper")],ct);let ht=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
2652
2624
  :host {
2653
2625
  display: block;
2654
2626
  border-bottom: 1px solid #E7E8EC;
@@ -2759,7 +2731,7 @@ const zt=2;
2759
2731
 
2760
2732
  @media (max-width: 940px) {
2761
2733
  .tab {
2762
- ${j};
2734
+ ${W};
2763
2735
  padding: 16px;
2764
2736
  }
2765
2737
  }
@@ -2787,7 +2759,7 @@ const zt=2;
2787
2759
  </button>
2788
2760
  `:null}
2789
2761
  </div>
2790
- `}};s([A({type:Array}),n("design:type",Array)],oe.prototype,"tabs",void 0),s([A({type:String}),n("design:type",String)],oe.prototype,"selected",void 0),s([_(),n("design:type",String)],oe.prototype,"internalSelected",void 0),s([_(),n("design:type",Object)],oe.prototype,"showPrev",void 0),s([_(),n("design:type",Object)],oe.prototype,"showNext",void 0),oe=s([a("tabs-bar")],oe);let re=class extends B{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=t=>`El formato del archivo ${this.isMultiple?t:""} no es válido`,this.TEXT_SNACKBAR_ERROR_SIZE=(t,e)=>`El archivo ${this.isMultiple?t:""} es muy grande. Máximo ${e}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,clearTimeout(o.timer),o.timer=setTimeout((()=>o.open=!1),e)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return`${parseFloat((t/e).toPrecision(3)).toString()} MB`}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const n=e>0,a=i.length>0;for(const l of t){if(a&&!i.includes(l.type))return this.setError(s,o,this.TEXT_SNACKBAR_ERROR_TYPE(l.name)),!1;if(n&&l.size>e)return this.setError(s,r,this.TEXT_SNACKBAR_ERROR_SIZE(l.name,this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:s,errorMessageSize:n,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=Number.isFinite(i)&&i>0?i:1,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(a,t,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,o,r,s,n,a))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
2762
+ `}};s([T({type:Array}),n("design:type",Array)],ht.prototype,"tabs",void 0),s([T({type:String}),n("design:type",String)],ht.prototype,"selected",void 0),s([L(),n("design:type",String)],ht.prototype,"internalSelected",void 0),s([L(),n("design:type",Object)],ht.prototype,"showPrev",void 0),s([L(),n("design:type",Object)],ht.prototype,"showNext",void 0),ht=s([a("tabs-bar")],ht);let pt=class extends j{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=t=>`El formato del archivo ${this.isMultiple?t:""} no es válido`,this.TEXT_SNACKBAR_ERROR_SIZE=(t,e)=>`El archivo ${this.isMultiple?t:""} es muy grande. Máximo ${e}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,clearTimeout(o.timer),o.timer=setTimeout((()=>o.open=!1),e)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return`${parseFloat((t/e).toPrecision(3)).toString()} MB`}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const n=e>0,a=i.length>0;for(const l of t){if(a&&!i.includes(l.type))return this.setError(s,o,this.TEXT_SNACKBAR_ERROR_TYPE(l.name)),!1;if(n&&l.size>e)return this.setError(s,r,this.TEXT_SNACKBAR_ERROR_SIZE(l.name,this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:s,errorMessageSize:n,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=Number.isFinite(i)&&i>0?i:1,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(a,t,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,o,r,s,n,a))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
2791
2763
  ${this.loading?e`
2792
2764
  <div class="progress-bar-container">
2793
2765
  <div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
@@ -2797,7 +2769,7 @@ const zt=2;
2797
2769
  `:e`
2798
2770
  ${t}
2799
2771
  `}
2800
- `}};s([A({type:Array}),n("design:type",Array)],re.prototype,"files",void 0),s([A({type:Number}),n("design:type",Object)],re.prototype,"simulatedDelay",void 0),s([A({type:Boolean}),n("design:type",Object)],re.prototype,"showAlertInError",void 0),s([A({type:String}),n("design:type",Object)],re.prototype,"typeTextFile",void 0),s([_(),n("design:type",Object)],re.prototype,"loading",void 0),s([_(),n("design:type",Object)],re.prototype,"progress",void 0),s([_(),n("design:type",Object)],re.prototype,"errorTextMessage",void 0),s([T('input[ type="file" ]'),n("design:type",HTMLInputElement)],re.prototype,"fileInput",void 0),re=s([a("base-upload")],re);const se={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},ne={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...se,"text/plain":".txt"},ae=o`
2772
+ `}};s([T({type:Array}),n("design:type",Array)],pt.prototype,"files",void 0),s([T({type:Number}),n("design:type",Object)],pt.prototype,"simulatedDelay",void 0),s([T({type:Boolean}),n("design:type",Object)],pt.prototype,"showAlertInError",void 0),s([T({type:String}),n("design:type",Object)],pt.prototype,"typeTextFile",void 0),s([L(),n("design:type",Object)],pt.prototype,"loading",void 0),s([L(),n("design:type",Object)],pt.prototype,"progress",void 0),s([L(),n("design:type",Object)],pt.prototype,"errorTextMessage",void 0),s([P('input[ type="file" ]'),n("design:type",HTMLInputElement)],pt.prototype,"fileInput",void 0),pt=s([a("base-upload")],pt);const ut={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},gt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ut,"text/plain":".txt"},bt=o`
2801
2773
  .progress-bar-container {
2802
2774
  min-height: 23px;
2803
2775
  display: flex;
@@ -2817,9 +2789,9 @@ const zt=2;
2817
2789
  background-color: var( --primary-color );
2818
2790
  transition: width 0.1s ease;
2819
2791
  }
2820
- `;let le=class extends re{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isChangeStyleError=!1,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
2821
- ${K}
2822
- ${ae}
2792
+ `;let mt=class extends pt{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isChangeStyleError=!1,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
2793
+ ${X}
2794
+ ${bt}
2823
2795
 
2824
2796
  :host {
2825
2797
  font-family: 'Graphik', sans-serif;
@@ -2866,28 +2838,28 @@ const zt=2;
2866
2838
  }
2867
2839
 
2868
2840
  .text-main {
2869
- ${P};
2841
+ ${A};
2870
2842
  text-align: center;
2871
2843
  vertical-align: middle;
2872
2844
  color: var( --secondary-color-80 );
2873
2845
  }
2874
2846
 
2875
2847
  .text-secondary {
2876
- ${L};
2848
+ ${R};
2877
2849
  text-align: center;
2878
2850
  vertical-align: middle;
2879
2851
  color: var( --secondary-color-60 );
2880
2852
  }
2881
2853
 
2882
2854
  .text-tertiary {
2883
- ${L};
2855
+ ${R};
2884
2856
  text-align: center;
2885
2857
  vertical-align: middle;
2886
2858
  color: var( --secondary-color-40 );
2887
2859
  }
2888
2860
 
2889
2861
  .button {
2890
- ${L};
2862
+ ${R};
2891
2863
  background-color: var( --primary-color );
2892
2864
  border: none;
2893
2865
  padding: 4px 16px;
@@ -2946,7 +2918,7 @@ const zt=2;
2946
2918
  .text-main.error {
2947
2919
  color: var(--ui-negative, #E00F0F);
2948
2920
  }
2949
- `}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,se)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}handleButtonKeydown(t,e){if(!e&&("Enter"===t.key||" "===t.key)){t.preventDefault();const e=t.currentTarget?.querySelector('input[type="file"]');e&&!e.disabled&&e.click()}}render(){const t=this.disabled||this.isMaxFilesReached,o=this.disabled,r=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,n=!1!==this.isShowInfoSize,a=r&&n?` / max. ${this.getTextMaxFileSize()}`:"",l=s?this.getTextAcceptedFileTypes():"",d=!0===this.isChangeStyleError,c=!!this.errorTextMessage&&d,h=c&&this.errorTextMessage?this.errorTextMessage:`subí hasta ${this.maxFiles} imágenes`,p=c?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",u=`container ${this.isDragging?"dragging":""} ${c?"error":""}`,g=e`
2921
+ `}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ut)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}handleButtonKeydown(t,e){if(!e&&("Enter"===t.key||" "===t.key)){t.preventDefault();const e=t.currentTarget?.querySelector('input[type="file"]');e&&!e.disabled&&e.click()}}render(){const t=this.disabled||this.isMaxFilesReached,o=this.disabled,r=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,n=!1!==this.isShowInfoSize,a=r&&n?` / max. ${this.getTextMaxFileSize()}`:"",l=s?this.getTextAcceptedFileTypes():"",d=!0===this.isChangeStyleError,c=!!this.errorTextMessage&&d,h=c&&this.errorTextMessage?this.errorTextMessage:`subí hasta ${this.maxFiles} imágenes`,p=c?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",u=`container ${this.isDragging?"dragging":""} ${c?"error":""}`,g=e`
2950
2922
  <label class="button"
2951
2923
  tabindex="0"
2952
2924
  @keydown=${e=>this.handleButtonKeydown(e,t)}
@@ -3012,8 +2984,8 @@ const zt=2;
3012
2984
  </div>
3013
2985
  </div>
3014
2986
  </div>
3015
- `}};s([A({type:Array}),n("design:type",Array)],le.prototype,"acceptedFileTypes",void 0),s([A({type:Number}),n("design:type",Object)],le.prototype,"maxFiles",void 0),s([A({type:Number}),n("design:type",Object)],le.prototype,"maxFileSize",void 0),s([A({type:Boolean}),n("design:type",Object)],le.prototype,"isShowInfoSize",void 0),s([A({type:Boolean}),n("design:type",Object)],le.prototype,"isChangeStyleError",void 0),s([_(),n("design:type",Object)],le.prototype,"isDragging",void 0),s([_(),n("design:type",Array)],le.prototype,"imageUrls",void 0),s([_(),n("design:type",Boolean)],le.prototype,"isMaxFilesReached",void 0),le=s([a("upload-image")],le);const de=6048e5,ce=Symbol.for("constructDateFrom");function he(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&ce in t?t[ce](e):t instanceof Date?new t.constructor(e):new Date(e)}function pe(t,e){return he(e||t,t)}function ue(t,e,i){const o=pe(t,i?.in);if(isNaN(e))return he(t,NaN);if(!e)return o;const r=o.getDate(),s=he(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let ge={};function be(){return ge}function me(t,e){const i=be(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=pe(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function ye(t,e){return me(t,{...e,weekStartsOn:1})}function ve(t,e){const i=pe(t,e?.in),o=i.getFullYear(),r=he(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=ye(r),n=he(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=ye(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function fe(t){const e=pe(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 we(t,...e){const i=he.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function xe(t,e){const i=pe(t,e?.in);return i.setHours(0,0,0,0),i}function $e(t,e,i){return ue(t,12*e,i)}function ke(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+pe(t)));var e}function Se(t,e){const i=pe(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const De={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 Ee(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const Ce={date:Ee({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ee({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:Ee({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Me={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Fe(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 Oe(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var Ae;const _e={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=De[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:Ce,formatRelative:(t,e,i,o)=>Me[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:Fe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Fe({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:Fe({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:Fe({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:Fe({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:(Ae={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(Ae.matchPattern);if(!i)return null;const o=i[0],r=t.match(Ae.parsePattern);if(!r)return null;let s=Ae.valueCallback?Ae.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Oe({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:Oe({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:Oe({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:Oe({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:Oe({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 Te(t,e){const i=pe(t,e?.in),o=function(t,e){const[i,o]=we(0,t,e),r=xe(i),s=xe(o),n=+r-fe(r),a=+s-fe(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=pe(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Be(t,e){const i=pe(t,e?.in),o=+ye(i)-+function(t,e){const i=ve(t,e),o=he(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),ye(o)}(i);return Math.round(o/de)+1}function Le(t,e){const i=pe(t,e?.in),o=i.getFullYear(),r=be(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=he(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=me(n,e),l=he(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=me(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Pe(t,e){const i=pe(t,e?.in),o=+me(i,e)-+function(t,e){const i=be(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Le(t,e),s=he(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),me(s,e)}(i,e);return Math.round(o/de)+1}function je(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Re={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return je("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):je(i+1,2)},d:(t,e)=>je(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)=>je(t.getHours()%12||12,e.length),H:(t,e)=>je(t.getHours(),e.length),m:(t,e)=>je(t.getMinutes(),e.length),s:(t,e)=>je(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return je(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Ne="midnight",We="noon",ze="morning",Ie="afternoon",qe="evening",Ve="night",Ue={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 Re.y(t,e)},Y:function(t,e,i,o){const r=Le(t,o),s=r>0?r:1-r;if("YY"===e){return je(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):je(s,e.length)},R:function(t,e){return je(ve(t),e.length)},u:function(t,e){return je(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 je(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 je(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 Re.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 je(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=Pe(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):je(r,e.length)},I:function(t,e,i){const o=Be(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):je(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Re.d(t,e)},D:function(t,e,i){const o=Te(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):je(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 je(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 je(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 je(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?We:0===o?Ne: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?qe:o>=12?Ie:o>=4?ze:Ve,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 Re.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Re.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):je(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):je(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Re.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Re.s(t,e)},S:function(t,e){return Re.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Ye(o);case"XXXX":case"XX":return Ge(o);default:return Ge(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return Ye(o);case"xxxx":case"xx":return Ge(o);default:return Ge(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+He(o,":");default:return"GMT"+Ge(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+He(o,":");default:return"GMT"+Ge(o,":")}},t:function(t,e,i){return je(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return je(+t,e.length)}};function He(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+je(s,2)}function Ye(t,e){if(t%60==0){return(t>0?"-":"+")+je(Math.abs(t)/60,2)}return Ge(t,e)}function Ge(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+je(Math.trunc(o/60),2)+e+je(o%60,2)}const Ke=(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"})}},Xe=(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"})}},Qe={p:Xe,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return Ke(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}}",Ke(o,e)).replace("{{time}}",Xe(r,e))}},Je=/^D+$/,Ze=/^Y+$/,ti=["D","DD","YY","YYYY"];const ei=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ii=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oi=/^'([^]*?)'?$/,ri=/''/g,si=/[a-zA-Z]/;function ni(t,e,i){const o=be(),r=o.locale??_e,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=pe(t,i?.in);if(!ke(a))throw new RangeError("Invalid time value");let l=e.match(ii).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,Qe[e])(t,r.formatLong)}return t})).join("").match(ei).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:ai(t)};if(Ue[e])return{isToken:!0,value:t};if(e.match(si))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return Ze.test(t)}(o)||function(t){return Je.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),ti.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,Ue[o[0]])(a,o,r.localize,d)})).join("")}function ai(t){const e=t.match(oi);return e?e[1].replace(ri,"'"):t}function li(t,e){return pe(t,e?.in).getDate()}function di(t,e){const i=pe(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=he(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function ci(t,e){return+pe(t)>+pe(e)}function hi(t,e){return+pe(t)<+pe(e)}function pi(t,e,i){const[o,r]=we(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function ui(t,e,i){const[o,r]=we(0,t,e);return o.getFullYear()===r.getFullYear()}function gi(t,e){return function(t,e){const[i,o]=we(0,t,e);return+xe(i)===+xe(o)}(he(t,t),function(t){return he(t,Date.now())}(t))}let bi=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=[Q,o`
3016
- ${G}
2987
+ `}};s([T({type:Array}),n("design:type",Array)],mt.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],mt.prototype,"maxFiles",void 0),s([T({type:Number}),n("design:type",Object)],mt.prototype,"maxFileSize",void 0),s([T({type:Boolean}),n("design:type",Object)],mt.prototype,"isShowInfoSize",void 0),s([T({type:Boolean}),n("design:type",Object)],mt.prototype,"isChangeStyleError",void 0),s([L(),n("design:type",Object)],mt.prototype,"isDragging",void 0),s([L(),n("design:type",Array)],mt.prototype,"imageUrls",void 0),s([L(),n("design:type",Boolean)],mt.prototype,"isMaxFilesReached",void 0),mt=s([a("upload-image")],mt);const yt=6048e5,vt=Symbol.for("constructDateFrom");function ft(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&vt in t?t[vt](e):t instanceof Date?new t.constructor(e):new Date(e)}function wt(t,e){return ft(e||t,t)}function xt(t,e,i){const o=wt(t,i?.in);if(isNaN(e))return ft(t,NaN);if(!e)return o;const r=o.getDate(),s=ft(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let kt={};function $t(){return kt}function St(t,e){const i=$t(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=wt(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function Dt(t,e){return St(t,{...e,weekStartsOn:1})}function Et(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=ft(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=Dt(r),n=ft(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=Dt(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Ct(t){const e=wt(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Ft(t,...e){const i=ft.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Mt(t,e){const i=wt(t,e?.in);return i.setHours(0,0,0,0),i}function Ot(t,e,i){return xt(t,12*e,i)}function Bt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+wt(t)));var e}function Tt(t,e){const i=wt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const Lt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const jt={date:Pt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function At(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Wt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var zt;const Nt={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=Lt[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:jt,formatRelative:(t,e,i,o)=>Rt[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:At({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:At({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:At({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:At({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:At({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(zt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(zt.matchPattern);if(!i)return null;const o=i[0],r=t.match(zt.parsePattern);if(!r)return null;let s=zt.valueCallback?zt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Wt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:Wt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function _t(t,e){const i=wt(t,e?.in),o=function(t,e){const[i,o]=Ft(0,t,e),r=Mt(i),s=Mt(o),n=+r-Ct(r),a=+s-Ct(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=wt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function It(t,e){const i=wt(t,e?.in),o=+Dt(i)-+function(t,e){const i=Et(t,e),o=ft(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Dt(o)}(i);return Math.round(o/yt)+1}function qt(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=$t(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=ft(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=St(n,e),l=ft(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=St(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Vt(t,e){const i=wt(t,e?.in),o=+St(i,e)-+function(t,e){const i=$t(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=qt(t,e),s=ft(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),St(s,e)}(i,e);return Math.round(o/yt)+1}function Ut(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Yt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Ut("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Ut(i+1,2)},d:(t,e)=>Ut(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Ut(t.getHours()%12||12,e.length),H:(t,e)=>Ut(t.getHours(),e.length),m:(t,e)=>Ut(t.getMinutes(),e.length),s:(t,e)=>Ut(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Ut(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Ht="midnight",Gt="noon",Kt="morning",Xt="afternoon",Qt="evening",Jt="night",Zt={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Yt.y(t,e)},Y:function(t,e,i,o){const r=qt(t,o),s=r>0?r:1-r;if("YY"===e){return Ut(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Ut(s,e.length)},R:function(t,e){return Ut(Et(t),e.length)},u:function(t,e){return Ut(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ut(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ut(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Yt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ut(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Vt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Ut(r,e.length)},I:function(t,e,i){const o=It(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Ut(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Yt.d(t,e)},D:function(t,e,i){const o=_t(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Ut(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ut(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ut(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Ut(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Gt:0===o?Ht:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?Qt:o>=12?Xt:o>=4?Kt:Jt,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Yt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Yt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Yt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Yt.s(t,e)},S:function(t,e){return Yt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ee(o);case"XXXX":case"XX":return ie(o);default:return ie(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ee(o);case"xxxx":case"xx":return ie(o);default:return ie(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},t:function(t,e,i){return Ut(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Ut(+t,e.length)}};function te(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Ut(s,2)}function ee(t,e){if(t%60==0){return(t>0?"-":"+")+Ut(Math.abs(t)/60,2)}return ie(t,e)}function ie(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Ut(Math.trunc(o/60),2)+e+Ut(o%60,2)}const oe=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},re=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},se={p:re,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return oe(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",oe(o,e)).replace("{{time}}",re(r,e))}},ne=/^D+$/,ae=/^Y+$/,le=["D","DD","YY","YYYY"];const de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,he=/^'([^]*?)'?$/,pe=/''/g,ue=/[a-zA-Z]/;function ge(t,e,i){const o=$t(),r=o.locale??Nt,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=wt(t,i?.in);if(!Bt(a))throw new RangeError("Invalid time value");let l=e.match(ce).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,se[e])(t,r.formatLong)}return t})).join("").match(de).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:be(t)};if(Zt[e])return{isToken:!0,value:t};if(e.match(ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ae.test(t)}(o)||function(t){return ne.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),le.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,Zt[o[0]])(a,o,r.localize,d)})).join("")}function be(t){const e=t.match(he);return e?e[1].replace(pe,"'"):t}function me(t,e){return wt(t,e?.in).getDate()}function ye(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=ft(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function ve(t,e){return+wt(t)>+wt(e)}function fe(t,e){return+wt(t)<+wt(e)}function we(t,e,i){const[o,r]=Ft(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function xe(t,e,i){const[o,r]=Ft(0,t,e);return o.getFullYear()===r.getFullYear()}function ke(t,e){return function(t,e){const[i,o]=Ft(0,t,e);return+Mt(i)===+Mt(o)}(ft(t,t),function(t){return ft(t,Date.now())}(t))}let $e=class extends t{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[J,o`
2988
+ ${K}
3017
2989
 
3018
2990
  /* Estilos generales del contenedor del calendario (escritorio) */
3019
2991
  .calendar-container {
@@ -3079,7 +3051,7 @@ const zt=2;
3079
3051
  }
3080
3052
 
3081
3053
  .month-year-button {
3082
- ${P}
3054
+ ${A}
3083
3055
  display: flex;
3084
3056
  align-items: center;
3085
3057
  justify-content: center;
@@ -3128,7 +3100,7 @@ const zt=2;
3128
3100
 
3129
3101
  /* Estilos para cada botón de día */
3130
3102
  .day {
3131
- ${j}
3103
+ ${W}
3132
3104
  display: flex;
3133
3105
  align-items: center;
3134
3106
  justify-content: center;
@@ -3191,7 +3163,7 @@ const zt=2;
3191
3163
  /* Botones de año y mes en la grilla */
3192
3164
  .year-button,
3193
3165
  .month-button {
3194
- ${j}
3166
+ ${W}
3195
3167
  background: var(--secondary-white, #fff);
3196
3168
  border: 1px solid transparent;
3197
3169
  color: var( --secondary-dark-blue-80, #3c4257 );
@@ -3345,7 +3317,7 @@ const zt=2;
3345
3317
  }
3346
3318
 
3347
3319
  .mobile-modal .day {
3348
- ${R}
3320
+ ${z}
3349
3321
  font-weight: 500;
3350
3322
  display: flex;
3351
3323
  align-items: center;
@@ -3443,7 +3415,7 @@ const zt=2;
3443
3415
  border-radius: 9999px;
3444
3416
  }
3445
3417
  /* */
3446
- `]}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this.handleCalendarKeydown.bind(this))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?ue(this.viewDate,t):"months"===this.currentView?$e(this.viewDate,t):$e(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=pe(t,i?.in);return isNaN(+o)?he(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=pe(t,i?.in),r=o.getFullYear(),s=o.getDate(),n=he(t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);const a=di(n);return o.setMonth(e,Math.min(s,a)),o}(this.viewDate,t);this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const s=i[r];s&&s.focus()}_focusDayOfWeekEdge(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;if(-1===Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===e)))return;const i=Array.from(this.shadowRoot.querySelectorAll(".days-grid > *")).findIndex((t=>t===e));if(-1===i)return;const o=i%7;let r=null;if("start"===t){const t=i-o;r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e<=i;)e++,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}else{const t=i+(6-o);r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e>=i;)e--,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}r?.focus()}handleCalendarKeydown(t){const{key:e}=t,i=this.shadowRoot?.activeElement;if("Escape"===e)return t.preventDefault(),void this.dispatchEvent(new CustomEvent("close"));if(i&&(i.classList.contains("month-year-button")||i.classList.contains("nav-button"))){t.preventDefault();const o=this.shadowRoot?.querySelector(".month-year-button"),r=this.shadowRoot?.querySelector(".header-right button:first-child"),s=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===s&&this.handleNavClick(1),void this.updateComplete.then((()=>i.focus()));switch(e){case"ArrowUp":return t.preventDefault(),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));case"ArrowRight":(i===o||i===r)&&s?.focus();break;case"ArrowLeft":i===s?r?.focus():i===r&&o?.focus();break;case"ArrowDown":if("days"===this.currentView){const t=this.initialFocusElement||this.shadowRoot?.querySelector(".day:not([disabled])");t?.focus()}else if("months"===this.currentView||"years"===this.currentView){const t=this.shadowRoot?.querySelector(`.${"months"===this.currentView?"month":"year"}-grid button:not([disabled])`);t?.focus()}}}else if(i&&i.classList.contains("day")&&"days"===this.currentView){t.preventDefault();const o=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===i)),r=this.shadowRoot?.querySelector(".month-year-button");switch(e){case"ArrowLeft":this._findAndFocusDayButton(-1);break;case"ArrowRight":this._findAndFocusDayButton(1);break;case"ArrowDown":this._findAndFocusDayButton(7);break;case"ArrowUp":o-7<0?r?.focus():this._findAndFocusDayButton(-7);break;case"Home":this._focusDayOfWeekEdge("start");break;case"End":this._focusDayOfWeekEdge("end");break;case"Enter":i.click()}}else if(i&&(i.classList.contains("month-button")||i.classList.contains("year-button"))){t.preventDefault();const o="months"===this.currentView?".month-button:not([disabled])":".year-button:not([disabled])",r=Array.from(this.shadowRoot.querySelectorAll(o)),s=r.findIndex((t=>t===i)),n=this.shadowRoot?.querySelector(".month-year-button");if(-1===s)return;let a=s;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void n?.focus();break;case"ArrowLeft":a-=1,a<0&&(a=0);break;case"ArrowRight":a+=1,a>=r.length&&(a=r.length-1);break;case"Enter":i.click()}a!==s&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault()}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=pi(Se(this.viewDate),Se(this.minDate))||hi(this.viewDate,this.minDate)),this.maxDate&&(r=pi(Se(this.viewDate),Se(this.maxDate))||ci(this.viewDate,this.maxDate))}const s="months"===this.currentView,n=e`
3418
+ `]}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this.handleCalendarKeydown.bind(this))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?xt(this.viewDate,t):"months"===this.currentView?Ot(this.viewDate,t):Ot(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=wt(t,i?.in);return isNaN(+o)?ft(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=wt(t,i?.in),r=o.getFullYear(),s=o.getDate(),n=ft(t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);const a=ye(n);return o.setMonth(e,Math.min(s,a)),o}(this.viewDate,t);this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const s=i[r];s&&s.focus()}_focusDayOfWeekEdge(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;if(-1===Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===e)))return;const i=Array.from(this.shadowRoot.querySelectorAll(".days-grid > *")).findIndex((t=>t===e));if(-1===i)return;const o=i%7;let r=null;if("start"===t){const t=i-o;r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e<=i;)e++,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}else{const t=i+(6-o);r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e>=i;)e--,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}r?.focus()}handleCalendarKeydown(t){const{key:e}=t,i=this.shadowRoot?.activeElement;if("Escape"===e)return t.preventDefault(),void this.dispatchEvent(new CustomEvent("close"));if(i&&(i.classList.contains("month-year-button")||i.classList.contains("nav-button"))){t.preventDefault();const o=this.shadowRoot?.querySelector(".month-year-button"),r=this.shadowRoot?.querySelector(".header-right button:first-child"),s=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===s&&this.handleNavClick(1),void this.updateComplete.then((()=>i.focus()));switch(e){case"ArrowUp":return t.preventDefault(),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));case"ArrowRight":(i===o||i===r)&&s?.focus();break;case"ArrowLeft":i===s?r?.focus():i===r&&o?.focus();break;case"ArrowDown":if("days"===this.currentView){const t=this.initialFocusElement||this.shadowRoot?.querySelector(".day:not([disabled])");t?.focus()}else if("months"===this.currentView||"years"===this.currentView){const t=this.shadowRoot?.querySelector(`.${"months"===this.currentView?"month":"year"}-grid button:not([disabled])`);t?.focus()}}}else if(i&&i.classList.contains("day")&&"days"===this.currentView){t.preventDefault();const o=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===i)),r=this.shadowRoot?.querySelector(".month-year-button");switch(e){case"ArrowLeft":this._findAndFocusDayButton(-1);break;case"ArrowRight":this._findAndFocusDayButton(1);break;case"ArrowDown":this._findAndFocusDayButton(7);break;case"ArrowUp":o-7<0?r?.focus():this._findAndFocusDayButton(-7);break;case"Home":this._focusDayOfWeekEdge("start");break;case"End":this._focusDayOfWeekEdge("end");break;case"Enter":i.click()}}else if(i&&(i.classList.contains("month-button")||i.classList.contains("year-button"))){t.preventDefault();const o="months"===this.currentView?".month-button:not([disabled])":".year-button:not([disabled])",r=Array.from(this.shadowRoot.querySelectorAll(o)),s=r.findIndex((t=>t===i)),n=this.shadowRoot?.querySelector(".month-year-button");if(-1===s)return;let a=s;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void n?.focus();break;case"ArrowLeft":a-=1,a<0&&(a=0);break;case"ArrowRight":a+=1,a>=r.length&&(a=r.length-1);break;case"Enter":i.click()}a!==s&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault()}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=we(Tt(this.viewDate),Tt(this.minDate))||fe(this.viewDate,this.minDate)),this.maxDate&&(r=we(Tt(this.viewDate),Tt(this.maxDate))||ve(this.viewDate,this.maxDate))}const s="months"===this.currentView,n=e`
3447
3419
  <randstad-icon
3448
3420
  name="${"days"===this.currentView?"arrow_drop_down":"arrow_drop_up"}"
3449
3421
  class="select-icon"
@@ -3491,7 +3463,7 @@ const zt=2;
3491
3463
  </div>
3492
3464
  `}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return e`
3493
3465
  <div class="month-grid">
3494
- ${t.map(((t,s)=>{const n=s===o,a=s===i&&this.selectedDate&&ui(this.viewDate,this.selectedDate),l=s===i&&this.selectedDate&&!ui(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`
3466
+ ${t.map(((t,s)=>{const n=s===o,a=s===i&&this.selectedDate&&xe(this.viewDate,this.selectedDate),l=s===i&&this.selectedDate&&!xe(this.viewDate,this.selectedDate);let d=!1;this.minDate&&r===this.minDate.getFullYear()&&(d=s<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||s>this.maxDate.getMonth());return e`
3495
3467
  <button
3496
3468
  class="${"month-button "+(a?"selected":l?"secondary-selected":n?"current":"")}"
3497
3469
  ?disabled=${d}
@@ -3501,20 +3473,20 @@ const zt=2;
3501
3473
  </button>
3502
3474
  `}))}
3503
3475
  </div>
3504
- `}renderDayView(){const t=di(this.viewDate),i=Se(this.viewDate),o=pe(i,r?.in).getDay();var r;const s=Array.from({length:0===o?6:o-1},(()=>null)),n=Array.from({length:t},((t,e)=>function(t,e,i){const o=pe(t,i?.in);return o.setDate(e),o}(i,e+1))),a=this.getShortWeekdays();return e`
3476
+ `}renderDayView(){const t=ye(this.viewDate),i=Tt(this.viewDate),o=wt(i,r?.in).getDay();var r;const s=Array.from({length:0===o?6:o-1},(()=>null)),n=Array.from({length:t},((t,e)=>function(t,e,i){const o=wt(t,i?.in);return o.setDate(e),o}(i,e+1))),a=this.getShortWeekdays();return e`
3505
3477
  <div class="weekdays">
3506
3478
  ${a.map((t=>e`<div>${t}</div>`))}
3507
3479
  </div>
3508
3480
 
3509
3481
  <div class="days-grid">
3510
3482
  ${s.map((()=>e`<div></div>`))}
3511
- ${n.map((t=>{const i=xe(t),o=this.selectedDate?xe(this.selectedDate):null,r=this.minDate&&hi(i,xe(this.minDate))||this.maxDate&&ci(i,xe(this.maxDate)),s=gi(i),n=o&&li(i)===li(o),a=n&&o&&pi(i,o)&&ui(i,o);return e`
3483
+ ${n.map((t=>{const i=Mt(t),o=this.selectedDate?Mt(this.selectedDate):null,r=this.minDate&&fe(i,Mt(this.minDate))||this.maxDate&&ve(i,Mt(this.maxDate)),s=ke(i),n=o&&me(i)===me(o),a=n&&o&&we(i,o)&&xe(i,o);return e`
3512
3484
  <button
3513
3485
  class="${`day ${s?"today":""} ${a?"selected":n&&!a?"secondary-selected":""}`}"
3514
3486
  ?disabled=${r}
3515
3487
  @click=${()=>this.handleDayClick(t)}
3516
3488
  >
3517
- ${ni(t,"d")}
3489
+ ${ge(t,"d")}
3518
3490
  </button>
3519
3491
  `}))}
3520
3492
  </div>
@@ -3531,10 +3503,10 @@ const zt=2;
3531
3503
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3532
3504
  ${i}
3533
3505
  </div>
3534
- `}};s([A({type:Object}),n("design:type",Object)],bi.prototype,"selectedDate",void 0),s([A({type:Object}),n("design:type",Date)],bi.prototype,"viewDate",void 0),s([A({type:Boolean}),n("design:type",Object)],bi.prototype,"isMobile",void 0),s([A({type:Number}),n("design:type",Number)],bi.prototype,"calendarWidth",void 0),s([A({type:Object}),n("design:type",Object)],bi.prototype,"minDate",void 0),s([A({type:Object}),n("design:type",Object)],bi.prototype,"maxDate",void 0),s([_(),n("design:type",String)],bi.prototype,"currentView",void 0),s([T(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],bi.prototype,"initialFocusElement",void 0),bi=s([a("calendar-overlay")],bi);let mi=class extends B{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`
3535
- ${K}
3506
+ `}};s([T({type:Object}),n("design:type",Object)],$e.prototype,"selectedDate",void 0),s([T({type:Object}),n("design:type",Date)],$e.prototype,"viewDate",void 0),s([T({type:Boolean}),n("design:type",Object)],$e.prototype,"isMobile",void 0),s([T({type:Number}),n("design:type",Number)],$e.prototype,"calendarWidth",void 0),s([T({type:Object}),n("design:type",Object)],$e.prototype,"minDate",void 0),s([T({type:Object}),n("design:type",Object)],$e.prototype,"maxDate",void 0),s([L(),n("design:type",String)],$e.prototype,"currentView",void 0),s([P(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],$e.prototype,"initialFocusElement",void 0),$e=s([a("calendar-overlay")],$e);let Se=class extends j{constructor(){super(...arguments),this.isRenderClearButton=!0,this.eighteenOrOlder=!1,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=o`
3536
3507
  ${X}
3537
- ${Y}
3508
+ ${Q}
3509
+ ${G}
3538
3510
 
3539
3511
  /* Si se proporciona una propiedad width (ej. width="600px"), se usa ese valor. */
3540
3512
  :host {
@@ -3599,7 +3571,7 @@ const zt=2;
3599
3571
  }
3600
3572
 
3601
3573
  .date-input {
3602
- ${R}
3574
+ ${z}
3603
3575
  flex-grow: 1;
3604
3576
  border: none;
3605
3577
  outline: none;
@@ -3638,7 +3610,7 @@ const zt=2;
3638
3610
  .calendar-button randstad-icon {
3639
3611
  font-size: 18px;
3640
3612
  }
3641
- `}setMessageErrorFormatInvalid(){return"formato de fecha inválido, se esperaba 'dd-MM-yyyy'"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(t){t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")&&this._syncValue(this.value),(t.has("isOpen")||t.has("value"))&&this.setInitialWidth(),super.updated(t)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){const e=t.target;this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1;const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate(),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){const e=t.detail.date;if(!e)return;if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=ni(e,"dd-MM-yyyy");this.inputValue=t,this.closeOverlay(t)}else{const t=ni(e,"dd-MM-yyyy");this.inputValue=t,this.selectedDate=null,this.closeOverlay(null)}}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1;const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(this.error||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null));const e=this._parseDate(t);e&&this._validateDate(e)?(this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.value=ni(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 $e(t,-18,i)}(new Date);if(ci(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?ni(t.minDate,"dd-MM-yyyy"):""} y ${t?.maxDate?ni(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(ni(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(ke(e)&&ni(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(ke(i)&&ni(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&&ci(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!hi(t,e.minDate))&&(!e.maxDate||!ci(t,e.maxDate))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input");if("Enter"===e||" "===e)t.preventDefault(),this.isOpen?this.closeOverlay(this.value):(this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate());else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate()),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusCalendar&&t.focusCalendar()})));const o=this.shadowRoot?.querySelector(".clear-button"),r=this.shadowRoot?.querySelector(".calendar-button");"ArrowRight"===e&&(t.preventDefault(),this.shadowRoot?.activeElement===i&&(o?o.focus():r?.focus()))}handleClearButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".calendar-button");"ArrowLeft"===e?(t.preventDefault(),i?.focus()):"ArrowRight"===e&&(t.preventDefault(),o?.focus())}handleCalendarButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".clear-button");"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled}),o=this._getValidDateRange();return e`
3613
+ `}setMessageErrorFormatInvalid(){return"formato de fecha inválido, se esperaba 'dd-MM-yyyy'"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(t){t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")&&this._syncValue(this.value),(t.has("isOpen")||t.has("value"))&&this.setInitialWidth(),super.updated(t)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){const e=t.target;this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1;const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate(),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){const e=t.detail.date;if(!e)return;if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=ge(e,"dd-MM-yyyy");this.inputValue=t,this.closeOverlay(t)}else{const t=ge(e,"dd-MM-yyyy");this.inputValue=t,this.selectedDate=null,this.closeOverlay(null)}}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1;const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(this.error||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null));const e=this._parseDate(t);e&&this._validateDate(e)?(this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.value=ge(e,"dd-MM-yyyy"),this.inputValue=this.value):this.selectedDate=e}_validateDate(t){if(!t)return!1;if(this.error=!1,this.errorMessage=null,this.eighteenOrOlder){const e=function(t,e,i){return Ot(t,-18,i)}(new Date);if(ve(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}if(!this._isWithinBounds(t)){const t=this._getValidDateRange();return this.error=!0,this.errorMessage=`la fecha debe estar entre ${t?.minDate?ge(t.minDate,"dd-MM-yyyy"):""} y ${t?.maxDate?ge(t.maxDate,"dd-MM-yyyy"):""}.`,!1}return!0}_parseAndValidateDate(t,e){if(this.disabled)return;if(""===t||null===t)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(e&&this.closeOverlay(null));const i=this._parseDate(t);if(i){this._validateDate(i)?(this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,e&&this.closeOverlay(ge(i,"dd-MM-yyyy"))):(this.error=!0,this.selectedDate=null,e&&this.closeOverlay(null))}else this.error=!0,this.errorMessage=this.setMessageErrorFormatInvalid(),this.selectedDate=null,e&&this.closeOverlay(null)}_parseDate(t){const e=t.split("-").map(Number);if(3===e.length){const[i,o,r]=e;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const e=new Date(r,o-1,i,12);if(Bt(e)&&ge(e,"dd-MM-yyyy")===t)return e}}const i=t.split("-").map(Number);if(3===i.length){const[e,o,r]=i;if(e&&o&&r&&o>=1&&o<=12&&e>1e3){const i=new Date(e,o-1,r,12);if(Bt(i)&&ge(i,"yyyy-MM-dd")===t)return i}}return null}_parseDateString(t){if(!t)return null;const e=t.split("-").map(Number);if(3===e.length&&!isNaN(e[0])&&!isNaN(e[1])&&!isNaN(e[2])){return new Date(e[0],e[1]-1,e[2],12)}return null}_getValidDateRange(){const t=this._parseDateString(this.minDate),e=this._parseDateString(this.maxDate);return t||e?t&&e&&ve(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!fe(t,e.minDate))&&(!e.maxDate||!ve(t,e.maxDate))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input");if("Enter"===e||" "===e)t.preventDefault(),this.isOpen?this.closeOverlay(this.value):(this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate());else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.isOpen=!0,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate()),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusCalendar&&t.focusCalendar()})));const o=this.shadowRoot?.querySelector(".clear-button"),r=this.shadowRoot?.querySelector(".calendar-button");"ArrowRight"===e&&(t.preventDefault(),this.shadowRoot?.activeElement===i&&(o?o.focus():r?.focus()))}handleClearButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".calendar-button");"ArrowLeft"===e?(t.preventDefault(),i?.focus()):"ArrowRight"===e&&(t.preventDefault(),o?.focus())}handleCalendarButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".clear-button");"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled}),o=this._getValidDateRange();return e`
3642
3614
  <div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
3643
3615
  ${this.renderLabelContainer()}
3644
3616
 
@@ -3693,11 +3665,11 @@ const zt=2;
3693
3665
 
3694
3666
  ${this.renderHelper()}
3695
3667
  </div>
3696
- `}};s([A({type:String}),n("design:type",String)],mi.prototype,"width",void 0),s([A({type:Boolean}),n("design:type",Object)],mi.prototype,"isRenderClearButton",void 0),s([A({type:String}),n("design:type",String)],mi.prototype,"minDate",void 0),s([A({type:String}),n("design:type",String)],mi.prototype,"maxDate",void 0),s([A({type:Boolean}),n("design:type",Object)],mi.prototype,"eighteenOrOlder",void 0),s([_(),n("design:type",Object)],mi.prototype,"isOpen",void 0),s([_(),n("design:type",Object)],mi.prototype,"selectedDate",void 0),s([_(),n("design:type",Date)],mi.prototype,"viewDate",void 0),s([_(),n("design:type",Object)],mi.prototype,"isMobile",void 0),s([_(),n("design:type",Number)],mi.prototype,"calendarWidth",void 0),s([_(),n("design:type",Object)],mi.prototype,"inputValue",void 0),s([T(".input-container"),n("design:type",HTMLDivElement)],mi.prototype,"inputContainer",void 0),mi=s([a("datepicker-component")],mi);let yi=class extends re{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
3697
- ${K}
3668
+ `}};s([T({type:String}),n("design:type",String)],Se.prototype,"width",void 0),s([T({type:Boolean}),n("design:type",Object)],Se.prototype,"isRenderClearButton",void 0),s([T({type:String}),n("design:type",String)],Se.prototype,"minDate",void 0),s([T({type:String}),n("design:type",String)],Se.prototype,"maxDate",void 0),s([T({type:Boolean}),n("design:type",Object)],Se.prototype,"eighteenOrOlder",void 0),s([L(),n("design:type",Object)],Se.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],Se.prototype,"selectedDate",void 0),s([L(),n("design:type",Date)],Se.prototype,"viewDate",void 0),s([L(),n("design:type",Object)],Se.prototype,"isMobile",void 0),s([L(),n("design:type",Number)],Se.prototype,"calendarWidth",void 0),s([L(),n("design:type",Object)],Se.prototype,"inputValue",void 0),s([P(".input-container"),n("design:type",HTMLDivElement)],Se.prototype,"inputContainer",void 0),Se=s([a("datepicker-component")],Se);let De=class extends pt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
3698
3669
  ${X}
3699
- ${Y}
3700
- ${ae}
3670
+ ${Q}
3671
+ ${G}
3672
+ ${bt}
3701
3673
 
3702
3674
  :host([width]) {
3703
3675
  width: var( --upload-file-width );
@@ -3736,7 +3708,7 @@ const zt=2;
3736
3708
  }
3737
3709
 
3738
3710
  .file-name {
3739
- ${j};
3711
+ ${W};
3740
3712
  text-align: right;
3741
3713
  color: var( --secondary-color-40 );
3742
3714
  vertical-align: middle;
@@ -3759,7 +3731,7 @@ const zt=2;
3759
3731
  outline: 2px solid rgb( 0, 215, 255 ) !important;
3760
3732
  outline-offset: 1px;
3761
3733
  }
3762
- `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ne)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}handleRemoveFile(t,e){this.showDeleteConfirmation?this.confirmRemoveFile(t,e):this.removeFile(t,"file")}confirmRemoveFile(t,e){this.fileIndexToRemove=t,this.fileNameToRemove=e,this.isRemovePopupOpen=!0}handlePopupClose(t){t.detail||this.removeFile(this.fileIndexToRemove,"file"),this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
3734
+ `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,gt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}handleRemoveFile(t,e){this.showDeleteConfirmation?this.confirmRemoveFile(t,e):this.removeFile(t,"file")}confirmRemoveFile(t,e){this.fileIndexToRemove=t,this.fileNameToRemove=e,this.isRemovePopupOpen=!0}handlePopupClose(t){t.detail||this.removeFile(this.fileIndexToRemove,"file"),this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
3763
3735
  <randstad-button
3764
3736
  .label=${this.buttonText}
3765
3737
  .variant=${"button-primary"}
@@ -3820,7 +3792,7 @@ const zt=2;
3820
3792
  </custom-popup>
3821
3793
  `:i}
3822
3794
  </div>
3823
- `}};s([A({type:String}),n("design:type",String)],yi.prototype,"width",void 0),s([A({type:Number}),n("design:type",Object)],yi.prototype,"maxFiles",void 0),s([A({type:Array}),n("design:type",Array)],yi.prototype,"acceptedFileTypes",void 0),s([A({type:Number}),n("design:type",Object)],yi.prototype,"maxFileSize",void 0),s([A({type:String}),n("design:type",Object)],yi.prototype,"buttonText",void 0),s([A({type:Boolean}),n("design:type",Object)],yi.prototype,"showDeleteConfirmation",void 0),s([_(),n("design:type",Boolean)],yi.prototype,"isRemovePopupOpen",void 0),s([_(),n("design:type",Number)],yi.prototype,"fileIndexToRemove",void 0),s([_(),n("design:type",String)],yi.prototype,"fileNameToRemove",void 0),yi=s([a("upload-file")],yi);let vi=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`
3795
+ `}};s([T({type:String}),n("design:type",String)],De.prototype,"width",void 0),s([T({type:Number}),n("design:type",Object)],De.prototype,"maxFiles",void 0),s([T({type:Array}),n("design:type",Array)],De.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],De.prototype,"maxFileSize",void 0),s([T({type:String}),n("design:type",Object)],De.prototype,"buttonText",void 0),s([T({type:Boolean}),n("design:type",Object)],De.prototype,"showDeleteConfirmation",void 0),s([L(),n("design:type",Boolean)],De.prototype,"isRemovePopupOpen",void 0),s([L(),n("design:type",Number)],De.prototype,"fileIndexToRemove",void 0),s([L(),n("design:type",String)],De.prototype,"fileNameToRemove",void 0),De=s([a("upload-file")],De);let Ee=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
3824
3796
  :host {
3825
3797
  display: block;
3826
3798
  width: 100%;
@@ -4097,7 +4069,7 @@ const zt=2;
4097
4069
  padding-right: 0 !important;
4098
4070
  }
4099
4071
  }
4100
- `}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)=>{const i=t.some((t=>t.addedNodes.length>0));i&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let s,n=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){n=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===n&&t>e&&(n=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){s=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:n+1,s=Math.min(s,a)}else s=l&&n<=2?0:n-1,s=Math.max(0,s);return s}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),n=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),a=r*i+(parseFloat(n)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-s)<Math.round(t)-1){i=r.offsetLeft-s;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-s)>Math.round(t)+1){o=r.offsetLeft-s;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,s=this.slider.scrollLeft;if(e&&Math.round(s)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
4072
+ `}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let s,n=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){n=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===n&&t>e&&(n=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){s=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:n+1,s=Math.min(s,a)}else s=l&&n<=2?0:n-1,s=Math.max(0,s);return s}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),n=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),a=r*i+(parseFloat(n)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-s)<Math.round(t)-1){i=r.offsetLeft-s;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-s)>Math.round(t)+1){o=r.offsetLeft-s;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,s=this.slider.scrollLeft;if(e&&Math.round(s)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
4101
4073
  <div class="nav-buttons-container">
4102
4074
  <button
4103
4075
  class=${r(t)}
@@ -4140,5 +4112,5 @@ const zt=2;
4140
4112
 
4141
4113
  ${this.renderNavButtons()}
4142
4114
  </div>
4143
- `}};s([A({type:Array}),n("design:type",Array)],vi.prototype,"cards",void 0),s([A({type:String}),n("design:type",String)],vi.prototype,"cardWidth",void 0),s([A({type:String}),n("design:type",String)],vi.prototype,"cardHeight",void 0),s([A({type:Number}),n("design:type",Number)],vi.prototype,"navWidth",void 0),s([A({type:Boolean}),n("design:type",Boolean)],vi.prototype,"showNavButtons",void 0),s([A({type:Boolean}),n("design:type",Boolean)],vi.prototype,"isDynamicWidth",void 0),s([A({type:Boolean}),n("design:type",Boolean)],vi.prototype,"isInfiniteScrollPartial",void 0),s([A({type:Number}),n("design:type",Number)],vi.prototype,"autoPlayDelayMs",void 0),s([_(),n("design:type",Object)],vi.prototype,"showPrevButton",void 0),s([_(),n("design:type",Object)],vi.prototype,"showNextButton",void 0),s([T(".carousel-wrapper"),n("design:type",HTMLElement)],vi.prototype,"slider",void 0),s([T("slot"),n("design:type",HTMLSlotElement)],vi.prototype,"slotElement",void 0),vi=s([a("carousel-component"),n("design:paramtypes",[])],vi);export{q as AccordionList,I as AccordionPanel,B as BaseControl,bi as CalendarOverlay,vi as Carousel,U as CarouselCard,H as Checkbox,it as CustomModal,ot as CustomPopup,st as CustomRadio,ie as CustomStepper,mi as DatePickerComponent,Zt as FilterableSelect,Z as FormGroup,tt as IconComponent,rt as ProgressCircle,V as RandstadButton,J as RandstadForm,et as RandstadNotice,oe as TabsBar,yi as UploadFile,le as UploadImage,Q as scrollbarStyles};
4115
+ `}};s([T({type:Array}),n("design:type",Array)],Ee.prototype,"cards",void 0),s([T({type:String}),n("design:type",String)],Ee.prototype,"cardWidth",void 0),s([T({type:String}),n("design:type",String)],Ee.prototype,"cardHeight",void 0),s([T({type:Number}),n("design:type",Number)],Ee.prototype,"navWidth",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"showNavButtons",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"isDynamicWidth",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"isInfiniteScrollPartial",void 0),s([T({type:Number}),n("design:type",Number)],Ee.prototype,"autoPlayDelayMs",void 0),s([L(),n("design:type",Object)],Ee.prototype,"showPrevButton",void 0),s([L(),n("design:type",Object)],Ee.prototype,"showNextButton",void 0),s([P(".carousel-wrapper"),n("design:type",HTMLElement)],Ee.prototype,"slider",void 0),s([P("slot"),n("design:type",HTMLSlotElement)],Ee.prototype,"slotElement",void 0),Ee=s([a("carousel-component"),n("design:paramtypes",[])],Ee);export{V as AccordionList,q as AccordionPanel,j as BaseControl,$e as CalendarOverlay,Ee as Carousel,Y as CarouselCard,H as Checkbox,ot as CustomModal,rt as CustomPopup,nt as CustomRadio,ct as CustomStepper,Se as DatePickerComponent,at as FilterableSelect,tt as FormGroup,et as IconComponent,st as ProgressCircle,U as RandstadButton,Z as RandstadForm,it as RandstadNotice,ht as TabsBar,De as UploadFile,mt as UploadImage,J as scrollbarStyles};
4144
4116
  //# sourceMappingURL=index.js.map