@randstad-uca/design-system 1.0.116 → 1.0.117

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=(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,C=x.trustedTypes,k=C?C.emptyScript:"",$=x.reactiveElementPolyfillSupport,S=(t,e)=>t,D={toAttribute(t,e){switch(e){case Boolean:t=t?k: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)=>!b(t,e),_={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:f,getOwnPropertySymbols:v,getPrototypeOf:w}=Object,x=globalThis,C=x.trustedTypes,k=C?C.emptyScript:"",$=x.reactiveElementPolyfillSupport,_=(t,e)=>t,S={toAttribute(t,e){switch(e){case Boolean:t=t?k: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}},D=(t,e)=>!b(t,e),E={attribute:!0,type:String,converter:S,reflect:!1,useDefault:!1,hasChanged:D};
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
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=_){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 n=o?.call(this);r?.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_}static _$Ei(){if(this.hasOwnProperty(S("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(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("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: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},n){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==r||void 0!==n)||(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,$?.({ReactiveElement:M}),(x.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=E){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 n=o?.call(this);r?.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??E}static _$Ei(){if(this.hasOwnProperty(_("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(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,e=[...f(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(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:S).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:S;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??D)(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},n){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==r||void 0!==n)||(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[_("elementProperties")]=new Map,M[_("finalized")]=new Map,$?.({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 O={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:E},F=(t=O,e,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function L(t){return(e,i)=>"object"==typeof i?F(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:S,reflect:!1,hasChanged:D},F=(t=O,e,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function L(t){return(e,i)=>"object"==typeof i?F(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */function B(t){return L({...t,state:!0,attribute:!1})}
28
+ */function T(t){return L({...t,state:!0,attribute:!1})}
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
@@ -36,7 +36,7 @@ const O={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:E},F=(t=O,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function V(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 T=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",this.helpClickable=!1,this._tooltipOpen=!1,this._lastClickTime=0,this._boundCloseTooltip=this._closeTooltip.bind(this)}_handleTooltipClick(t){t.stopPropagation(),t.preventDefault(),this._lastClickTime=Date.now(),this._tooltipOpen=!this._tooltipOpen}_closeTooltip(){this.helpClickable&&this._tooltipOpen&&Date.now()-this._lastClickTime>50&&(this._tooltipOpen=!1)}updated(t){super.updated(t),t.has("helpClickable")&&(this.helpClickable?document.addEventListener("click",this._boundCloseTooltip):document.removeEventListener("click",this._boundCloseTooltip))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._boundCloseTooltip)}renderLabelContainer(){return e`
39
+ function V(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",this.helpClickable=!1,this._tooltipOpen=!1,this._lastClickTime=0,this._boundCloseTooltip=this._closeTooltip.bind(this)}_handleTooltipClick(t){t.stopPropagation(),t.preventDefault(),this._lastClickTime=Date.now(),this._tooltipOpen=!this._tooltipOpen}_closeTooltip(){this.helpClickable&&this._tooltipOpen&&Date.now()-this._lastClickTime>50&&(this._tooltipOpen=!1)}updated(t){super.updated(t),t.has("helpClickable")&&(this.helpClickable?document.addEventListener("click",this._boundCloseTooltip):document.removeEventListener("click",this._boundCloseTooltip))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._boundCloseTooltip)}renderLabelContainer(){return e`
40
40
  ${this.label?e`
41
41
  <div class="label-container">
42
42
  ${this.renderLabel()}
@@ -85,7 +85,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
85
85
  ${this.helper}
86
86
  </p>
87
87
  `:i}
88
- `}};n([L({type:String}),s("design:type",Object)],T.prototype,"label",void 0),n([L({type:String}),s("design:type",Object)],T.prototype,"placeholder",void 0),n([L({type:String}),s("design:type",Object)],T.prototype,"labelColor",void 0),n([L(),s("design:type",Object)],T.prototype,"value",void 0),n([L({type:Boolean}),s("design:type",Object)],T.prototype,"required",void 0),n([L({type:Boolean}),s("design:type",Object)],T.prototype,"optional",void 0),n([L({type:Boolean}),s("design:type",Object)],T.prototype,"disabled",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],T.prototype,"error",void 0),n([L({type:String}),s("design:type",Object)],T.prototype,"errorMessage",void 0),n([L({type:String}),s("design:type",Object)],T.prototype,"helper",void 0),n([L({type:String}),s("design:type",String)],T.prototype,"helperAlign",void 0),n([L({type:String}),s("design:type",String)],T.prototype,"help",void 0),n([L({type:Boolean}),s("design:type",Object)],T.prototype,"helpClickable",void 0),n([L({type:String}),s("design:type",String)],T.prototype,"helpLink",void 0),n([L({type:String}),s("design:type",String)],T.prototype,"helpLinkTooltipMessage",void 0),n([B(),s("design:type",Object)],T.prototype,"_tooltipOpen",void 0),T=n([a("base-control")],T);const P=o`
88
+ `}};n([L({type:String}),s("design:type",Object)],B.prototype,"label",void 0),n([L({type:String}),s("design:type",Object)],B.prototype,"placeholder",void 0),n([L({type:String}),s("design:type",Object)],B.prototype,"labelColor",void 0),n([L(),s("design:type",Object)],B.prototype,"value",void 0),n([L({type:Boolean}),s("design:type",Object)],B.prototype,"required",void 0),n([L({type:Boolean}),s("design:type",Object)],B.prototype,"optional",void 0),n([L({type:Boolean}),s("design:type",Object)],B.prototype,"disabled",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],B.prototype,"error",void 0),n([L({type:String}),s("design:type",Object)],B.prototype,"errorMessage",void 0),n([L({type:String}),s("design:type",Object)],B.prototype,"helper",void 0),n([L({type:String}),s("design:type",String)],B.prototype,"helperAlign",void 0),n([L({type:String}),s("design:type",String)],B.prototype,"help",void 0),n([L({type:Boolean}),s("design:type",Object)],B.prototype,"helpClickable",void 0),n([L({type:String}),s("design:type",String)],B.prototype,"helpLink",void 0),n([L({type:String}),s("design:type",String)],B.prototype,"helpLinkTooltipMessage",void 0),n([T(),s("design:type",Object)],B.prototype,"_tooltipOpen",void 0),B=n([a("base-control")],B);const P=o`
89
89
  font-family: 'Graphik', sans-serif;
90
90
  font-weight: 400;
91
91
  font-size: 12px;
@@ -109,14 +109,14 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
109
109
  font-size: 18px;
110
110
  line-height: 30px;
111
111
  letter-spacing: 0%;
112
- `,H=o`
112
+ `,z=o`
113
113
  font-family: 'Graphik', sans-serif;
114
114
  font-weight: 400;
115
115
  font-size: 18px;
116
116
  line-height: 30px;
117
117
  letter-spacing: 0%;
118
118
  vertical-align: middle;
119
- `,z=o`
119
+ `,H=o`
120
120
  font-family: 'Graphik', sans-serif;
121
121
  font-weight: 400;
122
122
  font-size: 20px;
@@ -232,7 +232,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
232
232
  <div class="content ${this.isOpen?"open":""}">
233
233
  <slot></slot>
234
234
  </div>
235
- `}};n([L({type:String}),s("design:type",Object)],W.prototype,"title",void 0),n([B(),s("design:type",Object)],W.prototype,"isOpen",void 0),n([B(),s("design:type",Object)],W.prototype,"isDesktop",void 0),W=n([a("accordion-panel")],W);let q=class extends t{static{this.styles=o`
235
+ `}};n([L({type:String}),s("design:type",Object)],W.prototype,"title",void 0),n([T(),s("design:type",Object)],W.prototype,"isOpen",void 0),n([T(),s("design:type",Object)],W.prototype,"isDesktop",void 0),W=n([a("accordion-panel")],W);let q=class extends t{static{this.styles=o`
236
236
  :host {
237
237
  display: flex;
238
238
  flex-direction: column;
@@ -1025,7 +1025,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1025
1025
  ::-webkit-scrollbar-button {
1026
1026
  display: none;
1027
1027
  }
1028
- `,tt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let et=class extends T{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`
1028
+ `,tt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let et=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=[J,o`
1029
1029
  ${X}
1030
1030
  ${Q}
1031
1031
  ${G}
@@ -1262,7 +1262,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1262
1262
 
1263
1263
  ${this.renderHelper()}
1264
1264
  </div>
1265
- `}};n([L({type:String}),s("design:type",Object)],et.prototype,"keydown",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"keydownRegex",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],et.prototype,"icon",void 0),n([L({type:Boolean}),s("design:type",Boolean)],et.prototype,"typing",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"type",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"linkText",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"linkRoute",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],et.prototype,"isPasswordVisible",void 0),n([L({type:Boolean}),s("design:type",Boolean)],et.prototype,"cleanButton",void 0),n([L({type:Number}),s("design:type",Number)],et.prototype,"maxLength",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"heightTextArea",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"maxHeightTextArea",void 0),et=n([a("randstad-form")],et);let it=class extends T{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1265
+ `}};n([L({type:String}),s("design:type",Object)],et.prototype,"keydown",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"keydownRegex",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],et.prototype,"icon",void 0),n([L({type:Boolean}),s("design:type",Boolean)],et.prototype,"typing",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"type",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"linkText",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"linkRoute",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],et.prototype,"isPasswordVisible",void 0),n([L({type:Boolean}),s("design:type",Boolean)],et.prototype,"cleanButton",void 0),n([L({type:Number}),s("design:type",Number)],et.prototype,"maxLength",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"heightTextArea",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"maxHeightTextArea",void 0),et=n([a("randstad-form")],et);let it=class extends B{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1266
1266
  ${X}
1267
1267
  ${Q}
1268
1268
  ${G}
@@ -1323,7 +1323,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1323
1323
  <div class="custom-icon" style="color: ${this.color};">
1324
1324
  ${this.svgTemplate}
1325
1325
  </div>
1326
- `:e``}}n([L({type:String}),s("design:type",Object)],rt.prototype,"name",void 0),n([L({type:String}),s("design:type",Object)],rt.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],rt.prototype,"color",void 0),n([B(),s("design:type",Object)],rt.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",rt);const nt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let st=class extends T{constructor(){super(...arguments),this.platform="linkedin",this.size="md",this.maxLength=100,this.isPasswordVisible=!1,this.customSanitizeRegex=void 0,this.customUrlValidationRegex=void 0,this.value="",this._inputValue="",this._showFormatError=!1,this._onChangeFn=()=>{},this._onTouchedFn=()=>{}}static{this.styles=[J,o`
1326
+ `:e``}}n([L({type:String}),s("design:type",Object)],rt.prototype,"name",void 0),n([L({type:String}),s("design:type",Object)],rt.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],rt.prototype,"color",void 0),n([T(),s("design:type",Object)],rt.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",rt);const nt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let st=class extends B{constructor(){super(...arguments),this.platform="linkedin",this.size="md",this.maxLength=100,this.isPasswordVisible=!1,this.customSanitizeRegex=void 0,this.customUrlValidationRegex=void 0,this.value="",this._inputValue="",this._showFormatError=!1,this._onChangeFn=()=>{},this._onTouchedFn=()=>{}}static{this.styles=[J,o`
1327
1327
  ${X}
1328
1328
  ${Q}
1329
1329
  ${G}
@@ -1499,7 +1499,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1499
1499
  ${t}
1500
1500
  </p>
1501
1501
  `}
1502
- `}writeValue(t){if(t&&"string"==typeof t){const e=this._extractUsernameFromValue(t);e!==this._inputValue&&(this._inputValue=e,this.value=t,this.requestUpdate())}else t||(this._inputValue="",this.value="",this.requestUpdate())}registerOnChange(t){this._onChangeFn=t}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}};n([L({type:String}),s("design:type",String)],st.prototype,"platform",void 0),n([L({type:String}),s("design:type",String)],st.prototype,"size",void 0),n([L({type:Number}),s("design:type",Number)],st.prototype,"maxLength",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],st.prototype,"isPasswordVisible",void 0),n([L({type:String}),s("design:type",Object)],st.prototype,"customSanitizeRegex",void 0),n([L({type:String}),s("design:type",Object)],st.prototype,"customUrlValidationRegex",void 0),n([L({type:String,hasChanged:()=>!1}),s("design:type",String)],st.prototype,"value",void 0),n([B(),s("design:type",String)],st.prototype,"_inputValue",void 0),n([B(),s("design:type",Boolean)],st.prototype,"_showFormatError",void 0),st=n([a("randstad-social-input")],st);let at=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`
1502
+ `}writeValue(t){if(t&&"string"==typeof t){const e=this._extractUsernameFromValue(t);e!==this._inputValue&&(this._inputValue=e,this.value=t,this.requestUpdate())}else t||(this._inputValue="",this.value="",this.requestUpdate())}registerOnChange(t){this._onChangeFn=t}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}};n([L({type:String}),s("design:type",String)],st.prototype,"platform",void 0),n([L({type:String}),s("design:type",String)],st.prototype,"size",void 0),n([L({type:Number}),s("design:type",Number)],st.prototype,"maxLength",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],st.prototype,"isPasswordVisible",void 0),n([L({type:String}),s("design:type",Object)],st.prototype,"customSanitizeRegex",void 0),n([L({type:String}),s("design:type",Object)],st.prototype,"customUrlValidationRegex",void 0),n([L({type:String,hasChanged:()=>!1}),s("design:type",String)],st.prototype,"value",void 0),n([T(),s("design:type",String)],st.prototype,"_inputValue",void 0),n([T(),s("design:type",Boolean)],st.prototype,"_showFormatError",void 0),st=n([a("randstad-social-input")],st);let at=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`
1503
1503
  :host {
1504
1504
  display: block;
1505
1505
  font-family: 'Graphik', sans-serif;
@@ -1798,7 +1798,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1798
1798
  `}
1799
1799
  </div>
1800
1800
  </div>
1801
- `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],lt.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"title",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"subtitle",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showNotice",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"noticeType",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeMessage",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeIcon",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showPrimaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"primaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showSecondaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"secondaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isFooterCustom",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryLoader",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryDisabled",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"maxHeight",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"hideFooter",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"paddingModalBody",void 0),n([B(),s("design:type",Object)],lt.prototype,"scrollable",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasDropdownOpen",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasCalendarOpen",void 0),lt=n([a("custom-modal")],lt);let dt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.iconColor="var(--primary-color)",this.title="",this.description="",this.width="400px",this.height="",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.closeOnOutsideClick=!1,this.stackedActions=[],this._onBackgroundClick=t=>{if(!this.closeOnOutsideClick)return;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`
1801
+ `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],lt.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"title",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"subtitle",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showNotice",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"noticeType",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeMessage",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeIcon",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showPrimaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"primaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showSecondaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"secondaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isFooterCustom",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryLoader",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryDisabled",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"maxHeight",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"hideFooter",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"paddingModalBody",void 0),n([T(),s("design:type",Object)],lt.prototype,"scrollable",void 0),n([T(),s("design:type",Object)],lt.prototype,"hasDropdownOpen",void 0),n([T(),s("design:type",Object)],lt.prototype,"hasCalendarOpen",void 0),lt=n([a("custom-modal")],lt);let dt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.iconColor="var(--primary-color)",this.title="",this.description="",this.width="400px",this.height="",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.closeOnOutsideClick=!1,this.stackedActions=[],this._onBackgroundClick=t=>{if(!this.closeOnOutsideClick)return;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`
1802
1802
  :host {
1803
1803
  display: none;
1804
1804
  position: fixed;
@@ -1864,7 +1864,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1864
1864
  }
1865
1865
 
1866
1866
  .popup-title {
1867
- ${z}
1867
+ ${H}
1868
1868
  margin: 0;
1869
1869
  color: var(--secondary-color-80);
1870
1870
  }
@@ -1898,7 +1898,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1898
1898
  }
1899
1899
 
1900
1900
  .action-item {
1901
- ${H};
1901
+ ${z};
1902
1902
  display: flex;
1903
1903
  align-items: center;
1904
1904
  gap: 16px;
@@ -2199,7 +2199,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2199
2199
 
2200
2200
  <span> ${o} </span>
2201
2201
  </label>
2202
- `}};n([L({type:String}),s("design:type",Object)],ht.prototype,"name",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"checked",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"disabled",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"error",void 0),n([L({type:String}),s("design:type",Object)],ht.prototype,"label",void 0),n([L({type:String}),s("design:type",Object)],ht.prototype,"value",void 0),ht=n([a("custom-radio")],ht);const pt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let ut=class extends T{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.sortable=!0,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.originalHtmlOverflow="",this.originalHtmlPaddingRight="",this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this.lastElement=!1,this.debounceTimeout=null,this.getOptionLabel=t=>"string"==typeof t?t:t.label,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}get _effectiveFilterable(){const t=this.getAttribute("filterable");return null!==t?"false"!==t:void 0!==this.filterable?this.filterable:this.options.length>5}static{this.styles=[J,o`
2202
+ `}};var pt;n([L({type:String}),s("design:type",Object)],ht.prototype,"name",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"checked",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"disabled",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"error",void 0),n([L({type:String}),s("design:type",Object)],ht.prototype,"label",void 0),n([L({type:String}),s("design:type",Object)],ht.prototype,"value",void 0),ht=n([a("custom-radio")],ht);const ut=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let gt=class extends B{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.sortable=!0,this.minSearch=3,this.textLabelLoading="Cargando...",this.debounceMs=300,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this._isLoading=!1,this.lastElement=!1,this._prevIsMobile=!1,this._lastFetchTerm=null,this._fetchedOptions=[],this.debounceTimeout=null,this._abortController=null,this._boundHandleClickOutside=this.handleClickOutside.bind(this),this.getOptionLabel=t=>"string"==typeof t?t:t.label,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this._firstCharRegex=null}static{pt=this}get _effectiveFilterable(){const t=this.getAttribute("filterable");return null!==t?"false"!==t:void 0!==this.filterable?this.filterable:this.options.length>5}static{this._scrollLockCount=0}static{this._scrollLockStylesheet=null}static{this.styles=[J,o`
2203
2203
  ${X}
2204
2204
  ${Q}
2205
2205
  ${G}
@@ -2223,7 +2223,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2223
2223
  }
2224
2224
 
2225
2225
  /* Estilos para el estado disabled */
2226
- .input-wrapper.disabled .filter-input, .input-wrapper.disabled .filter-input, .input-wrapper.disabled .filter-fake {
2226
+ .input-wrapper.disabled .filter-input, .input-wrapper.disabled .filter-fake {
2227
2227
  background-color: var(--secondary-color-10);
2228
2228
  color: #9FA3B3;
2229
2229
  cursor: default;
@@ -2401,16 +2401,16 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2401
2401
  align-items: center;
2402
2402
  }
2403
2403
 
2404
- .options-list li:not(.no-results-item) {
2404
+ .options-list li:not(.state-item) {
2405
2405
  cursor: pointer;
2406
2406
  }
2407
2407
 
2408
2408
  .options-list li.highlighted {
2409
- background-color: var(--primary-color-10);
2409
+ background-color: var(--primary-color-10);
2410
2410
  }
2411
-
2412
- .options-list li:not(.no-results-item):hover,
2413
- .options-list li.highlighted:not(.no-results-item):hover {
2411
+
2412
+ .options-list li:not(.state-item):hover,
2413
+ .options-list li.highlighted:not(.state-item):hover {
2414
2414
  background-color: #D3E3F7;
2415
2415
  }
2416
2416
 
@@ -2574,17 +2574,17 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2574
2574
  flex-shrink: 0;
2575
2575
  }
2576
2576
 
2577
- options-list li.no-results-item {
2577
+ .options-list li.state-item {
2578
2578
  ${A}
2579
2579
  cursor: default !important;
2580
- background-color: white !important;
2580
+ background-color: white !important;
2581
2581
  pointer-events: none;
2582
2582
  color: rgba( 64, 71, 103, 1 );
2583
2583
  text-align: center;
2584
- border-bottom: none !important;
2584
+ border-bottom: none !important;
2585
2585
  }
2586
2586
 
2587
- .mobile-modal .options-list li.no-results-item.mobile-item {
2587
+ .mobile-modal .options-list li.state-item.mobile-item {
2588
2588
  text-align: center;
2589
2589
  }
2590
2590
 
@@ -2593,7 +2593,19 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2593
2593
  background-color: transparent;
2594
2594
  }
2595
2595
  }
2596
- `]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}normalizeText(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),n=this.getOptionLabel(e),s=this.normalizeText(r),a=this.normalizeText(n);if(i&&i.length>0){const t=this.normalizeText(i),e=s.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=n.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(n,"es",{usage:"sort",sensitivity:"accent"}):p-u}_computeFilteredOptions(t){if(!this._effectiveFilterable||!t||0===t.length){const t=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options];return this.highlightedIndex=-1,this.showNoResults=!1,t}const e=this.normalizeText(t);let i=this.options.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)}));return this.sortable&&(i=i.sort(((e,i)=>this.sortOptions(e,i,t)))),this.highlightedIndex=i.length>0?0:-1,this.showNoResults=0===i.length,i}filterAndSortOptions(){this.filteredOptions=this._computeFilteredOptions(this.filterValue)}_sortedOptionsCopy(){return this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options]}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(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)}willUpdate(t){(t.has("filterValue")||t.has("options"))&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);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)),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.notifyOverlayOpened(),this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this._effectiveFilterable)return;this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(pt,"").length,n=i.replace(pt,"");let s=this.maxLength?n.slice(0,this.maxLength):n;s.startsWith(" ")&&(s=s.trimStart()),e.value=s,this.filterValue=s,e.setSelectionRange(r,r),this.notifyOverlayOpened(),this.isOpen=!0,""===s&&(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(pt,"").length,n=i.replace(pt,"");let s=this.maxLength?n.slice(0,this.maxLength):n;s.startsWith(" ")&&(s=s.trimStart()),e.value=s,this.mobileFilterValue=s,e.setSelectionRange(r,r),""===s?(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.filteredOptions=this._computeFilteredOptions(s),this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{s.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:s},bubbles:!0,composed:!0})):0===s.length&&(this.filteredOptions=this._sortedOptionsCopy())}),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.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=this._sortedOptionsCopy(),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._sortedOptionsCopy(),this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.notifyOverlayOpened(),this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy()))}preventInvalidStart(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart&&1===t.key.length){if(!/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t.key))return t.preventDefault(),!0}return!1}handlePaste(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart){const i=e.selectionStart,o=e.selectionEnd;if(null===i||null===o)return;t.preventDefault();let r=(t.clipboardData?.getData("text")||"").replace(pt,"").replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/,"");r.startsWith(" ")&&(r=r.trimStart()),r&&(e.setRangeText(r,i,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}}handleKeyDown(t){if(this.preventInvalidStart(t))return;const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this._effectiveFilterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),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.notifyOverlayOpened(),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||!this._effectiveFilterable&&" "===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,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));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.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this._effectiveFilterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this._effectiveFilterable||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._effectiveFilterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}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"})}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}validateAndCleanOnBlur(){if(!this._effectiveFilterable)return;const t=this.normalizeText((this.filterValue||"").trim());if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(String(i))===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2596
+ `]}static _ensureScrollLockStyles(){if(!pt._scrollLockStylesheet){pt._scrollLockStylesheet=new CSSStyleSheet,pt._scrollLockStylesheet.replaceSync("\n .scroll-locked { overflow: hidden !important; }\n ");try{document.adoptedStyleSheets=[...document.adoptedStyleSheets,pt._scrollLockStylesheet]}catch{const t=document.createElement("style");t.textContent=".scroll-locked { overflow: hidden !important; }",document.head.appendChild(t)}}}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){if(pt._ensureScrollLockStyles(),pt._scrollLockCount++,1===pt._scrollLockCount){e.classList.add("scroll-locked");if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}}else pt._scrollLockCount=Math.max(0,pt._scrollLockCount-1),0===pt._scrollLockCount&&(e.classList.remove("scroll-locked"),e.style.paddingRight="")}normalizeText(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),n=this.getOptionLabel(e),s=this.normalizeText(r),a=this.normalizeText(n);if(i&&i.length>0){const t=this.normalizeText(i),e=s.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=n.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(n,"es",{usage:"sort",sensitivity:"accent"}):p-u}_computeFilteredOptions(t){if(!this._effectiveFilterable||!t||0===t.length){const t=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options];return this.highlightedIndex=-1,this.showNoResults=!1,t}const e=this.normalizeText(t);let i=this.options.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)}));return this.sortable&&(i=i.sort(((e,i)=>this.sortOptions(e,i,t)))),this.highlightedIndex=i.length>0?0:-1,this.showNoResults=0===i.length,i}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if(!this.fetcher){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)}willUpdate(t){if(t.has("keydownRegex"))if(this.keydownRegex){const t=this.keydownRegex.match(/\[\^?[^\]]+\]/g),e=t?.[0]??`[${this.keydownRegex}]`;this._firstCharRegex=new RegExp(e)}else this._firstCharRegex=null;this.fetcher||(t.has("filterValue")||t.has("options"))&&(this.filteredOptions=this._computeFilteredOptions(this.filterValue))}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen),this._prevIsMobile&&!this.isMobile&&this.toggleDynamicScrollLock(!1),this._prevIsMobile=this.isMobile;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._boundHandleClickOutside),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this._boundHandleClickOutside),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this._abortController&&(this._abortController.abort(),this._abortController=null),this.isMobile&&this.isOpen&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||this.fetcher&&!this.isMobile||(this.isOpen||(this.notifyOverlayOpened(),this.fetcher&&this.isMobile?(this.filteredOptions=[],this.showNoResults=!1,this._isLoading=!1,this.value&&this.filterValue?(this.mobileFilterValue=this.filterValue,this.mobileFilterValue.length>=this.minSearch&&this._fetchAsyncResults(this.mobileFilterValue)):this.mobileFilterValue=""):(this.filteredOptions=this._computeFilteredOptions(""),this.showNoResults=!1),this.isMobile&&!this.fetcher&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this._effectiveFilterable)return;this._isCleared=!1;const e=t.target,i=this._sanitizeInputValue(e.value,e);this.filterValue=i,this.fetcher?(i.length>=this.minSearch?(this.isOpen=!0,this.notifyOverlayOpened(),this._fetchAsyncResults(i)):(this.isOpen=!1,this.filteredOptions=[],this._isLoading=!1,this.showNoResults=!1,this._lastFetchTerm=null,this._fetchedOptions=[],this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this._abortController&&(this._abortController.abort(),this._abortController=null)),this.requestUpdate()):(this.notifyOverlayOpened(),this.isOpen=!0,""===i&&(this._emitEmptySelection(),this.filteredOptions=this._computeFilteredOptions(""),this.showNoResults=!1),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,i=this._sanitizeInputValue(e.value,e);this.mobileFilterValue=i,this.fetcher?(i.length>=this.minSearch?this._fetchAsyncResults(i):(this.filteredOptions=[],this._isLoading=!1,this.showNoResults=!1,this._lastFetchTerm=null,this._fetchedOptions=[],this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this._abortController&&(this._abortController.abort(),this._abortController=null)),this.requestUpdate()):(""===i?(this._emitEmptySelection(),this.filteredOptions=this._computeFilteredOptions(""),this.showNoResults=!1):this.filteredOptions=this._computeFilteredOptions(i),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._computeFilteredOptions(""))}),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.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.fetcher||(this.filteredOptions=this._computeFilteredOptions("")),this.showNoResults=!1,this._lastFetchTerm=null,this._fetchedOptions=[],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._emitEmptySelection(),this.filterValue="",this.filteredOptions=this._computeFilteredOptions(""),this._lastFetchTerm=null,this._fetchedOptions=[],this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.notifyOverlayOpened(),this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=this._computeFilteredOptions(""),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{this.isMobile||this._desktopInput?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=this._computeFilteredOptions(""),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&!this.contains(e)&&(this.mobileFilterValue="",this.filteredOptions=this._computeFilteredOptions("")))}preventInvalidStart(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart&&1===t.key.length){if(!(this.keydownRegex?this._firstCharRegex?.test(t.key)??!0:/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t.key)))return t.preventDefault(),!0}return!1}onlyRegex(t){if(!this.keydownRegex)return t;let e=this.keydownRegex.match(/\[\^?[^\]]+\]/g);e||(e=[`[${this.keydownRegex}]`]);let i="";const o=e.length>=2,r=new RegExp(e[0]),n=o?new RegExp(e[1]):r,s=t.split("");for(let t=0;t<s.length;t++){const e=s[t];0===t?r.test(e)&&(i+=e):n.test(e)&&(i+=e)}return i.trimStart()}handlePaste(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart){const i=e.selectionStart,o=e.selectionEnd;if(null===i||null===o)return;t.preventDefault();const r=t.clipboardData?.getData("text")||"",n=this._sanitize(r,!0);n&&(e.setRangeText(n,i,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}}handleKeyDown(t){if(this.preventInvalidStart(t))return;const{key:e}=t,i=this._desktopInput;if("Backspace"===e&&this._effectiveFilterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;if(this.fetcher){(r?0:t.length-(e?i.selectionEnd-i.selectionStart:1))<this.minSearch&&(this.isOpen=!1,this.filteredOptions=[],this._isLoading=!1,this.showNoResults=!1,this._lastFetchTerm=null,this._fetchedOptions=[],this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this._abortController&&(this._abortController.abort(),this._abortController=null),this.requestUpdate())}else(o||r)&&(this._emitEmptySelection(),this.filterValue="",this.filteredOptions=this._computeFilteredOptions(""),this.isOpen=!0,this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.notifyOverlayOpened(),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)if(o.length>0){const t=o[o.length-1];this.highlightedIndex=this.filteredOptions.indexOf(t)}else this.highlightedIndex=-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||!this._effectiveFilterable&&" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled))return this.handleSelect(e),this._desktopInput?this._desktopInput.focus():this._desktopFake?.focus(),void(this.highlightedIndex=-1)}else"Escape"===e?(t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this._desktopInput?this._desktopInput.focus():this._desktopFake?.focus()):"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this._effectiveFilterable)return}if("ArrowRight"!==e);else{const e=!i||i.selectionStart===i.value.length;if(!this._effectiveFilterable||e){t.preventDefault();const e=this._iconButton;e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this._desktopInput,o=this._desktopFake,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._effectiveFilterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this._optionsList;if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}_emitEmptySelection(){this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))}_fetchAsyncResults(t){if(null!==this._lastFetchTerm&&this._fetchedOptions.length>0&&this.normalizeText(t).startsWith(this.normalizeText(this._lastFetchTerm))){const e=this.normalizeText(t);return this.filteredOptions=this._fetchedOptions.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)})),this.showNoResults=0===this.filteredOptions.length,this.highlightedIndex=this.filteredOptions.length>0?0:-1,this._isLoading=!1,void this.requestUpdate()}this._abortController&&this._abortController.abort(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this._isLoading=!0,this.showNoResults=!1,this.filteredOptions=[],this.requestUpdate();const e=()=>{this._abortController=new AbortController,this.fetcher(t,{signal:this._abortController.signal}).then((e=>{this._abortController?.signal.aborted||(this._fetchedOptions=e,this._lastFetchTerm=t,this.filteredOptions=e,this.showNoResults=0===e.length,this.highlightedIndex=e.length>0?0:-1,this._isLoading=!1,this.requestUpdate())})).catch((()=>{this._abortController?.signal.aborted||(this.filteredOptions=[],this.showNoResults=!0,this._isLoading=!1,this.requestUpdate())}))};this.debounceMs>0?this.debounceTimeout=window.setTimeout(e,this.debounceMs):e()}_sanitize(t,e){let i=t.replace(ut,"");if(this.maxLength&&(i=i.slice(0,this.maxLength)),i.startsWith(" ")&&(i=i.trimStart()),this.keydownRegex&&(i=this.onlyRegex(i)),e&&i.length>0){const t=i[0];(this.keydownRegex?this._firstCharRegex?.test(t)??!0:/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t))||(i=this.keydownRegex&&this._firstCharRegex?i.replace(new RegExp(`^[^${this._firstCharRegex.source.replace(/^\[/,"").replace(/\]$/,"")}]+`),""):i.replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/,""))}return i}_sanitizeInputValue(t,e){const i=e.selectionStart||0,o=t.slice(0,i).replace(ut,"").length,r=this._sanitize(t,!1);return e.value=r,e.setSelectionRange(o,o),r}renderOptionIcon(t){if(!t||"string"!=typeof t)return i;const o=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/\bon\w+\s*=/gi,"").replace(/javascript:/gi,"");return e`<span class="icon-list" .innerHTML="${o}"></span>`}_renderOptionItem(t,i){const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return e`
2597
+ <li
2598
+ id="option-${i}"
2599
+ class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2600
+ role="option"
2601
+ aria-selected="${i===this.highlightedIndex}"
2602
+ @click="${()=>{r||this.handleSelect(t)}}"
2603
+ @mouseenter="${()=>this.handleOptionHover(i)}"
2604
+ >
2605
+ ${this.renderOptionIcon(n)}
2606
+ ${o}
2607
+ </li>
2608
+ `}validateAndCleanOnBlur(){if(!this._effectiveFilterable)return;const t=this.normalizeText((this.filterValue||"").trim());if(!t)return""!==this.value&&this._emitEmptySelection(),this.filterValue="",this.filteredOptions=this._computeFilteredOptions(""),void(this.showNoResults=!1);const e=(this.fetcher?this.filteredOptions:this.options).find((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(String(i))===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this._emitEmptySelection(),this.filterValue="",this.filteredOptions=this._computeFilteredOptions(""),this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2597
2609
  <randstad-icon
2598
2610
  name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
2599
2611
  size="24px"
@@ -2643,6 +2655,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2643
2655
  aria-expanded="${this.isOpen}"
2644
2656
  aria-controls="options-list"
2645
2657
  aria-haspopup="listbox"
2658
+ aria-busy="${this._isLoading}"
2646
2659
  aria-activedescendant="${this.isOpen&&-1!==this.highlightedIndex?`option-${this.highlightedIndex}`:i}"
2647
2660
  />
2648
2661
  `}
@@ -2661,24 +2674,19 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2661
2674
  </button>
2662
2675
 
2663
2676
  ${!t&&this.isOpen?e`
2664
- ${this.filteredOptions.length>0?e`
2665
- <ul class="options-list" role="listbox">
2666
- ${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return e`
2667
- <li
2668
- class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2669
- role="option"
2670
- aria-selected="${i===this.highlightedIndex}"
2671
- @click="${()=>{r||this.handleSelect(t)}}"
2672
- @mouseenter="${()=>this.handleOptionHover(i)}"
2673
- >
2674
- ${this.renderOptionIcon(n)}
2675
- ${o}
2676
- </li>
2677
- `}))}
2677
+ ${this._isLoading?e`
2678
+ <ul id="options-list" class="options-list" role="listbox" aria-live="polite">
2679
+ <li class="state-item" role="status">
2680
+ ${this.textLabelLoading}
2681
+ </li>
2682
+ </ul>
2683
+ `:this.filteredOptions.length>0?e`
2684
+ <ul id="options-list" class="options-list" role="listbox" aria-live="polite">
2685
+ ${this.filteredOptions.map(((t,e)=>this._renderOptionItem(t,e)))}
2678
2686
  </ul>
2679
2687
  `:this.showNoResults?e`
2680
- <ul class="options-list" role="listbox">
2681
- <li class="no-results-item">
2688
+ <ul id="options-list" class="options-list" role="listbox" aria-live="polite">
2689
+ <li class="state-item">
2682
2690
  ${c}
2683
2691
  </li>
2684
2692
  </ul>
@@ -2706,34 +2714,33 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2706
2714
  placeholder="${h}"
2707
2715
  inputmode="search"
2708
2716
  maxlength="${this.maxLength??""}"
2717
+ role="combobox"
2718
+ aria-expanded="${this.isOpen}"
2719
+ aria-controls="mobile-options-list"
2720
+ aria-haspopup="listbox"
2709
2721
  />
2710
2722
 
2711
- ${this.mobileFilterValue.length>0&&0===this.filteredOptions.length?e`<randstad-icon name="warning" size="24px" class="no-results-icon"></randstad-icon>`:i}
2723
+ ${!this._isLoading&&this.showNoResults?e`<randstad-icon name="warning" size="24px" class="no-results-icon"></randstad-icon>`:i}
2712
2724
  `:i}
2713
2725
 
2714
- <button class="modal-close-button" @click="${()=>{this.isOpen=!1,this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy()}}">
2726
+ <button class="modal-close-button" @click="${()=>{this.isOpen=!1,this.mobileFilterValue="",this.filteredOptions=this._computeFilteredOptions(""),this._lastFetchTerm=null,this._fetchedOptions=[],this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this._abortController&&(this._abortController.abort(),this._abortController=null),this._isLoading=!1}}">
2715
2727
  <randstad-icon name="close" size="24px"></randstad-icon>
2716
2728
  </button>
2717
2729
  </div>
2718
2730
 
2719
- ${this.filteredOptions.length>0?e`
2720
- <ul class="options-list">
2721
- ${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return e`
2722
- <li
2723
- class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2724
- role="option"
2725
- aria-selected="${i===this.highlightedIndex}"
2726
- @click="${()=>{r||this.handleSelect(t)}}"
2727
- @mouseenter="${()=>this.handleOptionHover(i)}"
2728
- >
2729
- ${this.renderOptionIcon(n)}
2730
- ${o}
2731
- </li>
2732
- `}))}
2731
+ ${this._isLoading?e`
2732
+ <ul id="mobile-options-list" class="options-list" role="listbox" aria-live="polite">
2733
+ <li class="state-item" role="status">
2734
+ ${this.textLabelLoading}
2735
+ </li>
2736
+ </ul>
2737
+ `:this.filteredOptions.length>0?e`
2738
+ <ul id="mobile-options-list" class="options-list" role="listbox" aria-live="polite">
2739
+ ${this.filteredOptions.map(((t,e)=>this._renderOptionItem(t,e)))}
2733
2740
  </ul>
2734
2741
  `:this.showNoResults?e`
2735
- <ul class="options-list" role="listbox">
2736
- <li class="no-results-item mobile-item">
2742
+ <ul id="mobile-options-list" class="options-list" role="listbox" aria-live="polite">
2743
+ <li class="state-item mobile-item">
2737
2744
  ${c}
2738
2745
  </li>
2739
2746
  </ul>
@@ -2741,7 +2748,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2741
2748
  </div>
2742
2749
  </div>
2743
2750
  `:i}
2744
- `}};n([L({type:Object}),s("design:type",Object)],ut.prototype,"value",void 0),n([L({type:String,attribute:"default-value"}),s("design:type",Object)],ut.prototype,"defaultValue",void 0),n([L({type:Array}),s("design:type",Array)],ut.prototype,"options",void 0),n([L({type:Boolean}),s("design:type",Object)],ut.prototype,"filterable",void 0),n([L({type:Number}),s("design:type",Number)],ut.prototype,"maxLength",void 0),n([L({type:String}),s("design:type",String)],ut.prototype,"textLabelFilterNotResult",void 0),n([L({type:String}),s("design:type",String)],ut.prototype,"textLabelMobileSearch",void 0),n([L({type:Boolean}),s("design:type",Object)],ut.prototype,"isRenderClearButton",void 0),n([L({type:Boolean}),s("design:type",Object)],ut.prototype,"sortable",void 0),n([B(),s("design:type",Boolean)],ut.prototype,"isMobile",void 0),n([B(),s("design:type",Object)],ut.prototype,"highlightedIndex",void 0),n([B(),s("design:type",Boolean)],ut.prototype,"_isCleared",void 0),n([B(),s("design:type",Array)],ut.prototype,"filteredOptions",void 0),n([B(),s("design:type",Object)],ut.prototype,"filterValue",void 0),n([B(),s("design:type",Object)],ut.prototype,"isOpen",void 0),n([B(),s("design:type",Object)],ut.prototype,"mobileFilterValue",void 0),n([B(),s("design:type",Boolean)],ut.prototype,"showNoResults",void 0),n([L({type:Boolean,attribute:"last-element"}),s("design:type",Object)],ut.prototype,"lastElement",void 0),n([V(".mobile-modal .filter-input"),s("design:type",HTMLInputElement)],ut.prototype,"mobileInputRef",void 0),ut=n([a("filterable-select")],ut);const gt=new CSSStyleSheet;gt.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 bt extends t{static{this.styles=[gt,o`
2751
+ `}};n([L({type:Object}),s("design:type",Object)],gt.prototype,"value",void 0),n([L({type:String,attribute:"default-value"}),s("design:type",Object)],gt.prototype,"defaultValue",void 0),n([L({type:Array}),s("design:type",Array)],gt.prototype,"options",void 0),n([L({type:Boolean}),s("design:type",Object)],gt.prototype,"filterable",void 0),n([L({type:Number}),s("design:type",Number)],gt.prototype,"maxLength",void 0),n([L({type:String}),s("design:type",String)],gt.prototype,"keydownRegex",void 0),n([L({type:String}),s("design:type",String)],gt.prototype,"textLabelFilterNotResult",void 0),n([L({type:String}),s("design:type",String)],gt.prototype,"textLabelMobileSearch",void 0),n([L({type:Boolean}),s("design:type",Object)],gt.prototype,"isRenderClearButton",void 0),n([L({type:Boolean}),s("design:type",Object)],gt.prototype,"sortable",void 0),n([L({type:Function}),s("design:type",Function)],gt.prototype,"fetcher",void 0),n([L({type:Number}),s("design:type",Number)],gt.prototype,"minSearch",void 0),n([L({type:String}),s("design:type",String)],gt.prototype,"textLabelLoading",void 0),n([L({type:Number,attribute:"debounce-ms"}),s("design:type",Number)],gt.prototype,"debounceMs",void 0),n([T(),s("design:type",Boolean)],gt.prototype,"isMobile",void 0),n([T(),s("design:type",Object)],gt.prototype,"highlightedIndex",void 0),n([T(),s("design:type",Boolean)],gt.prototype,"_isCleared",void 0),n([T(),s("design:type",Array)],gt.prototype,"filteredOptions",void 0),n([T(),s("design:type",Object)],gt.prototype,"filterValue",void 0),n([T(),s("design:type",Object)],gt.prototype,"isOpen",void 0),n([T(),s("design:type",Object)],gt.prototype,"mobileFilterValue",void 0),n([T(),s("design:type",Boolean)],gt.prototype,"showNoResults",void 0),n([T(),s("design:type",Boolean)],gt.prototype,"_isLoading",void 0),n([L({type:Boolean,attribute:"last-element"}),s("design:type",Object)],gt.prototype,"lastElement",void 0),n([V(".mobile-modal .filter-input"),s("design:type",HTMLInputElement)],gt.prototype,"mobileInputRef",void 0),n([V(".filter-input"),s("design:type",HTMLInputElement)],gt.prototype,"_desktopInput",void 0),n([V(".filter-fake"),s("design:type",HTMLElement)],gt.prototype,"_desktopFake",void 0),n([V(".icon-button"),s("design:type",HTMLButtonElement)],gt.prototype,"_iconButton",void 0),n([V(".options-list"),s("design:type",HTMLUListElement)],gt.prototype,"_optionsList",void 0),gt=pt=n([a("filterable-select")],gt);const bt=new CSSStyleSheet;bt.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 mt extends t{static{this.styles=[bt,o`
2745
2752
  :host {
2746
2753
  display: flex;
2747
2754
  position: fixed;
@@ -2885,7 +2892,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2885
2892
  <randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
2886
2893
  <span class="message">${this.message}</span>
2887
2894
  </div>
2888
- `}}customElements.define("randstad-snackbar",bt);let mt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
2895
+ `}}customElements.define("randstad-snackbar",mt);let yt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
2889
2896
  .stepper {
2890
2897
  display: flex;
2891
2898
  gap: 20px;
@@ -2985,7 +2992,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2985
2992
  </div>
2986
2993
  `))}
2987
2994
  </div>
2988
- `}};n([L({type:Number}),s("design:type",Object)],mt.prototype,"totalSteps",void 0),n([L({type:Number}),s("design:type",Object)],mt.prototype,"currentStep",void 0),mt=n([a("custom-stepper")],mt);let yt=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`
2995
+ `}};n([L({type:Number}),s("design:type",Object)],yt.prototype,"totalSteps",void 0),n([L({type:Number}),s("design:type",Object)],yt.prototype,"currentStep",void 0),yt=n([a("custom-stepper")],yt);let ft=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`
2989
2996
  :host {
2990
2997
  display: block;
2991
2998
  border-bottom: 1px solid #E7E8EC;
@@ -2998,7 +3005,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2998
3005
  }
2999
3006
 
3000
3007
  .tab {
3001
- ${H};
3008
+ ${z};
3002
3009
  display: flex;
3003
3010
  gap: 8px;
3004
3011
  flex-direction: row;
@@ -3120,7 +3127,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3120
3127
  </button>
3121
3128
  `:null}
