@randstad-uca/design-system 1.0.66 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{LitElement as t,html as e,nothing as i,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";function s(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n}function n(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
1
+ import{LitElement as t,html as e,nothing as i,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";function n(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -9,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,k=x.trustedTypes,$=k?k.emptyScript:"",S=x.reactiveElementPolyfillSupport,D=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},C=(t,e)=>!b(t,e),M={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:C};
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:y,getOwnPropertyDescriptor:m,getOwnPropertyNames:v,getOwnPropertySymbols:f,getPrototypeOf:w}=Object,x=globalThis,k=x.trustedTypes,$=k?k.emptyScript:"",S=x.reactiveElementPolyfillSupport,D=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},C=(t,e)=>!b(t,e),M={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:C};
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class F extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=M){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&m(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=y(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const s=o?.call(this);r?.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??M}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=w(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...v(t),...f(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,r=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??C)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:r},s){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==r||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[D("elementProperties")]=new Map,F[D("finalized")]=new Map,S?.({ReactiveElement:F}),(x.reactiveElementVersions??=[]).push("2.1.0");
17
+ */Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class F extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=M){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&y(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=m(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const 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)??M}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;const t=w(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){const t=this.properties,e=[...v(t),...f(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,r=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??C)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:r},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){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[D("elementProperties")]=new Map,F[D("finalized")]=new Map,S?.({ReactiveElement:F}),(x.reactiveElementVersions??=[]).push("2.1.0");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- const O={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C},B=(t=O,e,i)=>{const{kind:o,metadata:r}=i;let s=globalThis.litPropertyMetadata.get(r);if(void 0===s&&globalThis.litPropertyMetadata.set(r,s=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function T(t){return(e,i)=>"object"==typeof i?B(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
23
+ const O={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C},B=(t=O,e,i)=>{const{kind:o,metadata:r}=i;let 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 T(t){return(e,i)=>"object"==typeof i?B(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */function L(t){return T({...t,state:!0,attribute:!1})}
28
+ */function P(t){return T({...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:E,reflect:!1,hasChanged:C},B=(t=O,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let j=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return e`
39
+ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let j=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return e`
40
40
  ${this.label?e`
41
41
  <div class="label-container">
42
42
  ${this.renderLabel()}
@@ -79,7 +79,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
79
79
  ${this.helper}
80
80
  </p>
81
81
  `:i}
82
- `}};s([T({type:String}),n("design:type",Object)],j.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"placeholder",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"labelColor",void 0),s([T(),n("design:type",Object)],j.prototype,"value",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"required",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"optional",void 0),s([T({type:Boolean}),n("design:type",Object)],j.prototype,"disabled",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],j.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"errorMessage",void 0),s([T({type:String}),n("design:type",Object)],j.prototype,"helper",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helperAlign",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"help",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helpLink",void 0),s([T({type:String}),n("design:type",String)],j.prototype,"helpLinkTooltipMessage",void 0),j=s([a("base-control")],j);const A=o`
82
+ `}};n([T({type:String}),s("design:type",Object)],j.prototype,"label",void 0),n([T({type:String}),s("design:type",Object)],j.prototype,"placeholder",void 0),n([T({type:String}),s("design:type",Object)],j.prototype,"labelColor",void 0),n([T(),s("design:type",Object)],j.prototype,"value",void 0),n([T({type:Boolean}),s("design:type",Object)],j.prototype,"required",void 0),n([T({type:Boolean}),s("design:type",Object)],j.prototype,"optional",void 0),n([T({type:Boolean}),s("design:type",Object)],j.prototype,"disabled",void 0),n([T({type:Boolean,reflect:!0}),s("design:type",Object)],j.prototype,"error",void 0),n([T({type:String}),s("design:type",Object)],j.prototype,"errorMessage",void 0),n([T({type:String}),s("design:type",Object)],j.prototype,"helper",void 0),n([T({type:String}),s("design:type",String)],j.prototype,"helperAlign",void 0),n([T({type:String}),s("design:type",String)],j.prototype,"help",void 0),n([T({type:String}),s("design:type",String)],j.prototype,"helpLink",void 0),n([T({type:String}),s("design:type",String)],j.prototype,"helpLinkTooltipMessage",void 0),j=n([a("base-control")],j);const A=o`
83
83
  font-family: 'Graphik', sans-serif;
84
84
  font-weight: 400;
85
85
  font-size: 12px;
@@ -215,13 +215,13 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
215
215
  <div class="content ${this.isOpen?"open":""}">
216
216
  <slot></slot>
217
217
  </div>
218
- `}};s([T({type:String}),n("design:type",Object)],q.prototype,"title",void 0),s([L(),n("design:type",Object)],q.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],q.prototype,"isDesktop",void 0),q=s([a("accordion-panel")],q);let V=class extends t{static{this.styles=o`
218
+ `}};n([T({type:String}),s("design:type",Object)],q.prototype,"title",void 0),n([P(),s("design:type",Object)],q.prototype,"isOpen",void 0),n([P(),s("design:type",Object)],q.prototype,"isDesktop",void 0),q=n([a("accordion-panel")],q);let V=class extends t{static{this.styles=o`
219
219
  :host {
220
220
  display: flex;
221
221
  flex-direction: column;
222
222
  gap: 16px;
223
223
  }
224
- `}render(){return e`<slot></slot>`}};V=s([a("accordion-list")],V);let U=class extends t{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=o`
224
+ `}render(){return e`<slot></slot>`}};V=n([a("accordion-list")],V);let U=class extends t{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=o`
225
225
  :host {
226
226
  display: inline-block;
227
227
  --content-padding: 16px;
@@ -547,7 +547,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
547
547
  </div>
548
548
  `}
549
549
  </button>
550
- `}};s([T({type:String}),n("design:type",String)],U.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"variant",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"label",void 0),s([T({type:Boolean}),n("design:type",Object)],U.prototype,"loader",void 0),s([T({type:String,attribute:"icon-src"}),n("design:type",String)],U.prototype,"iconSrc",void 0),s([T({type:String}),n("design:type",String)],U.prototype,"iconPosition",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"iconName",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Boolean)],U.prototype,"disabled",void 0),s([T({type:String}),n("design:type",Object)],U.prototype,"idevent",void 0),U=s([a("randstad-button")],U);let Y=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId="",this.width="",this.height=""}static{this.styles=o`
550
+ `}};n([T({type:String}),s("design:type",String)],U.prototype,"type",void 0),n([T({type:String}),s("design:type",String)],U.prototype,"variant",void 0),n([T({type:String}),s("design:type",String)],U.prototype,"size",void 0),n([T({type:String}),s("design:type",Object)],U.prototype,"label",void 0),n([T({type:Boolean}),s("design:type",Object)],U.prototype,"loader",void 0),n([T({type:String,attribute:"icon-src"}),s("design:type",String)],U.prototype,"iconSrc",void 0),n([T({type:String}),s("design:type",String)],U.prototype,"iconPosition",void 0),n([T({type:String}),s("design:type",Object)],U.prototype,"iconName",void 0),n([T({type:Boolean,reflect:!0}),s("design:type",Boolean)],U.prototype,"disabled",void 0),n([T({type:String}),s("design:type",Object)],U.prototype,"idevent",void 0),U=n([a("randstad-button")],U);let Y=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId="",this.width="",this.height=""}static{this.styles=o`
551
551
  :host {
552
552
  display: inline-block;
553
553
  font-family: "Graphik", sans-serif;
@@ -684,7 +684,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
684
684
  </div>
685
685
  </div>
686
686
  </div>
687
- `}};s([T({type:String}),n("design:type",Object)],Y.prototype,"img",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"name",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"title",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"description",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"buttonLabel",void 0),s([T({type:String}),n("design:type",Object)],Y.prototype,"cardId",void 0),s([T({type:Object}),n("design:type",Object)],Y.prototype,"onClick",void 0),s([T({type:String}),n("design:type",String)],Y.prototype,"width",void 0),s([T({type:String}),n("design:type",String)],Y.prototype,"height",void 0),Y=s([a("carousel-card")],Y);let H=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
687
+ `}};n([T({type:String}),s("design:type",Object)],Y.prototype,"img",void 0),n([T({type:String}),s("design:type",Object)],Y.prototype,"name",void 0),n([T({type:String}),s("design:type",Object)],Y.prototype,"title",void 0),n([T({type:String}),s("design:type",Object)],Y.prototype,"description",void 0),n([T({type:String}),s("design:type",Object)],Y.prototype,"buttonLabel",void 0),n([T({type:String}),s("design:type",Object)],Y.prototype,"cardId",void 0),n([T({type:Object}),s("design:type",Object)],Y.prototype,"onClick",void 0),n([T({type:String}),s("design:type",String)],Y.prototype,"width",void 0),n([T({type:String}),s("design:type",String)],Y.prototype,"height",void 0),Y=n([a("carousel-card")],Y);let H=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
688
688
  :host {
689
689
  display: block;
690
690
  max-width: 100%;
@@ -810,7 +810,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
810
810
  <slot></slot>
811
811
  </span>
812
812
  </label>
813
- `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],H.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],H.prototype,"error",void 0),s([T({type:Boolean}),n("design:type",Object)],H.prototype,"disabled",void 0),H=s([a("randstad-checkbox")],H);const G=o`
813
+ `}};n([T({type:Boolean,reflect:!0}),s("design:type",Object)],H.prototype,"checked",void 0),n([T({type:Boolean}),s("design:type",Object)],H.prototype,"error",void 0),n([T({type:Boolean}),s("design:type",Object)],H.prototype,"disabled",void 0),H=n([a("randstad-checkbox")],H);const G=o`
814
814
  .label-container {
815
815
  display: flex;
816
816
  align-items: center;
@@ -864,7 +864,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
864
864
  opacity: 1;
865
865
  }
866
866
  `,K=o`
867
- button:focus-visible {
867
+ .button:focus-visible, button:focus-visible {
868
868
  outline: 2px solid rgb( 0, 215, 255 );
869
869
  outline-offset: 1px;
870
870
  border-radius: 4px;
@@ -1181,7 +1181,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1181
1181
 
1182
1182
  ${this.renderHelper()}
1183
1183
  </div>
1184
- `}};s([T({type:String}),n("design:type",Object)],Z.prototype,"keydown",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],Z.prototype,"icon",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Z.prototype,"typing",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"linkText",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"linkRoute",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Z.prototype,"isPasswordVisible",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Z.prototype,"cleanButton",void 0),s([T({type:Number}),n("design:type",Number)],Z.prototype,"maxLength",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"heightTextArea",void 0),s([T({type:String}),n("design:type",String)],Z.prototype,"maxHeightTextArea",void 0),Z=s([a("randstad-form")],Z);let tt=class extends j{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1184
+ `}};n([T({type:String}),s("design:type",Object)],Z.prototype,"keydown",void 0),n([T({type:String}),s("design:type",String)],Z.prototype,"size",void 0),n([T({type:String}),s("design:type",Object)],Z.prototype,"icon",void 0),n([T({type:Boolean}),s("design:type",Boolean)],Z.prototype,"typing",void 0),n([T({type:String}),s("design:type",String)],Z.prototype,"type",void 0),n([T({type:String}),s("design:type",String)],Z.prototype,"linkText",void 0),n([T({type:String}),s("design:type",String)],Z.prototype,"linkRoute",void 0),n([T({type:Boolean,reflect:!0}),s("design:type",Object)],Z.prototype,"isPasswordVisible",void 0),n([T({type:Boolean}),s("design:type",Boolean)],Z.prototype,"cleanButton",void 0),n([T({type:Number}),s("design:type",Number)],Z.prototype,"maxLength",void 0),n([T({type:String}),s("design:type",String)],Z.prototype,"heightTextArea",void 0),n([T({type:String}),s("design:type",String)],Z.prototype,"maxHeightTextArea",void 0),Z=n([a("randstad-form")],Z);let tt=class extends j{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
1185
1185
  ${X}
1186
1186
  ${Q}
1187
1187
  ${G}
@@ -1216,7 +1216,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1216
1216
 
1217
1217
  ${this.renderHelper()}
1218
1218
  </div>
1219
- `}};s([T({type:String}),n("design:type",String)],tt.prototype,"rows",void 0),tt=s([a("randstad-form-group")],tt);class et extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
1219
+ `}};n([T({type:String}),s("design:type",String)],tt.prototype,"rows",void 0),tt=n([a("randstad-form-group")],tt);class et extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
1220
1220
  :host {
1221
1221
  display: inline-flex;
1222
1222
  width: var( --icon-size, 24px );
@@ -1242,7 +1242,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1242
1242
  <div class="custom-icon" style="color: ${this.color};">
1243
1243
  ${this.svgTemplate}
1244
1244
  </div>
1245
- `:e``}}s([T({type:String}),n("design:type",Object)],et.prototype,"name",void 0),s([T({type:String}),n("design:type",Object)],et.prototype,"size",void 0),s([T({type:String}),n("design:type",Object)],et.prototype,"color",void 0),s([L(),n("design:type",Object)],et.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",et);let it=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
1245
+ `:e``}}n([T({type:String}),s("design:type",Object)],et.prototype,"name",void 0),n([T({type:String}),s("design:type",Object)],et.prototype,"size",void 0),n([T({type:String}),s("design:type",Object)],et.prototype,"color",void 0),n([P(),s("design:type",Object)],et.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",et);let it=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
1246
1246
  :host {
1247
1247
  display: block;
1248
1248
  font-family: 'Graphik', sans-serif;
@@ -1299,7 +1299,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1299
1299
 
1300
1300
  <span class="message">${this.message}</span>
1301
1301
  </div>
1302
- `}};s([T({type:String}),n("design:type",String)],it.prototype,"type",void 0),s([T({type:String}),n("design:type",String)],it.prototype,"icon",void 0),s([T({type:String}),n("design:type",String)],it.prototype,"message",void 0),s([T({type:Boolean}),n("design:type",Boolean)],it.prototype,"open",void 0),it=s([a("randstad-notice")],it);let ot=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
1302
+ `}};n([T({type:String}),s("design:type",String)],it.prototype,"type",void 0),n([T({type:String}),s("design:type",String)],it.prototype,"icon",void 0),n([T({type:String}),s("design:type",String)],it.prototype,"message",void 0),n([T({type:Boolean}),s("design:type",Boolean)],it.prototype,"open",void 0),it=n([a("randstad-notice")],it);let ot=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
1303
1303
  ${K}
1304
1304
 
1305
1305
  :host {
@@ -1359,12 +1359,12 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1359
1359
  @media (max-width: 940px) {
1360
1360
  .modal {
1361
1361
  /* Se estira para ocupar casi toda la pantalla */
1362
- width: 100dvw;
1363
- height: 100dvh;
1364
- max-width: none;
1365
- max-height: none;
1366
- margin: 0;
1367
- border-radius: 0;
1362
+ width: 100% !important;
1363
+ height: 100% !important;
1364
+ max-width: none !important;
1365
+ max-height: none !important;
1366
+ margin: 0 !important;
1367
+ border-radius: 0 !important;
1368
1368
  }
1369
1369
 
1370
1370
  .modal-header,
@@ -1501,7 +1501,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1501
1501
  </div>
1502
1502
  </div>
1503
1503
  </div>
1504
- `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"open",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"title",void 0),s([T({type:String}),n("design:type",String)],ot.prototype,"subtitle",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showNotice",void 0),s([T({type:String}),n("design:type",String)],ot.prototype,"noticeType",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"noticeMessage",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"noticeIcon",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showPrimaryButton",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"primaryButtonLabel",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"showSecondaryButton",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"secondaryButtonLabel",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isFooterCustom",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryLoader",void 0),s([T({type:Boolean}),n("design:type",Object)],ot.prototype,"isPrimaryDisabled",void 0),s([T({type:String}),n("design:type",Object)],ot.prototype,"modalWidth",void 0),s([L(),n("design:type",Object)],ot.prototype,"scrollable",void 0),ot=s([a("custom-modal")],ot);let rt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.stackedActions=[],this._onBackgroundClick=t=>{const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
1504
+ `}};n([T({type:Boolean,reflect:!0}),s("design:type",Object)],ot.prototype,"open",void 0),n([T({type:String}),s("design:type",Object)],ot.prototype,"title",void 0),n([T({type:String}),s("design:type",String)],ot.prototype,"subtitle",void 0),n([T({type:Boolean}),s("design:type",Object)],ot.prototype,"showNotice",void 0),n([T({type:String}),s("design:type",String)],ot.prototype,"noticeType",void 0),n([T({type:String}),s("design:type",Object)],ot.prototype,"noticeMessage",void 0),n([T({type:String}),s("design:type",Object)],ot.prototype,"noticeIcon",void 0),n([T({type:Boolean}),s("design:type",Object)],ot.prototype,"showPrimaryButton",void 0),n([T({type:String}),s("design:type",Object)],ot.prototype,"primaryButtonLabel",void 0),n([T({type:Boolean}),s("design:type",Object)],ot.prototype,"showSecondaryButton",void 0),n([T({type:String}),s("design:type",Object)],ot.prototype,"secondaryButtonLabel",void 0),n([T({type:Boolean}),s("design:type",Object)],ot.prototype,"isFooterCustom",void 0),n([T({type:Boolean}),s("design:type",Object)],ot.prototype,"isPrimaryLoader",void 0),n([T({type:Boolean}),s("design:type",Object)],ot.prototype,"isPrimaryDisabled",void 0),n([T({type:String}),s("design:type",Object)],ot.prototype,"modalWidth",void 0),n([P(),s("design:type",Object)],ot.prototype,"scrollable",void 0),ot=n([a("custom-modal")],ot);let rt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.stackedActions=[],this._onBackgroundClick=t=>{const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
1505
1505
  :host {
1506
1506
  display: none;
1507
1507
  position: fixed;
@@ -1693,7 +1693,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1693
1693
  `}
