@randstad-uca/design-system 1.0.47 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import{css as t,LitElement as e,html as i,nothing as o,isServer as r}from"lit";import{classMap as n}from"lit/directives/class-map.js";function a(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
1
+ import{css as e,LitElement as t,html as i,nothing as o,isServer as r}from"lit";import{classMap as n}from"lit/directives/class-map.js";function a(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const d=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},l=globalThis,c=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),h=new WeakMap;
7
+ const l=e=>(t,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},d=globalThis,c=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),h=new WeakMap;
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */let u=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=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 b=(t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},g=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,p))(e)})(t):t,{is:m,defineProperty:y,getOwnPropertyDescriptor:f,getOwnPropertyNames:v,getOwnPropertySymbols:x,getPrototypeOf:w}=Object,k=globalThis,$=k.trustedTypes,S=$?$.emptyScript:"",C=k.reactiveElementPolyfillSupport,E=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},D=(t,e)=>!m(t,e),M={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:D};
12
+ */let u=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(c&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=h.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(t,e))}return e}toString(){return this.cssText}};const b=(e,t)=>{if(c)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),o=d.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=i.cssText,e.appendChild(t)}},g=c?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new u("string"==typeof e?e:e+"",void 0,p))(t)})(e):e,{is:m,defineProperty:y,getOwnPropertyDescriptor:f,getOwnPropertyNames:v,getOwnPropertySymbols:x,getPrototypeOf:w}=Object,k=globalThis,$=k.trustedTypes,S=$?$.emptyScript:"",C=k.reactiveElementPolyfillSupport,E=(e,t)=>e,O={toAttribute(e,t){switch(t){case Boolean:e=e?S:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},D=(e,t)=>!m(e,t),M={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:D};
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class P 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}=f(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(E("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(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,e=[...v(t),...x(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(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 b(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:O).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:O;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,r=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??D)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:r},n){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==r||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[E("elementProperties")]=new Map,P[E("finalized")]=new Map,C?.({ReactiveElement:P}),(k.reactiveElementVersions??=[]).push("2.1.0");
17
+ */Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class F extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=M){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);void 0!==o&&y(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:r}=f(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const n=o?.call(this);r?.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??M}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const e=w(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const e=this.properties,t=[...v(e),...x(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(g(e))}else void 0!==e&&t.push(g(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.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((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:O).toAttribute(t,i.type);this._$Em=e,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){const i=this.constructor,o=i._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=i.getPropertyOptions(o),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:O;this._$Em=o,this[o]=r.fromAttribute(t,e.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){const o=this.constructor,r=this[e];if(i??=o.getPropertyOptions(e),!((i.hasChanged??D)(r,t)||i.useDefault&&i.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:r},n){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??t??this[e]),!0!==r||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===o&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,i,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[E("elementProperties")]=new Map,F[E("finalized")]=new Map,C?.({ReactiveElement:F}),(k.reactiveElementVersions??=[]).push("2.1.0");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- const j={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:D},F=(t=j,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 z(t){return(e,i)=>"object"==typeof i?F(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
23
+ const j={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:D},P=(e=j,t,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&&((e=Object.create(e)).wrapped=!0),n.set(i.name,e),"accessor"===o){const{name:o}=i;return{set(i){const r=t.get.call(this);t.set.call(this,i),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];t.call(this,i),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)};function A(e){return(t,i)=>"object"==typeof i?P(e,t,i):((e,t,i)=>{const o=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),o?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */function T(t){return z({...t,state:!0,attribute:!1})}
28
+ */function T(e){return A({...e,state:!0,attribute:!1})}
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
@@ -36,52 +36,52 @@ const j={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:D},F=(t=j,e,
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
38
  */
39
- function A(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)}})}const L=t`
39
+ function z(e,t){return(t,i,o)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}const I=e`
40
40
  font-family: 'Graphik', sans-serif;
41
41
  font-weight: 400;
42
42
  font-size: 12px;
43
43
  line-height: 15px;
44
44
  letter-spacing: 0%;
45
- `,I=t`
45
+ `,L=e`
46
46
  font-family: 'Graphik', sans-serif;
47
47
  font-weight: 400;
48
48
  font-size: 14px;
49
49
  line-height: 25px;
50
50
  letter-spacing: 0%;
51
- `,_=t`
51
+ `,_=e`
52
52
  font-family: 'Graphik', sans-serif;
53
53
  font-weight: 400;
54
54
  font-size: 16px;
55
55
  line-height: 25px;
56
56
  letter-spacing: 0%;
57
- `,B=t`
57
+ `,B=e`
58
58
  font-family: 'Graphik', sans-serif;
59
59
  font-weight: 400;
60
60
  font-size: 18px;
61
61
  line-height: 30px;
62
62
  letter-spacing: 0%;
63
- `,N=t`
63
+ `,N=e`
64
64
  font-family: 'Graphik', sans-serif;
65
65
  font-weight: 400;
66
66
  font-size: 18px;
67
67
  line-height: 30px;
68
68
  letter-spacing: 0%;
69
69
  vertical-align: middle;
70
- `,R=t`
70
+ `,R=e`
71
71
  font-family: 'Graphik', sans-serif;
72
72
  font-weight: 400;
73
73
  font-size: 20px;
74
74
  line-height: 30px;
75
75
  letter-spacing: -1%;
76
76
  vertical-align: middle;
77
- `,q=t`
77
+ `,q=e`
78
78
  font-family: 'Graphik', sans-serif;
79
79
  font-weight: 400;
80
80
  font-size: 26px;
81
81
  line-height: 30px;
82
82
  letter-spacing: -1%;
83
83
  vertical-align: middle;
84
- `;let V=class extends e{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.innerWidth>940,this.handleResize=()=>{this.isDesktop=window.innerWidth>940}}static{this.styles=t`
84
+ `;let V=class extends t{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.innerWidth>940,this.handleResize=()=>{this.isDesktop=window.innerWidth>940}}static{this.styles=e`
85
85
  :host {
86
86
  display: flex;
87
87
  flex-direction: column;
@@ -159,13 +159,13 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
159
159
  <div class="content ${this.isOpen?"open":""}">
160
160
  <slot></slot>
161
161
  </div>
162
- `}};a([z({type:String}),s("design:type",Object)],V.prototype,"title",void 0),a([T(),s("design:type",Object)],V.prototype,"isOpen",void 0),a([T(),s("design:type",Object)],V.prototype,"isDesktop",void 0),V=a([d("accordion-panel")],V);let Y=class extends e{static{this.styles=t`
162
+ `}};a([A({type:String}),s("design:type",Object)],V.prototype,"title",void 0),a([T(),s("design:type",Object)],V.prototype,"isOpen",void 0),a([T(),s("design:type",Object)],V.prototype,"isDesktop",void 0),V=a([l("accordion-panel")],V);let W=class extends t{static{this.styles=e`
163
163
  :host {
164
164
  display: flex;
165
165
  flex-direction: column;
166
166
  gap: 16px;
167
167
  }
168
- `}render(){return i`<slot></slot>`}};Y=a([d("accordion-list")],Y);let W=class extends e{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null,this.type="button",this.idevent=""}static{this.styles=t`
168
+ `}render(){return i`<slot></slot>`}};W=a([l("accordion-list")],W);let Y=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null,this.type="button",this.idevent=""}static{this.styles=e`
169
169
  :host {
170
170
  display: inline-block;
171
171
  }
@@ -305,6 +305,32 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
305
305
  height: 24px;
306
306
  }
307
307
 
308
+ /* Button Icon */
309
+ .button-icon {
310
+ background: none;
311
+ border: none;
312
+ color: var(--primary-color);
313
+ padding: 4px;
314
+ }
315
+
316
+ .button-icon:not([disabled]):hover {
317
+ background: var(--primary-color-5);
318
+ }
319
+
320
+ .button-icon:not([disabled]):active {
321
+ background-color: var(--primary-color-10);
322
+ }
323
+
324
+ .button-icon:not([disabled]):focus-visible {
325
+ outline: 2px solid var(--primary-color);
326
+ outline-offset: 2px;
327
+ }
328
+
329
+ .button-icon[disabled] {
330
+ color: var(--secondary-color-60);
331
+ cursor: default;
332
+ }
333
+
308
334
  /* Loader */
309
335
  .loader {
310
336
  display: flex;
@@ -388,20 +414,20 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
388
414
  cursor: default;
389
415
  }
390
416
 
391
- `}handleClick(t){if(!this.disabled)if("submit"===this.type){const t=this.closest("form");t&&t.requestSubmit()}else if("reset"===this.type){const t=this.closest("form");t&&t.reset()}else this.idevent&&this.dispatchEvent(new CustomEvent("randstad-button-click",{detail:this.idevent,composed:!0,bubbles:!0,cancelable:!1}))}render(){const t={button:!0,[this.variant]:!0,loader:this.loader,[`button-${this.size}`]:"button-round"!==this.variant&&"button-card"!==this.variant},e="button-tertiary"===this.variant?"var(--primary-color)":"white";return i`
417
+ `}handleClick(e){if(!this.disabled)if("submit"===this.type){const e=this.closest("form");e&&e.requestSubmit()}else if("reset"===this.type){const e=this.closest("form");e&&e.reset()}else this.idevent&&this.dispatchEvent(new CustomEvent("randstad-button-click",{detail:this.idevent,composed:!0,bubbles:!0,cancelable:!1}))}render(){const e={button:!0,[this.variant]:!0,loader:this.loader,[`button-${this.size}`]:["button-primary","button-secondary","button-tertiary"].includes(this.variant)},t="button-tertiary"===this.variant?"var(--primary-color)":"white";return i`
392
418
  <button
393
419
  part="button"
394
420
  type=${this.type}
395
- class=${n(t)}
421
+ class=${n(e)}
396
422
  ?disabled=${this.disabled}
397
423
  ?aria-busy=${this.loader}
398
424
  @click=${this.handleClick}
399
425
  >
400
426
  ${this.loader?i`
401
427
  <div class="loader">
402
- <span class="dot" style="background-color: ${e};"></span>
403
- <span class="dot" style="background-color: ${e};"></span>
404
- <span class="dot" style="background-color: ${e};"></span>
428
+ <span class="dot" style="background-color: ${t};"></span>
429
+ <span class="dot" style="background-color: ${t};"></span>
430
+ <span class="dot" style="background-color: ${t};"></span>
405
431
  </div>
406
432
  `:i`
407
433
  ${this.iconSrc&&"button-round"===this.variant?i`<img src=${this.iconSrc} alt="icon" class="button-icon" part="button-icon"/>`:""}
@@ -410,7 +436,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
410
436
  ${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?i`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
411
437
  `}
412
438
  </button>
413
- `}};a([z({type:String}),s("design:type",String)],W.prototype,"variant",void 0),a([z({type:String}),s("design:type",String)],W.prototype,"size",void 0),a([z({type:String}),s("design:type",Object)],W.prototype,"label",void 0),a([z({type:Boolean}),s("design:type",Object)],W.prototype,"loader",void 0),a([z({type:String,attribute:"icon-src"}),s("design:type",String)],W.prototype,"iconSrc",void 0),a([z({type:String}),s("design:type",String)],W.prototype,"iconPosition",void 0),a([z({type:Boolean,reflect:!0}),s("design:type",Boolean)],W.prototype,"disabled",void 0),a([z({type:String}),s("design:type",Object)],W.prototype,"iconName",void 0),a([z({type:String}),s("design:type",String)],W.prototype,"type",void 0),a([z({type:String}),s("design:type",Object)],W.prototype,"idevent",void 0),W=a([d("randstad-button")],W);let U=class extends e{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="Contactanos",this.cardId=""}static{this.styles=t`
439
+ `}};a([A({type:String}),s("design:type",String)],Y.prototype,"variant",void 0),a([A({type:String}),s("design:type",String)],Y.prototype,"size",void 0),a([A({type:String}),s("design:type",Object)],Y.prototype,"label",void 0),a([A({type:Boolean}),s("design:type",Object)],Y.prototype,"loader",void 0),a([A({type:String,attribute:"icon-src"}),s("design:type",String)],Y.prototype,"iconSrc",void 0),a([A({type:String}),s("design:type",String)],Y.prototype,"iconPosition",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Boolean)],Y.prototype,"disabled",void 0),a([A({type:String}),s("design:type",Object)],Y.prototype,"iconName",void 0),a([A({type:String}),s("design:type",String)],Y.prototype,"type",void 0),a([A({type:String}),s("design:type",Object)],Y.prototype,"idevent",void 0),Y=a([l("randstad-button")],Y);let U=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="Contactanos",this.cardId=""}static{this.styles=e`
414
440
  :host {
415
441
  display: inline-block;
416
442
  font-family: "Graphik", sans-serif;
@@ -489,7 +515,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
489
515
  }
490
516
 
491
517
  .description {
492
- ${I}
518
+ ${L}
493
519
  }
494
520
 
495
521
  ::part(button) {
@@ -527,14 +553,14 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
527
553
  </div>
528
554
  </div>
529
555
  </div>
530
- `}};a([z({type:String}),s("design:type",Object)],U.prototype,"img",void 0),a([z({type:String}),s("design:type",Object)],U.prototype,"name",void 0),a([z({type:String}),s("design:type",Object)],U.prototype,"title",void 0),a([z({type:String}),s("design:type",Object)],U.prototype,"description",void 0),a([z({type:String}),s("design:type",Object)],U.prototype,"buttonLabel",void 0),a([z({type:String}),s("design:type",Object)],U.prototype,"cardId",void 0),U=a([d("carousel-card")],U);let G=class extends e{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=t`
556
+ `}};a([A({type:String}),s("design:type",Object)],U.prototype,"img",void 0),a([A({type:String}),s("design:type",Object)],U.prototype,"name",void 0),a([A({type:String}),s("design:type",Object)],U.prototype,"title",void 0),a([A({type:String}),s("design:type",Object)],U.prototype,"description",void 0),a([A({type:String}),s("design:type",Object)],U.prototype,"buttonLabel",void 0),a([A({type:String}),s("design:type",Object)],U.prototype,"cardId",void 0),U=a([l("carousel-card")],U);let G=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=e`
531
557
  :host {
532
558
  display: block;
533
559
  max-width: 100%;
534
560
  }
535
561
 
536
562
  label {
537
- ${I}
563
+ ${L}
538
564
  display: flex;
539
565
  align-items: center;
540
566
  gap: 8px;
@@ -626,7 +652,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
626
652
  cursor: default;
627
653
  }
628
654
 
629
- `}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}render(){return i`
655
+ `}toggleCheck(e){this.checked=e.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}render(){return i`
630
656
  <label class="${this.error?"error":""} ${this.disabled?"disabled":""}">
631
657
  <input
632
658
  type="checkbox"
@@ -642,7 +668,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
642
668
  <slot></slot>
643
669
  </span>
644
670
  </label>
645
- `}};a([z({type:Boolean,reflect:!0}),s("design:type",Object)],G.prototype,"checked",void 0),a([z({type:Boolean}),s("design:type",Object)],G.prototype,"error",void 0),a([z({type:Boolean}),s("design:type",Object)],G.prototype,"disabled",void 0),G=a([d("randstad-checkbox")],G);let H=class extends e{constructor(){super(...arguments),this.value="",this.size="md",this.icon=null,this.helper=null,this.error=!1,this.errorMessage="",this.disabled=!1,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1,this.required=!1,this.optional=!1,this.helperAlign="left"}static{this.styles=t`
671
+ `}};a([A({type:Boolean,reflect:!0}),s("design:type",Object)],G.prototype,"checked",void 0),a([A({type:Boolean}),s("design:type",Object)],G.prototype,"error",void 0),a([A({type:Boolean}),s("design:type",Object)],G.prototype,"disabled",void 0),G=a([l("randstad-checkbox")],G);let H=class extends t{constructor(){super(...arguments),this.value="",this.size="md",this.icon=null,this.helper=null,this.error=!1,this.errorMessage="",this.disabled=!1,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1,this.required=!1,this.optional=!1,this.helperAlign="left"}static{this.styles=e`
646
672
  :host {
647
673
  display: block;
648
674
  font-family: 'Graphik', sans-serif;
@@ -873,9 +899,9 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
873
899
 
874
900
  .optional {
875
901
  color: var(--secondary-color-60);
876
- ${L}
902
+ ${I}
877
903
  }
878
- `}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleKeyDown(t){if("Enter"===t.key){const t=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),e=this.closest("form");e&&e.dispatchEvent(t)}}render(){const t=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type,e="textarea"===this.type?`height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto;`:"",r=i`
904
+ `}togglePassword(e){this.isPasswordVisible=!this.isPasswordVisible;const t=e.currentTarget.parentElement?.querySelector("input");t&&(t.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(e){const t=e.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=t.slice(0,this.maxLength):this.value=t,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(e){e.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleKeyDown(e){if("Enter"===e.key){const e=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),t=this.closest("form");t&&t.dispatchEvent(e)}}render(){const e=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type,t="textarea"===this.type?`height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto;`:"",r=i`
879
905
  ${this.labelColor?`--label-color: ${this.labelColor};`:""}
880
906
  `,n=`text-align: ${this.helperAlign??"left"};`;return i`
881
907
  <div
@@ -911,7 +937,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
911
937
  @input=${this.handleInput}
912
938
  @keydown=${this.handleKeyDown}
913
939
  maxlength=${this.maxLength??o}
914
- style="${e}"
940
+ style="${t}"
915
941
  >
916
942
  </textarea>`:i`
917
943
  <input
@@ -945,7 +971,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
945
971
  </randstad-icon>`}
946
972
  </button>`:o}
947
973
 
948
- ${t?i`
974
+ ${e?i`
949
975
  <button
950
976
  type="button"
951
977
  class="clean-button"
@@ -985,7 +1011,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
985
1011
  </p>
986
1012
  `:o}
987
1013
  </div>
988
- `}};a([z({type:String}),s("design:type",String)],H.prototype,"placeholder",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"label",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"labelColor",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"value",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"size",void 0),a([z({type:String}),s("design:type",Object)],H.prototype,"icon",void 0),a([z({type:String}),s("design:type",Object)],H.prototype,"helper",void 0),a([z({type:Boolean}),s("design:type",Boolean)],H.prototype,"error",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"errorMessage",void 0),a([z({type:Boolean}),s("design:type",Boolean)],H.prototype,"disabled",void 0),a([z({type:Boolean}),s("design:type",Boolean)],H.prototype,"typing",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"type",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"tooltipMessage",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"linkText",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"linkRoute",void 0),a([z({type:Boolean,reflect:!0}),s("design:type",Object)],H.prototype,"isPasswordVisible",void 0),a([z({type:Boolean}),s("design:type",Boolean)],H.prototype,"cleanButton",void 0),a([z({type:Number}),s("design:type",Number)],H.prototype,"maxLength",void 0),a([z({type:Boolean}),s("design:type",Object)],H.prototype,"required",void 0),a([z({type:Boolean}),s("design:type",Object)],H.prototype,"optional",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"helpLink",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"heightTextArea",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"maxHeightTextArea",void 0),a([z({type:String}),s("design:type",String)],H.prototype,"helperAlign",void 0),H=a([d("randstad-form")],H);let K=class extends e{constructor(){super(...arguments),this.label="",this.error=!1,this.errorMessage="",this.required=!1,this.optional=!1}static{this.styles=t`
1014
+ `}};a([A({type:String}),s("design:type",String)],H.prototype,"placeholder",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"label",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"labelColor",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"value",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"size",void 0),a([A({type:String}),s("design:type",Object)],H.prototype,"icon",void 0),a([A({type:String}),s("design:type",Object)],H.prototype,"helper",void 0),a([A({type:Boolean}),s("design:type",Boolean)],H.prototype,"error",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"errorMessage",void 0),a([A({type:Boolean}),s("design:type",Boolean)],H.prototype,"disabled",void 0),a([A({type:Boolean}),s("design:type",Boolean)],H.prototype,"typing",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"type",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"tooltipMessage",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"linkText",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"linkRoute",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Object)],H.prototype,"isPasswordVisible",void 0),a([A({type:Boolean}),s("design:type",Boolean)],H.prototype,"cleanButton",void 0),a([A({type:Number}),s("design:type",Number)],H.prototype,"maxLength",void 0),a([A({type:Boolean}),s("design:type",Object)],H.prototype,"required",void 0),a([A({type:Boolean}),s("design:type",Object)],H.prototype,"optional",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"helpLink",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"heightTextArea",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"maxHeightTextArea",void 0),a([A({type:String}),s("design:type",String)],H.prototype,"helperAlign",void 0),H=a([l("randstad-form")],H);let K=class extends t{constructor(){super(...arguments),this.label="",this.error=!1,this.errorMessage="",this.required=!1,this.optional=!1}static{this.styles=e`
989
1015
  :host {
990
1016
  display: flex;
991
1017
  flex-direction: column;
@@ -1025,7 +1051,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1025
1051
 
1026
1052
  .optional {
1027
1053
  color: var(--secondary-color-60);
1028
- ${L}
1054
+ ${I}
1029
1055
  }
1030
1056
  `}render(){return i`
1031
1057
  <label class="form-label">
@@ -1039,7 +1065,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1039
1065
  </div>
1040
1066
 
1041
1067
  ${this.error?i`<span class="error">${this.errorMessage}</span>`:this.helper?i`<span class="helper">${this.helper}</span>`:null}
1042
- `}};a([z({type:String}),s("design:type",Object)],K.prototype,"label",void 0),a([z({type:String}),s("design:type",String)],K.prototype,"helper",void 0),a([z({type:Boolean}),s("design:type",Object)],K.prototype,"error",void 0),a([z({type:String}),s("design:type",Object)],K.prototype,"errorMessage",void 0),a([z({type:Boolean}),s("design:type",Object)],K.prototype,"required",void 0),a([z({type:Boolean}),s("design:type",Object)],K.prototype,"optional",void 0),K=a([d("randstad-form-group")],K);class X extends e{constructor(){super(...arguments),this.name="",this.size="24px"}static{this.styles=t`
1068
+ `}};a([A({type:String}),s("design:type",Object)],K.prototype,"label",void 0),a([A({type:String}),s("design:type",String)],K.prototype,"helper",void 0),a([A({type:Boolean}),s("design:type",Object)],K.prototype,"error",void 0),a([A({type:String}),s("design:type",Object)],K.prototype,"errorMessage",void 0),a([A({type:Boolean}),s("design:type",Object)],K.prototype,"required",void 0),a([A({type:Boolean}),s("design:type",Object)],K.prototype,"optional",void 0),K=a([l("randstad-form-group")],K);class X extends t{constructor(){super(...arguments),this.name="",this.size="24px"}static{this.styles=e`
1043
1069
  :host {
1044
1070
  display: inline-flex;
1045
1071
  width: var(--icon-size, 24px);
@@ -1053,7 +1079,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1053
1079
  height: var(--icon-size, 24px);
1054
1080
  fill: var(--icon-color, currentColor);
1055
1081
  }
1056
- `}connectedCallback(){super.connectedCallback(),this.style.setProperty("--icon-size",this.size)}updated(t){t.has("size")&&this.style.setProperty("--icon-size",this.size)}async loadIcon(){try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");const e=await t.text(),i=new DOMParser,o=i.parseFromString(e,"image/svg+xml").querySelector("svg");if(!o)throw new Error("No se encontró un elemento SVG válido");o.removeAttribute("fill"),o.setAttribute("width",this.size),o.setAttribute("height",this.size),o.querySelectorAll("[fill]").forEach((t=>t.removeAttribute("fill"))),o.setAttribute("fill","currentColor"),"innerHTML"in this.renderRoot&&(this.renderRoot.innerHTML=""),this.renderRoot.appendChild(o)}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),"innerHTML"in this.renderRoot&&(this.renderRoot.innerHTML="<span>⚠️</span>")}}render(){return this.loadIcon(),null}}a([z({type:String}),s("design:type",Object)],X.prototype,"name",void 0),a([z({type:String}),s("design:type",Object)],X.prototype,"size",void 0),customElements.define("randstad-icon",X);let Q=class extends e{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=t`
1082
+ `}connectedCallback(){super.connectedCallback(),this.style.setProperty("--icon-size",this.size)}updated(e){e.has("size")&&this.style.setProperty("--icon-size",this.size)}async loadIcon(){try{const e=await fetch(`/assets/icons/${this.name}.svg`);if(!e.ok)throw new Error("Icon not found");const t=await e.text(),i=new DOMParser,o=i.parseFromString(t,"image/svg+xml").querySelector("svg");if(!o)throw new Error("No se encontró un elemento SVG válido");o.removeAttribute("fill"),o.setAttribute("width",this.size),o.setAttribute("height",this.size),o.querySelectorAll("[fill]").forEach((e=>e.removeAttribute("fill"))),o.setAttribute("fill","currentColor"),"innerHTML"in this.renderRoot&&(this.renderRoot.innerHTML=""),this.renderRoot.appendChild(o)}catch(e){console.error(`❌ Error cargando icono ${this.name}:`,e),"innerHTML"in this.renderRoot&&(this.renderRoot.innerHTML="<span>⚠️</span>")}}render(){return this.loadIcon(),null}}a([A({type:String}),s("design:type",Object)],X.prototype,"name",void 0),a([A({type:String}),s("design:type",Object)],X.prototype,"size",void 0),customElements.define("randstad-icon",X);let Q=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=e`
1057
1083
  :host {
1058
1084
  display: block;
1059
1085
  font-family: 'Graphik', sans-serif;
@@ -1106,7 +1132,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1106
1132
  <randstad-icon class="icon" name="${this.icon}" size="24px" style="color: var(--icon-color);"></randstad-icon>
1107
1133
  <span class="message">${this.message}</span>
1108
1134
  </div>
1109
- `}};a([z({type:String}),s("design:type",String)],Q.prototype,"type",void 0),a([z({type:String}),s("design:type",String)],Q.prototype,"icon",void 0),a([z({type:String}),s("design:type",String)],Q.prototype,"message",void 0),a([z({type:Boolean}),s("design:type",Boolean)],Q.prototype,"open",void 0),Q=a([d("randstad-notice")],Q);let J=class extends e{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.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=t`
1135
+ `}};a([A({type:String}),s("design:type",String)],Q.prototype,"type",void 0),a([A({type:String}),s("design:type",String)],Q.prototype,"icon",void 0),a([A({type:String}),s("design:type",String)],Q.prototype,"message",void 0),a([A({type:Boolean}),s("design:type",Boolean)],Q.prototype,"open",void 0),Q=a([l("randstad-notice")],Q);let J=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.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=e`
1110
1136
  :host {
1111
1137
  font-family: 'Graphik', sans-serif;
1112
1138
  display: none;
@@ -1305,7 +1331,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1305
1331
  </div>
1306
1332
  </div>
1307
1333
  </div>
1308
- `}};a([z({type:Boolean,reflect:!0}),s("design:type",Object)],J.prototype,"open",void 0),a([z({type:String}),s("design:type",Object)],J.prototype,"title",void 0),a([z({type:String}),s("design:type",String)],J.prototype,"subtitle",void 0),a([z({type:Boolean}),s("design:type",Object)],J.prototype,"showNotice",void 0),a([z({type:String}),s("design:type",String)],J.prototype,"noticeType",void 0),a([z({type:String}),s("design:type",Object)],J.prototype,"noticeMessage",void 0),a([z({type:String}),s("design:type",Object)],J.prototype,"noticeIcon",void 0),a([z({type:Boolean}),s("design:type",Object)],J.prototype,"showPrimaryButton",void 0),a([z({type:String}),s("design:type",Object)],J.prototype,"primaryButtonLabel",void 0),a([z({type:Boolean}),s("design:type",Object)],J.prototype,"showSecondaryButton",void 0),a([z({type:String}),s("design:type",Object)],J.prototype,"secondaryButtonLabel",void 0),a([z({type:Boolean}),s("design:type",Object)],J.prototype,"isFooterCustom",void 0),a([z({type:String}),s("design:type",Object)],J.prototype,"modalWidth",void 0),a([T(),s("design:type",Object)],J.prototype,"scrollable",void 0),J=a([d("custom-modal")],J);let Z=class extends e{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=t`
1334
+ `}};a([A({type:Boolean,reflect:!0}),s("design:type",Object)],J.prototype,"open",void 0),a([A({type:String}),s("design:type",Object)],J.prototype,"title",void 0),a([A({type:String}),s("design:type",String)],J.prototype,"subtitle",void 0),a([A({type:Boolean}),s("design:type",Object)],J.prototype,"showNotice",void 0),a([A({type:String}),s("design:type",String)],J.prototype,"noticeType",void 0),a([A({type:String}),s("design:type",Object)],J.prototype,"noticeMessage",void 0),a([A({type:String}),s("design:type",Object)],J.prototype,"noticeIcon",void 0),a([A({type:Boolean}),s("design:type",Object)],J.prototype,"showPrimaryButton",void 0),a([A({type:String}),s("design:type",Object)],J.prototype,"primaryButtonLabel",void 0),a([A({type:Boolean}),s("design:type",Object)],J.prototype,"showSecondaryButton",void 0),a([A({type:String}),s("design:type",Object)],J.prototype,"secondaryButtonLabel",void 0),a([A({type:Boolean}),s("design:type",Object)],J.prototype,"isFooterCustom",void 0),a([A({type:String}),s("design:type",Object)],J.prototype,"modalWidth",void 0),a([T(),s("design:type",Object)],J.prototype,"scrollable",void 0),J=a([l("custom-modal")],J);let Z=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=e=>{const t=e.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!t.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=e`
1309
1335
  :host {
1310
1336
  display: none;
1311
1337
  position: fixed;
@@ -1426,7 +1452,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1426
1452
  justify-content: center;
1427
1453
  }
1428
1454
 
1429
- `}firstUpdated(){if(this.open){const t=this.renderRoot.querySelector("randstad-button");t&&t.focus()}this.addEventListener("click",this._onBackgroundClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._onBackgroundClick)}closePopup(t){this.dispatchEvent(new CustomEvent("popup-close",{detail:t})),this.open=!1}render(){return i`
1455
+ `}firstUpdated(){if(this.open){const e=this.renderRoot.querySelector("randstad-button");e&&e.focus()}this.addEventListener("click",this._onBackgroundClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._onBackgroundClick)}closePopup(e){this.dispatchEvent(new CustomEvent("popup-close",{detail:e})),this.open=!1}render(){return i`
1430
1456
  <div
1431
1457
  class="popup"
1432
1458
  role="dialog"
@@ -1451,19 +1477,19 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1451
1477
  </div>
1452
1478
  `:"stacked"===this.type?i`
1453
1479
  <div class="popup-actions">
1454
- ${this.stackedActions.map((t=>i`
1480
+ ${this.stackedActions.map((e=>i`
1455
1481
  <div
1456
1482
  class="action-item"
1457
- @click=${()=>this.closePopup(t.value)}
1483
+ @click=${()=>this.closePopup(e.value)}
1458
1484
  >
1459
1485
  <div class="icon-circle">
1460
1486
  <randstad-icon
1461
- name=${t.icon}
1487
+ name=${e.icon}
1462
1488
  size="24px"
1463
1489
  style="--icon-color: var(--primary-color);"
1464
1490
  ></randstad-icon>
1465
1491
  </div>
1466
- <span>${t.label}</span>
1492
+ <span>${e.label}</span>
1467
1493
  </div>
1468
1494
  `))}
1469
1495
  </div>
@@ -1489,7 +1515,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1489
1515
  `}
1490
1516
  </div>
1491
1517
  </div>
1492
- `}};a([z({type:Boolean,reflect:!0}),s("design:type",Object)],Z.prototype,"open",void 0),a([z({type:String}),s("design:type",String)],Z.prototype,"type",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"icon",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"title",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"description",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"width",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"buttonText",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"confirmText",void 0),a([z({type:String}),s("design:type",Object)],Z.prototype,"cancelText",void 0),a([z({type:Array}),s("design:type",Array)],Z.prototype,"stackedActions",void 0),Z=a([d("custom-popup")],Z);let tt=class extends e{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=t`
1518
+ `}};a([A({type:Boolean,reflect:!0}),s("design:type",Object)],Z.prototype,"open",void 0),a([A({type:String}),s("design:type",String)],Z.prototype,"type",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"icon",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"title",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"description",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"width",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"buttonText",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"confirmText",void 0),a([A({type:String}),s("design:type",Object)],Z.prototype,"cancelText",void 0),a([A({type:Array}),s("design:type",Array)],Z.prototype,"stackedActions",void 0),Z=a([l("custom-popup")],Z);let ee=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=e`
1493
1519
  :host {
1494
1520
  display: inline-block;
1495
1521
  width: 64px;
@@ -1502,7 +1528,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1502
1528
  }
1503
1529
 
1504
1530
  .circle-text {
1505
- ${L};
1531
+ ${I};
1506
1532
  text-align: center;
1507
1533
  vertical-align: middle;
1508
1534
  fill: var(--randstad-dark-blue-40);
@@ -1518,7 +1544,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1518
1544
  stroke: var(--primary-light-blue);
1519
1545
  stroke-linecap: round;
1520
1546
  }
1521
- `}render(){const t=2*Math.PI*28,e=Math.max(this.max,1),o=t*(1-Math.min(this.value/e,1));return i`
1547
+ `}render(){const e=2*Math.PI*28,t=Math.max(this.max,1),o=e*(1-Math.min(this.value/t,1));return i`
1522
1548
  <svg
1523
1549
  viewBox="0 0 64 64"
1524
1550
  role="img"
@@ -1541,7 +1567,7 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1541
1567
  r="${28}"
1542
1568
  stroke-width="${6}"
1543
1569
  fill="none"
1544
- stroke-dasharray="${t}"
1570
+ stroke-dasharray="${e}"
1545
1571
  stroke-dashoffset="${o}"
1546
1572
  transform="rotate(-90 32 32)"
1547
1573
  />
@@ -1550,18 +1576,18 @@ function A(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1550
1576
  ${this.value} de ${this.max}
1551
1577
  </text>
1552
1578
  </svg>
1553
- `}};a([z({type:Number}),s("design:type",Object)],tt.prototype,"value",void 0),a([z({type:Number}),s("design:type",Object)],tt.prototype,"max",void 0),tt=a([d("progress-circle")],tt);
1579
+ `}};a([A({type:Number}),s("design:type",Object)],ee.prototype,"value",void 0),a([A({type:Number}),s("design:type",Object)],ee.prototype,"max",void 0),ee=a([l("progress-circle")],ee);
1554
1580
  /**
1555
1581
  * @license
1556
1582
  * Copyright 2023 Google LLC
1557
1583
  * SPDX-License-Identifier: Apache-2.0
1558
1584
  */
1559
- const et=Symbol("attachableController");let it;r||(it=new MutationObserver((t=>{for(const e of t)e.target[et]?.hostConnected()})));class ot{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){null===t?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[et]=this,it?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}
1585
+ const te=Symbol("attachableController");let ie;r||(ie=new MutationObserver((e=>{for(const t of e)t.target[te]?.hostConnected()})));class oe{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){null===e?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,t){this.host=e,this.onControlChange=t,this.currentControl=null,e.addController(this),e[te]=this,ie?.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}
1560
1586
  /**
1561
1587
  * @license
1562
1588
  * Copyright 2021 Google LLC
1563
1589
  * SPDX-License-Identifier: Apache-2.0
1564
- */const rt=["focusin","focusout","pointerdown"];class nt extends e{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new ot(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[at]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[at]=!0}}onControlChange(t,e){if(!r)for(const i of rt)t?.removeEventListener(i,this),e?.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}a([z({type:Boolean,reflect:!0})],nt.prototype,"visible",void 0),a([z({type:Boolean,reflect:!0})],nt.prototype,"inward",void 0);const at=Symbol("handledByFocusRing"),st=t`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
1590
+ */const re=["focusin","focusout","pointerdown"];class ne extends t{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new oe(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){if(!e[ae]){switch(e.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}e[ae]=!0}}onControlChange(e,t){if(!r)for(const i of re)e?.removeEventListener(i,this),t?.addEventListener(i,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}a([A({type:Boolean,reflect:!0})],ne.prototype,"visible",void 0),a([A({type:Boolean,reflect:!0})],ne.prototype,"inward",void 0);const ae=Symbol("handledByFocusRing"),se=e`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
1565
1591
  `
1566
1592
  /**
1567
1593
  * @license
@@ -1572,81 +1598,81 @@ const et=Symbol("attachableController");let it;r||(it=new MutationObserver((t=>{
1572
1598
  * @license
1573
1599
  * Copyright 2024 Google LLC
1574
1600
  * SPDX-License-Identifier: Apache-2.0
1575
- */let dt=class extends nt{};dt.styles=[st],dt=a([d("md-focus-ring")],dt);
1601
+ */let le=class extends ne{};le.styles=[se],le=a([l("md-focus-ring")],le);
1576
1602
  /**
1577
1603
  * @license
1578
1604
  * Copyright 2021 Google LLC
1579
1605
  * SPDX-License-Identifier: Apache-2.0
1580
1606
  */
1581
- const lt="cubic-bezier(0.2, 0, 0, 1)";
1607
+ const de="cubic-bezier(0.2, 0, 0, 1)";
1582
1608
  /**
1583
1609
  * @license
1584
1610
  * Copyright 2022 Google LLC
1585
1611
  * SPDX-License-Identifier: Apache-2.0
1586
- */var ct;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(ct||(ct={}));const pt=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],ht=r?null:window.matchMedia("(forced-colors: active)");class ut extends e{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=ct.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new ot(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return i`<div class="surface ${n(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==ct.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==ct.HOLDING)return this.state===ct.TOUCH_DELAY?(this.state=ct.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=ct.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=ct.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=ct.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===ct.TOUCH_DELAY&&(this.state=ct.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==ct.WAITING_FOR_CLICK?this.state===ct.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),i=Math.max(t,e),o=Math.max(.35*i,75),r=Math.floor(.2*i),n=Math.sqrt(e**2+t**2)+10;this.initialSize=r,this.rippleScale=""+(n+o)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:i}=window,{left:o,top:r}=this.getBoundingClientRect(),n=e+o,a=i+r,{pageX:s,pageY:d}=t;return{x:s-n,y:d-a}}getTranslationCoordinates(t){const{height:e,width:i}=this.getBoundingClientRect(),o={x:(i-this.initialSize)/2,y:(e-this.initialSize)/2};let r;return r=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:i/2,y:e/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:o}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:i}=this.getTranslationCoordinates(t),o=`${e.x}px, ${e.y}px`,r=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${o}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:lt,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=ct.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:i,left:o,bottom:r,right:n}=this.getBoundingClientRect();return t>=o&&t<=n&&e>=i&&e<=r}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!ht?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!r)for(const i of pt)t?.removeEventListener(i,this),e?.addEventListener(i,this)}}a([z({type:Boolean,reflect:!0})],ut.prototype,"disabled",void 0),a([T()],ut.prototype,"hovered",void 0),a([T()],ut.prototype,"pressed",void 0),a([A(".surface")],ut.prototype,"mdRoot",void 0);
1612
+ */var ce;!function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(ce||(ce={}));const pe=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],he=r?null:window.matchMedia("(forced-colors: active)");class ue extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=ce.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new oe(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return i`<div class="surface ${n(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==ce.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state!==ce.HOLDING)return this.state===ce.TOUCH_DELAY?(this.state=ce.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=ce.WAITING_FOR_CLICK}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e))return this.state=ce.WAITING_FOR_CLICK,void this.startPressAnimation(e);this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=ce.TOUCH_DELAY,await new Promise((e=>{setTimeout(e,150)})),this.state===ce.TOUCH_DELAY&&(this.state=ce.HOLDING,this.startPressAnimation(e)))}}handleClick(){this.disabled||(this.state!==ce.WAITING_FOR_CLICK?this.state===ce.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),i=Math.max(e,t),o=Math.max(.35*i,75),r=Math.floor(.2*i),n=Math.sqrt(t**2+e**2)+10;this.initialSize=r,this.rippleScale=""+(n+o)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:i}=window,{left:o,top:r}=this.getBoundingClientRect(),n=t+o,a=i+r,{pageX:s,pageY:l}=e;return{x:s-n,y:l-a}}getTranslationCoordinates(e){const{height:t,width:i}=this.getBoundingClientRect(),o={x:(i-this.initialSize)/2,y:(t-this.initialSize)/2};let r;return r=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:i/2,y:t/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:o}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:i}=this.getTranslationCoordinates(e),o=`${t.x}px, ${t.y}px`,r=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${o}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:de,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=ce.INACTIVE;const e=this.growAnimation;let t=1/0;"number"==typeof e?.currentTime?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to("ms").value),t>=225?this.pressed=!1:(await new Promise((e=>{setTimeout(e,225-t)})),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);const t=1===e.buttons;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:i,left:o,bottom:r,right:n}=this.getBoundingClientRect();return e>=o&&e<=n&&t>=i&&t<=r}isTouch({pointerType:e}){return"touch"===e}async handleEvent(e){if(!he?.matches)switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e)}}onControlChange(e,t){if(!r)for(const i of pe)e?.removeEventListener(i,this),t?.addEventListener(i,this)}}a([A({type:Boolean,reflect:!0})],ue.prototype,"disabled",void 0),a([T()],ue.prototype,"hovered",void 0),a([T()],ue.prototype,"pressed",void 0),a([z(".surface")],ue.prototype,"mdRoot",void 0);
1587
1613
  /**
1588
1614
  * @license
1589
1615
  * Copyright 2024 Google LLC
1590
1616
  * SPDX-License-Identifier: Apache-2.0
1591
1617
  */
1592
- const bt=t`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
1618
+ const be=e`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
1593
1619
  `
1594
1620
  /**
1595
1621
  * @license
1596
1622
  * Copyright 2022 Google LLC
1597
1623
  * SPDX-License-Identifier: Apache-2.0
1598
- */;let gt=class extends ut{};
1624
+ */;let ge=class extends ue{};
1599
1625
  /**
1600
1626
  * @license
1601
1627
  * Copyright 2021 Google LLC
1602
1628
  * SPDX-License-Identifier: Apache-2.0
1603
1629
  */
1604
- function mt(t){return t.currentTarget===t.target&&(t.composedPath()[0]===t.target&&(!t.target.disabled&&!function(t){const e=yt;e&&(t.preventDefault(),t.stopImmediatePropagation());return async function(){yt=!0,await null,yt=!1}
1630
+ function me(e){return e.currentTarget===e.target&&(e.composedPath()[0]===e.target&&(!e.target.disabled&&!function(e){const t=ye;t&&(e.preventDefault(),e.stopImmediatePropagation());return async function(){ye=!0,await null,ye=!1}
1605
1631
  /**
1606
1632
  * @license
1607
1633
  * Copyright 2023 Google LLC
1608
1634
  * SPDX-License-Identifier: Apache-2.0
1609
- */(),e}(t)))}gt.styles=[bt],gt=a([d("md-ripple")],gt);let yt=!1;const ft=Symbol("internals"),vt=Symbol("privateInternals");
1635
+ */(),t}(e)))}ge.styles=[be],ge=a([l("md-ripple")],ge);let ye=!1;const fe=Symbol("internals"),ve=Symbol("privateInternals");
1610
1636
  /**
1611
1637
  * @license
1612
1638
  * Copyright 2023 Google LLC
1613
1639
  * SPDX-License-Identifier: Apache-2.0
1614
1640
  */
1615
- const xt=Symbol("createValidator"),wt=Symbol("getValidityAnchor"),kt=Symbol("privateValidator"),$t=Symbol("privateSyncValidity"),St=Symbol("privateCustomValidationMessage");
1641
+ const xe=Symbol("createValidator"),we=Symbol("getValidityAnchor"),ke=Symbol("privateValidator"),$e=Symbol("privateSyncValidity"),Se=Symbol("privateCustomValidationMessage");
1616
1642
  /**
1617
1643
  * @license
1618
1644
  * Copyright 2023 Google LLC
1619
1645
  * SPDX-License-Identifier: Apache-2.0
1620
1646
  */
1621
- const Ct=Symbol("isFocusable"),Et=Symbol("privateIsFocusable"),Ot=Symbol("externalTabIndex"),Dt=Symbol("isUpdatingTabIndex"),Mt=Symbol("updateTabIndex");
1647
+ const Ce=Symbol("isFocusable"),Ee=Symbol("privateIsFocusable"),Oe=Symbol("externalTabIndex"),De=Symbol("isUpdatingTabIndex"),Me=Symbol("updateTabIndex");
1622
1648
  /**
1623
1649
  * @license
1624
1650
  * Copyright 2023 Google LLC
1625
1651
  * SPDX-License-Identifier: Apache-2.0
1626
1652
  */
1627
- const Pt=Symbol("getFormValue"),jt=Symbol("getFormState");
1653
+ const Fe=Symbol("getFormValue"),je=Symbol("getFormState");
1628
1654
  /**
1629
1655
  * @license
1630
1656
  * Copyright 2023 Google LLC
1631
1657
  * SPDX-License-Identifier: Apache-2.0
1632
1658
  */
1633
- class Ft{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const t=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,t)))return this.currentValidity;const{validity:e,validationMessage:i}=this.computeValidity(t);return this.prevState=this.copy(t),this.currentValidity={validationMessage:i,validity:{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing}},this.currentValidity}}
1659
+ class Pe{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const e=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,e)))return this.currentValidity;const{validity:t,validationMessage:i}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:i,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}}
1634
1660
  /**
1635
1661
  * @license
1636
1662
  * Copyright 2023 Google LLC
1637
1663
  * SPDX-License-Identifier: Apache-2.0
1638
- */class zt extends Ft{computeValidity(t){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let e=!1,i=!1;for(const{checked:o,required:r}of t)r&&(e=!0),o&&(i=!0);return this.radioElement.checked=i,this.radioElement.required=e,{validity:{valueMissing:e&&!i},validationMessage:this.radioElement.validationMessage}}equals(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const o=t[i],r=e[i];if(o.checked!==r.checked||o.required!==r.required)return!1}return!0}copy(t){return t.map((({checked:t,required:e})=>({checked:t,required:e})))}}
1664
+ */class Ae extends Pe{computeValidity(e){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let t=!1,i=!1;for(const{checked:o,required:r}of e)r&&(t=!0),o&&(i=!0);return this.radioElement.checked=i,this.radioElement.required=t,{validity:{valueMissing:t&&!i},validationMessage:this.radioElement.validationMessage}}equals(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const o=e[i],r=t[i];if(o.checked!==r.checked||o.required!==r.required)return!1}return!0}copy(e){return e.map((({checked:e,required:t})=>({checked:e,required:t})))}}
1639
1665
  /**
1640
1666
  * @license
1641
1667
  * Copyright 2022 Google LLC
1642
1668
  * SPDX-License-Identifier: Apache-2.0
1643
- */class Tt{get controls(){const t=this.host.getAttribute("name");return t&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll(`[name="${t}"]`)):[this.host]}constructor(t){this.host=t,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=t=>{const e="ArrowDown"===t.key,i="ArrowUp"===t.key,o="ArrowLeft"===t.key,r="ArrowRight"===t.key;if(!(o||r||e||i))return;const n=this.controls;if(!n.length)return;t.preventDefault();const a="rtl"===getComputedStyle(this.host).direction?o||e:r||e,s=n.indexOf(this.host);let d=a?s+1:s-1;for(;d!==s;){d>=n.length?d=0:d<0&&(d=n.length-1);const t=n[d];if(!t.hasAttribute("disabled")){for(const e of n)e!==t&&(e.checked=!1,e.tabIndex=-1,e.blur());t.checked=!0,t.tabIndex=0,t.focus(),t.dispatchEvent(new Event("change",{bubbles:!0}));break}a?d++:d--}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const t of this.controls)t!==this.host&&(t.checked=!1)}updateTabIndices(){const t=this.controls,e=t.find((t=>t.checked));if(e||this.focused){const i=e||this.host;i.tabIndex=0;for(const e of t)e!==i&&(e.tabIndex=-1)}else for(const e of t)e.tabIndex=0}}
1669
+ */class Te{get controls(){const e=this.host.getAttribute("name");return e&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll(`[name="${e}"]`)):[this.host]}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=e=>{const t="ArrowDown"===e.key,i="ArrowUp"===e.key,o="ArrowLeft"===e.key,r="ArrowRight"===e.key;if(!(o||r||t||i))return;const n=this.controls;if(!n.length)return;e.preventDefault();const a="rtl"===getComputedStyle(this.host).direction?o||t:r||t,s=n.indexOf(this.host);let l=a?s+1:s-1;for(;l!==s;){l>=n.length?l=0:l<0&&(l=n.length-1);const e=n[l];if(!e.hasAttribute("disabled")){for(const t of n)t!==e&&(t.checked=!1,t.tabIndex=-1,t.blur());e.checked=!0,e.tabIndex=0,e.focus(),e.dispatchEvent(new Event("change",{bubbles:!0}));break}a?l++:l--}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const e of this.controls)e!==this.host&&(e.checked=!1)}updateTabIndices(){const e=this.controls,t=e.find((e=>e.checked));if(t||this.focused){const i=t||this.host;i.tabIndex=0;for(const t of e)t!==i&&(t.tabIndex=-1)}else for(const t of e)t.tabIndex=0}}
1644
1670
  /**
1645
1671
  * @license
1646
1672
  * Copyright 2018 Google LLC
1647
1673
  * SPDX-License-Identifier: Apache-2.0
1648
- */var At;const Lt=Symbol("checked");let It=0;const _t=function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[$t](),this[ft].validity}get validationMessage(){return this[$t](),this[ft].validationMessage}get willValidate(){return this[$t](),this[ft].willValidate}checkValidity(){return this[$t](),this[ft].checkValidity()}reportValidity(){return this[$t](),this[ft].reportValidity()}setCustomValidity(t){this[St]=t,this[$t]()}requestUpdate(t,e,i){super.requestUpdate(t,e,i),this[$t]()}firstUpdated(t){super.firstUpdated(t),this[$t]()}[(e=St,$t)](){if(r)return;this[kt]||(this[kt]=this[xt]());const{validity:t,validationMessage:e}=this[kt].getValidity(),i=!!this[St],o=this[St]||e;this[ft].setValidity({...t,customError:i},o,this[wt]()??void 0)}[xt](){throw new Error("Implement [createValidator]")}[wt](){throw new Error("Implement [getValidityAnchor]")}}return i}(function(t){class e extends t{get form(){return this[ft].form}get labels(){return this[ft].labels}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,e,i){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,e,i);else{const i="disabled"===t?null!==e:e;this.requestUpdate(t,i)}}requestUpdate(t,e,i){super.requestUpdate(t,e,i),this[ft].setFormValue(this[Pt](),this[jt]())}[Pt](){throw new Error("Implement [getFormValue]")}[jt](){return this[Pt]()}formDisabledCallback(t){this.disabled=t}}return e.formAssociated=!0,a([z({noAccessor:!0})],e.prototype,"name",null),a([z({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}((Bt=function(t){var e,i,o;class r extends t{constructor(){super(...arguments),this[e]=!0,this[i]=null,this[o]=!1}get[Ct](){return this[Et]}set[Ct](t){this[Ct]!==t&&(this[Et]=t,this[Mt]())}connectedCallback(){super.connectedCallback(),this[Mt]()}attributeChangedCallback(t,e,i){if("tabindex"===t){if(this.requestUpdate("tabIndex",Number(e??-1)),!this[Dt])return this.hasAttribute("tabindex")?void(this[Ot]=this.tabIndex):(this[Ot]=null,void this[Mt]())}else super.attributeChangedCallback(t,e,i)}[(e=Et,i=Ot,o=Dt,Mt)](){const t=this[Ct]?0:-1,e=this[Ot]??t;this[Dt]=!0,this.tabIndex=e,this[Dt]=!1}}return a([z({noAccessor:!0})],r.prototype,"tabIndex",void 0),r}(e),class extends Bt{get[ft](){return this[vt]||(this[vt]=this.attachInternals()),this[vt]}})));var Bt;class Nt extends _t{get checked(){return this[Lt]}set checked(t){const e=this.checked;e!==t&&(this[Lt]=t,this.requestUpdate("checked",e),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout"+ ++It,this[At]=!1,this.required=!1,this.value="on",this.selectionController=new Tt(this),this.addController(this.selectionController),r||(this[ft].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this)))}render(){const t={checked:this.checked};return i`
1649
- <div class="container ${n(t)}" aria-hidden="true">
1674
+ */var ze;const Ie=Symbol("checked");let Le=0;const _e=function(e){var t;class i extends e{constructor(){super(...arguments),this[t]=""}get validity(){return this[$e](),this[fe].validity}get validationMessage(){return this[$e](),this[fe].validationMessage}get willValidate(){return this[$e](),this[fe].willValidate}checkValidity(){return this[$e](),this[fe].checkValidity()}reportValidity(){return this[$e](),this[fe].reportValidity()}setCustomValidity(e){this[Se]=e,this[$e]()}requestUpdate(e,t,i){super.requestUpdate(e,t,i),this[$e]()}firstUpdated(e){super.firstUpdated(e),this[$e]()}[(t=Se,$e)](){if(r)return;this[ke]||(this[ke]=this[xe]());const{validity:e,validationMessage:t}=this[ke].getValidity(),i=!!this[Se],o=this[Se]||t;this[fe].setValidity({...e,customError:i},o,this[we]()??void 0)}[xe](){throw new Error("Implement [createValidator]")}[we](){throw new Error("Implement [getValidityAnchor]")}}return i}(function(e){class t extends e{get form(){return this[fe].form}get labels(){return this[fe].labels}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get disabled(){return this.hasAttribute("disabled")}set disabled(e){this.toggleAttribute("disabled",e)}attributeChangedCallback(e,t,i){if("name"!==e&&"disabled"!==e)super.attributeChangedCallback(e,t,i);else{const i="disabled"===e?null!==t:t;this.requestUpdate(e,i)}}requestUpdate(e,t,i){super.requestUpdate(e,t,i),this[fe].setFormValue(this[Fe](),this[je]())}[Fe](){throw new Error("Implement [getFormValue]")}[je](){return this[Fe]()}formDisabledCallback(e){this.disabled=e}}return t.formAssociated=!0,a([A({noAccessor:!0})],t.prototype,"name",null),a([A({type:Boolean,noAccessor:!0})],t.prototype,"disabled",null),t}((Be=function(e){var t,i,o;class r extends e{constructor(){super(...arguments),this[t]=!0,this[i]=null,this[o]=!1}get[Ce](){return this[Ee]}set[Ce](e){this[Ce]!==e&&(this[Ee]=e,this[Me]())}connectedCallback(){super.connectedCallback(),this[Me]()}attributeChangedCallback(e,t,i){if("tabindex"===e){if(this.requestUpdate("tabIndex",Number(t??-1)),!this[De])return this.hasAttribute("tabindex")?void(this[Oe]=this.tabIndex):(this[Oe]=null,void this[Me]())}else super.attributeChangedCallback(e,t,i)}[(t=Ee,i=Oe,o=De,Me)](){const e=this[Ce]?0:-1,t=this[Oe]??e;this[De]=!0,this.tabIndex=t,this[De]=!1}}return a([A({noAccessor:!0})],r.prototype,"tabIndex",void 0),r}(t),class extends Be{get[fe](){return this[ve]||(this[ve]=this.attachInternals()),this[ve]}})));var Be;class Ne extends _e{get checked(){return this[Ie]}set checked(e){const t=this.checked;t!==e&&(this[Ie]=e,this.requestUpdate("checked",t),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout"+ ++Le,this[ze]=!1,this.required=!1,this.value="on",this.selectionController=new Te(this),this.addController(this.selectionController),r||(this[fe].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this)))}render(){const e={checked:this.checked};return i`
1675
+ <div class="container ${n(e)}" aria-hidden="true">
1650
1676
  <md-ripple
1651
1677
  part="ripple"
1652
1678
  .control=${this}
@@ -1668,19 +1694,19 @@ class Ft{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{}
1668
1694
 
1669
1695
  <div class="touch-target"></div>
1670
1696
  </div>
1671
- `}updated(){this[ft].ariaChecked=String(this.checked)}async handleClick(t){this.disabled||(await 0,t.defaultPrevented||(mt(t)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(t){await 0," "!==t.key||t.defaultPrevented||this.click()}[(At=Lt,Pt)](){return this.checked?this.value:null}[jt](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(t){this.checked="true"===t}[xt](){return new zt((()=>this.selectionController?this.selectionController.controls:[this]))}[wt](){return this.container}}a([z({type:Boolean})],Nt.prototype,"checked",null),a([z({type:Boolean})],Nt.prototype,"required",void 0),a([z()],Nt.prototype,"value",void 0),a([A(".container")],Nt.prototype,"container",void 0);
1697
+ `}updated(){this[fe].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,e.defaultPrevented||(me(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0," "!==e.key||e.defaultPrevented||this.click()}[(ze=Ie,Fe)](){return this.checked?this.value:null}[je](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked="true"===e}[xe](){return new Ae((()=>this.selectionController?this.selectionController.controls:[this]))}[we](){return this.container}}a([A({type:Boolean})],Ne.prototype,"checked",null),a([A({type:Boolean})],Ne.prototype,"required",void 0),a([A()],Ne.prototype,"value",void 0),a([z(".container")],Ne.prototype,"container",void 0);
1672
1698
  /**
1673
1699
  * @license
1674
1700
  * Copyright 2024 Google LLC
1675
1701
  * SPDX-License-Identifier: Apache-2.0
1676
1702
  */
1677
- const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
1703
+ const Re=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
1678
1704
  `
1679
1705
  /**
1680
1706
  * @license
1681
1707
  * Copyright 2022 Google LLC
1682
1708
  * SPDX-License-Identifier: Apache-2.0
1683
- */;let qt=class extends Nt{};qt.styles=[Rt],qt=a([d("md-radio")],qt);let Vt=class extends e{constructor(){super(...arguments),this.name="radio-group",this.checked=!1,this.disabled=!1,this.error=!1}static{this.styles=t`
1709
+ */;let qe=class extends Ne{};qe.styles=[Re],qe=a([l("md-radio")],qe);let Ve=class extends t{constructor(){super(...arguments),this.name="radio-group",this.checked=!1,this.disabled=!1,this.error=!1}static{this.styles=e`
1684
1710
  :host {
1685
1711
  font-family: "Graphik", sans-serif;
1686
1712
  }
@@ -1729,23 +1755,24 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
1729
1755
  background: var(--secondary-color-20);
1730
1756
  border: 1px solid var(--secondary-color-20);
1731
1757
  }
1732
- `}render(){const t=[this.checked?"checked":"",this.error?"error":"",this.disabled?"disabled":""].join(" ");return i`
1758
+ `}render(){const e=[this.checked?"checked":"",this.error?"error":"",this.disabled?"disabled":""].join(" ");return i`
1733
1759
  <label class="radio-container">
1734
1760
  <md-radio
1735
1761
  name=${this.name}
1736
- class=${t}
1762
+ class=${e}
1737
1763
  ?checked=${this.checked}
1738
1764
  ?disabled=${this.disabled}
1739
1765
  ></md-radio>
1740
1766
  <span>${this.checked?"On":"Off"} ${this.error?"Error":""}</span>
1741
1767
  </label>
1742
- `}};a([z({type:String}),s("design:type",Object)],Vt.prototype,"name",void 0),a([z({type:Boolean}),s("design:type",Object)],Vt.prototype,"checked",void 0),a([z({type:Boolean}),s("design:type",Object)],Vt.prototype,"disabled",void 0),a([z({type:Boolean}),s("design:type",Object)],Vt.prototype,"error",void 0),Vt=a([d("custom-radio")],Vt);let Yt=class extends e{constructor(){super(...arguments),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.value="",this.label="",this.labelColor="",this.filterable=!0,this.error=!1,this.required=!1,this.optional=!1,this.isMobile=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.highlightedIndex=-1,this._isCleared=!1,this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=t`
1768
+ `}};a([A({type:String}),s("design:type",Object)],Ve.prototype,"name",void 0),a([A({type:Boolean}),s("design:type",Object)],Ve.prototype,"checked",void 0),a([A({type:Boolean}),s("design:type",Object)],Ve.prototype,"disabled",void 0),a([A({type:Boolean}),s("design:type",Object)],Ve.prototype,"error",void 0),Ve=a([l("custom-radio")],Ve);let We=class extends t{constructor(){super(...arguments),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.value="",this.label="",this.labelColor="",this.filterable=!0,this.error=!1,this.errorMessage=null,this.required=!1,this.optional=!1,this.helper=null,this.helperAlign="left",this.isMobile=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.highlightedIndex=-1,this._isCleared=!1,this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=e`
1743
1769
  :host {
1744
1770
  display: block;
1745
1771
  font-family: 'Graphik', sans-serif;
1746
1772
  width: 100%;
1747
1773
  }
1748
1774
 
1775
+ /* --- Error Styles --- */
1749
1776
  :host([error]) .input-wrapper {
1750
1777
  border: 1px solid var(--ui-negative, red) !important;
1751
1778
  }
@@ -1767,6 +1794,13 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
1767
1794
  border-radius: 0 0 4px 4px;
1768
1795
  }
1769
1796
 
1797
+ .error-message {
1798
+ ${_}
1799
+ color: var(--ui-negative, #E00F0F);
1800
+ margin-top: 4px;
1801
+ }
1802
+
1803
+ /* --- General & Helper Styles --- */
1770
1804
  .select-container {
1771
1805
  display: flex;
1772
1806
  flex-direction: column;
@@ -1790,6 +1824,21 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
1790
1824
  color: var(--label-color, var(--secondary-color-80));
1791
1825
  }
1792
1826
 
1827
+ .helper-description {
1828
+ ${_}
1829
+ color: var(--secondary-color-40);
1830
+ margin: 0;
1831
+ }
1832
+
1833
+ .required {
1834
+ color: var(--ui-negative);
1835
+ }
1836
+
1837
+ .optional {
1838
+ color: var(--secondary-color-60);
1839
+ ${I}
1840
+ }
1841
+
1793
1842
  .input-container {
1794
1843
  position: relative;
1795
1844
  width: 100%;
@@ -2032,15 +2081,6 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2032
2081
  display: none;
2033
2082
  }
2034
2083
 
2035
- .required {
2036
- color: var(--ui-negative);
2037
- }
2038
-
2039
- .optional {
2040
- color: var(--secondary-color-60);
2041
- ${L}
2042
- }
2043
-
2044
2084
  /* Estilos por defecto del icon para mobile */
2045
2085
  .icon-selected {
2046
2086
  width: 24px;
@@ -2059,8 +2099,8 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2059
2099
  }
2060
2100
 
2061
2101
  /*
2062
- * Media query para aplicar estilos de escritorio (a partir de 941px)
2063
- */
2102
+ * Media query para aplicar estilos de escritorio (a partir de 941px)
2103
+ */
2064
2104
  @media (min-width: 941px) {
2065
2105
  .icon-selected {
2066
2106
  /* Estilos de escritorio para el icono, se anulan los de mobile */
@@ -2087,7 +2127,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2087
2127
  margin-right: 8px;
2088
2128
  flex-shrink: 0;
2089
2129
  }
2090
- `}update(t){if(t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")||t.has("options")||t.has("value")){if(this._isCleared)return void super.update(t);const e=this.value||this.defaultValue,i=this.options.find((t=>"string"==typeof t?t===e:t.value===e));i?(this.filterValue="string"==typeof i?i:i.label,this.value="string"==typeof i?i:i.value):(this.filterValue="",this.value="")}super.update(t)}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.filterValue=i,this.value="",this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.mobileFilterValue=i,this.value="",this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(i))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0}))}),300)}handleSelect(t){this._isCleared=!1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.filterable&&this.filterValue?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate())}handleClickOutside(t){const e=t.target;e instanceof Node&&(this.contains(e)||(this.isOpen=!1,this.requestUpdate()))}handleKeyDown(t){const{key:e}=t;if(!this.isOpen&&("Enter"===e||" "===e))return t.preventDefault(),void(this.isOpen=!0);if(this.isOpen)if("ArrowDown"===e)t.preventDefault(),this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredOptions.length-1),this.requestUpdate();else if("ArrowUp"===e)t.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,0),this.requestUpdate();else if("Enter"===e){t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];e&&this.handleSelect(e)}else"Escape"===e&&(t.preventDefault(),this.isOpen=!1)}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?i`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:o}renderOptionIcon(t){return t&&"string"==typeof t?i`<span class="icon-list" .innerHTML="${t}"></span>`:o}render(){const t=this.isMobile;return i`
2130
+ `}update(e){if(e.has("options")&&(this.filteredOptions=[...this.options]),e.has("defaultValue")||e.has("options")||e.has("value")){if(this._isCleared)return void super.update(e);const t=this.value||this.defaultValue,i=this.options.find((e=>"string"==typeof e?e===t:e.value===t));i?(this.filterValue="string"==typeof i?i:i.label,this.value="string"==typeof i?i:i.value):(this.filterValue="",this.value="")}super.update(e)}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(e){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(e){if(!this.filterable)return;this._isCleared=!1;const t=e.target.value,i=this.maxLength?t.slice(0,this.maxLength).toLowerCase():t.toLowerCase();this.filterValue=i,this.value="",this.filteredOptions=this.options.filter((e=>("string"==typeof e?e:e.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(e){this._isCleared=!1;const t=e.target.value,i=this.maxLength?t.slice(0,this.maxLength).toLowerCase():t.toLowerCase();this.mobileFilterValue=i,this.value="",this.filteredOptions=this.options.filter((e=>("string"==typeof e?e:e.label).toLowerCase().includes(i))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0}))}),300)}handleSelect(e){this._isCleared=!1;const t="string"==typeof e?e:e.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0})),this.filterValue="string"==typeof e?e:e.label,this.value=t,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.filterable&&this.filterValue?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate())}handleClickOutside(e){const t=e.target;t instanceof Node&&(this.contains(t)||(this.isOpen=!1,this.requestUpdate()))}handleKeyDown(e){const{key:t}=e;if(!this.isOpen&&("Enter"===t||" "===t))return e.preventDefault(),void(this.isOpen=!0);if(this.isOpen)if("ArrowDown"===t)e.preventDefault(),this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredOptions.length-1),this.requestUpdate();else if("ArrowUp"===t)e.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,0),this.requestUpdate();else if("Enter"===t){e.preventDefault();const t=this.filteredOptions[this.highlightedIndex];t&&this.handleSelect(t)}else"Escape"===t&&(e.preventDefault(),this.isOpen=!1)}renderSelectedIcon(){const e=this.options.find((e=>"string"==typeof e?e===this.value:e.value===this.value));return e&&"string"!=typeof e&&e.icon&&"string"==typeof e.icon?i`<span class="icon-selected" .innerHTML="${e.icon}"></span>`:o}renderOptionIcon(e){return e&&"string"==typeof e?i`<span class="icon-list" .innerHTML="${e}"></span>`:o}render(){const e=this.isMobile,t=`text-align: ${this.helperAlign??"left"};`;return i`
2091
2131
  <div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
2092
2132
  ${this.label?i`
2093
2133
  <div class="label-container">
@@ -2098,10 +2138,9 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2098
2138
  </div>
2099
2139
  `:""}
2100
2140
 
2101
- <div class="input-container ${this.isOpen?"focused":""} ${this.isOpen&&this.filteredOptions.length>0?"open":""} ${t?"mobile":""}">
2102
-
2141
+ <div class="input-container ${this.isOpen?"focused":""} ${this.isOpen&&this.filteredOptions.length>0?"open":""} ${e?"mobile":""}">
2103
2142
  <div class="input-wrapper">
2104
- ${t?i`
2143
+ ${e?i`
2105
2144
  <div
2106
2145
  class="filter-fake"
2107
2146
  @click="${this.handleInputClick}"
@@ -2138,14 +2177,14 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2138
2177
  </button>
2139
2178
  </div>
2140
2179
 
2141
- ${t&&this.isOpen?i`
2180
+ ${e&&this.isOpen?i`
2142
2181
  <div class="mobile-backdrop" @click="${()=>{this.isOpen=!1}}">
2143
- <div class="mobile-modal" @click="${t=>t.stopPropagation()}">
2182
+ <div class="mobile-modal" @click="${e=>e.stopPropagation()}">
2144
2183
  <div class="modal-input-container">
2145
2184
  <input
2146
2185
  class="filter-input"
2147
2186
  .value="${this.mobileFilterValue||""}"
2148
- @input=${t=>this.handleMobileInput(t)}
2187
+ @input=${e=>this.handleMobileInput(e)}
2149
2188
  placeholder="${this.placeholder}" maxlength="${this.maxLength??""}"
2150
2189
  />
2151
2190
  <button class="modal-close-button" @click="${()=>{this.isOpen=!1}}">
@@ -2153,12 +2192,12 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2153
2192
  </button>
2154
2193
  </div>
2155
2194
  <ul class="options-list">
2156
- ${this.filteredOptions.map(((t,e)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return i`
2195
+ ${this.filteredOptions.map(((e,t)=>{const o="string"==typeof e?e:e.label,r="object"==typeof e&&e.disabled,n="object"==typeof e?e.icon:void 0;return i`
2157
2196
  <li
2158
- class="${r?"disabled":""} ${e===this.highlightedIndex?"highlighted":""}"
2197
+ class="${r?"disabled":""} ${t===this.highlightedIndex?"highlighted":""}"
2159
2198
  role="option"
2160
- aria-selected="${e===this.highlightedIndex}"
2161
- @click="${()=>{r||this.handleSelect(t)}}"
2199
+ aria-selected="${t===this.highlightedIndex}"
2200
+ @click="${()=>{r||this.handleSelect(e)}}"
2162
2201
  >
2163
2202
  ${this.renderOptionIcon(n)}
2164
2203
  ${o}
@@ -2167,14 +2206,14 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2167
2206
  </ul>
2168
2207
  </div>
2169
2208
  </div>
2170
- `:!t&&this.isOpen&&this.filteredOptions.length>0?i`
2209
+ `:!e&&this.isOpen&&this.filteredOptions.length>0?i`
2171
2210
  <ul class="options-list">
2172
- ${this.filteredOptions.map(((t,e)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return i`
2211
+ ${this.filteredOptions.map(((e,t)=>{const o="string"==typeof e?e:e.label,r="object"==typeof e&&e.disabled,n="object"==typeof e?e.icon:void 0;return i`
2173
2212
  <li
2174
- class="${r?"disabled":""} ${e===this.highlightedIndex?"highlighted":""}"
2213
+ class="${r?"disabled":""} ${t===this.highlightedIndex?"highlighted":""}"
2175
2214
  role="option"
2176
- aria-selected="${e===this.highlightedIndex}"
2177
- @click="${()=>{r||this.handleSelect(t)}}"
2215
+ aria-selected="${t===this.highlightedIndex}"
2216
+ @click="${()=>{r||this.handleSelect(e)}}"
2178
2217
  >
2179
2218
  ${this.renderOptionIcon(n)}
2180
2219
  ${o}
@@ -2183,8 +2222,19 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2183
2222
  </ul>
2184
2223
  `:""}
2185
2224
  </div>
2225
+
2226
+ ${this.errorMessage?i`<div class="error-message">${this.errorMessage}</div>`:o}
2227
+
2228
+ ${this.helper?i`
2229
+ <p
2230
+ class="helper-description"
2231
+ style=${t}
2232
+ >
2233
+ ${this.helper}
2234
+ </p>
2235
+ `:o}
2186
2236
  </div>
2187
- `}};a([z({type:Array}),s("design:type",Array)],Yt.prototype,"options",void 0),a([z({type:String}),s("design:type",Object)],Yt.prototype,"placeholder",void 0),a([z({type:String,attribute:"default-value"}),s("design:type",Object)],Yt.prototype,"defaultValue",void 0),a([z({type:Boolean}),s("design:type",Object)],Yt.prototype,"disabled",void 0),a([z({type:Object}),s("design:type",Object)],Yt.prototype,"value",void 0),a([z({type:String}),s("design:type",Object)],Yt.prototype,"label",void 0),a([z({type:String}),s("design:type",Object)],Yt.prototype,"labelColor",void 0),a([z({type:Boolean}),s("design:type",Object)],Yt.prototype,"filterable",void 0),a([z({type:Number}),s("design:type",Number)],Yt.prototype,"maxLength",void 0),a([z({type:Boolean,reflect:!0}),s("design:type",Boolean)],Yt.prototype,"error",void 0),a([z({type:Boolean}),s("design:type",Object)],Yt.prototype,"required",void 0),a([z({type:Boolean}),s("design:type",Object)],Yt.prototype,"optional",void 0),a([T(),s("design:type",Boolean)],Yt.prototype,"isMobile",void 0),a([T(),s("design:type",Array)],Yt.prototype,"filteredOptions",void 0),a([T(),s("design:type",Object)],Yt.prototype,"filterValue",void 0),a([T(),s("design:type",Object)],Yt.prototype,"isOpen",void 0),a([T(),s("design:type",Object)],Yt.prototype,"mobileFilterValue",void 0),a([T(),s("design:type",Object)],Yt.prototype,"highlightedIndex",void 0),a([T(),s("design:type",Boolean)],Yt.prototype,"_isCleared",void 0),Yt=a([d("filterable-select")],Yt);const Wt=new CSSStyleSheet;Wt.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 Ut extends e{static{this.styles=[Wt,t`
2237
+ `}};a([A({type:Array}),s("design:type",Array)],We.prototype,"options",void 0),a([A({type:String}),s("design:type",Object)],We.prototype,"placeholder",void 0),a([A({type:String,attribute:"default-value"}),s("design:type",Object)],We.prototype,"defaultValue",void 0),a([A({type:Boolean}),s("design:type",Object)],We.prototype,"disabled",void 0),a([A({type:Object}),s("design:type",Object)],We.prototype,"value",void 0),a([A({type:String}),s("design:type",Object)],We.prototype,"label",void 0),a([A({type:String}),s("design:type",Object)],We.prototype,"labelColor",void 0),a([A({type:Boolean}),s("design:type",Object)],We.prototype,"filterable",void 0),a([A({type:Number}),s("design:type",Number)],We.prototype,"maxLength",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Boolean)],We.prototype,"error",void 0),a([A({type:String}),s("design:type",Object)],We.prototype,"errorMessage",void 0),a([A({type:Boolean}),s("design:type",Object)],We.prototype,"required",void 0),a([A({type:Boolean}),s("design:type",Object)],We.prototype,"optional",void 0),a([A({type:String}),s("design:type",Object)],We.prototype,"helper",void 0),a([A({type:String}),s("design:type",String)],We.prototype,"helperAlign",void 0),a([T(),s("design:type",Boolean)],We.prototype,"isMobile",void 0),a([T(),s("design:type",Array)],We.prototype,"filteredOptions",void 0),a([T(),s("design:type",Object)],We.prototype,"filterValue",void 0),a([T(),s("design:type",Object)],We.prototype,"isOpen",void 0),a([T(),s("design:type",Object)],We.prototype,"mobileFilterValue",void 0),a([T(),s("design:type",Object)],We.prototype,"highlightedIndex",void 0),a([T(),s("design:type",Boolean)],We.prototype,"_isCleared",void 0),We=a([l("filterable-select")],We);const Ye=new CSSStyleSheet;Ye.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 Ue extends t{static{this.styles=[Ye,e`
2188
2238
  :host {
2189
2239
  display: flex;
2190
2240
  position: fixed;
@@ -2254,7 +2304,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2254
2304
  }
2255
2305
 
2256
2306
  .container {
2257
- ${I};
2307
+ ${L};
2258
2308
  display: flex;
2259
2309
  align-items: center;
2260
2310
  box-sizing: border-box;
@@ -2311,16 +2361,16 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2311
2361
  .informative {
2312
2362
  background-color: var(--ui-informative);
2313
2363
  }
2314
- `]}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean},position:{type:String,reflect:!0}}}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center",this.isMobile=!1,this.updateResponsiveStyles=this.updateResponsiveStyles.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.updateResponsiveStyles),this.updateResponsiveStyles()}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveStyles),super.disconnectedCallback()}updateResponsiveStyles(){const t=window.innerWidth<=940;this.classList.toggle("mobile",t)}render(){const t="error"===this.type||"warning"===this.type?"alert":"status";return i`
2364
+ `]}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean},position:{type:String,reflect:!0}}}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center",this.isMobile=!1,this.updateResponsiveStyles=this.updateResponsiveStyles.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.updateResponsiveStyles),this.updateResponsiveStyles()}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveStyles),super.disconnectedCallback()}updateResponsiveStyles(){const e=window.innerWidth<=940;this.classList.toggle("mobile",e)}render(){const e="error"===this.type||"warning"===this.type?"alert":"status";return i`
2315
2365
  <div
2316
2366
  class="container ${this.open?"":"hidden"} ${this.type}"
2317
- role="${t}"
2367
+ role="${e}"
2318
2368
  aria-live="polite"
2319
2369
  >
2320
2370
  <randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
2321
2371
  <span class="message">${this.message}</span>
2322
2372
  </div>
2323
- `}}customElements.define("randstad-snackbar",Ut);let Gt=class extends e{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=t`
2373
+ `}}customElements.define("randstad-snackbar",Ue);let Ge=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=e`
2324
2374
  .stepper {
2325
2375
  display: flex;
2326
2376
  gap: 20px;
@@ -2409,18 +2459,18 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2409
2459
  }
2410
2460
  `}render(){return i`
2411
2461
  <div class="stepper">
2412
- ${Array.from({length:this.totalSteps},((t,e)=>i`
2462
+ ${Array.from({length:this.totalSteps},((e,t)=>i`
2413
2463
  <div
2414
- class="step ${e<this.currentStep?"completed":e===this.currentStep?"active":""}"
2464
+ class="step ${t<this.currentStep?"completed":t===this.currentStep?"active":""}"
2415
2465
  >
2416
- ${e<this.currentStep?i`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:e===this.currentStep?i`
2466
+ ${t<this.currentStep?i`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:t===this.currentStep?i`
2417
2467
  <span class="pulse-circle"></span>
2418
2468
  <span class="inner-circle"></span>
2419
2469
  `:i`<span class="inner-circle"></span>`}
2420
2470
  </div>
2421
2471
  `))}
2422
2472
  </div>
2423
- `}};a([z({type:Number}),s("design:type",Object)],Gt.prototype,"totalSteps",void 0),a([z({type:Number}),s("design:type",Object)],Gt.prototype,"currentStep",void 0),Gt=a([d("custom-stepper")],Gt);let Ht=class extends e{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=t`
2473
+ `}};a([A({type:Number}),s("design:type",Object)],Ge.prototype,"totalSteps",void 0),a([A({type:Number}),s("design:type",Object)],Ge.prototype,"currentStep",void 0),Ge=a([l("custom-stepper")],Ge);let He=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 e=this.renderRoot.querySelector(".tab-wrapper");if(!e)return;const{scrollLeft:t,scrollWidth:i,clientWidth:o}=e;this.showPrev=t>0,this.showNext=t+o<i-1}}static{this.styles=e`
2424
2474
  :host {
2425
2475
  display: block;
2426
2476
  border-bottom: 1px solid #E7E8EC;
@@ -2535,7 +2585,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2535
2585
  padding: 16px;
2536
2586
  }
2537
2587
  }
2538
- `}firstUpdated(){this.handleScroll()}updated(t){t.has("selected")&&(this.internalSelected=this.selected)}selectTab(t){this.internalSelected=t;const e=this.tabs.find((e=>e.value===t));e&&this.dispatchEvent(new CustomEvent("tab-change",{detail:e,bubbles:!0,composed:!0}))}scrollTabsLeft(){const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const e=t.scrollLeft,i=Array.from(t.querySelectorAll(".tab"));for(let o=i.length-1;o>=0;o--){const r=i[o].offsetLeft;if(r<e+this.SCROLL_OFFSET-1){const e=r-this.SCROLL_OFFSET;t.scrollTo({left:e,behavior:"smooth"});break}}setTimeout((()=>this.handleScroll()),300)}scrollTabsRight(){const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const e=t.scrollLeft,i=Array.from(t.querySelectorAll(".tab"));for(const o of i)if(o.offsetLeft>e+this.SCROLL_OFFSET){const e=o.offsetLeft-this.SCROLL_OFFSET;t.scrollTo({left:e,behavior:"smooth"});break}setTimeout((()=>this.handleScroll()),300)}render(){return i`
2588
+ `}firstUpdated(){this.handleScroll()}updated(e){e.has("selected")&&(this.internalSelected=this.selected)}selectTab(e){this.internalSelected=e;const t=this.tabs.find((t=>t.value===e));t&&this.dispatchEvent(new CustomEvent("tab-change",{detail:t,bubbles:!0,composed:!0}))}scrollTabsLeft(){const e=this.renderRoot.querySelector(".tab-wrapper");if(!e)return;const t=e.scrollLeft,i=Array.from(e.querySelectorAll(".tab"));for(let o=i.length-1;o>=0;o--){const r=i[o].offsetLeft;if(r<t+this.SCROLL_OFFSET-1){const t=r-this.SCROLL_OFFSET;e.scrollTo({left:t,behavior:"smooth"});break}}setTimeout((()=>this.handleScroll()),300)}scrollTabsRight(){const e=this.renderRoot.querySelector(".tab-wrapper");if(!e)return;const t=e.scrollLeft,i=Array.from(e.querySelectorAll(".tab"));for(const o of i)if(o.offsetLeft>t+this.SCROLL_OFFSET){const t=o.offsetLeft-this.SCROLL_OFFSET;e.scrollTo({left:t,behavior:"smooth"});break}setTimeout((()=>this.handleScroll()),300)}render(){return i`
2539
2589
  <div class="scroll-container">
2540
2590
  ${this.showPrev?i`
2541
2591
  <button class="scroll-button prev" @click=${this.scrollTabsLeft}>
@@ -2544,11 +2594,11 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2544
2594
  `:null}
2545
2595
 
2546
2596
  <div class="tab-wrapper" @scroll=${this.handleScroll}>
2547
- ${this.tabs.map((t=>i`
2548
- <div class="tab ${this.internalSelected===t.value?"active":""}"
2549
- @click=${()=>this.selectTab(t.value)}>
2550
- <img src="/assets/icons/${t.icon}" alt="${t.label}" />
2551
- <span>${t.label}</span>
2597
+ ${this.tabs.map((e=>i`
2598
+ <div class="tab ${this.internalSelected===e.value?"active":""}"
2599
+ @click=${()=>this.selectTab(e.value)}>
2600
+ <img src="/assets/icons/${e.icon}" alt="${e.label}" />
2601
+ <span>${e.label}</span>
2552
2602
  </div>
2553
2603
  `))}
2554
2604
  </div>
@@ -2559,8 +2609,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2559
2609
  </button>
2560
2610
  `:null}
2561
2611
  </div>
2562
- `}};a([z({type:Array}),s("design:type",Array)],Ht.prototype,"tabs",void 0),a([z({type:String}),s("design:type",String)],Ht.prototype,"selected",void 0),a([T(),s("design:type",String)],Ht.prototype,"internalSelected",void 0),a([T(),s("design:type",Object)],Ht.prototype,"showPrev",void 0),a([T(),s("design:type",Object)],Ht.prototype,"showNext",void 0),Ht=a([d("tabs-bar")],Ht);let Kt=class extends e{constructor(){super(...arguments),this.files=[],this.loading=!1,this.progress=0,this.isDragging=!1,this.disabled=!1}static{this.styles=t`
2563
-
2612
+ `}};a([A({type:Array}),s("design:type",Array)],He.prototype,"tabs",void 0),a([A({type:String}),s("design:type",String)],He.prototype,"selected",void 0),a([T(),s("design:type",String)],He.prototype,"internalSelected",void 0),a([T(),s("design:type",Object)],He.prototype,"showPrev",void 0),a([T(),s("design:type",Object)],He.prototype,"showNext",void 0),He=a([l("tabs-bar")],He);let Ke=class extends t{constructor(){super(...arguments),this.files=[],this.disabled=!1,this.simulatedDelay=0,this.loading=!1,this.progress=0,this.isDragging=!1}static{this.styles=e`
2564
2613
  :host {
2565
2614
  font-family: 'Graphik', sans-serif;
2566
2615
  }
@@ -2594,28 +2643,28 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2594
2643
  }
2595
2644
 
2596
2645
  .text-main {
2597
- ${I};
2646
+ ${L};
2598
2647
  text-align: center;
2599
2648
  vertical-align: middle;
2600
2649
  color: var(--secondary-color-80);
2601
2650
  }
2602
2651
 
2603
2652
  .text-secondary {
2604
- ${L};
2653
+ ${I};
2605
2654
  text-align: center;
2606
2655
  vertical-align: middle;
2607
2656
  color: var(--secondary-color-60);
2608
2657
  }
2609
2658
 
2610
2659
  .text-tertiary {
2611
- ${L};
2660
+ ${I};
2612
2661
  text-align: center;
2613
2662
  vertical-align: middle;
2614
2663
  color: var(--secondary-color-40);
2615
2664
  }
2616
2665
 
2617
2666
  .button {
2618
- ${L};
2667
+ ${I};
2619
2668
  background-color: var(--primary-color);
2620
2669
  border: none;
2621
2670
  padding: 4px 16px;
@@ -2655,21 +2704,27 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2655
2704
  background-color: var(--primary-color);
2656
2705
  transition: width 0.1s ease;
2657
2706
  }
2658
- `}handleFiles(t){if(!t||this.loading)return;const e=Array.from(t).slice(0,3-this.files.length);this.loading=!0,this.progress=0;const i=setInterval((()=>{this.progress+=5,this.progress>=100&&(clearInterval(i),this.files=[...this.files,...e],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),100)}onFileInputChange(t){const e=t.target;this.handleFiles(e.files)}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)}render(){return i`
2707
+ `}async handleFiles(e){if(this.loading||this.disabled)return;const t=Array.isArray(this.files)?this.files:[],i=Array.from(e||[]).slice(0,3-t.length),o=this.simulatedDelay??0;if(o<=0)return this.files=[...t,...i],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const r=Date.now(),n=setInterval((()=>{const e=Date.now()-r,a=Math.min(Math.round(e/o*100),100);this.progress=a,this.progress>=100&&(clearInterval(n),this.files=[...t,...i],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10)}onFileInputChange(e){const t=e.target;this.handleFiles(t.files)}onDrop(e){e.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(e.dataTransfer?.files||null))}onDragOver(e){e.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(e){e.preventDefault(),this.disabled||(this.isDragging=!1)}render(){return i`
2659
2708
  <div class="container ${this.isDragging?"dragging":""}"
2660
- @drop="${this.onDrop}"
2661
- @dragover="${this.onDragOver}"
2662
- @dragleave="${this.onDragLeave}">
2709
+ @drop="${this.onDrop}"
2710
+ @dragover="${this.onDragOver}"
2711
+ @dragleave="${this.onDragLeave}"
2712
+ >
2663
2713
  <img class="icon"
2664
2714
  src=${this.disabled?"/assets/img/image-upload-disabled.svg":"/assets/img/image-upload-circle.svg"}
2665
- alt="Subir imagen" />
2715
+ alt="Subir imagen"
2716
+ />
2717
+
2666
2718
  <div class="text-container">
2667
- <div class="text-main">subí hasta 3 imágenes</div>
2668
- <div class="text-secondary">
2669
- Podés agregar un archivo o arrastrar y soltar acá
2670
- </div>
2671
- <div class="text-tertiary">.jpg, .jpeg, .png</div>
2719
+ <div class="text-main">subí hasta 3 imágenes</div>
2720
+
2721
+ <div class="text-secondary">
2722
+ Podés agregar un archivo o arrastrar y soltar acá
2723
+ </div>
2724
+
2725
+ <div class="text-tertiary">.jpg, .jpeg, .png</div>
2672
2726
  </div>
2727
+
2673
2728
  ${this.loading?i`
2674
2729
  <div class="progress-bar-container">
2675
2730
  <div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
@@ -2683,7 +2738,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2683
2738
  </label>
2684
2739
  `}
2685
2740
  </div>
2686
- `}};a([z({type:Array}),s("design:type",Array)],Kt.prototype,"files",void 0),a([T(),s("design:type",Object)],Kt.prototype,"loading",void 0),a([T(),s("design:type",Object)],Kt.prototype,"progress",void 0),a([T(),s("design:type",Object)],Kt.prototype,"isDragging",void 0),a([z({type:Boolean,reflect:!0}),s("design:type",Object)],Kt.prototype,"disabled",void 0),Kt=a([d("upload-image")],Kt);const Xt=6048e5,Qt=Symbol.for("constructDateFrom");function Jt(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&Qt in t?t[Qt](e):t instanceof Date?new t.constructor(e):new Date(e)}function Zt(t,e){return Jt(e||t,t)}function te(t,e,i){const o=Zt(t,i?.in);if(isNaN(e))return Jt(t,NaN);if(!e)return o;const r=o.getDate(),n=Jt(t,o.getTime());n.setMonth(o.getMonth()+e+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let ee={};function ie(){return ee}function oe(t,e){const i=ie(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Zt(t,e?.in),n=r.getDay(),a=(n<o?7:0)+n-o;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function re(t,e){return oe(t,{...e,weekStartsOn:1})}function ne(t,e){const i=Zt(t,e?.in),o=i.getFullYear(),r=Jt(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=re(r),a=Jt(i,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);const s=re(a);return i.getTime()>=n.getTime()?o+1:i.getTime()>=s.getTime()?o:o-1}function ae(t){const e=Zt(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 se(t,...e){const i=Jt.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function de(t,e){const i=Zt(t,e?.in);return i.setHours(0,0,0,0),i}function le(t,e,i){return te(t,12*e,i)}function ce(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Zt(t)));var e}function pe(t,e){const i=Zt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const he={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 ue(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const be={date:ue({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ue({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:ue({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ge={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function me(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 ye(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 a=n[0],s=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(s)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(s,(t=>t.test(a))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(s,(t=>t.test(a)));let l;l=t.valueCallback?t.valueCallback(d):d,l=i.valueCallback?i.valueCallback(l):l;return{value:l,rest:e.slice(a.length)}}}var fe;const ve={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=he[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:be,formatRelative:(t,e,i,o)=>ge[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:me({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:me({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:me({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:me({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:me({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:(fe={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(fe.matchPattern);if(!i)return null;const o=i[0],r=t.match(fe.parsePattern);if(!r)return null;let n=fe.valueCallback?fe.valueCallback(r[0]):r[0];return n=e.valueCallback?e.valueCallback(n):n,{value:n,rest:t.slice(o.length)}}),era:ye({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:ye({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:ye({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:ye({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:ye({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 xe(t,e){const i=Zt(t,e?.in),o=function(t,e){const[i,o]=se(0,t,e),r=de(i),n=de(o),a=+r-ae(r),s=+n-ae(n);return Math.round((a-s)/864e5)}(i,function(t,e){const i=Zt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function we(t,e){const i=Zt(t,e?.in),o=+re(i)-+function(t,e){const i=ne(t,e),o=Jt(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),re(o)}(i);return Math.round(o/Xt)+1}function ke(t,e){const i=Zt(t,e?.in),o=i.getFullYear(),r=ie(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=Jt(e?.in||t,0);a.setFullYear(o+1,0,n),a.setHours(0,0,0,0);const s=oe(a,e),d=Jt(e?.in||t,0);d.setFullYear(o,0,n),d.setHours(0,0,0,0);const l=oe(d,e);return+i>=+s?o+1:+i>=+l?o:o-1}function $e(t,e){const i=Zt(t,e?.in),o=+oe(i,e)-+function(t,e){const i=ie(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=ke(t,e),n=Jt(e?.in||t,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),oe(n,e)}(i,e);return Math.round(o/Xt)+1}function Se(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Ce={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Se("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Se(i+1,2)},d:(t,e)=>Se(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)=>Se(t.getHours()%12||12,e.length),H:(t,e)=>Se(t.getHours(),e.length),m:(t,e)=>Se(t.getMinutes(),e.length),s:(t,e)=>Se(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Se(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Ee="midnight",Oe="noon",De="morning",Me="afternoon",Pe="evening",je="night",Fe={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 Ce.y(t,e)},Y:function(t,e,i,o){const r=ke(t,o),n=r>0?r:1-r;if("YY"===e){return Se(n%100,2)}return"Yo"===e?i.ordinalNumber(n,{unit:"year"}):Se(n,e.length)},R:function(t,e){return Se(ne(t),e.length)},u:function(t,e){return Se(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 Se(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 Se(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 Ce.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 Se(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=$e(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Se(r,e.length)},I:function(t,e,i){const o=we(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Se(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Ce.d(t,e)},D:function(t,e,i){const o=xe(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Se(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 Se(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 Se(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 Se(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?Oe:0===o?Ee: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?Pe:o>=12?Me:o>=4?De:je,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 Ce.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Ce.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Se(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Se(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ce.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Ce.s(t,e)},S:function(t,e){return Ce.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Te(o);case"XXXX":case"XX":return Ae(o);default:return Ae(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return Te(o);case"xxxx":case"xx":return Ae(o);default:return Ae(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ze(o,":");default:return"GMT"+Ae(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ze(o,":");default:return"GMT"+Ae(o,":")}},t:function(t,e,i){return Se(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Se(+t,e.length)}};function ze(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+Se(n,2)}function Te(t,e){if(t%60==0){return(t>0?"-":"+")+Se(Math.abs(t)/60,2)}return Ae(t,e)}function Ae(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Se(Math.trunc(o/60),2)+e+Se(o%60,2)}const Le=(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"})}},Ie=(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"})}},_e={p:Ie,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return Le(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}}",Le(o,e)).replace("{{time}}",Ie(r,e))}},Be=/^D+$/,Ne=/^Y+$/,Re=["D","DD","YY","YYYY"];const qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ye=/^'([^]*?)'?$/,We=/''/g,Ue=/[a-zA-Z]/;function Ge(t,e,i){const o=ie(),r=o.locale??ve,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Zt(t,i?.in);if(!ce(s))throw new RangeError("Invalid time value");let d=e.match(Ve).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,_e[e])(t,r.formatLong)}return t})).join("").match(qe).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:He(t)};if(Fe[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&&(d=r.localize.preprocessor(s,d));const l={firstWeekContainsDate:n,weekStartsOn:a,locale:r};return d.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return Ne.test(t)}(o)||function(t){return Be.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),Re.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,Fe[o[0]])(s,o,r.localize,l)})).join("")}function He(t){const e=t.match(Ye);return e?e[1].replace(We,"'"):t}function Ke(t,e){return Zt(t,e?.in).getDate()}function Xe(t,e){const i=Zt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),n=Jt(i,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function Qe(t,e){return+Zt(t)>+Zt(e)}function Je(t,e){return+Zt(t)<+Zt(e)}function Ze(t,e,i){const[o,r]=se(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function ti(t,e,i){const[o,r]=se(0,t,e);return o.getFullYear()===r.getFullYear()}function ei(t,e){return function(t,e){const[i,o]=se(0,t,e);return+de(i)===+de(o)}(Jt(t,t),function(t){return Jt(t,Date.now())}(t))}let ii=class extends e{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=t`
2741
+ `}};a([A({type:Array}),s("design:type",Array)],Ke.prototype,"files",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Object)],Ke.prototype,"disabled",void 0),a([A({type:Number}),s("design:type",Object)],Ke.prototype,"simulatedDelay",void 0),a([T(),s("design:type",Object)],Ke.prototype,"loading",void 0),a([T(),s("design:type",Object)],Ke.prototype,"progress",void 0),a([T(),s("design:type",Object)],Ke.prototype,"isDragging",void 0),Ke=a([l("upload-image")],Ke);const Xe=6048e5,Qe=Symbol.for("constructDateFrom");function Je(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Qe in e?e[Qe](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ze(e,t){return Je(t||e,e)}function et(e,t,i){const o=Ze(e,i?.in);if(isNaN(t))return Je(e,NaN);if(!t)return o;const r=o.getDate(),n=Je(e,o.getTime());n.setMonth(o.getMonth()+t+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let tt={};function it(){return tt}function ot(e,t){const i=it(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Ze(e,t?.in),n=r.getDay(),a=(n<o?7:0)+n-o;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function rt(e,t){return ot(e,{...t,weekStartsOn:1})}function nt(e,t){const i=Ze(e,t?.in),o=i.getFullYear(),r=Je(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=rt(r),a=Je(i,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);const s=rt(a);return i.getTime()>=n.getTime()?o+1:i.getTime()>=s.getTime()?o:o-1}function at(e){const t=Ze(e),i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),+e-+i}function st(e,...t){const i=Je.bind(null,t.find((e=>"object"==typeof e)));return t.map(i)}function lt(e,t){const i=Ze(e,t?.in);return i.setHours(0,0,0,0),i}function dt(e,t,i){return et(e,12*t,i)}function ct(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Ze(e)));var t}function pt(e,t){const i=Ze(e,t?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const ht={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 ut(e){return(t={})=>{const i=t.width?String(t.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}const bt={date:ut({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ut({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:ut({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},gt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function mt(e){return(t,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=i?.width?String(i.width):t;o=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=i?.width?String(i.width):e.defaultWidth;o=e.values[r]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function yt(e){return(t,i={})=>{const o=i.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(r);if(!n)return null;const a=n[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let i=0;i<e.length;i++)if(t(e[i]))return i;return}(s,(e=>e.test(a))):function(e,t){for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return i;return}(s,(e=>e.test(a)));let d;d=e.valueCallback?e.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:t.slice(a.length)}}}var ft;const vt={code:"en-US",formatDistance:(e,t,i)=>{let o;const r=ht[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:bt,formatRelative:(e,t,i,o)=>gt[e],localize:{ordinalNumber:(e,t)=>{const i=Number(e),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:mt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:mt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:mt({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:mt({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:mt({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:(ft={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const i=e.match(ft.matchPattern);if(!i)return null;const o=i[0],r=e.match(ft.parsePattern);if(!r)return null;let n=ft.valueCallback?ft.valueCallback(r[0]):r[0];return n=t.valueCallback?t.valueCallback(n):n,{value:n,rest:e.slice(o.length)}}),era:yt({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:yt({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:e=>e+1}),month:yt({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:yt({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:yt({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 xt(e,t){const i=Ze(e,t?.in),o=function(e,t){const[i,o]=st(0,e,t),r=lt(i),n=lt(o),a=+r-at(r),s=+n-at(n);return Math.round((a-s)/864e5)}(i,function(e,t){const i=Ze(e,t?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function wt(e,t){const i=Ze(e,t?.in),o=+rt(i)-+function(e,t){const i=nt(e,t),o=Je(e,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),rt(o)}(i);return Math.round(o/Xe)+1}function kt(e,t){const i=Ze(e,t?.in),o=i.getFullYear(),r=it(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=Je(t?.in||e,0);a.setFullYear(o+1,0,n),a.setHours(0,0,0,0);const s=ot(a,t),l=Je(t?.in||e,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);const d=ot(l,t);return+i>=+s?o+1:+i>=+d?o:o-1}function $t(e,t){const i=Ze(e,t?.in),o=+ot(i,t)-+function(e,t){const i=it(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=kt(e,t),n=Je(t?.in||e,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),ot(n,t)}(i,t);return Math.round(o/Xe)+1}function St(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ct={y(e,t){const i=e.getFullYear(),o=i>0?i:1-i;return St("yy"===t?o%100:o,t.length)},M(e,t){const i=e.getMonth();return"M"===t?String(i+1):St(i+1,2)},d:(e,t)=>St(e.getDate(),t.length),a(e,t){const i=e.getHours()/12>=1?"pm":"am";switch(t){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:(e,t)=>St(e.getHours()%12||12,t.length),H:(e,t)=>St(e.getHours(),t.length),m:(e,t)=>St(e.getMinutes(),t.length),s:(e,t)=>St(e.getSeconds(),t.length),S(e,t){const i=t.length,o=e.getMilliseconds();return St(Math.trunc(o*Math.pow(10,i-3)),t.length)}},Et="midnight",Ot="noon",Dt="morning",Mt="afternoon",Ft="evening",jt="night",Pt={G:function(e,t,i){const o=e.getFullYear()>0?1:0;switch(t){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(e,t,i){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return i.ordinalNumber(o,{unit:"year"})}return Ct.y(e,t)},Y:function(e,t,i,o){const r=kt(e,o),n=r>0?r:1-r;if("YY"===t){return St(n%100,2)}return"Yo"===t?i.ordinalNumber(n,{unit:"year"}):St(n,t.length)},R:function(e,t){return St(nt(e),t.length)},u:function(e,t){return St(e.getFullYear(),t.length)},Q:function(e,t,i){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return St(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(e,t,i){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return St(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(e,t,i){const o=e.getMonth();switch(t){case"M":case"MM":return Ct.M(e,t);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(e,t,i){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return St(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(e,t,i,o){const r=$t(e,o);return"wo"===t?i.ordinalNumber(r,{unit:"week"}):St(r,t.length)},I:function(e,t,i){const o=wt(e);return"Io"===t?i.ordinalNumber(o,{unit:"week"}):St(o,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getDate(),{unit:"date"}):Ct.d(e,t)},D:function(e,t,i){const o=xt(e);return"Do"===t?i.ordinalNumber(o,{unit:"dayOfYear"}):St(o,t.length)},E:function(e,t,i){const o=e.getDay();switch(t){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(e,t,i,o){const r=e.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return St(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(e,t,i,o){const r=e.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return St(n,t.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(e,t,i){const o=e.getDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return St(r,t.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(e,t,i){const o=e.getHours()/12>=1?"pm":"am";switch(t){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(e,t,i){const o=e.getHours();let r;switch(r=12===o?Ot:0===o?Et:o/12>=1?"pm":"am",t){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(e,t,i){const o=e.getHours();let r;switch(r=o>=17?Ft:o>=12?Mt:o>=4?Dt:jt,t){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(e,t,i){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),i.ordinalNumber(t,{unit:"hour"})}return Ct.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getHours(),{unit:"hour"}):Ct.H(e,t)},K:function(e,t,i){const o=e.getHours()%12;return"Ko"===t?i.ordinalNumber(o,{unit:"hour"}):St(o,t.length)},k:function(e,t,i){let o=e.getHours();return 0===o&&(o=24),"ko"===t?i.ordinalNumber(o,{unit:"hour"}):St(o,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ct.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getSeconds(),{unit:"second"}):Ct.s(e,t)},S:function(e,t){return Ct.S(e,t)},X:function(e,t,i){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Tt(o);case"XXXX":case"XX":return zt(o);default:return zt(o,":")}},x:function(e,t,i){const o=e.getTimezoneOffset();switch(t){case"x":return Tt(o);case"xxxx":case"xx":return zt(o);default:return zt(o,":")}},O:function(e,t,i){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+At(o,":");default:return"GMT"+zt(o,":")}},z:function(e,t,i){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+At(o,":");default:return"GMT"+zt(o,":")}},t:function(e,t,i){return St(Math.trunc(+e/1e3),t.length)},T:function(e,t,i){return St(+e,t.length)}};function At(e,t=""){const i=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),n=o%60;return 0===n?i+String(r):i+String(r)+t+St(n,2)}function Tt(e,t){if(e%60==0){return(e>0?"-":"+")+St(Math.abs(e)/60,2)}return zt(e,t)}function zt(e,t=""){const i=e>0?"-":"+",o=Math.abs(e);return i+St(Math.trunc(o/60),2)+t+St(o%60,2)}const It=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Lt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},_t={p:Lt,P:(e,t)=>{const i=e.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return It(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",It(o,t)).replace("{{time}}",Lt(r,t))}},Bt=/^D+$/,Nt=/^Y+$/,Rt=["D","DD","YY","YYYY"];const qt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wt=/^'([^]*?)'?$/,Yt=/''/g,Ut=/[a-zA-Z]/;function Gt(e,t,i){const o=it(),r=o.locale??vt,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Ze(e,i?.in);if(!ct(s))throw new RangeError("Invalid time value");let l=t.match(Vt).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,_t[t])(e,r.formatLong)}return e})).join("").match(qt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ht(e)};if(Pt[t])return{isToken:!0,value:e};if(t.match(Ut))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));const d={firstWeekContainsDate:n,weekStartsOn:a,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(e){return Nt.test(e)}(o)||function(e){return Bt.test(e)}(o))&&function(e,t,i){const o=function(e,t,i){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,i);if(console.warn(o),Rt.includes(e))throw new RangeError(o)}(o,t,String(e));return(0,Pt[o[0]])(s,o,r.localize,d)})).join("")}function Ht(e){const t=e.match(Wt);return t?t[1].replace(Yt,"'"):e}function Kt(e,t){return Ze(e,t?.in).getDate()}function Xt(e,t){const i=Ze(e,t?.in),o=i.getFullYear(),r=i.getMonth(),n=Je(i,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function Qt(e,t){return+Ze(e)>+Ze(t)}function Jt(e,t){return+Ze(e)<+Ze(t)}function Zt(e,t,i){const[o,r]=st(0,e,t);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function ei(e,t,i){const[o,r]=st(0,e,t);return o.getFullYear()===r.getFullYear()}function ti(e,t){return function(e,t){const[i,o]=st(0,e,t);return+lt(i)===+lt(o)}(Je(e,e),function(e){return Je(e,Date.now())}(e))}let ii=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=e=>{const t=this.getRootNode(),i=t?.host;!i||e.composedPath().includes(this)||e.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=e`
2687
2742
  /* Estilos generales del contenedor del calendario (escritorio) */
2688
2743
  .calendar-container {
2689
2744
  position: absolute;
@@ -2748,7 +2803,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
2748
2803
  }
2749
2804
 
2750
2805
  .month-year-button {
2751
- ${I}
2806
+ ${L}
2752
2807
  display: flex;
2753
2808
  align-items: center;
2754
2809
  justify-content: center;
@@ -3097,11 +3152,11 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3097
3152
  color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
3098
3153
  }
3099
3154
  /* */
3100
- `}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?te(this.viewDate,t):"months"===this.currentView?le(this.viewDate,t):le(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=Zt(t,i?.in);return isNaN(+o)?Jt(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months")}handleMonthSelect(t){const e=function(t,e,i){const o=Zt(t,i?.in),r=o.getFullYear(),n=o.getDate(),a=Jt(t,0);a.setFullYear(r,e,15),a.setHours(0,0,0,0);const s=Xe(a);return o.setMonth(e,Math.min(n,s)),o}(this.viewDate,t);this._updateView(e,"days")}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}renderHeader(){const t=this.getFullMonthNames();let e="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=t+20;e=`${t} - ${i}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=i>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){e=`${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{e=`${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()}`,this.minDate&&(o=Ze(pe(this.viewDate),pe(this.minDate))||Je(this.viewDate,this.minDate)),this.maxDate&&(r=Ze(pe(this.viewDate),pe(this.maxDate))||Qe(this.viewDate,this.maxDate))}return i`
3155
+ `}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(e,t=null){this.viewDate=e,t&&(this.currentView=t),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(e){let t=this.viewDate;t="days"===this.currentView?et(this.viewDate,e):"months"===this.currentView?dt(this.viewDate,e):dt(this.viewDate,21*e),this._updateView(t)}handleYearSelect(e){const t=function(e,t,i){const o=Ze(e,i?.in);return isNaN(+o)?Je(e,NaN):(o.setFullYear(t),o)}(this.viewDate,e);this._updateView(t,"months")}handleMonthSelect(e){const t=function(e,t,i){const o=Ze(e,i?.in),r=o.getFullYear(),n=o.getDate(),a=Je(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const s=Xt(a);return o.setMonth(t,Math.min(n,s)),o}(this.viewDate,e);this._updateView(t,"days")}handleDayClick(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((e=>e.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}renderHeader(){const e=this.getFullMonthNames();let t="",o=!1,r=!1;if("years"===this.currentView){const e=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=e+20;t=`${e} - ${i}`;o=e<=(this.minDate?this.minDate.getFullYear():-1/0),r=i>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){t=`${this.viewDate.getFullYear()}`;const e=this.viewDate.getFullYear();o=e<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{t=`${e[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()}`,this.minDate&&(o=Zt(pt(this.viewDate),pt(this.minDate))||Jt(this.viewDate,this.minDate)),this.maxDate&&(r=Zt(pt(this.viewDate),pt(this.maxDate))||Qt(this.viewDate,this.maxDate))}return i`
3101
3156
  <div class="header">
3102
3157
  <div class="header-left">
3103
3158
  <button class="month-year-button" @click=${this.handleHeaderClick}>
3104
- <span>${e}</span>
3159
+ <span>${t}</span>
3105
3160
 
3106
3161
  ${"days"===this.currentView?i`<randstad-icon name="arrow_drop_down" class="select-icon"></randstad-icon>`:i`<randstad-icon name="arrow_drop_up" class="select-icon"></randstad-icon>`}
3107
3162
  </button>
@@ -3117,61 +3172,61 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3117
3172
  </button>
3118
3173
  </div>
3119
3174
  </div>
3120
- `}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=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,a=this.maxDate?this.maxDate.getFullYear():1/0;return i`
3175
+ `}renderYearsView(){const e=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,t=Array.from({length:21},((t,i)=>e+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),n=this.minDate?this.minDate.getFullYear():-1/0,a=this.maxDate?this.maxDate.getFullYear():1/0;return i`
3121
3176
  <div class="year-grid">
3122
- ${e.map((t=>i`
3177
+ ${t.map((e=>i`
3123
3178
  <button
3124
- class="${"year-button "+(t===o?"selected":t===r?"current":"")}"
3125
- @click=${()=>this.handleYearSelect(t)}
3126
- ?disabled=${t<n||t>a}
3179
+ class="${"year-button "+(e===o?"selected":e===r?"current":"")}"
3180
+ @click=${()=>this.handleYearSelect(e)}
3181
+ ?disabled=${e<n||e>a}
3127
3182
  >
3128
- ${t}
3183
+ ${e}
3129
3184
  </button>
3130
3185
  `))}
3131
3186
  </div>
3132
- `}renderMonthsView(){const t=this.getShortMonthNames(),e=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return i`
3187
+ `}renderMonthsView(){const e=this.getShortMonthNames(),t=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return i`
3133
3188
  <div class="month-grid">
3134
- ${t.map(((t,n)=>{const a=n===o,s=n===e&&this.selectedDate&&ti(this.viewDate,this.selectedDate),d=n===e&&this.selectedDate&&!ti(this.viewDate,this.selectedDate);let l=!1;this.minDate&&r===this.minDate.getFullYear()&&(l=n<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(l=l||n>this.maxDate.getMonth());return i`
3189
+ ${e.map(((e,n)=>{const a=n===o,s=n===t&&this.selectedDate&&ei(this.viewDate,this.selectedDate),l=n===t&&this.selectedDate&&!ei(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 i`
3135
3190
  <button
3136
- class="${"month-button "+(s?"selected":d?"secondary-selected":a?"current":"")}"
3137
- ?disabled=${l}
3191
+ class="${"month-button "+(s?"selected":l?"secondary-selected":a?"current":"")}"
3192
+ ?disabled=${d}
3138
3193
  @click=${()=>this.handleMonthSelect(n)}
3139
3194
  >
3140
- ${t}
3195
+ ${e}
3141
3196
  </button>
3142
3197
  `}))}
3143
3198
  </div>
3144
- `}renderDayView(){const t=Xe(this.viewDate),e=pe(this.viewDate),o=Zt(e,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),a=Array.from({length:t},((t,i)=>function(t,e,i){const o=Zt(t,i?.in);return o.setDate(e),o}(e,i+1))),s=this.getShortWeekdays();return i`
3199
+ `}renderDayView(){const e=Xt(this.viewDate),t=pt(this.viewDate),o=Ze(t,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),a=Array.from({length:e},((e,i)=>function(e,t,i){const o=Ze(e,i?.in);return o.setDate(t),o}(t,i+1))),s=this.getShortWeekdays();return i`
3145
3200
  <div class="weekdays">
3146
- ${s.map((t=>i`<div>${t}</div>`))}
3201
+ ${s.map((e=>i`<div>${e}</div>`))}
3147
3202
  </div>
3148
3203
 
3149
3204
  <div class="days-grid">
3150
3205
  ${n.map((()=>i`<div></div>`))}
3151
- ${a.map((t=>{const e=de(t),o=this.selectedDate?de(this.selectedDate):null,r=this.minDate&&Je(e,de(this.minDate))||this.maxDate&&Qe(e,de(this.maxDate)),n=ei(e),a=o&&Ke(e)===Ke(o),s=a&&o&&Ze(e,o)&&ti(e,o);return i`
3206
+ ${a.map((e=>{const t=lt(e),o=this.selectedDate?lt(this.selectedDate):null,r=this.minDate&&Jt(t,lt(this.minDate))||this.maxDate&&Qt(t,lt(this.maxDate)),n=ti(t),a=o&&Kt(t)===Kt(o),s=a&&o&&Zt(t,o)&&ei(t,o);return i`
3152
3207
  <button
3153
3208
  class="${`day ${n?"today":""} ${s?"selected":a&&!s?"secondary-selected":""}`}"
3154
3209
  ?disabled=${r}
3155
- @click=${()=>this.handleDayClick(t)}
3210
+ @click=${()=>this.handleDayClick(e)}
3156
3211
  >
3157
- ${Ge(t,"d")}
3212
+ ${Gt(e,"d")}
3158
3213
  </button>
3159
3214
  `}))}
3160
3215
  </div>
3161
- `}render(){let t;t="days"===this.currentView?this.renderDayView():"months"===this.currentView?this.renderMonthsView():this.renderYearsView();const e=i`${this.renderHeader()} <div class="weekdays-separator"></div> ${t}`;return this.isMobile?i`
3216
+ `}render(){let e;e="days"===this.currentView?this.renderDayView():"months"===this.currentView?this.renderMonthsView():this.renderYearsView();const t=i`${this.renderHeader()} <div class="weekdays-separator"></div> ${e}`;return this.isMobile?i`
3162
3217
  <div
3163
3218
  class="mobile-backdrop"
3164
3219
  @click=${()=>this.dispatchEvent(new CustomEvent("close"))}
3165
3220
  >
3166
- <div class="mobile-modal" @click=${t=>t.stopPropagation()}>
3167
- ${e}
3221
+ <div class="mobile-modal" @click=${e=>e.stopPropagation()}>
3222
+ ${t}
3168
3223
  </div>
3169
3224
  </div>
3170
3225
  `:i`
3171
3226
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3172
- ${e}
3227
+ ${t}
3173
3228
  </div>
3174
- `}};a([z({type:Object}),s("design:type",Object)],ii.prototype,"selectedDate",void 0),a([z({type:Object}),s("design:type",Date)],ii.prototype,"viewDate",void 0),a([z({type:Boolean}),s("design:type",Object)],ii.prototype,"isMobile",void 0),a([z({type:Number}),s("design:type",Number)],ii.prototype,"calendarWidth",void 0),a([z({type:Object}),s("design:type",Object)],ii.prototype,"minDate",void 0),a([z({type:Object}),s("design:type",Object)],ii.prototype,"maxDate",void 0),a([T(),s("design:type",String)],ii.prototype,"currentView",void 0),ii=a([d("calendar-overlay")],ii);let oi=class extends e{constructor(){super(...arguments),this.label="",this.placeholder="Selecciona una fecha",this.value="",this.required=!1,this.disabled=!1,this.error=!1,this.isRenderClearButton=!0,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=t`
3229
+ `}};a([A({type:Object}),s("design:type",Object)],ii.prototype,"selectedDate",void 0),a([A({type:Object}),s("design:type",Date)],ii.prototype,"viewDate",void 0),a([A({type:Boolean}),s("design:type",Object)],ii.prototype,"isMobile",void 0),a([A({type:Number}),s("design:type",Number)],ii.prototype,"calendarWidth",void 0),a([A({type:Object}),s("design:type",Object)],ii.prototype,"minDate",void 0),a([A({type:Object}),s("design:type",Object)],ii.prototype,"maxDate",void 0),a([T(),s("design:type",String)],ii.prototype,"currentView",void 0),ii=a([l("calendar-overlay")],ii);let oi=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="Selecciona una fecha",this.value="",this.required=!1,this.disabled=!1,this.isRenderClearButton=!0,this.error=!1,this.errorMessage=null,this.optional=!1,this.helper=null,this.helperAlign="left",this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=e=>{e.composedPath().includes(this)||(this.isOpen=!1,this.error&&this.closeOverlay(""))}}static{this.styles=e`
3175
3230
  /* Contenedor principal y tipografía base */
3176
3231
  :host {
3177
3232
  display: block;
@@ -3183,7 +3238,7 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3183
3238
  :host([width]) {
3184
3239
  width: var(--datepicker-width);
3185
3240
  }
3186
-
3241
+
3187
3242
  /* Contenedor principal para el input */
3188
3243
  .input-container {
3189
3244
  position: relative;
@@ -3196,13 +3251,43 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3196
3251
  max-width: 100vw;
3197
3252
  box-sizing: border-box;
3198
3253
  }
3254
+
3255
+ /* Contenedores del label y helper */
3256
+ .label-container {
3257
+ display: flex;
3258
+ align-items: baseline;
3259
+ gap: 4px;
3260
+ margin-bottom: 4px;
3261
+ }
3262
+
3199
3263
  .form-label {
3200
3264
  ${B}
3201
3265
  color: var(--secondary-randstad-dark-blue-80, #404767);
3202
- margin-bottom: 4px;
3203
3266
  display: block;
3204
3267
  }
3205
3268
 
3269
+ /* Estilos para los textos de ayuda y error */
3270
+ .required {
3271
+ color: var(--ui-negative);
3272
+ }
3273
+
3274
+ .optional {
3275
+ color: var(--secondary-color-60);
3276
+ ${I}
3277
+ }
3278
+
3279
+ .helper-description {
3280
+ ${_}
3281
+ color: var(--secondary-color-40);
3282
+ margin: 0;
3283
+ }
3284
+
3285
+ .error-message {
3286
+ ${_}
3287
+ color: var(--ui-negative, #E00F0F);
3288
+ margin-top: 4px;
3289
+ }
3290
+
3206
3291
  /* Estilos del campo de entrada y sus estados */
3207
3292
  .input-wrapper {
3208
3293
  display: flex;
@@ -3269,10 +3354,6 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3269
3354
  font-size: 18px;
3270
3355
  }
3271
3356
 
3272
- .required {
3273
- color: var(--ui-negative);
3274
- }
3275
-
3276
3357
  /* --- Error Styles --- */
3277
3358
  :host([error]) .input-wrapper {
3278
3359
  border: 1px solid var(--ui-negative, red) !important;
@@ -3287,54 +3368,216 @@ const Rt=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
3287
3368
  box-shadow: none !important;
3288
3369
  }
3289
3370
  /* */
3290
- `}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(t){(t.has("isOpen")||t.has("value"))&&this.setInitialWidth(),super.updated(t)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}update(t){if(t.has("value"))if(this.value){let t=null;const e=this.value.split("-");if(3===e.length){const[i,o,r]=e.map(Number);i>1e3?(t=new Date(i,o-1,r),ce(t)&&(this.value=Ge(t,"dd-MM-yyyy"))):o>=1&&o<=12&&(t=new Date(r,o-1,i)),t&&ce(t)?(this.selectedDate=t,this.viewDate=t):this.selectedDate=null}}else this.selectedDate=null,this.viewDate=new Date;super.update(t)}handleInput(t){if(this.disabled)return;const e=t.target.value;if(""===e)return this.selectedDate=null,this.value="",this.error=!1,void this.requestUpdate();const[i,o,r]=e.split("-").map(Number);let n=null;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const t=new Date(r,o-1,i,12);ce(t)&&Ge(t,"dd-MM-yyyy")===e&&(n=t)}n?this._isWithinBounds(n)?(this.selectedDate=n,this.viewDate=n,this.value=e,this.error=!1):(this.error=!0,console.error("La fecha escrita está fuera del rango permitido.")):this.error=!0,this.requestUpdate()}handleCalendarButtonClick(t){this.disabled||(t.stopPropagation(),this.isOpen=!this.isOpen,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate())}handleClearDate(){this.selectedDate=null,this.error=!1,this.closeOverlay("")}handleDateSelect(t){const e=t.detail.date;e&&(this.selectedDate=e,this.viewDate=e,this.closeOverlay(Ge(e,"dd-MM-yyyy")))}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.isOpen=!1,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}}))}_parseDateString(t){if(!t)return null;const e=t.split("-").map(Number);if(3===e.length&&!isNaN(e[0])&&!isNaN(e[1])&&!isNaN(e[2])){return new Date(e[0],e[1]-1,e[2],12)}return null}_getValidDateRange(){const t=this._parseDateString(this.minDate),e=this._parseDateString(this.maxDate);return t||e?t&&e&&Qe(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!Je(t,e.minDate))&&(!e.maxDate||!Qe(t,e.maxDate))}render(){const t=`input-wrapper ${this.isOpen?"active":""} ${this.error?"error":""} ${this.disabled?"disabled":""}`,e=`width: ${this.width||"100%"};`,r=this._getValidDateRange();return i`
3291
- <div class="input-container" style="${e}">
3292
- <label class="form-label">
3293
- ${this.label}
3294
- ${this.required?i`<span class="required">*</span>`:""}
3295
- </label>
3296
-
3297
- <div class="${t}" style="width: 100%">
3298
- <input
3299
- type="text"
3300
- class="date-input"
3301
- .value="${this.value}"
3302
- placeholder="${this.placeholder}"
3303
- ?disabled=${this.disabled}
3304
- @input=${this.handleInput}
3305
- />
3306
-
3307
- ${this.isRenderClearButton&&this.selectedDate&&!this.disabled?i`
3308
- <button
3309
- class="icon-button clear-button"
3310
- @click=${this.handleClearDate}
3311
- >
3312
- <randstad-icon name="close"></randstad-icon>
3313
- </button>
3314
- `:o}
3371
+ `}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(e){e.has("value")&&this._syncValue(this.value),(e.has("isOpen")||e.has("value"))&&this.setInitialWidth(),super.updated(e)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(e){const t=e.target;this._parseAndValidateDate(t.value,!0)}handleCalendarButtonClick(e){this.disabled||(e.stopPropagation(),this.isOpen=!this.isOpen,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate())}handleClearDate(){this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay("")}handleDateSelect(e){const t=e.detail.date;t&&(this.selectedDate=t,this.viewDate=t,this.closeOverlay(Gt(t,"dd-MM-yyyy")))}handleViewDateChange(e){this.viewDate=e.detail.date}closeOverlay(e){this.value=e,this.isOpen=!1,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:e}}))}_syncValue(e){if(""===e)return void(this.error||(this.selectedDate=null,this.errorMessage=null));const t=this._parseDate(e);t&&this._isWithinBounds(t)?(this.selectedDate=t,this.viewDate=t,this.error=!1,this.errorMessage=null,this.value=Gt(t,"dd-MM-yyyy")):(this.selectedDate=null,this.error=!0,this.errorMessage="Formato de fecha no válido o fuera de rango. Se esperaba 'dd-MM-yyyy'.")}_parseAndValidateDate(e,t){if(this.disabled)return;if(""===e)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(t&&this.closeOverlay(""));const i=this._parseDate(e);if(i)if(this._isWithinBounds(i))this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,t&&this.closeOverlay(Gt(i,"dd-MM-yyyy"));else{this.error=!0;const e=this._getValidDateRange();this.errorMessage=`La fecha debe estar entre ${e?.minDate?Gt(e.minDate,"dd-MM-yyyy"):"el inicio de los tiempos"} y ${e?.maxDate?Gt(e.maxDate,"dd-MM-yyyy"):"el fin de los tiempos"}.`,t&&this.closeOverlay(""),console.error("La fecha está fuera del rango permitido.")}else this.error=!0,this.errorMessage="Formato de fecha no válido. Se esperaba 'dd-MM-yyyy' o 'yyyy-MM-dd'.",t&&this.closeOverlay(""),console.error("Formato de fecha no válido.")}_parseDate(e){const t=e.split("-").map(Number);if(3===t.length){const[i,o,r]=t;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const t=new Date(r,o-1,i,12);if(ct(t)&&Gt(t,"dd-MM-yyyy")===e)return t}}const i=e.split("-").map(Number);if(3===i.length){const[e,t,o]=i;if(e&&t&&o&&t>=1&&t<=12&&e>1e3){const i=new Date(e,t-1,o,12);if(ct(i))return i}}return null}_parseDateString(e){if(!e)return null;const t=e.split("-").map(Number);if(3===t.length&&!isNaN(t[0])&&!isNaN(t[1])&&!isNaN(t[2])){return new Date(t[0],t[1]-1,t[2],12)}return null}_getValidDateRange(){const e=this._parseDateString(this.minDate),t=this._parseDateString(this.maxDate);return e||t?e&&t&&Qt(e,t)?null:{minDate:e,maxDate:t}:{minDate:null,maxDate:null}}_isWithinBounds(e){const t=this._getValidDateRange();return!t||(!t.minDate||!Jt(e,t.minDate))&&(!t.maxDate||!Qt(e,t.maxDate))}render(){const e=n({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled}),t=`width: ${this.width||"100%"};`,r=`text-align: ${this.helperAlign??"left"};`,a=this._getValidDateRange();return i`
3372
+ <div class="input-container" style="${t}">
3373
+ <div class="label-container">
3374
+ <label class="form-label">
3375
+ ${this.label}
3376
+ ${this.required?i`<span class="required">*</span>`:this.optional?i`<span class="optional">opcional</span>`:o}
3377
+ </label>
3378
+ </div>
3379
+
3380
+ <div class="${e}" style="width: 100%">
3381
+ <input
3382
+ type="text"
3383
+ class="date-input"
3384
+ .value="${this.value}"
3385
+ placeholder="${this.placeholder}"
3386
+ ?disabled=${this.disabled}
3387
+ @input=${this.handleInput}
3388
+ />
3389
+
3390
+ ${this.isRenderClearButton&&this.selectedDate&&!this.disabled?i`
3391
+ <button
3392
+ class="icon-button clear-button"
3393
+ @click=${this.handleClearDate}
3394
+ >
3395
+ <randstad-icon name="close"></randstad-icon>
3396
+ </button>
3397
+ `:o}
3315
3398
 
3316
- <button
3317
- class="icon-button calendar-button"
3318
- @click=${this.handleCalendarButtonClick}
3319
- >
3320
- <randstad-icon name="calendar"></randstad-icon>
3321
- </button>
3322
- </div>
3399
+ <button
3400
+ class="icon-button calendar-button"
3401
+ @click=${this.handleCalendarButtonClick}
3402
+ >
3403
+ <randstad-icon name="calendar"></randstad-icon>
3404
+ </button>
3405
+ </div>
3323
3406
 
3324
- ${this.isOpen?i`
3407
+ ${this.isOpen?i`
3325
3408
  <calendar-overlay
3326
3409
  .isMobile=${this.isMobile}
3327
3410
  .selectedDate=${this.selectedDate}
3328
3411
  .viewDate=${this.viewDate}
3329
3412
  .calendarWidth=${this.calendarWidth}
3330
- .minDate=${r?.minDate}                  
3331
- .maxDate=${r?.maxDate}  
3413
+ .minDate=${a?.minDate}
3414
+ .maxDate=${a?.maxDate}
3332
3415
  @close=${()=>this.isOpen=!1}
3333
3416
  @view-date-change=${this.handleViewDateChange}
3334
3417
  @date-selected=${this.handleDateSelect}
3335
3418
  >
3336
3419
  </calendar-overlay>
3337
3420
  `:o}
3421
+
3422
+ ${this.errorMessage?i`<div class="error-message">${this.errorMessage}</div>`:o}
3423
+
3424
+ ${this.helper?i`
3425
+ <p
3426
+ class="helper-description"
3427
+ style=${r}
3428
+ >
3429
+ ${this.helper}
3430
+ </p>
3431
+ `:o}
3338
3432
  </div>
3339
- `}};a([z({type:String}),s("design:type",Object)],oi.prototype,"label",void 0),a([z({type:String}),s("design:type",Object)],oi.prototype,"placeholder",void 0),a([z({type:String}),s("design:type",Object)],oi.prototype,"value",void 0),a([z({type:Boolean}),s("design:type",Object)],oi.prototype,"required",void 0),a([z({type:Boolean}),s("design:type",Object)],oi.prototype,"disabled",void 0),a([z({type:Boolean,reflect:!0}),s("design:type",Object)],oi.prototype,"error",void 0),a([z({type:String}),s("design:type",String)],oi.prototype,"width",void 0),a([z({type:Boolean}),s("design:type",Object)],oi.prototype,"isRenderClearButton",void 0),a([z({type:String}),s("design:type",String)],oi.prototype,"minDate",void 0),a([z({type:String}),s("design:type",String)],oi.prototype,"maxDate",void 0),a([T(),s("design:type",Object)],oi.prototype,"isOpen",void 0),a([T(),s("design:type",Object)],oi.prototype,"selectedDate",void 0),a([T(),s("design:type",Date)],oi.prototype,"viewDate",void 0),a([T(),s("design:type",Object)],oi.prototype,"isMobile",void 0),a([T(),s("design:type",Number)],oi.prototype,"calendarWidth",void 0),a([A(".input-container"),s("design:type",HTMLDivElement)],oi.prototype,"inputContainer",void 0),oi=a([d("datepicker-component")],oi);export{Y as AccordionList,V as AccordionPanel,ii as CalendarOverlay,U as CarouselCard,G as Checkbox,J as CustomModal,Z as CustomPopup,Vt as CustomRadio,Gt as CustomStepper,oi as DatePickerComponent,Yt as FilterableSelect,K as FormGroup,X as IconComponent,tt as ProgressCircle,W as RandstadButton,H as RandstadForm,Q as RandstadNotice,Ht as TabsBar,Kt as UploadImage};
3433
+ `}};a([A({type:String}),s("design:type",Object)],oi.prototype,"label",void 0),a([A({type:String}),s("design:type",Object)],oi.prototype,"placeholder",void 0),a([A({type:String}),s("design:type",Object)],oi.prototype,"value",void 0),a([A({type:Boolean}),s("design:type",Object)],oi.prototype,"required",void 0),a([A({type:Boolean}),s("design:type",Object)],oi.prototype,"disabled",void 0),a([A({type:String}),s("design:type",String)],oi.prototype,"width",void 0),a([A({type:Boolean}),s("design:type",Object)],oi.prototype,"isRenderClearButton",void 0),a([A({type:String}),s("design:type",String)],oi.prototype,"minDate",void 0),a([A({type:String}),s("design:type",String)],oi.prototype,"maxDate",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Object)],oi.prototype,"error",void 0),a([A({type:String}),s("design:type",Object)],oi.prototype,"errorMessage",void 0),a([A({type:Boolean}),s("design:type",Object)],oi.prototype,"optional",void 0),a([A({type:String}),s("design:type",Object)],oi.prototype,"helper",void 0),a([A({type:String}),s("design:type",String)],oi.prototype,"helperAlign",void 0),a([T(),s("design:type",Object)],oi.prototype,"isOpen",void 0),a([T(),s("design:type",Object)],oi.prototype,"selectedDate",void 0),a([T(),s("design:type",Date)],oi.prototype,"viewDate",void 0),a([T(),s("design:type",Object)],oi.prototype,"isMobile",void 0),a([T(),s("design:type",Number)],oi.prototype,"calendarWidth",void 0),a([z(".input-container"),s("design:type",HTMLDivElement)],oi.prototype,"inputContainer",void 0),oi=a([l("datepicker-component")],oi);const ri={"application/pdf":"PDF","application/msword":"Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Word (.docx)","image/jpeg":"JPEG","image/png":"PNG","text/plain":"Texto (.txt)"};let ni=class extends t{constructor(){super(...arguments),this.files=[],this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=5242880,this.disabled=!1,this.label="",this.labelColor="",this.buttonText="Agregar archivo",this.helper=null,this.helperAlign="left",this.error=!1,this.errorMessage=null,this.required=!1,this.optional=!1}static{this.styles=e`
3434
+ :host {
3435
+ display: block;
3436
+ width: 100%;
3437
+ font-family: 'Graphik', sans-serif;
3438
+ color: var(--secondary-randstad-dark-blue, #0f1941);
3439
+ }
3440
+
3441
+ :host([width]) {
3442
+ width: var(--upload-file-width);
3443
+ }
3444
+
3445
+ /* Contenedor principal para organizar los elementos */
3446
+ .file-container {
3447
+ display: flex;
3448
+ flex-direction: column;
3449
+ gap: 16px;
3450
+ }
3451
+
3452
+ .required {
3453
+ color: var(--ui-negative);
3454
+ }
3455
+
3456
+ .optional {
3457
+ color: var(--secondary-color-60);
3458
+ ${I}
3459
+ }
3460
+
3461
+ .label-container {
3462
+ display: flex;
3463
+ align-items: baseline;
3464
+ gap: 4px;
3465
+ }
3466
+
3467
+ .form-label {
3468
+ ${_};
3469
+ color: var(--label-color, var(--secondary-color-80, #404767));
3470
+ }
3471
+
3472
+ input[type="file"] {
3473
+ display: none;
3474
+ }
3475
+
3476
+ .file-list-container {
3477
+ width: 100%;
3478
+ display: flex;
3479
+ justify-content: flex-end;
3480
+ }
3481
+
3482
+ .file-list {
3483
+ display: flex;
3484
+ flex-direction: column;
3485
+ align-items: flex-end;
3486
+ gap: 8px;
3487
+ }
3488
+
3489
+ .file-item {
3490
+ display: flex;
3491
+ align-items: center;
3492
+ gap: 8px;
3493
+ color: var(--secondary-color-80, #404767);
3494
+ max-width: 100%;
3495
+ }
3496
+
3497
+ .file-name {
3498
+ ${_};
3499
+ text-align: right;
3500
+ color: var(--secondary-color-40);
3501
+ vertical-align: middle;
3502
+ leading-trim: NONE;
3503
+ white-space: nowrap;
3504
+ overflow: hidden;
3505
+ text-overflow: ellipsis;
3506
+ max-width: 250px;
3507
+ }
3508
+
3509
+ .remove-file-button {
3510
+ --primary-color: var(--ui-negative, #E00F0F);
3511
+ }
3512
+
3513
+ .helper-description {
3514
+ ${_};
3515
+ color: var(--secondary-color-40);
3516
+ margin: 0;
3517
+ }
3518
+
3519
+ .error-message {
3520
+ ${_};
3521
+ color: var(--ui-negative, #E00F0F);
3522
+ margin-top: -8px;
3523
+ }
3524
+ `}updated(e){super.updated(e),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}getReadableFileTypes(){const e=this.acceptedFileTypes.map((e=>ri[e]||e));if(e.length<=1)return e.join("");const t=e.pop();return`${e.join(", ")} y ${t}`}validateFiles(e){const t=this.maxFileSize/1024/1024;for(const i of e){if(this.acceptedFileTypes.length>0&&!this.acceptedFileTypes.includes(i.type))return this.errorMessage=`Formato de archivo no válido. Se aceptan: ${this.getReadableFileTypes()}.`,!1;if(i.size>this.maxFileSize)return this.errorMessage=`El archivo es demasiado grande. El tamaño máximo es de ${t}MB.`,!1}return!0}handleFiles(e){if(this.error=!1,this.errorMessage=null,!e||this.disabled)return;const t=Number.isFinite(this.maxFiles)&&this.maxFiles>0?this.maxFiles:1,i=Array.from(e),o=t-this.files.length;if(o<=0)return this.error=!0,void(this.errorMessage=`Se ha alcanzado el número máximo de archivos (${t}).`);const r=i.slice(0,o);this.validateFiles(r)?(this.files=[...this.files,...r],this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}))):this.error=!0}onFileInputChange(e){const t=e.target;this.handleFiles(t.files),this.fileInput&&(this.fileInput.value="")}removeFile(e){this.files=this.files.filter(((t,i)=>i!==e)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&(this.error=!1,this.errorMessage=null)}render(){const e=this.files.length>=this.maxFiles,t=this.disabled||e,r=`text-align: ${this.helperAlign??"left"};`;return i`
3525
+ <div class="file-container" style="${this.labelColor?`--label-color: ${this.labelColor};`:""}">
3526
+ ${this.label?i`
3527
+ <div class="label-container">
3528
+ <label class="form-label">
3529
+ ${this.label}
3530
+ ${this.required?i`<span class="required">*</span>`:this.optional?i`<span class="optional">opcional</span>`:o}
3531
+ </label>
3532
+ </div>
3533
+ `:""}
3534
+
3535
+ <randstad-button
3536
+ .label=${this.buttonText}
3537
+ .variant=${"button-primary"}
3538
+ ?disabled=${t}
3539
+ @click=${()=>this.fileInput?.click()}>
3540
+ </randstad-button>
3541
+
3542
+ <input
3543
+ type="file"
3544
+ accept=${this.acceptedFileTypes.join(",")}
3545
+ ?multiple=${this.maxFiles>1}
3546
+ ?disabled=${t}
3547
+ @change="${this.onFileInputChange}"
3548
+ />
3549
+
3550
+ ${this.errorMessage?i`<div class="error-message">${this.errorMessage}</div>`:o}
3551
+
3552
+ ${this.helper?i`
3553
+ <p
3554
+ class="helper-description"
3555
+ style=${r}
3556
+ >
3557
+ ${this.helper}
3558
+ </p>
3559
+ `:o}
3560
+
3561
+ ${this.files.length>0?i`
3562
+ <div class="file-list-container">
3563
+ <div class="file-list">
3564
+ ${this.files.map(((e,t)=>i`
3565
+ <div class="file-item">
3566
+ <span class="file-name">${e.name}</span>
3567
+
3568
+ <randstad-button
3569
+ class="remove-file-button"
3570
+ .variant=${"button-icon"}
3571
+ .iconName=${"trash"}
3572
+ @click=${()=>this.removeFile(t)}
3573
+ ?disabled=${this.disabled}
3574
+ >
3575
+ </randstad-button>
3576
+ </div>
3577
+ `))}
3578
+ </div>
3579
+ </div>
3580
+ `:o}
3581
+ </div>
3582
+ `}};a([A({type:Array}),s("design:type",Array)],ni.prototype,"files",void 0),a([A({type:Number}),s("design:type",Object)],ni.prototype,"maxFiles",void 0),a([A({type:Array}),s("design:type",Array)],ni.prototype,"acceptedFileTypes",void 0),a([A({type:Number}),s("design:type",Object)],ni.prototype,"maxFileSize",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Object)],ni.prototype,"disabled",void 0),a([A({type:String}),s("design:type",String)],ni.prototype,"width",void 0),a([A({type:String}),s("design:type",Object)],ni.prototype,"label",void 0),a([A({type:String}),s("design:type",Object)],ni.prototype,"labelColor",void 0),a([A({type:String}),s("design:type",Object)],ni.prototype,"buttonText",void 0),a([A({type:String}),s("design:type",Object)],ni.prototype,"helper",void 0),a([A({type:String}),s("design:type",String)],ni.prototype,"helperAlign",void 0),a([A({type:Boolean,reflect:!0}),s("design:type",Object)],ni.prototype,"error",void 0),a([A({type:String}),s("design:type",Object)],ni.prototype,"errorMessage",void 0),a([A({type:Boolean}),s("design:type",Object)],ni.prototype,"required",void 0),a([A({type:Boolean}),s("design:type",Object)],ni.prototype,"optional",void 0),a([z('input[type="file"]'),s("design:type",HTMLInputElement)],ni.prototype,"fileInput",void 0),ni=a([l("upload-file")],ni);export{W as AccordionList,V as AccordionPanel,ii as CalendarOverlay,U as CarouselCard,G as Checkbox,J as CustomModal,Z as CustomPopup,Ve as CustomRadio,Ge as CustomStepper,oi as DatePickerComponent,We as FilterableSelect,K as FormGroup,X as IconComponent,ee as ProgressCircle,Y as RandstadButton,H as RandstadForm,Q as RandstadNotice,He as TabsBar,ni as UploadFile,Ke as UploadImage};
3340
3583
  //# sourceMappingURL=index.js.map