3122
3129
  </div>
3123
- `}};n([L({type:Array}),s("design:type",Array)],yt.prototype,"tabs",void 0),n([L({type:String}),s("design:type",String)],yt.prototype,"selected",void 0),n([B(),s("design:type",String)],yt.prototype,"internalSelected",void 0),n([B(),s("design:type",Object)],yt.prototype,"showPrev",void 0),n([B(),s("design:type",Object)],yt.prototype,"showNext",void 0),yt=n([a("tabs-bar")],yt);let vt=class extends T{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=()=>"El formato del archivo no es válido",this.TEXT_SNACKBAR_ERROR_SIZE=t=>`El archivo es muy grande. Máximo ${t}`,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?(clearTimeout(o.timer),o.open&&(o.open=!1),setTimeout((()=>{o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,o.timer=setTimeout((()=>o.open=!1),e)}),150)):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,n){const s=e>0,a=i.length>0;for(const l of t){const t="."+l.name.split(".").pop()?.toLowerCase(),d=i.includes(l.type),c=i.some((e=>{const i=e.split("/")[1];return"jpeg"===i?".jpeg"===t||".jpg"===t:t===`.${i}`}));if(a&&(!d||!c))return this.setError(n,o,this.TEXT_SNACKBAR_ERROR_TYPE()),!1;if(s&&l.size>e)return this.setError(n,r,this.TEXT_SNACKBAR_ERROR_SIZE(this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:n,errorMessageSize:s,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)-l.length;if(d<=0){const t="Alcanzaste el número máximo de archivos";return void this.setError(a,t,t)}const c=Array.from(t).slice(0,d);if(0===c.length)return;if(!this.validateFiles(c,o,r,n,s,a))return;const h=this.simulatedDelay??0;if(h<=0)return this.files=[...l,...c],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const p=Date.now(),u=setInterval((()=>{const t=Date.now()-p,e=Math.min(Math.round(t/h*100),100);this.progress=e,this.progress>=100&&(clearInterval(u),this.files=[...l,...c],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`
3130
+ `}};n([L({type:Array}),s("design:type",Array)],ft.prototype,"tabs",void 0),n([L({type:String}),s("design:type",String)],ft.prototype,"selected",void 0),n([T(),s("design:type",String)],ft.prototype,"internalSelected",void 0),n([T(),s("design:type",Object)],ft.prototype,"showPrev",void 0),n([T(),s("design:type",Object)],ft.prototype,"showNext",void 0),ft=n([a("tabs-bar")],ft);let vt=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=()=>"El formato del archivo no es válido",this.TEXT_SNACKBAR_ERROR_SIZE=t=>`El archivo es muy grande. Máximo ${t}`,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?(clearTimeout(o.timer),o.open&&(o.open=!1),setTimeout((()=>{o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,o.timer=setTimeout((()=>o.open=!1),e)}),150)):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,n){const s=e>0,a=i.length>0;for(const l of t){const t="."+l.name.split(".").pop()?.toLowerCase(),d=i.includes(l.type),c=i.some((e=>{const i=e.split("/")[1];return"jpeg"===i?".jpeg"===t||".jpg"===t:t===`.${i}`}));if(a&&(!d||!c))return this.setError(n,o,this.TEXT_SNACKBAR_ERROR_TYPE()),!1;if(s&&l.size>e)return this.setError(n,r,this.TEXT_SNACKBAR_ERROR_SIZE(this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:n,errorMessageSize:s,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)-l.length;if(d<=0){const t="Alcanzaste el número máximo de archivos";return void this.setError(a,t,t)}const c=Array.from(t).slice(0,d);if(0===c.length)return;if(!this.validateFiles(c,o,r,n,s,a))return;const h=this.simulatedDelay??0;if(h<=0)return this.files=[...l,...c],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const p=Date.now(),u=setInterval((()=>{const t=Date.now()-p,e=Math.min(Math.round(t/h*100),100);this.progress=e,this.progress>=100&&(clearInterval(u),this.files=[...l,...c],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`
3124
3131
  ${this.loading?e`
3125
3132
  <div class="progress-bar-container">
3126
3133
  <div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
@@ -3130,7 +3137,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3130
3137
  `:e`
3131
3138
  ${t}
3132
3139
  `}