1694
1694
  </div>
1695
1695
  </div>
1696
- `}};s([T({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),s([T({type:String}),n("design:type",String)],rt.prototype,"type",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"icon",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"description",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"width",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"buttonText",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"confirmText",void 0),s([T({type:String}),n("design:type",Object)],rt.prototype,"cancelText",void 0),s([T({type:Array}),n("design:type",Array)],rt.prototype,"stackedActions",void 0),rt=s([a("custom-popup")],rt);let st=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1696
+ `}};n([T({type:Boolean,reflect:!0}),s("design:type",Object)],rt.prototype,"open",void 0),n([T({type:String}),s("design:type",String)],rt.prototype,"type",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"icon",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"title",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"description",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"width",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"buttonText",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"confirmText",void 0),n([T({type:String}),s("design:type",Object)],rt.prototype,"cancelText",void 0),n([T({type:Array}),s("design:type",Array)],rt.prototype,"stackedActions",void 0),rt=n([a("custom-popup")],rt);let nt=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1697
1697
  :host {
1698
1698
  display: inline-block;
1699
1699
  width: 64px;
@@ -1754,7 +1754,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1754
1754
  ${this.value} de ${this.max}
1755
1755
  </text>
1756
1756
  </svg>
1757
- `}};s([T({type:Number}),n("design:type",Object)],st.prototype,"value",void 0),s([T({type:Number}),n("design:type",Object)],st.prototype,"max",void 0),st=s([a("progress-circle")],st);let nt=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
1757
+ `}};n([T({type:Number}),s("design:type",Object)],nt.prototype,"value",void 0),n([T({type:Number}),s("design:type",Object)],nt.prototype,"max",void 0),nt=n([a("progress-circle")],nt);let st=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
1758
1758
  :host {
1759
1759
  font-family: "Graphik", sans-serif;
1760
1760
 
@@ -1898,7 +1898,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1898
1898
 
1899
1899
  <span> ${o} </span>
1900
1900
  </label>
1901
- `}};s([T({type:String}),n("design:type",Object)],nt.prototype,"name",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"disabled",void 0),s([T({type:Boolean}),n("design:type",Object)],nt.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],nt.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],nt.prototype,"value",void 0),nt=s([a("custom-radio")],nt);let at=class extends j{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.isRenderClearButton=!1,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,o`
1901
+ `}};n([T({type:String}),s("design:type",Object)],st.prototype,"name",void 0),n([T({type:Boolean}),s("design:type",Object)],st.prototype,"checked",void 0),n([T({type:Boolean}),s("design:type",Object)],st.prototype,"disabled",void 0),n([T({type:Boolean}),s("design:type",Object)],st.prototype,"error",void 0),n([T({type:String}),s("design:type",Object)],st.prototype,"label",void 0),n([T({type:String}),s("design:type",Object)],st.prototype,"value",void 0),st=n([a("custom-radio")],st);let at=class extends j{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.isRenderClearButton=!1,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,o`
1902
1902
  ${X}
1903
1903
  ${Q}
1904
1904
  ${G}
@@ -2223,7 +2223,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2223
2223
  .color=${"var( --primary-color )"}
2224
2224
  >
2225
2225
  </randstad-icon>
2226
- `,s=!0===this.isRenderClearButton;return e`
2226
+ `,n=!0===this.isRenderClearButton;return e`
2227
2227
  <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor};`:""} ${o}">
2228
2228
  ${this.renderLabelContainer()}
2229
2229
 
@@ -2279,19 +2279,19 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2279
2279
  tabindex="0"
2280
2280
  aria-label="${this.value&&""!==this.value?"Clear selection":"Toggle options"}"
2281
2281
  >
2282
- ${this.value&&""!==this.value&&s?e`<randstad-icon name="close" size="24px"></randstad-icon>`:r}
2282
+ ${this.value&&""!==this.value&&n?e`<randstad-icon name="close" size="24px"></randstad-icon>`:r}
2283
2283
  </button>
2284
2284
 
2285
2285
  ${!t&&this.isOpen&&this.filteredOptions.length>0?e`