3133
- `}};n([L({type:Array}),s("design:type",Array)],vt.prototype,"files",void 0),n([L({type:Number}),s("design:type",Object)],vt.prototype,"simulatedDelay",void 0),n([L({type:Boolean}),s("design:type",Object)],vt.prototype,"showAlertInError",void 0),n([L({type:String}),s("design:type",Object)],vt.prototype,"typeTextFile",void 0),n([B(),s("design:type",Object)],vt.prototype,"loading",void 0),n([B(),s("design:type",Object)],vt.prototype,"progress",void 0),n([B(),s("design:type",Object)],vt.prototype,"errorTextMessage",void 0),n([V('input[ type="file" ]'),s("design:type",HTMLInputElement)],vt.prototype,"fileInput",void 0),vt=n([a("base-upload")],vt);const ft={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},wt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ft,"text/plain":".txt"},xt=o`
3140
+ `}};n([L({type:Array}),s("design:type",Array)],vt.prototype,"files",void 0),n([L({type:Number}),s("design:type",Object)],vt.prototype,"simulatedDelay",void 0),n([L({type:Boolean}),s("design:type",Object)],vt.prototype,"showAlertInError",void 0),n([L({type:String}),s("design:type",Object)],vt.prototype,"typeTextFile",void 0),n([T(),s("design:type",Object)],vt.prototype,"loading",void 0),n([T(),s("design:type",Object)],vt.prototype,"progress",void 0),n([T(),s("design:type",Object)],vt.prototype,"errorTextMessage",void 0),n([V('input[ type="file" ]'),s("design:type",HTMLInputElement)],vt.prototype,"fileInput",void 0),vt=n([a("base-upload")],vt);const wt={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},xt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...wt,"text/plain":".txt"},Ct=o`
3134
3141
  .progress-bar-container {
3135
3142
  min-height: 23px;
3136
3143
  display: flex;
@@ -3150,9 +3157,9 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3150
3157
  background-color: var( --primary-color );
3151
3158
  transition: width 0.1s ease;
3152
3159
  }
3153
- `;let Ct=class extends vt{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`
3160
+ `;let kt=class extends vt{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`
3154
3161
  ${X}
3155
- ${xt}
3162
+ ${Ct}
3156
3163
 
3157
3164
  :host {
3158
3165
  font-family: 'Graphik', sans-serif;
@@ -3279,7 +3286,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3279
3286
  .text-main.error {
3280
3287
  color: var(--ui-negative, #E00F0F);
3281
3288
  }
3282
- `}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,ft)}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,n=this.acceptedFileTypes.length>0,s=!1!==this.isShowInfoSize,a=r&&s?` / max. ${this.getTextMaxFileSize()}`:"",l=n?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`
3289
+ `}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,wt)}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,n=this.acceptedFileTypes.length>0,s=!1!==this.isShowInfoSize,a=r&&s?` / max. ${this.getTextMaxFileSize()}`:"",l=n?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`
3283
3290
  <label class="button"
3284
3291
  tabindex="0"
3285
3292
  @keydown=${e=>this.handleButtonKeydown(e,t)}
@@ -3345,7 +3352,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3345
3352
  </div>
3346
3353
  </div>
3347
3354
  </div>
3348
- `}};n([L({type:Array}),s("design:type",Array)],Ct.prototype,"acceptedFileTypes",void 0),n([L({type:Number}),s("design:type",Object)],Ct.prototype,"maxFiles",void 0),n([L({type:Number}),s("design:type",Object)],Ct.prototype,"maxFileSize",void 0),n([L({type:Boolean}),s("design:type",Object)],Ct.prototype,"isShowInfoSize",void 0),n([L({type:Boolean}),s("design:type",Object)],Ct.prototype,"isChangeStyleError",void 0),n([B(),s("design:type",Object)],Ct.prototype,"isDragging",void 0),n([B(),s("design:type",Array)],Ct.prototype,"imageUrls",void 0),n([B(),s("design:type",Boolean)],Ct.prototype,"isMaxFilesReached",void 0),Ct=n([a("upload-image")],Ct);const kt=6048e5,$t=Symbol.for("constructDateFrom");function St(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&$t in t?t[$t](e):t instanceof Date?new t.constructor(e):new Date(e)}function Dt(t,e){return St(e||t,t)}function Et(t,e,i){const o=Dt(t,i?.in);if(isNaN(e))return St(t,NaN);if(!e)return o;const r=o.getDate(),n=St(t,o.getTime());n.setMonth(o.getMonth()+e+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let _t={};function Mt(){return _t}function Ot(t,e){const i=Mt(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Dt(t,e?.in),n=r.getDay(),s=(n<o?7:0)+n-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Ft(t,e){return Ot(t,{...e,weekStartsOn:1})}function Lt(t,e){const i=Dt(t,e?.in),o=i.getFullYear(),r=St(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=Ft(r),s=St(i,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const a=Ft(s);return i.getTime()>=n.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Bt(t){const e=Dt(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 Vt(t,...e){const i=St.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Tt(t,e){const i=Dt(t,e?.in);return i.setHours(0,0,0,0),i}function Pt(t,e,i){return Et(t,12*e,i)}function Rt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Dt(t)));var e}function jt(t,e){const i=Dt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const At={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 Ht(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const zt={date:Ht({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ht({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:Ht({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},It={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Nt(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],n=e.match(r);if(!n)return null;const s=n[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(s))):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(s)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(s.length)}}}var qt;const Zt={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=At[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:zt,formatRelative:(t,e,i,o)=>It[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:Nt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Nt({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:Nt({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:Nt({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:Nt({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:(qt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(qt.matchPattern);if(!i)return null;const o=i[0],r=t.match(qt.parsePattern);if(!r)return null;let n=qt.valueCallback?qt.valueCallback(r[0]):r[0];return n=e.valueCallback?e.valueCallback(n):n,{value:n,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 Ut(t,e){const i=Dt(t,e?.in),o=function(t,e){const[i,o]=Vt(0,t,e),r=Tt(i),n=Tt(o),s=+r-Bt(r),a=+n-Bt(n);return Math.round((s-a)/864e5)}(i,function(t,e){const i=Dt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Yt(t,e){const i=Dt(t,e?.in),o=+Ft(i)-+function(t,e){const i=Lt(t,e),o=St(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Ft(o)}(i);return Math.round(o/kt)+1}function Gt(t,e){const i=Dt(t,e?.in),o=i.getFullYear(),r=Mt(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=St(e?.in||t,0);s.setFullYear(o+1,0,n),s.setHours(0,0,0,0);const a=Ot(s,e),l=St(e?.in||t,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);const d=Ot(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Kt(t,e){const i=Dt(t,e?.in),o=+Ot(i,e)-+function(t,e){const i=Mt(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Gt(t,e),n=St(e?.in||t,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),Ot(n,e)}(i,e);return Math.round(o/kt)+1}function Xt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Qt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Xt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Xt(i+1,2)},d:(t,e)=>Xt(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)=>Xt(t.getHours()%12||12,e.length),H:(t,e)=>Xt(t.getHours(),e.length),m:(t,e)=>Xt(t.getMinutes(),e.length),s:(t,e)=>Xt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Xt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Jt="midnight",te="noon",ee="morning",ie="afternoon",oe="evening",re="night",ne={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 Qt.y(t,e)},Y:function(t,e,i,o){const r=Gt(t,o),n=r>0?r:1-r;if("YY"===e){return Xt(n%100,2)}return"Yo"===e?i.ordinalNumber(n,{unit:"year"}):Xt(n,e.length)},R:function(t,e){return Xt(Lt(t),e.length)},u:function(t,e){return Xt(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 Xt(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 Xt(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 Qt.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 Xt(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=Kt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Xt(r,e.length)},I:function(t,e,i){const o=Yt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Xt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Qt.d(t,e)},D:function(t,e,i){const o=Ut(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Xt(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(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(n);case"ee":return Xt(n,2);case"eo":return i.ordinalNumber(n,{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(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(n);case"cc":return Xt(n,e.length);case"co":return i.ordinalNumber(n,{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 Xt(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?te:0===o?Jt: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?oe:o>=12?ie:o>=4?ee:re,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 Qt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Qt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Qt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Qt.s(t,e)},S:function(t,e){return Qt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ae(o);case"XXXX":case"XX":return le(o);default:return le(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ae(o);case"xxxx":case"xx":return le(o);default:return le(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+se(o,":");default:return"GMT"+le(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+se(o,":");default:return"GMT"+le(o,":")}},t:function(t,e,i){return Xt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Xt(+t,e.length)}};function se(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),n=o%60;return 0===n?i+String(r):i+String(r)+e+Xt(n,2)}function ae(t,e){if(t%60==0){return(t>0?"-":"+")+Xt(Math.abs(t)/60,2)}return le(t,e)}function le(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Xt(Math.trunc(o/60),2)+e+Xt(o%60,2)}const de=(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"})}},ce=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},he={p:ce,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return de(t,e);let n;switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",de(o,e)).replace("{{time}}",ce(r,e))}},pe=/^D+$/,ue=/^Y+$/,ge=["D","DD","YY","YYYY"];const be=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,me=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ye=/^'([^]*?)'?$/,ve=/''/g,fe=/[a-zA-Z]/;function we(t,e,i){const o=Mt(),r=o.locale??Zt,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=Dt(t,i?.in);if(!Rt(a))throw new RangeError("Invalid time value");let l=e.match(me).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,he[e])(t,r.formatLong)}return t})).join("").match(be).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:xe(t)};if(ne[e])return{isToken:!0,value:t};if(e.match(fe))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:n,weekStartsOn:s,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ue.test(t)}(o)||function(t){return pe.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),ge.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,ne[o[0]])(a,o,r.localize,d)})).join("")}function xe(t){const e=t.match(ye);return e?e[1].replace(ve,"'"):t}function Ce(t,e){return Dt(t,e?.in).getDate()}function ke(t,e){const i=Dt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),n=St(i,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function $e(t,e){return+Dt(t)>+Dt(e)}function Se(t,e){return+Dt(t)<+Dt(e)}function De(t,e,i){const[o,r]=Vt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function Ee(t,e,i){const[o,r]=Vt(0,t,e);return o.getFullYear()===r.getFullYear()}function _e(t,e){return function(t,e){const[i,o]=Vt(0,t,e);return+Tt(i)===+Tt(o)}(St(t,t),function(t){return St(t,Date.now())}(t))}function Me(t,e,i){const o=Dt(t,i?.in);return o.setDate(e),o}let Oe=class extends t{static{this.styles=[J,o`
3355
+ `}};n([L({type:Array}),s("design:type",Array)],kt.prototype,"acceptedFileTypes",void 0),n([L({type:Number}),s("design:type",Object)],kt.prototype,"maxFiles",void 0),n([L({type:Number}),s("design:type",Object)],kt.prototype,"maxFileSize",void 0),n([L({type:Boolean}),s("design:type",Object)],kt.prototype,"isShowInfoSize",void 0),n([L({type:Boolean}),s("design:type",Object)],kt.prototype,"isChangeStyleError",void 0),n([T(),s("design:type",Object)],kt.prototype,"isDragging",void 0),n([T(),s("design:type",Array)],kt.prototype,"imageUrls",void 0),n([T(),s("design:type",Boolean)],kt.prototype,"isMaxFilesReached",void 0),kt=n([a("upload-image")],kt);const $t=6048e5,_t=Symbol.for("constructDateFrom");function St(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&_t in t?t[_t](e):t instanceof Date?new t.constructor(e):new Date(e)}function Dt(t,e){return St(e||t,t)}function Et(t,e,i){const o=Dt(t,i?.in);if(isNaN(e))return St(t,NaN);if(!e)return o;const r=o.getDate(),n=St(t,o.getTime());n.setMonth(o.getMonth()+e+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let Mt={};function Ot(){return Mt}function Ft(t,e){const i=Ot(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Dt(t,e?.in),n=r.getDay(),s=(n<o?7:0)+n-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Lt(t,e){return Ft(t,{...e,weekStartsOn:1})}function Tt(t,e){const i=Dt(t,e?.in),o=i.getFullYear(),r=St(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=Lt(r),s=St(i,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const a=Lt(s);return i.getTime()>=n.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Vt(t){const e=Dt(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 Bt(t,...e){const i=St.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Pt(t,e){const i=Dt(t,e?.in);return i.setHours(0,0,0,0),i}function Rt(t,e,i){return Et(t,12*e,i)}function jt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Dt(t)));var e}function At(t,e){const i=Dt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const zt={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 Ht(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const It={date:Ht({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ht({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:Ht({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Wt(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 qt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],n=e.match(r);if(!n)return null;const s=n[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(s))):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(s)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(s.length)}}}var Zt;const Ut={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=zt[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:It,formatRelative:(t,e,i,o)=>Nt[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:Wt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Wt({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:Wt({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:Wt({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:Wt({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 n=Zt.valueCallback?Zt.valueCallback(r[0]):r[0];return n=e.valueCallback?e.valueCallback(n):n,{value:n,rest:t.slice(o.length)}}),era:qt({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:qt({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:qt({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:qt({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:qt({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 Yt(t,e){const i=Dt(t,e?.in),o=function(t,e){const[i,o]=Bt(0,t,e),r=Pt(i),n=Pt(o),s=+r-Vt(r),a=+n-Vt(n);return Math.round((s-a)/864e5)}(i,function(t,e){const i=Dt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Gt(t,e){const i=Dt(t,e?.in),o=+Lt(i)-+function(t,e){const i=Tt(t,e),o=St(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Lt(o)}(i);return Math.round(o/$t)+1}function Kt(t,e){const i=Dt(t,e?.in),o=i.getFullYear(),r=Ot(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=St(e?.in||t,0);s.setFullYear(o+1,0,n),s.setHours(0,0,0,0);const a=Ft(s,e),l=St(e?.in||t,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);const d=Ft(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Xt(t,e){const i=Dt(t,e?.in),o=+Ft(i,e)-+function(t,e){const i=Ot(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Kt(t,e),n=St(e?.in||t,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),Ft(n,e)}(i,e);return Math.round(o/$t)+1}function Qt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Jt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Qt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Qt(i+1,2)},d:(t,e)=>Qt(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)=>Qt(t.getHours()%12||12,e.length),H:(t,e)=>Qt(t.getHours(),e.length),m:(t,e)=>Qt(t.getMinutes(),e.length),s:(t,e)=>Qt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Qt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},te="midnight",ee="noon",ie="morning",oe="afternoon",re="evening",ne="night",se={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 Jt.y(t,e)},Y:function(t,e,i,o){const r=Kt(t,o),n=r>0?r:1-r;if("YY"===e){return Qt(n%100,2)}return"Yo"===e?i.ordinalNumber(n,{unit:"year"}):Qt(n,e.length)},R:function(t,e){return Qt(Tt(t),e.length)},u:function(t,e){return Qt(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 Qt(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 Qt(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 Jt.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 Qt(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=Xt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Qt(r,e.length)},I:function(t,e,i){const o=Gt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Qt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Jt.d(t,e)},D:function(t,e,i){const o=Yt(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Qt(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(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(n);case"ee":return Qt(n,2);case"eo":return i.ordinalNumber(n,{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(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(n);case"cc":return Qt(n,e.length);case"co":return i.ordinalNumber(n,{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 Qt(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?ee:0===o?te: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?re:o>=12?oe:o>=4?ie:ne,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Jt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Jt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Qt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Qt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Jt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Jt.s(t,e)},S:function(t,e){return Jt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return le(o);case"XXXX":case"XX":return de(o);default:return de(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return le(o);case"xxxx":case"xx":return de(o);default:return de(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ae(o,":");default:return"GMT"+de(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ae(o,":");default:return"GMT"+de(o,":")}},t:function(t,e,i){return Qt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Qt(+t,e.length)}};function ae(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),n=o%60;return 0===n?i+String(r):i+String(r)+e+Qt(n,2)}function le(t,e){if(t%60==0){return(t>0?"-":"+")+Qt(Math.abs(t)/60,2)}return de(t,e)}function de(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Qt(Math.trunc(o/60),2)+e+Qt(o%60,2)}const ce=(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"})}},he=(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"})}},pe={p:he,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return ce(t,e);let n;switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",ce(o,e)).replace("{{time}}",he(r,e))}},ue=/^D+$/,ge=/^Y+$/,be=["D","DD","YY","YYYY"];const me=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,ve=/''/g,we=/[a-zA-Z]/;function xe(t,e,i){const o=Ot(),r=o.locale??Ut,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=Dt(t,i?.in);if(!jt(a))throw new RangeError("Invalid time value");let l=e.match(ye).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,pe[e])(t,r.formatLong)}return t})).join("").match(me).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:Ce(t)};if(se[e])return{isToken:!0,value:t};if(e.match(we))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:n,weekStartsOn:s,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ge.test(t)}(o)||function(t){return ue.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),be.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,se[o[0]])(a,o,r.localize,d)})).join("")}function Ce(t){const e=t.match(fe);return e?e[1].replace(ve,"'"):t}function ke(t,e){return Dt(t,e?.in).getDate()}function $e(t,e){const i=Dt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),n=St(i,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function _e(t,e){return+Dt(t)>+Dt(e)}function Se(t,e){return+Dt(t)<+Dt(e)}function De(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function Ee(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()}function Me(t,e){return function(t,e){const[i,o]=Bt(0,t,e);return+Pt(i)===+Pt(o)}(St(t,t),function(t){return St(t,Date.now())}(t))}function Oe(t,e,i){const o=Dt(t,i?.in);return o.setDate(e),o}let Fe=class extends t{static{this.styles=[J,o`
3349
3356
  ${K}
3350
3357
 
3351
3358
  /* Estilos generales del contenedor del calendario (escritorio) */
@@ -3776,7 +3783,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3776
3783
  border-radius: 9999px;
3777
3784
  }
3778
3785
  /* */
3779
- `]}constructor(){super(),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.type="date",this.lastElement=!1,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}))},this._boundHandleCalendarKeydown=this.handleCalendarKeydown.bind(this),this._boundHandleFocusout=t=>{const e=t.relatedTarget;e&&!this.contains(e)&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this._boundHandleCalendarKeydown),this.addEventListener("focusout",this._boundHandleFocusout)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),this.shadowRoot?.removeEventListener("keydown",this._boundHandleCalendarKeydown),this.removeEventListener("focusout",this._boundHandleFocusout)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"month"===this.type?this.currentView="months"===this.currentView?"years":"months":"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?Et(this.viewDate,t):"months"===this.currentView?Pt(this.viewDate,t):Pt(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=Dt(t,i?.in);return isNaN(+o)?St(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=Dt(t,i?.in),r=o.getFullYear(),n=o.getDate(),s=St(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const a=ke(s);return o.setMonth(e,Math.min(n,a)),o}(this.viewDate,t);"month"===this.type?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))):(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()}))}focusFirstElement(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("button:not([disabled])");t?.focus()}))}))}focusYearsView(){this.updateComplete.then((()=>{this.currentView="years";const t=this.shadowRoot?.querySelector(".year-button:not([disabled])");t&&t.focus()}))}focusMonthsView(){this.updateComplete.then((()=>{"months"!==this.currentView&&(this.currentView="months");const t=this.shadowRoot?.querySelector(".month-button:not([disabled])");t&&t.focus()}))}focusDaysView(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days");const t=this.shadowRoot?.querySelector(".day:not([disabled])");t&&t.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 n=i[r];n&&n.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("Tab"!==e)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"),n=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===n&&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)&&n?.focus();break;case"ArrowLeft":i===n?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)),n=r.findIndex((t=>t===i)),s=this.shadowRoot?.querySelector(".month-year-button");if(-1===n)return;let a=n;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void s?.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!==n&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault();else{const e=Array.from(this.shadowRoot.querySelectorAll("button:not([disabled])"));if(!e.includes(i))return;if(e.length>0){const o=e[0],r=e[e.length-1];if(t.shiftKey&&i===o)return t.preventDefault(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));t.shiftKey||i!==r||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}}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=De(jt(this.viewDate),jt(this.minDate))||Se(this.viewDate,this.minDate)),this.maxDate&&(r=De(jt(this.viewDate),jt(this.maxDate))||$e(this.viewDate,this.maxDate))}return e`
3786
+ `]}constructor(){super(),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.type="date",this.lastElement=!1,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}))},this._boundHandleCalendarKeydown=this.handleCalendarKeydown.bind(this),this._boundHandleFocusout=t=>{const e=t.relatedTarget;e&&!this.contains(e)&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this._boundHandleCalendarKeydown),this.addEventListener("focusout",this._boundHandleFocusout)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),this.shadowRoot?.removeEventListener("keydown",this._boundHandleCalendarKeydown),this.removeEventListener("focusout",this._boundHandleFocusout)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"month"===this.type?this.currentView="months"===this.currentView?"years":"months":"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?Et(this.viewDate,t):"months"===this.currentView?Rt(this.viewDate,t):Rt(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=Dt(t,i?.in);return isNaN(+o)?St(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=Dt(t,i?.in),r=o.getFullYear(),n=o.getDate(),s=St(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const a=$e(s);return o.setMonth(e,Math.min(n,a)),o}(this.viewDate,t);"month"===this.type?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))):(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()}))}focusFirstElement(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("button:not([disabled])");t?.focus()}))}))}focusYearsView(){this.updateComplete.then((()=>{this.currentView="years";const t=this.shadowRoot?.querySelector(".year-button:not([disabled])");t&&t.focus()}))}focusMonthsView(){this.updateComplete.then((()=>{"months"!==this.currentView&&(this.currentView="months");const t=this.shadowRoot?.querySelector(".month-button:not([disabled])");t&&t.focus()}))}focusDaysView(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days");const t=this.shadowRoot?.querySelector(".day:not([disabled])");t&&t.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 n=i[r];n&&n.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("Tab"!==e)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"),n=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===n&&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)&&n?.focus();break;case"ArrowLeft":i===n?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)),n=r.findIndex((t=>t===i)),s=this.shadowRoot?.querySelector(".month-year-button");if(-1===n)return;let a=n;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void s?.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!==n&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault();else{const e=Array.from(this.shadowRoot.querySelectorAll("button:not([disabled])"));if(!e.includes(i))return;if(e.length>0){const o=e[0],r=e[e.length-1];if(t.shiftKey&&i===o)return t.preventDefault(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));t.shiftKey||i!==r||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}}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=De(At(this.viewDate),At(this.minDate))||Se(this.viewDate,this.minDate)),this.maxDate&&(r=De(At(this.viewDate),At(this.maxDate))||_e(this.viewDate,this.maxDate))}return e`
3780
3787
  <div class="header">
3781
3788
  <div class="header-left">
3782
3789
  <button class="month-year-button" @click=${this.handleHeaderClick}>
@@ -3817,20 +3824,20 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3817
3824
  </button>
3818
3825
  `}))}
3819
3826
  </div>
3820
- `}renderDayView(){const t=ke(this.viewDate),i=jt(this.viewDate),o=Dt(i,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),s=Array.from({length:t},((t,e)=>Me(i,e+1))),a=this.getShortWeekdays();return e`
3827
+ `}renderDayView(){const t=$e(this.viewDate),i=At(this.viewDate),o=Dt(i,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),s=Array.from({length:t},((t,e)=>Oe(i,e+1))),a=this.getShortWeekdays();return e`
3821
3828
  <div class="weekdays">
3822
3829
  ${a.map((t=>e`<div>${t}</div>`))}
3823
3830
  </div>
3824
3831
 
3825
3832
  <div class="days-grid">
3826
3833
  ${n.map((()=>e`<div></div>`))}
3827
- ${s.map((t=>{const i=Tt(t),o=this.selectedDate?Tt(this.selectedDate):null,r=this.minDate&&Se(i,Tt(this.minDate))||this.maxDate&&$e(i,Tt(this.maxDate)),n=_e(i),s=o&&Ce(i)===Ce(o),a=s&&o&&De(i,o)&&Ee(i,o);return e`
3834
+ ${s.map((t=>{const i=Pt(t),o=this.selectedDate?Pt(this.selectedDate):null,r=this.minDate&&Se(i,Pt(this.minDate))||this.maxDate&&_e(i,Pt(this.maxDate)),n=Me(i),s=o&&ke(i)===ke(o),a=s&&o&&De(i,o)&&Ee(i,o);return e`
3828
3835
  <button
3829
3836
  class="${`day ${n?"today":""} ${a?"selected":s&&!a?"secondary-selected":""}`}"
3830
3837
  ?disabled=${r}
3831
3838
  @click=${()=>this.handleDayClick(t)}
3832
3839
  >
3833
- ${we(t,"d")}
3840
+ ${xe(t,"d")}
3834
3841
  </button>
3835
3842
  `}))}
3836
3843
  </div>
@@ -3848,7 +3855,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3848
3855
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3849
3856
  ${r}
3850
3857
  </div>
3851
- `}};n([L({type:Object}),s("design:type",Object)],Oe.prototype,"selectedDate",void 0),n([L({type:Object}),s("design:type",Date)],Oe.prototype,"viewDate",void 0),n([L({type:Boolean}),s("design:type",Object)],Oe.prototype,"isMobile",void 0),n([L({type:Number}),s("design:type",Number)],Oe.prototype,"calendarWidth",void 0),n([L({type:Object}),s("design:type",Object)],Oe.prototype,"minDate",void 0),n([L({type:Object}),s("design:type",Object)],Oe.prototype,"maxDate",void 0),n([L({type:String}),s("design:type",String)],Oe.prototype,"type",void 0),n([L({type:Boolean}),s("design:type",Object)],Oe.prototype,"lastElement",void 0),n([B(),s("design:type",String)],Oe.prototype,"currentView",void 0),n([V(".day.selected, .day.today:not(.selected)"),s("design:type",HTMLButtonElement)],Oe.prototype,"initialFocusElement",void 0),Oe=n([a("calendar-overlay"),s("design:paramtypes",[])],Oe);let Fe=class extends T{constructor(){super(...arguments),this.isRenderClearButton=!0,this.readonly=!1,this.type="date",this.eighteenOrOlder=!1,this.maxLength=10,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.lastElement=!1,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this._emitDropdownToggle(!1))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen&&(this._emitToggle(!1),this._emitDropdownToggle(!1)),this.isOpen=!1)}}static{this.styles=o`
3858
+ `}};n([L({type:Object}),s("design:type",Object)],Fe.prototype,"selectedDate",void 0),n([L({type:Object}),s("design:type",Date)],Fe.prototype,"viewDate",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"isMobile",void 0),n([L({type:Number}),s("design:type",Number)],Fe.prototype,"calendarWidth",void 0),n([L({type:Object}),s("design:type",Object)],Fe.prototype,"minDate",void 0),n([L({type:Object}),s("design:type",Object)],Fe.prototype,"maxDate",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"type",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"lastElement",void 0),n([T(),s("design:type",String)],Fe.prototype,"currentView",void 0),n([V(".day.selected, .day.today:not(.selected)"),s("design:type",HTMLButtonElement)],Fe.prototype,"initialFocusElement",void 0),Fe=n([a("calendar-overlay"),s("design:paramtypes",[])],Fe);let Le=class extends B{constructor(){super(...arguments),this.isRenderClearButton=!0,this.readonly=!1,this.type="date",this.eighteenOrOlder=!1,this.maxLength=10,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.lastElement=!1,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this._emitDropdownToggle(!1))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen&&(this._emitToggle(!1),this._emitDropdownToggle(!1)),this.isOpen=!1)}}static{this.styles=o`
3852
3859
  ${X}
3853
3860
  ${Q}
3854
3861
  ${G}
@@ -3989,7 +3996,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3989
3996
  background-color: transparent;
3990
3997
  }