2286
2286
  <ul class="options-list">
2287
- ${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,s="object"==typeof t?t.icon:void 0;return e`
2287
+ ${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`
2288
2288
  <li
2289
2289
  class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2290
2290
  role="option"
2291
2291
  aria-selected="${i===this.highlightedIndex}"
2292
2292
  @click="${()=>{r||this.handleSelect(t)}}"
2293
2293
  >
2294
- ${this.renderOptionIcon(s)}
2294
+ ${this.renderOptionIcon(n)}
2295
2295
  ${o}
2296
2296
  </li>
2297
2297
  `}))}
@@ -2322,14 +2322,14 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2322
2322
  </div>
2323
2323
 
2324
2324
  <ul class="options-list">
2325
- ${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,s="object"==typeof t?t.icon:void 0;return e`
2325
+ ${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`
2326
2326
  <li
2327
2327
  class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
2328
2328
  role="option"
2329
2329
  aria-selected="${i===this.highlightedIndex}"
2330
2330
  @click="${()=>{r||this.handleSelect(t)}}"
2331
2331
  >
2332
- ${this.renderOptionIcon(s)}
2332
+ ${this.renderOptionIcon(n)}
2333
2333
  ${o}
2334
2334
  </li>
2335
2335
  `}))}
@@ -2337,7 +2337,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2337
2337
  </div>
2338
2338
  </div>
2339
2339
  `:i}
2340
- `}};s([T({type:Object}),n("design:type",Object)],at.prototype,"value",void 0),s([T({type:String,attribute:"default-value"}),n("design:type",Object)],at.prototype,"defaultValue",void 0),s([T({type:Array}),n("design:type",Array)],at.prototype,"options",void 0),s([T({type:Boolean}),n("design:type",Object)],at.prototype,"filterable",void 0),s([T({type:Number}),n("design:type",Number)],at.prototype,"maxLength",void 0),s([T({type:Boolean}),n("design:type",Object)],at.prototype,"isRenderClearButton",void 0),s([L(),n("design:type",Boolean)],at.prototype,"isMobile",void 0),s([L(),n("design:type",Object)],at.prototype,"highlightedIndex",void 0),s([L(),n("design:type",Boolean)],at.prototype,"_isCleared",void 0),s([L(),n("design:type",Array)],at.prototype,"filteredOptions",void 0),s([L(),n("design:type",Object)],at.prototype,"filterValue",void 0),s([L(),n("design:type",Object)],at.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],at.prototype,"mobileFilterValue",void 0),at=s([a("filterable-select")],at);const lt=new CSSStyleSheet;lt.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n\n .body-l {\n font-family: Graphik;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n }\n");class dt extends t{static{this.styles=[lt,o`
2340
+ `}};n([T({type:Object}),s("design:type",Object)],at.prototype,"value",void 0),n([T({type:String,attribute:"default-value"}),s("design:type",Object)],at.prototype,"defaultValue",void 0),n([T({type:Array}),s("design:type",Array)],at.prototype,"options",void 0),n([T({type:Boolean}),s("design:type",Object)],at.prototype,"filterable",void 0),n([T({type:Number}),s("design:type",Number)],at.prototype,"maxLength",void 0),n([T({type:Boolean}),s("design:type",Object)],at.prototype,"isRenderClearButton",void 0),n([P(),s("design:type",Boolean)],at.prototype,"isMobile",void 0),n([P(),s("design:type",Object)],at.prototype,"highlightedIndex",void 0),n([P(),s("design:type",Boolean)],at.prototype,"_isCleared",void 0),n([P(),s("design:type",Array)],at.prototype,"filteredOptions",void 0),n([P(),s("design:type",Object)],at.prototype,"filterValue",void 0),n([P(),s("design:type",Object)],at.prototype,"isOpen",void 0),n([P(),s("design:type",Object)],at.prototype,"mobileFilterValue",void 0),at=n([a("filterable-select")],at);const lt=new CSSStyleSheet;lt.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n\n .body-l {\n font-family: Graphik;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n }\n");class dt extends t{static{this.styles=[lt,o`
2341
2341
  :host {
2342
2342
  display: flex;
2343
2343
  position: fixed;
@@ -2573,7 +2573,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2573
2573
  </div>
2574
2574
  `))}
2575
2575
  </div>
2576
- `}};s([T({type:Number}),n("design:type",Object)],ct.prototype,"totalSteps",void 0),s([T({type:Number}),n("design:type",Object)],ct.prototype,"currentStep",void 0),ct=s([a("custom-stepper")],ct);let ht=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
2576
+ `}};n([T({type:Number}),s("design:type",Object)],ct.prototype,"totalSteps",void 0),n([T({type:Number}),s("design:type",Object)],ct.prototype,"currentStep",void 0),ct=n([a("custom-stepper")],ct);let ht=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
2577
2577
  :host {
2578
2578
  display: block;
2579
2579
  border-bottom: 1px solid #E7E8EC;
@@ -2712,7 +2712,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2712
2712
  </button>
2713
2713
  `:null}