3991
3998
  }
3992
- `}setMessageErrorFormatInvalid(){return`formato de fecha inválido, se esperaba '${"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}'`}get _currentFormat(){return"month"===this.type?"MM-yyyy":"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),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}firstUpdated(){this.setInitialWidth()}setInitialWidth(){if(!this.inputContainer)return;const t=this.inputContainer.getBoundingClientRect().width;this.calendarWidth!==t&&(this.calendarWidth=t)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){this.onlyNumericAndDash(t);const e=t.target,i=e.value.substring(0,this.maxLength);e.value!==i&&(e.value=i),this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,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){let e=t.detail.date;if(!e)return;"month"===this.type&&(e=Me(e,1));if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=we(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.closeOverlay(t)}else{const t=we(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.selectedDate=null,this.closeOverlay(null)}}_emitToggle(t){this.dispatchEvent(new CustomEvent("calendar-toggle",{detail:{open:t},bubbles:!0,composed:!0}))}_isLastFocusableInModal(){const t=this.parentElement;if(!t)return!1;const e=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","a[href]",'[tabindex]:not([tabindex="-1"])',"randstad-button:not([disabled])","datepicker-component:not([disabled])","randstad-select:not([disabled])"].join(", "),i=t.querySelectorAll(e),o=Array.from(i),r=o.indexOf(this);return-1!==r&&r===o.length-1}_emitDropdownToggle(t){t?this.isOpen&&this.lastElement&&this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:!0},bubbles:!0,composed:!0}))})):this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:!1},bubbles:!0,composed:!0}))}))}willUpdate(t){if(t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")){const e=t.get("value");this.value!==e&&this._syncValue(this.value)}t.has("type")&&("month"===this.type?this.maxLength=7:this.maxLength=10)}updated(t){(t.has("isOpen")||t.has("value"))&&this.isOpen&&this.updateComplete.then((()=>{this.setInitialWidth()})),super.updated(t)}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.inputValue=t?t.replace(/-/g,"/"):null,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(null===this.selectedDate&&null===this.inputValue||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null,this.error=!1));let e=this._parseDate(t);e&&this._validateDate(e)?("month"===this.type&&(e=Me(e,1)),this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.inputValue=we(e,this._currentFormat).replace(/-/g,"/")):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 Pt(t,-18,i)}(new Date);if($e(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}return!!this._isWithinBounds(t)||(this._getValidDateRange(),this.error=!0,!1)}_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(we(i,this._currentFormat))):(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("month"===this.type&&2===e.length){const[t,i]=e;if(t>=1&&t<=12&&i>1e3){const e=new Date(i,t-1,1,12);if(Rt(e))return e}return null}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(Rt(e)&&we(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(Rt(i)&&we(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&&$e(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!Se(t,e.minDate))&&(!e.maxDate||!$e(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._emitDropdownToggle(!1)):(this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date);else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value),this._emitDropdownToggle(!1)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date),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");if("Tab"===e){if(!t.shiftKey&&!this.isOpen)return t.preventDefault(),this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,void this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusFirstElement&&t.focusFirstElement()}));if(this.isOpen)return t.preventDefault(),void this.closeOverlay(this.value)}"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}onlyNumericAndDash(t){const e=t.target,i=e.value.replace(/[^0-9-]/g,"");e.value=i}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled,readonly:this.readonly}),o=this._getValidDateRange();return e`
3999
+ `}setMessageErrorFormatInvalid(){return`formato de fecha inválido, se esperaba '${"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}'`}get _currentFormat(){return"month"===this.type?"MM-yyyy":"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),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}firstUpdated(){this.setInitialWidth()}setInitialWidth(){if(!this.inputContainer)return;const t=this.inputContainer.getBoundingClientRect().width;this.calendarWidth!==t&&(this.calendarWidth=t)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){this.onlyNumericAndDash(t);const e=t.target,i=e.value.substring(0,this.maxLength);e.value!==i&&(e.value=i),this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,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){let e=t.detail.date;if(!e)return;"month"===this.type&&(e=Oe(e,1));if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=xe(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.closeOverlay(t)}else{const t=xe(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.selectedDate=null,this.closeOverlay(null)}}_emitToggle(t){this.dispatchEvent(new CustomEvent("calendar-toggle",{detail:{open:t},bubbles:!0,composed:!0}))}_isLastFocusableInModal(){const t=this.parentElement;if(!t)return!1;const e=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","a[href]",'[tabindex]:not([tabindex="-1"])',"randstad-button:not([disabled])","datepicker-component:not([disabled])","randstad-select:not([disabled])"].join(", "),i=t.querySelectorAll(e),o=Array.from(i),r=o.indexOf(this);return-1!==r&&r===o.length-1}_emitDropdownToggle(t){t?this.isOpen&&this.lastElement&&this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:!0},bubbles:!0,composed:!0}))})):this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:!1},bubbles:!0,composed:!0}))}))}willUpdate(t){if(t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")){const e=t.get("value");this.value!==e&&this._syncValue(this.value)}t.has("type")&&("month"===this.type?this.maxLength=7:this.maxLength=10)}updated(t){(t.has("isOpen")||t.has("value"))&&this.isOpen&&this.updateComplete.then((()=>{this.setInitialWidth()})),super.updated(t)}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.inputValue=t?t.replace(/-/g,"/"):null,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(null===this.selectedDate&&null===this.inputValue||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null,this.error=!1));let e=this._parseDate(t);e&&this._validateDate(e)?("month"===this.type&&(e=Oe(e,1)),this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.inputValue=xe(e,this._currentFormat).replace(/-/g,"/")):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 Rt(t,-18,i)}(new Date);if(_e(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}return!!this._isWithinBounds(t)||(this._getValidDateRange(),this.error=!0,!1)}_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(xe(i,this._currentFormat))):(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("month"===this.type&&2===e.length){const[t,i]=e;if(t>=1&&t<=12&&i>1e3){const e=new Date(i,t-1,1,12);if(jt(e))return e}return null}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(jt(e)&&xe(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(jt(i)&&xe(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&&_e(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!Se(t,e.minDate))&&(!e.maxDate||!_e(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._emitDropdownToggle(!1)):(this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date);else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value),this._emitDropdownToggle(!1)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date),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");if("Tab"===e){if(!t.shiftKey&&!this.isOpen)return t.preventDefault(),this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,void this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusFirstElement&&t.focusFirstElement()}));if(this.isOpen)return t.preventDefault(),void this.closeOverlay(this.value)}"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}onlyNumericAndDash(t){const e=t.target,i=e.value.replace(/[^0-9-]/g,"");e.value=i}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled,readonly:this.readonly}),o=this._getValidDateRange();return e`
3993
4000
  <div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
3994
4001
  ${this.renderLabelContainer()}
3995
4002
 
@@ -4052,11 +4059,11 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4052
4059
 
4053
4060
  ${this.renderHelper()}
4054
4061
  </div>
4055
- `}};n([L({type:String}),s("design:type",String)],Fe.prototype,"width",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"isRenderClearButton",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"readonly",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"minDate",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"maxDate",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"type",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"eighteenOrOlder",void 0),n([L({type:Number}),s("design:type",Number)],Fe.prototype,"maxLength",void 0),n([B(),s("design:type",Object)],Fe.prototype,"isOpen",void 0),n([B(),s("design:type",Object)],Fe.prototype,"selectedDate",void 0),n([B(),s("design:type",Date)],Fe.prototype,"viewDate",void 0),n([B(),s("design:type",Object)],Fe.prototype,"isMobile",void 0),n([B(),s("design:type",Number)],Fe.prototype,"calendarWidth",void 0),n([B(),s("design:type",Object)],Fe.prototype,"inputValue",void 0),n([V(".input-container"),s("design:type",HTMLDivElement)],Fe.prototype,"inputContainer",void 0),n([L({type:Boolean,attribute:"last-element"}),s("design:type",Object)],Fe.prototype,"lastElement",void 0),Fe=n([a("datepicker-component")],Fe);let Le=class extends vt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.showInternalError=!0,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
4062
+ `}};n([L({type:String}),s("design:type",String)],Le.prototype,"width",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"isRenderClearButton",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"readonly",void 0),n([L({type:String}),s("design:type",String)],Le.prototype,"minDate",void 0),n([L({type:String}),s("design:type",String)],Le.prototype,"maxDate",void 0),n([L({type:String}),s("design:type",String)],Le.prototype,"type",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"eighteenOrOlder",void 0),n([L({type:Number}),s("design:type",Number)],Le.prototype,"maxLength",void 0),n([T(),s("design:type",Object)],Le.prototype,"isOpen",void 0),n([T(),s("design:type",Object)],Le.prototype,"selectedDate",void 0),n([T(),s("design:type",Date)],Le.prototype,"viewDate",void 0),n([T(),s("design:type",Object)],Le.prototype,"isMobile",void 0),n([T(),s("design:type",Number)],Le.prototype,"calendarWidth",void 0),n([T(),s("design:type",Object)],Le.prototype,"inputValue",void 0),n([V(".input-container"),s("design:type",HTMLDivElement)],Le.prototype,"inputContainer",void 0),n([L({type:Boolean,attribute:"last-element"}),s("design:type",Object)],Le.prototype,"lastElement",void 0),Le=n([a("datepicker-component")],Le);let Te=class extends vt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.showInternalError=!0,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
4056
4063
  ${X}