2714
2714
  </div>
2715
- `}};s([T({type:Array}),n("design:type",Array)],ht.prototype,"tabs",void 0),s([T({type:String}),n("design:type",String)],ht.prototype,"selected",void 0),s([L(),n("design:type",String)],ht.prototype,"internalSelected",void 0),s([L(),n("design:type",Object)],ht.prototype,"showPrev",void 0),s([L(),n("design:type",Object)],ht.prototype,"showNext",void 0),ht=s([a("tabs-bar")],ht);let pt=class extends j{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=t=>`El formato del archivo ${this.isMultiple?t:""} no es válido`,this.TEXT_SNACKBAR_ERROR_SIZE=(t,e)=>`El archivo ${this.isMultiple?t:""} es muy grande. Máximo ${e}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,clearTimeout(o.timer),o.timer=setTimeout((()=>o.open=!1),e)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return` ${(t/e).toFixed(2)} MB `}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const n=e>0,a=i.length>0;for(const l of t){if(a&&!i.includes(l.type))return this.setError(s,o,this.TEXT_SNACKBAR_ERROR_TYPE(l.name)),!1;if(n&&l.size>e)return this.setError(s,r,this.TEXT_SNACKBAR_ERROR_SIZE(l.name,this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:s,errorMessageSize:n,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=Number.isFinite(i)&&i>0?i:1,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(a,t,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,o,r,s,n,a))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
2715
+ `}};n([T({type:Array}),s("design:type",Array)],ht.prototype,"tabs",void 0),n([T({type:String}),s("design:type",String)],ht.prototype,"selected",void 0),n([P(),s("design:type",String)],ht.prototype,"internalSelected",void 0),n([P(),s("design:type",Object)],ht.prototype,"showPrev",void 0),n([P(),s("design:type",Object)],ht.prototype,"showNext",void 0),ht=n([a("tabs-bar")],ht);let pt=class extends j{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=t=>`El formato del archivo ${this.isMultiple?t:""} no es válido`,this.TEXT_SNACKBAR_ERROR_SIZE=(t,e)=>`El archivo ${this.isMultiple?t:""} es muy grande. Máximo ${e}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,clearTimeout(o.timer),o.timer=setTimeout((()=>o.open=!1),e)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return`${parseFloat((t/e).toPrecision(3)).toString()} MB`}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,n){const s=e>0,a=i.length>0;for(const l of t){if(a&&!i.includes(l.type))return this.setError(n,o,this.TEXT_SNACKBAR_ERROR_TYPE(l.name)),!1;if(s&&l.size>e)return this.setError(n,r,this.TEXT_SNACKBAR_ERROR_SIZE(l.name,this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType: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,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(a,t,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,o,r,n,s,a))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
2716
2716
  ${this.loading?e`
2717
2717
  <div class="progress-bar-container">
2718
2718
  <div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
@@ -2722,7 +2722,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2722
2722
  `:e`
2723
2723
  ${t}
2724
2724
  `}
2725
- `}};s([T({type:Array}),n("design:type",Array)],pt.prototype,"files",void 0),s([T({type:Number}),n("design:type",Object)],pt.prototype,"simulatedDelay",void 0),s([T({type:Boolean}),n("design:type",Object)],pt.prototype,"showAlertInError",void 0),s([T({type:String}),n("design:type",Object)],pt.prototype,"typeTextFile",void 0),s([L(),n("design:type",Object)],pt.prototype,"loading",void 0),s([L(),n("design:type",Object)],pt.prototype,"progress",void 0),s([L(),n("design:type",Object)],pt.prototype,"errorTextMessage",void 0),s([P('input[ type="file" ]'),n("design:type",HTMLInputElement)],pt.prototype,"fileInput",void 0),pt=s([a("base-upload")],pt);const ut={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},gt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ut,"text/plain":".txt"},bt=o`
2725
+ `}};n([T({type:Array}),s("design:type",Array)],pt.prototype,"files",void 0),n([T({type:Number}),s("design:type",Object)],pt.prototype,"simulatedDelay",void 0),n([T({type:Boolean}),s("design:type",Object)],pt.prototype,"showAlertInError",void 0),n([T({type:String}),s("design:type",Object)],pt.prototype,"typeTextFile",void 0),n([P(),s("design:type",Object)],pt.prototype,"loading",void 0),n([P(),s("design:type",Object)],pt.prototype,"progress",void 0),n([P(),s("design:type",Object)],pt.prototype,"errorTextMessage",void 0),n([L('input[ type="file" ]'),s("design:type",HTMLInputElement)],pt.prototype,"fileInput",void 0),pt=n([a("base-upload")],pt);const ut={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},gt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ut,"text/plain":".txt"},bt=o`
2726
2726
  .progress-bar-container {
2727
2727
  min-height: 23px;
2728
2728
  display: flex;
@@ -2742,7 +2742,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2742
2742
  background-color: var( --primary-color );
2743
2743
  transition: width 0.1s ease;
2744
2744
  }
2745
- `;let mt=class extends pt{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
2745
+ `;let yt=class extends pt{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isChangeStyleError=!1,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
2746
2746
  ${X}
2747
2747
  ${bt}
2748
2748
 
@@ -2871,8 +2871,12 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2871
2871
  .text-main.error {
2872
2872
  color: var(--ui-negative, #E00F0F);
2873
2873
  }
2874
- `}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ut)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}render(){const t=this.disabled||this.isMaxFilesReached,o=this.disabled,r=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,n=!1!==this.isShowInfoSize,a=r&&n?` / max. ${this.getTextMaxFileSize()}`:"",l=s?this.getTextAcceptedFileTypes():"",d=this.errorTextMessage||`subí hasta ${this.maxFiles} imágenes`,c=this.errorTextMessage?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",h=`container ${this.isDragging?"dragging":""} ${this.errorTextMessage?"error":""}`,p=e`
2875
- <label class="button">
2874
+ `}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ut)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}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`
2875
+ <label class="button"
2876
+ tabindex="0"
2877
+ @keydown=${e=>this.handleButtonKeydown(e,t)}
2878
+
2879
+ >
2876
2880
  agregar archivo
2877
2881
 
2878
2882
  <input
@@ -2907,7 +2911,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2907
2911
  `:""}
2908
2912
 
2909
2913
  <div
2910
- class="${h}"
2914
+ class="${u}"
2911
2915
  ?disabled="${t}"
2912
2916
  @drop="${this.onDrop}"
2913
2917
  @dragover="${this.onDragOver}"
@@ -2915,12 +2919,12 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2915
2919
  >
2916
2920
  <img
2917
2921
  class="icon"
2918
- src=${c}
2922
+ src=${p}
2919
2923
  alt="Subir imagen"
2920
2924
  />
2921
2925
 
2922
2926
  <div class="text-container">
2923
- <div class="text-main ${this.errorTextMessage?"error":""}">${d}</div>
2927
+ <div class="text-main ${c?"error":""}">${h}</div>
2924
2928
 
2925
2929
  <div class="text-secondary">
2926
2930
  Podés agregar un archivo o arrastrar y soltar acá
@@ -2929,11 +2933,11 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2929
2933
  <div class="text-tertiary">${l}${a}</div>
2930
2934
  </div>
2931
2935
 
2932
- ${this.renderLoadingContainer(p)}
2936
+ ${this.renderLoadingContainer(g)}
2933
2937
  </div>
2934
2938
  </div>
2935
2939
  </div>
2936
- `}};s([T({type:Array}),n("design:type",Array)],mt.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],mt.prototype,"maxFiles",void 0),s([T({type:Number}),n("design:type",Object)],mt.prototype,"maxFileSize",void 0),s([T({type:Boolean}),n("design:type",Object)],mt.prototype,"isShowInfoSize",void 0),s([L(),n("design:type",Object)],mt.prototype,"isDragging",void 0),s([L(),n("design:type",Array)],mt.prototype,"imageUrls",void 0),s([L(),n("design:type",Boolean)],mt.prototype,"isMaxFilesReached",void 0),mt=s([a("upload-image")],mt);const yt=6048e5,vt=Symbol.for("constructDateFrom");function ft(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&vt in t?t[vt](e):t instanceof Date?new t.constructor(e):new Date(e)}function wt(t,e){return ft(e||t,t)}function xt(t,e,i){const o=wt(t,i?.in);if(isNaN(e))return ft(t,NaN);if(!e)return o;const r=o.getDate(),s=ft(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let kt={};function $t(){return kt}function St(t,e){const i=$t(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=wt(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function Dt(t,e){return St(t,{...e,weekStartsOn:1})}function Et(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=ft(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=Dt(r),n=ft(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=Dt(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Ct(t){const e=wt(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Mt(t,...e){const i=ft.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Ft(t,e){const i=wt(t,e?.in);return i.setHours(0,0,0,0),i}function Ot(t,e,i){return xt(t,12*e,i)}function Bt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+wt(t)));var e}function Tt(t,e){const i=wt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const Lt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const jt={date:Pt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},At={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Rt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Wt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var zt;const _t={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=Lt[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:jt,formatRelative:(t,e,i,o)=>At[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Rt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Rt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Rt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Rt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Rt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(zt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(zt.matchPattern);if(!i)return null;const o=i[0],r=t.match(zt.parsePattern);if(!r)return null;let s=zt.valueCallback?zt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Wt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:Wt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function It(t,e){const i=wt(t,e?.in),o=function(t,e){const[i,o]=Mt(0,t,e),r=Ft(i),s=Ft(o),n=+r-Ct(r),a=+s-Ct(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=wt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Nt(t,e){const i=wt(t,e?.in),o=+Dt(i)-+function(t,e){const i=Et(t,e),o=ft(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Dt(o)}(i);return Math.round(o/yt)+1}function qt(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=$t(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=ft(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=St(n,e),l=ft(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=St(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Vt(t,e){const i=wt(t,e?.in),o=+St(i,e)-+function(t,e){const i=$t(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=qt(t,e),s=ft(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),St(s,e)}(i,e);return Math.round(o/yt)+1}function Ut(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Yt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Ut("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Ut(i+1,2)},d:(t,e)=>Ut(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Ut(t.getHours()%12||12,e.length),H:(t,e)=>Ut(t.getHours(),e.length),m:(t,e)=>Ut(t.getMinutes(),e.length),s:(t,e)=>Ut(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Ut(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Ht="midnight",Gt="noon",Kt="morning",Xt="afternoon",Qt="evening",Jt="night",Zt={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Yt.y(t,e)},Y:function(t,e,i,o){const r=qt(t,o),s=r>0?r:1-r;if("YY"===e){return Ut(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Ut(s,e.length)},R:function(t,e){return Ut(Et(t),e.length)},u:function(t,e){return Ut(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ut(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ut(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Yt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ut(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Vt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Ut(r,e.length)},I:function(t,e,i){const o=Nt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Ut(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Yt.d(t,e)},D:function(t,e,i){const o=It(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Ut(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ut(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ut(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Ut(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Gt:0===o?Ht:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?Qt:o>=12?Xt:o>=4?Kt:Jt,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Yt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Yt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Yt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Yt.s(t,e)},S:function(t,e){return Yt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ee(o);case"XXXX":case"XX":return ie(o);default:return ie(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ee(o);case"xxxx":case"xx":return ie(o);default:return ie(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},t:function(t,e,i){return Ut(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Ut(+t,e.length)}};function te(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Ut(s,2)}function ee(t,e){if(t%60==0){return(t>0?"-":"+")+Ut(Math.abs(t)/60,2)}return ie(t,e)}function ie(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Ut(Math.trunc(o/60),2)+e+Ut(o%60,2)}const oe=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},re=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},se={p:re,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return oe(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",oe(o,e)).replace("{{time}}",re(r,e))}},ne=/^D+$/,ae=/^Y+$/,le=["D","DD","YY","YYYY"];const de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,he=/^'([^]*?)'?$/,pe=/''/g,ue=/[a-zA-Z]/;function ge(t,e,i){const o=$t(),r=o.locale??_t,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=wt(t,i?.in);if(!Bt(a))throw new RangeError("Invalid time value");let l=e.match(ce).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,se[e])(t,r.formatLong)}return t})).join("").match(de).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:be(t)};if(Zt[e])return{isToken:!0,value:t};if(e.match(ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ae.test(t)}(o)||function(t){return ne.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),le.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,Zt[o[0]])(a,o,r.localize,d)})).join("")}function be(t){const e=t.match(he);return e?e[1].replace(pe,"'"):t}function me(t,e){return wt(t,e?.in).getDate()}function ye(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=ft(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function ve(t,e){return+wt(t)>+wt(e)}function fe(t,e){return+wt(t)<+wt(e)}function we(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function xe(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()}function ke(t,e){return function(t,e){const[i,o]=Mt(0,t,e);return+Ft(i)===+Ft(o)}(ft(t,t),function(t){return ft(t,Date.now())}(t))}let $e=class extends t{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[J,o`
2940
+ `}};n([T({type:Array}),s("design:type",Array)],yt.prototype,"acceptedFileTypes",void 0),n([T({type:Number}),s("design:type",Object)],yt.prototype,"maxFiles",void 0),n([T({type:Number}),s("design:type",Object)],yt.prototype,"maxFileSize",void 0),n([T({type:Boolean}),s("design:type",Object)],yt.prototype,"isShowInfoSize",void 0),n([T({type:Boolean}),s("design:type",Object)],yt.prototype,"isChangeStyleError",void 0),n([P(),s("design:type",Object)],yt.prototype,"isDragging",void 0),n([P(),s("design:type",Array)],yt.prototype,"imageUrls",void 0),n([P(),s("design:type",Boolean)],yt.prototype,"isMaxFilesReached",void 0),yt=n([a("upload-image")],yt);const mt=6048e5,vt=Symbol.for("constructDateFrom");function ft(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&vt in t?t[vt](e):t instanceof Date?new t.constructor(e):new Date(e)}function wt(t,e){return ft(e||t,t)}function xt(t,e,i){const o=wt(t,i?.in);if(isNaN(e))return ft(t,NaN);if(!e)return o;const r=o.getDate(),n=ft(t,o.getTime());n.setMonth(o.getMonth()+e+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let kt={};function $t(){return kt}function St(t,e){const i=$t(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=wt(t,e?.in),n=r.getDay(),s=(n<o?7:0)+n-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Dt(t,e){return St(t,{...e,weekStartsOn:1})}function Et(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=ft(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=Dt(r),s=ft(i,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const a=Dt(s);return i.getTime()>=n.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Ct(t){const e=wt(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Mt(t,...e){const i=ft.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Ft(t,e){const i=wt(t,e?.in);return i.setHours(0,0,0,0),i}function Ot(t,e,i){return xt(t,12*e,i)}function Bt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+wt(t)));var e}function Tt(t,e){const i=wt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const Pt={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 Lt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const jt={date:Lt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Lt({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:Lt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},At={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Rt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Wt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],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 _t={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=Pt[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:jt,formatRelative:(t,e,i,o)=>At[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Rt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Rt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Rt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Rt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Rt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(zt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(zt.matchPattern);if(!i)return null;const o=i[0],r=t.match(zt.parsePattern);if(!r)return null;let 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:Wt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:Wt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function It(t,e){const i=wt(t,e?.in),o=function(t,e){const[i,o]=Mt(0,t,e),r=Ft(i),n=Ft(o),s=+r-Ct(r),a=+n-Ct(n);return Math.round((s-a)/864e5)}(i,function(t,e){const i=wt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Nt(t,e){const i=wt(t,e?.in),o=+Dt(i)-+function(t,e){const i=Et(t,e),o=ft(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Dt(o)}(i);return Math.round(o/mt)+1}function qt(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=$t(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=ft(e?.in||t,0);s.setFullYear(o+1,0,n),s.setHours(0,0,0,0);const a=St(s,e),l=ft(e?.in||t,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);const d=St(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Vt(t,e){const i=wt(t,e?.in),o=+St(i,e)-+function(t,e){const i=$t(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=qt(t,e),n=ft(e?.in||t,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),St(n,e)}(i,e);return Math.round(o/mt)+1}function Ut(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Yt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Ut("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Ut(i+1,2)},d:(t,e)=>Ut(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Ut(t.getHours()%12||12,e.length),H:(t,e)=>Ut(t.getHours(),e.length),m:(t,e)=>Ut(t.getMinutes(),e.length),s:(t,e)=>Ut(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Ut(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Ht="midnight",Gt="noon",Kt="morning",Xt="afternoon",Qt="evening",Jt="night",Zt={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Yt.y(t,e)},Y:function(t,e,i,o){const r=qt(t,o),n=r>0?r:1-r;if("YY"===e){return Ut(n%100,2)}return"Yo"===e?i.ordinalNumber(n,{unit:"year"}):Ut(n,e.length)},R:function(t,e){return Ut(Et(t),e.length)},u:function(t,e){return Ut(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ut(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ut(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Yt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ut(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Vt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Ut(r,e.length)},I:function(t,e,i){const o=Nt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Ut(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Yt.d(t,e)},D:function(t,e,i){const o=It(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Ut(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(n);case"ee":return Ut(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 Ut(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 Ut(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Gt:0===o?Ht:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?Qt:o>=12?Xt:o>=4?Kt:Jt,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Yt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Yt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ut(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Yt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Yt.s(t,e)},S:function(t,e){return Yt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ee(o);case"XXXX":case"XX":return ie(o);default:return ie(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ee(o);case"xxxx":case"xx":return ie(o);default:return ie(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+te(o,":");default:return"GMT"+ie(o,":")}},t:function(t,e,i){return Ut(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Ut(+t,e.length)}};function te(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),n=o%60;return 0===n?i+String(r):i+String(r)+e+Ut(n,2)}function ee(t,e){if(t%60==0){return(t>0?"-":"+")+Ut(Math.abs(t)/60,2)}return ie(t,e)}function ie(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Ut(Math.trunc(o/60),2)+e+Ut(o%60,2)}const oe=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},re=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ne={p:re,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return oe(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}}",oe(o,e)).replace("{{time}}",re(r,e))}},se=/^D+$/,ae=/^Y+$/,le=["D","DD","YY","YYYY"];const de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,he=/^'([^]*?)'?$/,pe=/''/g,ue=/[a-zA-Z]/;function ge(t,e,i){const o=$t(),r=o.locale??_t,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=wt(t,i?.in);if(!Bt(a))throw new RangeError("Invalid time value");let l=e.match(ce).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,ne[e])(t,r.formatLong)}return t})).join("").match(de).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:be(t)};if(Zt[e])return{isToken:!0,value:t};if(e.match(ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:n,weekStartsOn:s,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ae.test(t)}(o)||function(t){return se.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),le.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,Zt[o[0]])(a,o,r.localize,d)})).join("")}function be(t){const e=t.match(he);return e?e[1].replace(pe,"'"):t}function ye(t,e){return wt(t,e?.in).getDate()}function me(t,e){const i=wt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),n=ft(i,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function ve(t,e){return+wt(t)>+wt(e)}function fe(t,e){return+wt(t)<+wt(e)}function we(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function xe(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()}function ke(t,e){return function(t,e){const[i,o]=Mt(0,t,e);return+Ft(i)===+Ft(o)}(ft(t,t),function(t){return ft(t,Date.now())}(t))}let $e=class extends t{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[J,o`
2937
2941
  ${K}
2938
2942
 
2939
2943
  /* Estilos generales del contenedor del calendario (escritorio) */
@@ -3364,7 +3368,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3364
3368
  border-radius: 9999px;
3365
3369
  }
3366
3370
  /* */
3367
- `]}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this.handleCalendarKeydown.bind(this))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?xt(this.viewDate,t):"months"===this.currentView?Ot(this.viewDate,t):Ot(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=wt(t,i?.in);return isNaN(+o)?ft(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=wt(t,i?.in),r=o.getFullYear(),s=o.getDate(),n=ft(t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);const a=ye(n);return o.setMonth(e,Math.min(s,a)),o}(this.viewDate,t);this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const s=i[r];s&&s.focus()}_focusDayOfWeekEdge(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;if(-1===Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===e)))return;const i=Array.from(this.shadowRoot.querySelectorAll(".days-grid > *")).findIndex((t=>t===e));if(-1===i)return;const o=i%7;let r=null;if("start"===t){const t=i-o;r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e<=i;)e++,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}else{const t=i+(6-o);r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e>=i;)e--,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}r?.focus()}handleCalendarKeydown(t){const{key:e}=t,i=this.shadowRoot?.activeElement;if("Escape"===e)return t.preventDefault(),void this.dispatchEvent(new CustomEvent("close"));if(i&&(i.classList.contains("month-year-button")||i.classList.contains("nav-button"))){t.preventDefault();const o=this.shadowRoot?.querySelector(".month-year-button"),r=this.shadowRoot?.querySelector(".header-right button:first-child"),s=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===s&&this.handleNavClick(1),void this.updateComplete.then((()=>i.focus()));switch(e){case"ArrowUp":return t.preventDefault(),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));case"ArrowRight":(i===o||i===r)&&s?.focus();break;case"ArrowLeft":i===s?r?.focus():i===r&&o?.focus();break;case"ArrowDown":if("days"===this.currentView){const t=this.initialFocusElement||this.shadowRoot?.querySelector(".day:not([disabled])");t?.focus()}else if("months"===this.currentView||"years"===this.currentView){const t=this.shadowRoot?.querySelector(`.${"months"===this.currentView?"month":"year"}-grid button:not([disabled])`);t?.focus()}}}else if(i&&i.classList.contains("day")&&"days"===this.currentView){t.preventDefault();const o=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===i)),r=this.shadowRoot?.querySelector(".month-year-button");switch(e){case"ArrowLeft":this._findAndFocusDayButton(-1);break;case"ArrowRight":this._findAndFocusDayButton(1);break;case"ArrowDown":this._findAndFocusDayButton(7);break;case"ArrowUp":o-7<0?r?.focus():this._findAndFocusDayButton(-7);break;case"Home":this._focusDayOfWeekEdge("start");break;case"End":this._focusDayOfWeekEdge("end");break;case"Enter":i.click()}}else if(i&&(i.classList.contains("month-button")||i.classList.contains("year-button"))){t.preventDefault();const o="months"===this.currentView?".month-button:not([disabled])":".year-button:not([disabled])",r=Array.from(this.shadowRoot.querySelectorAll(o)),s=r.findIndex((t=>t===i)),n=this.shadowRoot?.querySelector(".month-year-button");if(-1===s)return;let a=s;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void n?.focus();break;case"ArrowLeft":a-=1,a<0&&(a=0);break;case"ArrowRight":a+=1,a>=r.length&&(a=r.length-1);break;case"Enter":i.click()}a!==s&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault()}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=we(Tt(this.viewDate),Tt(this.minDate))||fe(this.viewDate,this.minDate)),this.maxDate&&(r=we(Tt(this.viewDate),Tt(this.maxDate))||ve(this.viewDate,this.maxDate))}const s="months"===this.currentView,n=e`
3371
+ `]}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this.handleCalendarKeydown.bind(this))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?xt(this.viewDate,t):"months"===this.currentView?Ot(this.viewDate,t):Ot(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=wt(t,i?.in);return isNaN(+o)?ft(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=wt(t,i?.in),r=o.getFullYear(),n=o.getDate(),s=ft(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const a=me(s);return o.setMonth(e,Math.min(n,a)),o}(this.viewDate,t);this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const 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(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()}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=we(Tt(this.viewDate),Tt(this.minDate))||fe(this.viewDate,this.minDate)),this.maxDate&&(r=we(Tt(this.viewDate),Tt(this.maxDate))||ve(this.viewDate,this.maxDate))}const n="months"===this.currentView,s=e`
3368
3372
  <randstad-icon
3369
3373
  name="${"days"===this.currentView?"arrow_drop_down":"arrow_drop_up"}"
3370
3374
  class="select-icon"
@@ -3376,7 +3380,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3376
3380
  <button class="month-year-button" @click=${this.handleHeaderClick}>
3377
3381
  <span>${i}</span>
3378
3382
 
3379
- ${n}
3383
+ ${s}
3380
3384
  </button>
3381
3385
  </div>
3382
3386
 
@@ -3384,7 +3388,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3384
3388
  <button
3385
3389
  class="nav-button"
3386
3390
  @click=${()=>this.handleNavClick(-1)}
3387
- ?disabled=${o||s}
3391
+ ?disabled=${o||n}
3388
3392
  >
3389
3393
  <randstad-icon name="arrow_left"></randstad-icon>
3390
3394
  </button>
@@ -3392,19 +3396,19 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3392
3396
  <button
3393
3397
  class="nav-button"
3394
3398
  @click=${()=>this.handleNavClick(1)}
3395
- ?disabled=${r||s}
3399
+ ?disabled=${r||n}
3396
3400
  >
3397
3401
  <randstad-icon name="arrow_right"></randstad-icon>
3398
3402
  </button>
3399
3403
  </div>
3400
3404
  </div>
3401
- `}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((e,i)=>t+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),s=this.minDate?this.minDate.getFullYear():-1/0,n=this.maxDate?this.maxDate.getFullYear():1/0;return e`
3405
+ `}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((e,i)=>t+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),n=this.minDate?this.minDate.getFullYear():-1/0,s=this.maxDate?this.maxDate.getFullYear():1/0;return e`
3402
3406
  <div class="year-grid">
3403
3407
  ${i.map((t=>e`
3404
3408
  <button
3405
3409
  class="${` year-button ${t===o?"selected":t===r?"current":""} `}"
3406
3410
  @click=${()=>this.handleYearSelect(t)}
3407
- ?disabled=${t<s||t>n}
3411
+ ?disabled=${t<n||t>s}
3408
3412
  >
3409
3413
  ${t}
3410
3414
  </button>
@@ -3412,26 +3416,26 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3412
3416
  </div>
3413
3417
  `}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return e`
3414
3418
  <div class="month-grid">
3415
- ${t.map(((t,s)=>{const n=s===o,a=s===i&&this.selectedDate&&xe(this.viewDate,this.selectedDate),l=s===i&&this.selectedDate&&!xe(this.viewDate,this.selectedDate);let d=!1;this.minDate&&r===this.minDate.getFullYear()&&(d=s<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||s>this.maxDate.getMonth());return e`
3419
+ ${t.map(((t,n)=>{const s=n===o,a=n===i&&this.selectedDate&&xe(this.viewDate,this.selectedDate),l=n===i&&this.selectedDate&&!xe(this.viewDate,this.selectedDate);let d=!1;this.minDate&&r===this.minDate.getFullYear()&&(d=n<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||n>this.maxDate.getMonth());return e`
3416
3420
  <button
3417
- class="${"month-button "+(a?"selected":l?"secondary-selected":n?"current":"")}"
3421
+ class="${"month-button "+(a?"selected":l?"secondary-selected":s?"current":"")}"
3418
3422
  ?disabled=${d}
3419
- @click=${()=>this.handleMonthSelect(s)}
3423
+ @click=${()=>this.handleMonthSelect(n)}
3420
3424
  >
3421
3425
  ${t}
3422
3426
  </button>
3423
3427
  `}))}
3424
3428
  </div>
3425
- `}renderDayView(){const t=ye(this.viewDate),i=Tt(this.viewDate),o=wt(i,r?.in).getDay();var r;const s=Array.from({length:0===o?6:o-1},(()=>null)),n=Array.from({length:t},((t,e)=>function(t,e,i){const o=wt(t,i?.in);return o.setDate(e),o}(i,e+1))),a=this.getShortWeekdays();return e`
3429
+ `}renderDayView(){const t=me(this.viewDate),i=Tt(this.viewDate),o=wt(i,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),s=Array.from({length:t},((t,e)=>function(t,e,i){const o=wt(t,i?.in);return o.setDate(e),o}(i,e+1))),a=this.getShortWeekdays();return e`
3426
3430
  <div class="weekdays">
3427
3431
  ${a.map((t=>e`<div>${t}</div>`))}
3428
3432
  </div>
3429
3433
 
3430
3434
  <div class="days-grid">
3431
- ${s.map((()=>e`<div></div>`))}
3432
- ${n.map((t=>{const i=Ft(t),o=this.selectedDate?Ft(this.selectedDate):null,r=this.minDate&&fe(i,Ft(this.minDate))||this.maxDate&&ve(i,Ft(this.maxDate)),s=ke(i),n=o&&me(i)===me(o),a=n&&o&&we(i,o)&&xe(i,o);return e`
3435
+ ${n.map((()=>e`<div></div>`))}
3436
+ ${s.map((t=>{const i=Ft(t),o=this.selectedDate?Ft(this.selectedDate):null,r=this.minDate&&fe(i,Ft(this.minDate))||this.maxDate&&ve(i,Ft(this.maxDate)),n=ke(i),s=o&&ye(i)===ye(o),a=s&&o&&we(i,o)&&xe(i,o);return e`
3433
3437
  <button
3434
- class="${`day ${s?"today":""} ${a?"selected":n&&!a?"secondary-selected":""}`}"
3438
+ class="${`day ${n?"today":""} ${a?"selected":s&&!a?"secondary-selected":""}`}"
3435
3439
  ?disabled=${r}
3436
3440
  @click=${()=>this.handleDayClick(t)}
3437
3441
  >
@@ -3452,7 +3456,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3452
3456
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3453
3457
  ${i}
3454
3458
  </div>
3455
- `}};s([T({type:Object}),n("design:type",Object)],$e.prototype,"selectedDate",void 0),s([T({type:Object}),n("design:type",Date)],$e.prototype,"viewDate",void 0),s([T({type:Boolean}),n("design:type",Object)],$e.prototype,"isMobile",void 0),s([T({type:Number}),n("design:type",Number)],$e.prototype,"calendarWidth",void 0),s([T({type:Object}),n("design:type",Object)],$e.prototype,"minDate",void 0),s([T({type:Object}),n("design:type",Object)],$e.prototype,"maxDate",void 0),s([L(),n("design:type",String)],$e.prototype,"currentView",void 0),s([P(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],$e.prototype,"initialFocusElement",void 0),$e=s([a("calendar-overlay")],$e);let Se=class extends j{constructor(){super(...arguments),this.isRenderClearButton=!0,this.eighteenOrOlder=!1,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=o`
3459
+ `}};n([T({type:Object}),s("design:type",Object)],$e.prototype,"selectedDate",void 0),n([T({type:Object}),s("design:type",Date)],$e.prototype,"viewDate",void 0),n([T({type:Boolean}),s("design:type",Object)],$e.prototype,"isMobile",void 0),n([T({type:Number}),s("design:type",Number)],$e.prototype,"calendarWidth",void 0),n([T({type:Object}),s("design:type",Object)],$e.prototype,"minDate",void 0),n([T({type:Object}),s("design:type",Object)],$e.prototype,"maxDate",void 0),n([P(),s("design:type",String)],$e.prototype,"currentView",void 0),n([L(".day.selected, .day.today:not(.selected)"),s("design:type",HTMLButtonElement)],$e.prototype,"initialFocusElement",void 0),$e=n([a("calendar-overlay")],$e);let Se=class extends j{constructor(){super(...arguments),this.isRenderClearButton=!0,this.eighteenOrOlder=!1,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=o`
3456
3460
  ${X}
3457
3461
  ${Q}
3458
3462
  ${G}
@@ -3614,7 +3618,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3614
3618
 
3615
3619
  ${this.renderHelper()}
3616
3620
  </div>
3617
- `}};s([T({type:String}),n("design:type",String)],Se.prototype,"width",void 0),s([T({type:Boolean}),n("design:type",Object)],Se.prototype,"isRenderClearButton",void 0),s([T({type:String}),n("design:type",String)],Se.prototype,"minDate",void 0),s([T({type:String}),n("design:type",String)],Se.prototype,"maxDate",void 0),s([T({type:Boolean}),n("design:type",Object)],Se.prototype,"eighteenOrOlder",void 0),s([L(),n("design:type",Object)],Se.prototype,"isOpen",void 0),s([L(),n("design:type",Object)],Se.prototype,"selectedDate",void 0),s([L(),n("design:type",Date)],Se.prototype,"viewDate",void 0),s([L(),n("design:type",Object)],Se.prototype,"isMobile",void 0),s([L(),n("design:type",Number)],Se.prototype,"calendarWidth",void 0),s([L(),n("design:type",Object)],Se.prototype,"inputValue",void 0),s([P(".input-container"),n("design:type",HTMLDivElement)],Se.prototype,"inputContainer",void 0),Se=s([a("datepicker-component")],Se);let De=class extends pt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo"}static{this.styles=o`
3621
+ `}};n([T({type:String}),s("design:type",String)],Se.prototype,"width",void 0),n([T({type:Boolean}),s("design:type",Object)],Se.prototype,"isRenderClearButton",void 0),n([T({type:String}),s("design:type",String)],Se.prototype,"minDate",void 0),n([T({type:String}),s("design:type",String)],Se.prototype,"maxDate",void 0),n([T({type:Boolean}),s("design:type",Object)],Se.prototype,"eighteenOrOlder",void 0),n([P(),s("design:type",Object)],Se.prototype,"isOpen",void 0),n([P(),s("design:type",Object)],Se.prototype,"selectedDate",void 0),n([P(),s("design:type",Date)],Se.prototype,"viewDate",void 0),n([P(),s("design:type",Object)],Se.prototype,"isMobile",void 0),n([P(),s("design:type",Number)],Se.prototype,"calendarWidth",void 0),n([P(),s("design:type",Object)],Se.prototype,"inputValue",void 0),n([L(".input-container"),s("design:type",HTMLDivElement)],Se.prototype,"inputContainer",void 0),Se=n([a("datepicker-component")],Se);let De=class extends pt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo"}static{this.styles=o`
3618
3622
  ${X}
3619
3623
  ${Q}
3620
3624
  ${G}
@@ -3675,6 +3679,11 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3675
3679
  .progress-bar {
3676
3680
  width: 100%;
3677
3681
  }
3682
+
3683
+ randstad-button::part( button ):focus-visible {
3684
+ outline: 2px solid rgb( 0, 215, 255 ) !important;
3685
+ outline-offset: 1px;
3686
+ }
3678
3687
  `}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,gt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
3679
3688
  <randstad-button
3680
3689
  .label=${this.buttonText}
@@ -3722,7 +3731,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3722
3731
  </div>
3723
3732
  `:i}
3724
3733
  </div>
3725
- `}};s([T({type:String}),n("design:type",String)],De.prototype,"width",void 0),s([T({type:Number}),n("design:type",Object)],De.prototype,"maxFiles",void 0),s([T({type:Array}),n("design:type",Array)],De.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],De.prototype,"maxFileSize",void 0),s([T({type:String}),n("design:type",Object)],De.prototype,"buttonText",void 0),De=s([a("upload-file")],De);let Ee=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
3734
+ `}};n([T({type:String}),s("design:type",String)],De.prototype,"width",void 0),n([T({type:Number}),s("design:type",Object)],De.prototype,"maxFiles",void 0),n([T({type:Array}),s("design:type",Array)],De.prototype,"acceptedFileTypes",void 0),n([T({type:Number}),s("design:type",Object)],De.prototype,"maxFileSize",void 0),n([T({type:String}),s("design:type",Object)],De.prototype,"buttonText",void 0),De=n([a("upload-file")],De);let Ee=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
3726
3735
  :host {
3727
3736
  display: block;
3728
3737
  width: 100%;
@@ -3999,7 +4008,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3999
4008
  padding-right: 0 !important;
4000
4009
  }
4001
4010
  }
4002
- `}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let s,n=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){n=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===n&&t>e&&(n=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){s=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:n+1,s=Math.min(s,a)}else s=l&&n<=2?0:n-1,s=Math.max(0,s);return s}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),n=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),a=r*i+(parseFloat(n)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-s)<Math.round(t)-1){i=r.offsetLeft-s;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-s)>Math.round(t)+1){o=r.offsetLeft-s;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,s=this.slider.scrollLeft;if(e&&Math.round(s)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
4011
+ `}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let n,s=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){s=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===s&&t>e&&(s=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){n=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:s+1,n=Math.min(n,a)}else n=l&&s<=2?0:s-1,n=Math.max(0,n);return n}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const n=window.getComputedStyle(this.slider),s=n.getPropertyValue("gap")||n.getPropertyValue("column-gap"),a=r*i+(parseFloat(s)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),n=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-n)<Math.round(t)-1){i=r.offsetLeft-n;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),n=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-n)>Math.round(t)+1){o=r.offsetLeft-n;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,n=this.slider.scrollLeft;if(e&&Math.round(n)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
4003
4012
  <div class="nav-buttons-container">
4004
4013
  <button
4005
4014
  class=${r(t)}
@@ -4042,5 +4051,5 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4042
4051
 
4043
4052
  ${this.renderNavButtons()}
4044
4053
  </div>
4045
- `}};s([T({type:Array}),n("design:type",Array)],Ee.prototype,"cards",void 0),s([T({type:String}),n("design:type",String)],Ee.prototype,"cardWidth",void 0),s([T({type:String}),n("design:type",String)],Ee.prototype,"cardHeight",void 0),s([T({type:Number}),n("design:type",Number)],Ee.prototype,"navWidth",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"showNavButtons",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"isDynamicWidth",void 0),s([T({type:Boolean}),n("design:type",Boolean)],Ee.prototype,"isInfiniteScrollPartial",void 0),s([T({type:Number}),n("design:type",Number)],Ee.prototype,"autoPlayDelayMs",void 0),s([L(),n("design:type",Object)],Ee.prototype,"showPrevButton",void 0),s([L(),n("design:type",Object)],Ee.prototype,"showNextButton",void 0),s([P(".carousel-wrapper"),n("design:type",HTMLElement)],Ee.prototype,"slider",void 0),s([P("slot"),n("design:type",HTMLSlotElement)],Ee.prototype,"slotElement",void 0),Ee=s([a("carousel-component"),n("design:paramtypes",[])],Ee);export{V as AccordionList,q as AccordionPanel,j as BaseControl,$e as CalendarOverlay,Ee as Carousel,Y as CarouselCard,H as Checkbox,ot as CustomModal,rt as CustomPopup,nt as CustomRadio,ct as CustomStepper,Se as DatePickerComponent,at as FilterableSelect,tt as FormGroup,et as IconComponent,st as ProgressCircle,U as RandstadButton,Z as RandstadForm,it as RandstadNotice,ht as TabsBar,De as UploadFile,mt as UploadImage,J as scrollbarStyles};
4054
+ `}};n([T({type:Array}),s("design:type",Array)],Ee.prototype,"cards",void 0),n([T({type:String}),s("design:type",String)],Ee.prototype,"cardWidth",void 0),n([T({type:String}),s("design:type",String)],Ee.prototype,"cardHeight",void 0),n([T({type:Number}),s("design:type",Number)],Ee.prototype,"navWidth",void 0),n([T({type:Boolean}),s("design:type",Boolean)],Ee.prototype,"showNavButtons",void 0),n([T({type:Boolean}),s("design:type",Boolean)],Ee.prototype,"isDynamicWidth",void 0),n([T({type:Boolean}),s("design:type",Boolean)],Ee.prototype,"isInfiniteScrollPartial",void 0),n([T({type:Number}),s("design:type",Number)],Ee.prototype,"autoPlayDelayMs",void 0),n([P(),s("design:type",Object)],Ee.prototype,"showPrevButton",void 0),n([P(),s("design:type",Object)],Ee.prototype,"showNextButton",void 0),n([L(".carousel-wrapper"),s("design:type",HTMLElement)],Ee.prototype,"slider",void 0),n([L("slot"),s("design:type",HTMLSlotElement)],Ee.prototype,"slotElement",void 0),Ee=n([a("carousel-component"),s("design:paramtypes",[])],Ee);export{V as AccordionList,q as AccordionPanel,j as BaseControl,$e as CalendarOverlay,Ee as Carousel,Y as CarouselCard,H as Checkbox,ot as CustomModal,rt as CustomPopup,st as CustomRadio,ct as CustomStepper,Se as DatePickerComponent,at as FilterableSelect,tt as FormGroup,et as IconComponent,nt as ProgressCircle,U as RandstadButton,Z as RandstadForm,it as RandstadNotice,ht as TabsBar,De as UploadFile,yt as UploadImage,J as scrollbarStyles};
4046
4055
  //# sourceMappingURL=index.js.map