4057
4064
  ${Q}
4058
4065
  ${G}
4059
- ${xt}
4066
+ ${Ct}
4060
4067
 
4061
4068
  :host([width]) {
4062
4069
  width: var( --upload-file-width );
@@ -4118,7 +4125,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4118
4125
  outline: 2px solid rgb( 0, 215, 255 ) !important;
4119
4126
  outline-offset: 1px;
4120
4127
  }
4121
- `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,wt)}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){!1===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`
4128
+ `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,xt)}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){!1===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`
4122
4129
  <randstad-button
4123
4130
  .label=${this.buttonText}
4124
4131
  .variant=${"button-primary"}
@@ -4179,7 +4186,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4179
4186
  </custom-popup>
4180
4187
  `:i}
4181
4188
  </div>
4182
- `}};n([L({type:String}),s("design:type",String)],Le.prototype,"width",void 0),n([L({type:Number}),s("design:type",Object)],Le.prototype,"maxFiles",void 0),n([L({type:Array}),s("design:type",Array)],Le.prototype,"acceptedFileTypes",void 0),n([L({type:Number}),s("design:type",Object)],Le.prototype,"maxFileSize",void 0),n([L({type:String}),s("design:type",Object)],Le.prototype,"buttonText",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"showDeleteConfirmation",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"showInternalError",void 0),n([B(),s("design:type",Boolean)],Le.prototype,"isRemovePopupOpen",void 0),n([B(),s("design:type",Number)],Le.prototype,"fileIndexToRemove",void 0),n([B(),s("design:type",String)],Le.prototype,"fileNameToRemove",void 0),Le=n([a("upload-file")],Le);let Be=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`
4189
+ `}};n([L({type:String}),s("design:type",String)],Te.prototype,"width",void 0),n([L({type:Number}),s("design:type",Object)],Te.prototype,"maxFiles",void 0),n([L({type:Array}),s("design:type",Array)],Te.prototype,"acceptedFileTypes",void 0),n([L({type:Number}),s("design:type",Object)],Te.prototype,"maxFileSize",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"buttonText",void 0),n([L({type:Boolean}),s("design:type",Object)],Te.prototype,"showDeleteConfirmation",void 0),n([L({type:Boolean}),s("design:type",Object)],Te.prototype,"showInternalError",void 0),n([T(),s("design:type",Boolean)],Te.prototype,"isRemovePopupOpen",void 0),n([T(),s("design:type",Number)],Te.prototype,"fileIndexToRemove",void 0),n([T(),s("design:type",String)],Te.prototype,"fileNameToRemove",void 0),Te=n([a("upload-file")],Te);let Ve=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`
4183
4190
  :host {
4184
4191
  display: block;
4185
4192
  width: 100%;
@@ -4499,7 +4506,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4499
4506
 
4500
4507
  ${this.renderNavButtons()}
4501
4508
  </div>
4502
- `}};n([L({type:Array}),s("design:type",Array)],Be.prototype,"cards",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"cardWidth",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"cardHeight",void 0),n([L({type:Number}),s("design:type",Number)],Be.prototype,"navWidth",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Be.prototype,"showNavButtons",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Be.prototype,"isDynamicWidth",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Be.prototype,"isInfiniteScrollPartial",void 0),n([L({type:Number}),s("design:type",Number)],Be.prototype,"autoPlayDelayMs",void 0),n([B(),s("design:type",Object)],Be.prototype,"showPrevButton",void 0),n([B(),s("design:type",Object)],Be.prototype,"showNextButton",void 0),n([V(".carousel-wrapper"),s("design:type",HTMLElement)],Be.prototype,"slider",void 0),n([V("slot"),s("design:type",HTMLSlotElement)],Be.prototype,"slotElement",void 0),Be=n([a("carousel-component"),s("design:paramtypes",[])],Be);let Ve=class extends t{constructor(){super(...arguments),this.message="",this.position="top",this.variant="bubble",this.visible=!0,this.arrowAlign="15px",this.isAnimating=!1}static{this.styles=o`
4509
+ `}};n([L({type:Array}),s("design:type",Array)],Ve.prototype,"cards",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"cardWidth",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"cardHeight",void 0),n([L({type:Number}),s("design:type",Number)],Ve.prototype,"navWidth",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Ve.prototype,"showNavButtons",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Ve.prototype,"isDynamicWidth",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Ve.prototype,"isInfiniteScrollPartial",void 0),n([L({type:Number}),s("design:type",Number)],Ve.prototype,"autoPlayDelayMs",void 0),n([T(),s("design:type",Object)],Ve.prototype,"showPrevButton",void 0),n([T(),s("design:type",Object)],Ve.prototype,"showNextButton",void 0),n([V(".carousel-wrapper"),s("design:type",HTMLElement)],Ve.prototype,"slider",void 0),n([V("slot"),s("design:type",HTMLSlotElement)],Ve.prototype,"slotElement",void 0),Ve=n([a("carousel-component"),s("design:paramtypes",[])],Ve);let Be=class extends t{constructor(){super(...arguments),this.message="",this.position="top",this.variant="bubble",this.visible=!0,this.arrowAlign="15px",this.isAnimating=!1}static{this.styles=o`
4503
4510
  :host {
4504
4511
  display: inline-block;
4505
4512
  position: relative;
@@ -4611,7 +4618,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4611
4618
  <slot></slot>
4612
4619
  `:""}
4613
4620
  </div>
4614
- `}};n([L({type:String}),s("design:type",Object)],Ve.prototype,"message",void 0),n([L({type:Number}),s("design:type",Number)],Ve.prototype,"duration",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"position",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"variant",void 0),n([L({type:Boolean}),s("design:type",Object)],Ve.prototype,"visible",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"icon",void 0),n([L({type:String}),s("design:type",Object)],Ve.prototype,"arrowAlign",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"backgroundColor",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"textColor",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"fontFamily",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"width",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"height",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"top",void 0),n([L({type:String}),s("design:type",String)],Ve.prototype,"left",void 0),n([B(),s("design:type",Object)],Ve.prototype,"isAnimating",void 0),Ve=n([a("randstad-bubble")],Ve);let Te=class extends t{constructor(){super(...arguments),this.open=!1,this.title="verificación de seguridad",this.email="[correo electrónico]",this.loading=!1,this.inputMode="numeric",this.showError=!1,this.showSuccessNotice=!1,this.successMessage="",this.helperMessage="",this.resendCooldown=60,this._resendDisabled=!1,this._resendRemaining=0,this._pinValues=Array(6).fill(""),this.modalWidth="450px",this.modalHeight="auto",this.maxHeight="90dvh"}static{this.styles=[K,o`
4621
+ `}};n([L({type:String}),s("design:type",Object)],Be.prototype,"message",void 0),n([L({type:Number}),s("design:type",Number)],Be.prototype,"duration",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"position",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"variant",void 0),n([L({type:Boolean}),s("design:type",Object)],Be.prototype,"visible",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"icon",void 0),n([L({type:String}),s("design:type",Object)],Be.prototype,"arrowAlign",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"backgroundColor",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"textColor",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"fontFamily",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"width",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"height",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"top",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"left",void 0),n([T(),s("design:type",Object)],Be.prototype,"isAnimating",void 0),Be=n([a("randstad-bubble")],Be);let Pe=class extends t{constructor(){super(...arguments),this.open=!1,this.title="verificación de seguridad",this.email="[correo electrónico]",this.loading=!1,this.inputMode="numeric",this.showError=!1,this.showSuccessNotice=!1,this.successMessage="",this.helperMessage="",this.resendCooldown=60,this._resendDisabled=!1,this._resendRemaining=0,this._pinValues=Array(6).fill(""),this.modalWidth="450px",this.modalHeight="auto",this.maxHeight="90dvh"}static{this.styles=[K,o`
4615
4622
  :host {
4616
4623
  font-family: 'Graphik', sans-serif;
4617
4624
  }
@@ -4798,7 +4805,7 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4798
4805
  ${this._renderResendSection()}
4799
4806
  </div>
4800
4807
  </custom-modal>
4801
- `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Te.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"email",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Te.prototype,"loading",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"inputMode",void 0),n([L({type:Boolean}),s("design:type",Object)],Te.prototype,"showError",void 0),n([L({type:Boolean}),s("design:type",Object)],Te.prototype,"showSuccessNotice",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"successMessage",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"helperMessage",void 0),n([L({type:Number}),s("design:type",Object)],Te.prototype,"resendCooldown",void 0),n([B(),s("design:type",Object)],Te.prototype,"_resendDisabled",void 0),n([B(),s("design:type",Object)],Te.prototype,"_resendRemaining",void 0),n([B(),s("design:type",Array)],Te.prototype,"_pinValues",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"maxHeight",void 0),Te=n([a("randstad-mfa-modal")],Te);let Pe=class extends t{constructor(){super(),this.centerIcon="search",this.centerLabel="",this.hidden=!1,this.desktop=!1,this.selectedIndex=-1,this._rafId=null,this.handleScroll=()=>{const t=window.innerHeight+window.scrollY,e=document.documentElement.scrollHeight;this.hidden=t>=e-50},this.handleScrollThrottled=()=>{null==this._rafId&&(this._rafId=requestAnimationFrame((()=>{this._rafId=null,this.handleScroll()})))},this.items=[{icon:"home",label:"Home"},{icon:"postulation",label:"Applications"},{icon:"user",label:"Users"},{icon:"settings",label:"Settings"}]}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.handleScrollThrottled,{passive:!0}),this.handleScroll()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.handleScrollThrottled),null!=this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null)}handleItemClick(t,e){this.selectedIndex=t,this.dispatchEvent(new CustomEvent("nav-item-click",{detail:{index:t,item:e},bubbles:!0,composed:!0}))}handleCenterClick(){this.dispatchEvent(new CustomEvent("center-click",{bubbles:!0,composed:!0}))}static{this.styles=o`
4808
+ `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Pe.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"email",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Pe.prototype,"loading",void 0),n([L({type:String}),s("design:type",String)],Pe.prototype,"inputMode",void 0),n([L({type:Boolean}),s("design:type",Object)],Pe.prototype,"showError",void 0),n([L({type:Boolean}),s("design:type",Object)],Pe.prototype,"showSuccessNotice",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"successMessage",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"helperMessage",void 0),n([L({type:Number}),s("design:type",Object)],Pe.prototype,"resendCooldown",void 0),n([T(),s("design:type",Object)],Pe.prototype,"_resendDisabled",void 0),n([T(),s("design:type",Object)],Pe.prototype,"_resendRemaining",void 0),n([T(),s("design:type",Array)],Pe.prototype,"_pinValues",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"maxHeight",void 0),Pe=n([a("randstad-mfa-modal")],Pe);let Re=class extends t{constructor(){super(),this.centerIcon="search",this.centerLabel="",this.hidden=!1,this.desktop=!1,this.selectedIndex=-1,this._rafId=null,this.handleScroll=()=>{const t=window.innerHeight+window.scrollY,e=document.documentElement.scrollHeight;this.hidden=t>=e-50},this.handleScrollThrottled=()=>{null==this._rafId&&(this._rafId=requestAnimationFrame((()=>{this._rafId=null,this.handleScroll()})))},this.items=[{icon:"home",label:"Home"},{icon:"postulation",label:"Applications"},{icon:"user",label:"Users"},{icon:"settings",label:"Settings"}]}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.handleScrollThrottled,{passive:!0}),this.handleScroll()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.handleScrollThrottled),null!=this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null)}handleItemClick(t,e){this.selectedIndex=t,this.dispatchEvent(new CustomEvent("nav-item-click",{detail:{index:t,item:e},bubbles:!0,composed:!0}))}handleCenterClick(){this.dispatchEvent(new CustomEvent("center-click",{bubbles:!0,composed:!0}))}static{this.styles=o`
4802
4809
  :host {
4803
4810
  display: none;
4804
4811
  position: fixed;
@@ -4967,5 +4974,5 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4967
4974
 
4968
4975
  ${o.map(((t,e)=>n(t,e+2)))}
4969
4976
  </nav>
4970
- `}};n([L({type:Array}),s("design:type",Array)],Pe.prototype,"items",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"centerIcon",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"centerLabel",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Pe.prototype,"hidden",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Pe.prototype,"desktop",void 0),n([L({type:Number}),s("design:type",Object)],Pe.prototype,"selectedIndex",void 0),Pe=n([a("randstad-navbar"),s("design:paramtypes",[])],Pe);export{q as AccordionList,W as AccordionPanel,T as BaseControl,Oe as CalendarOverlay,Be as Carousel,U as CarouselCard,Y as Checkbox,lt as CustomModal,dt as CustomPopup,ht as CustomRadio,mt as CustomStepper,Fe as DatePickerComponent,ut as FilterableSelect,it as FormGroup,rt as IconComponent,Te as MfaModal,ct as ProgressCircle,Ve as RandstadBubble,Z as RandstadButton,et as RandstadForm,Pe as RandstadNavbar,at as RandstadNotice,st as RandstadSocialMediaInput,yt as TabsBar,Le as UploadFile,Ct as UploadImage,J as scrollbarStyles};
4977
+ `}};n([L({type:Array}),s("design:type",Array)],Re.prototype,"items",void 0),n([L({type:String}),s("design:type",Object)],Re.prototype,"centerIcon",void 0),n([L({type:String}),s("design:type",Object)],Re.prototype,"centerLabel",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Re.prototype,"hidden",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Re.prototype,"desktop",void 0),n([L({type:Number}),s("design:type",Object)],Re.prototype,"selectedIndex",void 0),Re=n([a("randstad-navbar"),s("design:paramtypes",[])],Re);export{q as AccordionList,W as AccordionPanel,B as BaseControl,Fe as CalendarOverlay,Ve as Carousel,U as CarouselCard,Y as Checkbox,lt as CustomModal,dt as CustomPopup,ht as CustomRadio,yt as CustomStepper,Le as DatePickerComponent,gt as FilterableSelect,it as FormGroup,rt as IconComponent,Pe as MfaModal,ct as ProgressCircle,Be as RandstadBubble,Z as RandstadButton,et as RandstadForm,Re as RandstadNavbar,at as RandstadNotice,st as RandstadSocialMediaInput,ft as TabsBar,Te as UploadFile,kt as UploadImage,J as scrollbarStyles};
4971
4978
  //# sourceMappingURL=index.js.map