@randstad-uca/design-system 1.0.112 → 1.0.113
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/components/icons.d.ts +4 -0
- package/dist/index.js +143 -147
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/assets/icons/arrow_back.svg +0 -10
- package/dist/assets/icons/arrow_down.svg +0 -3
- package/dist/assets/icons/arrow_drop_down.svg +0 -3
- package/dist/assets/icons/arrow_drop_up.svg +0 -3
- package/dist/assets/icons/arrow_left.svg +0 -3
- package/dist/assets/icons/arrow_next.svg +0 -3
- package/dist/assets/icons/arrow_prev.svg +0 -3
- package/dist/assets/icons/arrow_right.svg +0 -3
- package/dist/assets/icons/arrow_up.svg +0 -3
- package/dist/assets/icons/ayuda.svg +0 -12
- package/dist/assets/icons/calendar.svg +0 -20
- package/dist/assets/icons/check.svg +0 -10
- package/dist/assets/icons/close.svg +0 -10
- package/dist/assets/icons/edit.svg +0 -10
- package/dist/assets/icons/email.svg +0 -11
- package/dist/assets/icons/eye.svg +0 -11
- package/dist/assets/icons/eye_crossed.svg +0 -10
- package/dist/assets/icons/home.svg +0 -10
- package/dist/assets/icons/icon_check.svg +0 -4
- package/dist/assets/icons/icon_trash.svg +0 -7
- package/dist/assets/icons/icon_warning.svg +0 -6
- package/dist/assets/icons/image.svg +0 -5
- package/dist/assets/icons/info.svg +0 -12
- package/dist/assets/icons/postulation.svg +0 -4
- package/dist/assets/icons/search-white.svg +0 -10
- package/dist/assets/icons/settings.svg +0 -11
- package/dist/assets/icons/thumbs_up.svg +0 -11
- package/dist/assets/icons/tick-circle.svg +0 -3
- package/dist/assets/icons/trash.svg +0 -13
- package/dist/assets/icons/user.svg +0 -10
- package/dist/assets/icons/warning.svg +0 -12
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{LitElement as t,html as e,nothing as i,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";function
|
|
1
|
+
import{LitElement as t,html as e,nothing as i,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";function n(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -9,23 +9,23 @@ const a=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)}
|
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/let p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const u=(t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t,{is:b,defineProperty:m,getOwnPropertyDescriptor:y,getOwnPropertyNames:v,getOwnPropertySymbols:f,getPrototypeOf:w}=Object,x=globalThis,
|
|
12
|
+
*/let p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const u=(t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t,{is:b,defineProperty:m,getOwnPropertyDescriptor:y,getOwnPropertyNames:v,getOwnPropertySymbols:f,getPrototypeOf:w}=Object,x=globalThis,C=x.trustedTypes,k=C?C.emptyScript:"",$=x.reactiveElementPolyfillSupport,S=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},D=(t,e)=>!b(t,e),O={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:D};
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class
|
|
17
|
+
*/Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&m(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=y(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const n=o?.call(this);r?.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=w(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const t=this.properties,e=[...v(t),...f(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,r=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??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){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[S("elementProperties")]=new Map,_[S("finalized")]=new Map,$?.({ReactiveElement:_}),(x.reactiveElementVersions??=[]).push("2.1.0");
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const M={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:D},F=(t=M,e,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function L(t){return(e,i)=>"object"==typeof i?F(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/function B(t){return
|
|
28
|
+
*/function B(t){return L({...t,state:!0,attribute:!1})}
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
@@ -36,7 +36,7 @@ const _={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:C},M=(t=_,e,
|
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
function
|
|
39
|
+
function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let P=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left",this.helpClickable=!1,this._tooltipOpen=!1,this._lastClickTime=0,this._boundCloseTooltip=this._closeTooltip.bind(this)}_handleTooltipClick(t){t.stopPropagation(),t.preventDefault(),this._lastClickTime=Date.now(),this._tooltipOpen=!this._tooltipOpen}_closeTooltip(){this.helpClickable&&this._tooltipOpen&&Date.now()-this._lastClickTime>50&&(this._tooltipOpen=!1)}updated(t){super.updated(t),t.has("helpClickable")&&(this.helpClickable?document.addEventListener("click",this._boundCloseTooltip):document.removeEventListener("click",this._boundCloseTooltip))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._boundCloseTooltip)}renderLabelContainer(){return e`
|
|
40
40
|
${this.label?e`
|
|
41
41
|
<div class="label-container">
|
|
42
42
|
${this.renderLabel()}
|
|
@@ -85,52 +85,52 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
85
85
|
${this.helper}
|
|
86
86
|
</p>
|
|
87
87
|
`:i}
|
|
88
|
-
`}};
|
|
88
|
+
`}};n([L({type:String}),s("design:type",Object)],P.prototype,"label",void 0),n([L({type:String}),s("design:type",Object)],P.prototype,"placeholder",void 0),n([L({type:String}),s("design:type",Object)],P.prototype,"labelColor",void 0),n([L(),s("design:type",Object)],P.prototype,"value",void 0),n([L({type:Boolean}),s("design:type",Object)],P.prototype,"required",void 0),n([L({type:Boolean}),s("design:type",Object)],P.prototype,"optional",void 0),n([L({type:Boolean}),s("design:type",Object)],P.prototype,"disabled",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],P.prototype,"error",void 0),n([L({type:String}),s("design:type",Object)],P.prototype,"errorMessage",void 0),n([L({type:String}),s("design:type",Object)],P.prototype,"helper",void 0),n([L({type:String}),s("design:type",String)],P.prototype,"helperAlign",void 0),n([L({type:String}),s("design:type",String)],P.prototype,"help",void 0),n([L({type:Boolean}),s("design:type",Object)],P.prototype,"helpClickable",void 0),n([L({type:String}),s("design:type",String)],P.prototype,"helpLink",void 0),n([L({type:String}),s("design:type",String)],P.prototype,"helpLinkTooltipMessage",void 0),n([B(),s("design:type",Object)],P.prototype,"_tooltipOpen",void 0),P=n([a("base-control")],P);const R=o`
|
|
89
89
|
font-family: 'Graphik', sans-serif;
|
|
90
90
|
font-weight: 400;
|
|
91
91
|
font-size: 12px;
|
|
92
92
|
line-height: 15px;
|
|
93
93
|
letter-spacing: 0%;
|
|
94
|
-
`,
|
|
94
|
+
`,j=o`
|
|
95
95
|
font-family: 'Graphik', sans-serif;
|
|
96
96
|
font-weight: 400;
|
|
97
97
|
font-size: 14px;
|
|
98
98
|
line-height: 25px;
|
|
99
99
|
letter-spacing: 0%;
|
|
100
|
-
`,
|
|
100
|
+
`,V=o`
|
|
101
101
|
font-family: 'Graphik', sans-serif;
|
|
102
102
|
font-weight: 400;
|
|
103
103
|
font-size: 16px;
|
|
104
104
|
line-height: 25px;
|
|
105
105
|
letter-spacing: 0%;
|
|
106
|
-
`,
|
|
106
|
+
`,A=o`
|
|
107
107
|
font-family: 'Graphik', sans-serif;
|
|
108
108
|
font-weight: 400;
|
|
109
109
|
font-size: 18px;
|
|
110
110
|
line-height: 30px;
|
|
111
111
|
letter-spacing: 0%;
|
|
112
|
-
`,
|
|
112
|
+
`,z=o`
|
|
113
113
|
font-family: 'Graphik', sans-serif;
|
|
114
114
|
font-weight: 400;
|
|
115
115
|
font-size: 18px;
|
|
116
116
|
line-height: 30px;
|
|
117
117
|
letter-spacing: 0%;
|
|
118
118
|
vertical-align: middle;
|
|
119
|
-
`,
|
|
119
|
+
`,N=o`
|
|
120
120
|
font-family: 'Graphik', sans-serif;
|
|
121
121
|
font-weight: 400;
|
|
122
122
|
font-size: 20px;
|
|
123
123
|
line-height: 30px;
|
|
124
124
|
letter-spacing: -1%;
|
|
125
125
|
vertical-align: middle;
|
|
126
|
-
`,
|
|
126
|
+
`,I=o`
|
|
127
127
|
font-family: 'Graphik', sans-serif;
|
|
128
128
|
font-weight: 400;
|
|
129
129
|
font-size: 26px;
|
|
130
130
|
line-height: 30px;
|
|
131
131
|
letter-spacing: -1%;
|
|
132
132
|
vertical-align: middle;
|
|
133
|
-
`,
|
|
133
|
+
`,W="(min-width: 501px)";let H=class extends t{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.matchMedia(W).matches,this.handleMediaQueryChange=t=>{this.isDesktop=t.matches}}static{this.styles=o`
|
|
134
134
|
:host {
|
|
135
135
|
display: flex;
|
|
136
136
|
flex-direction: column;
|
|
@@ -150,7 +150,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.title {
|
|
153
|
-
${
|
|
153
|
+
${V}
|
|
154
154
|
color: var( --secondary-color );
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -214,7 +214,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
214
214
|
max-width: 90%;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
`}connectedCallback(){super.connectedCallback(),this.mediaQueryList=window.matchMedia(
|
|
217
|
+
`}connectedCallback(){super.connectedCallback(),this.mediaQueryList=window.matchMedia(W),this.mediaQueryList.addEventListener("change",this.handleMediaQueryChange)}disconnectedCallback(){super.disconnectedCallback(),this.mediaQueryList.removeEventListener("change",this.handleMediaQueryChange)}toggle(){this.isOpen=!this.isOpen}render(){const t=e`
|
|
218
218
|
<randstad-icon
|
|
219
219
|
name="${this.isOpen?"arrow_up":"arrow_down"}"
|
|
220
220
|
size="24"
|
|
@@ -232,13 +232,13 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
232
232
|
<div class="content ${this.isOpen?"open":""}">
|
|
233
233
|
<slot></slot>
|
|
234
234
|
</div>
|
|
235
|
-
`}};
|
|
235
|
+
`}};n([L({type:String}),s("design:type",Object)],H.prototype,"title",void 0),n([B(),s("design:type",Object)],H.prototype,"isOpen",void 0),n([B(),s("design:type",Object)],H.prototype,"isDesktop",void 0),H=n([a("accordion-panel")],H);let q=class extends t{static{this.styles=o`
|
|
236
236
|
:host {
|
|
237
237
|
display: flex;
|
|
238
238
|
flex-direction: column;
|
|
239
239
|
gap: 16px;
|
|
240
240
|
}
|
|
241
|
-
`}render(){return e`<slot></slot>`}};
|
|
241
|
+
`}render(){return e`<slot></slot>`}};q=n([a("accordion-list")],q);let U=class extends t{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=o`
|
|
242
242
|
:host {
|
|
243
243
|
display: inline-block;
|
|
244
244
|
--content-padding: 16px;
|
|
@@ -278,12 +278,12 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
.button-lg {
|
|
281
|
-
${
|
|
281
|
+
${A}
|
|
282
282
|
min-height: 62px;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
.button-md {
|
|
286
|
-
${
|
|
286
|
+
${V}
|
|
287
287
|
min-height: 57px;
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -601,7 +601,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
601
601
|
`}
|
|
602
602
|
</div>
|
|
603
603
|
</button>
|
|
604
|
-
`}};
|
|
604
|
+
`}};n([L({type:String}),s("design:type",String)],U.prototype,"type",void 0),n([L({type:String}),s("design:type",String)],U.prototype,"variant",void 0),n([L({type:String}),s("design:type",String)],U.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],U.prototype,"label",void 0),n([L({type:Boolean}),s("design:type",Object)],U.prototype,"loader",void 0),n([L({type:String,attribute:"icon-src"}),s("design:type",String)],U.prototype,"iconSrc",void 0),n([L({type:String}),s("design:type",String)],U.prototype,"iconPosition",void 0),n([L({type:String}),s("design:type",Object)],U.prototype,"iconName",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Boolean)],U.prototype,"disabled",void 0),n([L({type:String}),s("design:type",Object)],U.prototype,"idevent",void 0),U=n([a("randstad-button")],U);let Z=class extends t{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId="",this.width="",this.height=""}static{this.styles=o`
|
|
605
605
|
:host {
|
|
606
606
|
display: inline-block;
|
|
607
607
|
font-family: "Graphik", sans-serif;
|
|
@@ -665,7 +665,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
.title {
|
|
668
|
-
${
|
|
668
|
+
${A}
|
|
669
669
|
margin: 0;
|
|
670
670
|
}
|
|
671
671
|
|
|
@@ -687,7 +687,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
.description {
|
|
690
|
-
${
|
|
690
|
+
${j}
|
|
691
691
|
margin: 0;
|
|
692
692
|
}
|
|
693
693
|
|
|
@@ -738,14 +738,14 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
738
738
|
</div>
|
|
739
739
|
</div>
|
|
740
740
|
</div>
|
|
741
|
-
`}};
|
|
741
|
+
`}};n([L({type:String}),s("design:type",Object)],Z.prototype,"img",void 0),n([L({type:String}),s("design:type",Object)],Z.prototype,"name",void 0),n([L({type:String}),s("design:type",Object)],Z.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],Z.prototype,"description",void 0),n([L({type:String}),s("design:type",Object)],Z.prototype,"buttonLabel",void 0),n([L({type:String}),s("design:type",Object)],Z.prototype,"cardId",void 0),n([L({type:Object}),s("design:type",Object)],Z.prototype,"onClick",void 0),n([L({type:String}),s("design:type",String)],Z.prototype,"width",void 0),n([L({type:String}),s("design:type",String)],Z.prototype,"height",void 0),Z=n([a("carousel-card")],Z);let Y=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1,this.checkedColor="var(--primary-color)",this.checkedBgColor="transparent"}static{this.styles=o`
|
|
742
742
|
:host {
|
|
743
743
|
display: block;
|
|
744
744
|
max-width: 100%;
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
label {
|
|
748
|
-
${
|
|
748
|
+
${j}
|
|
749
749
|
display: flex;
|
|
750
750
|
align-items: center;
|
|
751
751
|
gap: 8px;
|
|
@@ -866,7 +866,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
866
866
|
<slot></slot>
|
|
867
867
|
</span>
|
|
868
868
|
</label>
|
|
869
|
-
`}};
|
|
869
|
+
`}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Y.prototype,"checked",void 0),n([L({type:Boolean}),s("design:type",Object)],Y.prototype,"error",void 0),n([L({type:Boolean}),s("design:type",Object)],Y.prototype,"disabled",void 0),n([L({type:String}),s("design:type",Object)],Y.prototype,"checkedColor",void 0),n([L({type:String}),s("design:type",Object)],Y.prototype,"checkedBgColor",void 0),Y=n([a("randstad-checkbox")],Y);const G=o`
|
|
870
870
|
.label-container {
|
|
871
871
|
display: flex;
|
|
872
872
|
align-items: center;
|
|
@@ -933,15 +933,15 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
933
933
|
visibility: visible;
|
|
934
934
|
opacity: 1;
|
|
935
935
|
}
|
|
936
|
-
`,
|
|
936
|
+
`,K=o`
|
|
937
937
|
.button:focus-visible, button:focus-visible {
|
|
938
938
|
outline: 2px solid rgb( 0, 215, 255 );
|
|
939
939
|
outline-offset: 1px;
|
|
940
940
|
border-radius: 4px;
|
|
941
941
|
z-index: 100;
|
|
942
942
|
}
|
|
943
|
-
`,
|
|
944
|
-
${
|
|
943
|
+
`,X=o`
|
|
944
|
+
${K}
|
|
945
945
|
|
|
946
946
|
:host {
|
|
947
947
|
display: block;
|
|
@@ -951,7 +951,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
951
951
|
}
|
|
952
952
|
|
|
953
953
|
.form-label {
|
|
954
|
-
${
|
|
954
|
+
${V}
|
|
955
955
|
display: flex;
|
|
956
956
|
align-items: baseline;
|
|
957
957
|
flex-direction: row;
|
|
@@ -966,12 +966,12 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
966
966
|
}
|
|
967
967
|
|
|
968
968
|
input::placeholder {
|
|
969
|
-
${
|
|
969
|
+
${A}
|
|
970
970
|
color: var( --secondary-color-40 );
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
.helper-description {
|
|
974
|
-
${
|
|
974
|
+
${V}
|
|
975
975
|
color: var( --secondary-color-40 );
|
|
976
976
|
margin: 0;
|
|
977
977
|
}
|
|
@@ -982,13 +982,13 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
982
982
|
|
|
983
983
|
.optional {
|
|
984
984
|
color: var( --secondary-color-60 );
|
|
985
|
-
${
|
|
985
|
+
${R}
|
|
986
986
|
}
|
|
987
987
|
|
|
988
988
|
randstad-icon {
|
|
989
989
|
color: var( --primary-color );
|
|
990
990
|
}
|
|
991
|
-
`,
|
|
991
|
+
`,Q=o`
|
|
992
992
|
:host([error]) .input-wrapper, .form.error .form-input {
|
|
993
993
|
border: 1px solid var( --ui-negative, red ) !important;
|
|
994
994
|
}
|
|
@@ -1003,7 +1003,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
1005
|
.error-message {
|
|
1006
|
-
${
|
|
1006
|
+
${V}
|
|
1007
1007
|
color: var(--ui-negative, #E00F0F);
|
|
1008
1008
|
margin-top: 4px;
|
|
1009
1009
|
}
|
|
@@ -1025,10 +1025,10 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1025
1025
|
::-webkit-scrollbar-button {
|
|
1026
1026
|
display: none;
|
|
1027
1027
|
}
|
|
1028
|
-
`,tt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let et=class extends
|
|
1028
|
+
`,tt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let et=class extends P{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[J,o`
|
|
1029
|
+
${X}
|
|
1029
1030
|
${Q}
|
|
1030
|
-
${
|
|
1031
|
-
${K}
|
|
1031
|
+
${G}
|
|
1032
1032
|
|
|
1033
1033
|
.form {
|
|
1034
1034
|
display: flex;
|
|
@@ -1038,7 +1038,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
.form-input {
|
|
1041
|
-
${
|
|
1041
|
+
${A}
|
|
1042
1042
|
padding: 16px;
|
|
1043
1043
|
border: 1px solid var(--secondary-color-10);
|
|
1044
1044
|
border-radius: 4px;
|
|
@@ -1122,7 +1122,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
1124
|
textarea {
|
|
1125
|
-
${
|
|
1125
|
+
${A}
|
|
1126
1126
|
resize: none;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
@@ -1138,7 +1138,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
.link-text {
|
|
1141
|
-
${
|
|
1141
|
+
${V}
|
|
1142
1142
|
color: var(--primary-color);
|
|
1143
1143
|
cursor: pointer;
|
|
1144
1144
|
text-align: end;
|
|
@@ -1175,7 +1175,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1175
1175
|
height: 24px;
|
|
1176
1176
|
color: var( --primary-color );
|
|
1177
1177
|
}
|
|
1178
|
-
`]}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){this.handleInputCustom(t);const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}_updateValueWithCursor(t,e,i){const o=t.value;if(o!==e){i.preventDefault();const r=t.selectionStart,
|
|
1178
|
+
`]}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){this.handleInputCustom(t);const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}_updateValueWithCursor(t,e,i){const o=t.value;if(o!==e){i.preventDefault();const r=t.selectionStart,n=t.selectionEnd;if(t.value=e,null!==r&&null!==n){const i=o.length-e.length,s=Math.max(0,r-i),a=Math.max(0,n-i);t.setSelectionRange(s,a)}}}handleInputCustom(t){const e=t.target;let i=!1;if("number"===this.keydown||"text"===this.keydown||"alfanumeric"===this.keydown)i=!0;else if(this.keydownRegex)try{i=!new RegExp(this.keydownRegex).test("😀")}catch(t){i=!0}if(i){const i=e.value.replace(tt,"");this._updateValueWithCursor(e,i,t)}"number"===this.keydown?this.onlyNumeric(t):"text"===this.keydown?this.onlyText(t):"alfanumeric"===this.keydown?this.onlyAlphanumeric(t):this.keydownRegex&&this.onlyRegex(t)}onlyNumeric(t){const e=t.target,i=e.value.replace(/[^0-9]/g,"");this._updateValueWithCursor(e,i,t)}onlyText(t){const e=t.target,i=e.value.replace(/[^a-zA-Z\sáéíóúüñÁÉÍÓÚÑÜ]/g,"").trimStart();this._updateValueWithCursor(e,i,t)}onlyAlphanumeric(t){const e=t.target,i=e.value.replace(/[^a-zA-Z0-9]/g,"").trimStart();this._updateValueWithCursor(e,i,t)}onlyRegex(t){if(!this.keydownRegex)return;const e=t.target,i=e.value;let o=this.keydownRegex.match(/\[\^?[^\]]+\]/g);o||(o=[`[${this.keydownRegex}]`]);let r="";const n=o.length>=2,s=new RegExp(o[0]),a=n?new RegExp(o[1]):s,l=i.split("");for(let t=0;t<l.length;t++){const e=l[t];0===t?s.test(e)&&(r+=e):a.test(e)&&(r+=e)}const d=r.trimStart();this._updateValueWithCursor(e,d,t)}handleInputKeyDown(t){this.handleKeyDown(t),this.handleInputArrowKey(t)}get _isCleanButtonVisible(){return this.cleanButton&&!!this.value&&"password"!==this.type&&"textarea"!==this.type}handleKeyDown(t){if("Enter"!==t.key)return;const e=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),i=this.closest("form");i&&i.dispatchEvent(e)}get _inputMode(){return"password"===this.type?"text":"number"===this.keydown?"numeric":"text"}handleInputArrowKey(t){if("ArrowRight"!==t.key)return;const e=t.target;if(("password"===this.type||this._isCleanButtonVisible)&&e.selectionStart===e.value.length){t.preventDefault();const e=this.shadowRoot?.querySelector(".toggle-password, .clean-button");e?.focus()}}handleButtonArrowKey(t){if("ArrowLeft"!==t.key)return;t.preventDefault();const e=this.shadowRoot?.querySelector(".form-input");e&&(e.focus(),e.selectionStart=e.selectionEnd=e.value.length)}render(){const t="textarea"===this.type?` height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto; `:"",o=this.labelColor?`--label-color: ${this.labelColor};`:"",r=e`
|
|
1179
1179
|
<randstad-icon
|
|
1180
1180
|
name="${this.isPasswordVisible?"eye_crossed":"eye"}"
|
|
1181
1181
|
size="24px"
|
|
@@ -1262,10 +1262,10 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1262
1262
|
|
|
1263
1263
|
${this.renderHelper()}
|
|
1264
1264
|
</div>
|
|
1265
|
-
`}};
|
|
1265
|
+
`}};n([L({type:String}),s("design:type",Object)],et.prototype,"keydown",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"keydownRegex",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],et.prototype,"icon",void 0),n([L({type:Boolean}),s("design:type",Boolean)],et.prototype,"typing",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"type",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"linkText",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"linkRoute",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],et.prototype,"isPasswordVisible",void 0),n([L({type:Boolean}),s("design:type",Boolean)],et.prototype,"cleanButton",void 0),n([L({type:Number}),s("design:type",Number)],et.prototype,"maxLength",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"heightTextArea",void 0),n([L({type:String}),s("design:type",String)],et.prototype,"maxHeightTextArea",void 0),et=n([a("randstad-form")],et);let it=class extends P{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
|
|
1266
|
+
${X}
|
|
1266
1267
|
${Q}
|
|
1267
|
-
${
|
|
1268
|
-
${K}
|
|
1268
|
+
${G}
|
|
1269
1269
|
|
|
1270
1270
|
:host {
|
|
1271
1271
|
display: flex;
|
|
@@ -1297,7 +1297,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1297
1297
|
|
|
1298
1298
|
${this.renderHelper()}
|
|
1299
1299
|
</div>
|
|
1300
|
-
`}};s([T({type:String}),n("design:type",String)],it.prototype,"rows",void 0),it=s([a("randstad-form-group")],it);class ot extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
|
|
1300
|
+
`}};n([L({type:String}),s("design:type",String)],it.prototype,"rows",void 0),it=n([a("randstad-form-group")],it);const ot={arrow_back:'<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_3095_5899)">\n<path d="M21.475 12.2H3.725L8.575 7.35C8.775 7.15 8.775 6.85 8.575 6.65C8.375 6.45 8.075 6.45 7.875 6.65L2.15 12.35C1.95 12.55 1.95 12.85 2.15 13.05L7.8 18.7C7.9 18.8 8.025 18.85 8.15 18.85C8.275 18.85 8.4 18.8 8.5 18.7C8.7 18.5 8.7 18.2 8.5 18L3.725 13.2H21.5C21.775 13.2 22 12.975 22 12.7C22 12.425 21.75 12.2 21.475 12.2Z" fill="#2175D9"/>\n</g>\n<defs>\n<clipPath id="clip0_3095_5899">\n<rect width="24" height="24" fill="white" transform="translate(0 0.5)"/>\n</clipPath>\n</defs>\n</svg>',arrow_down:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 8.5C20 8.8 19.9 9 19.7 9.2L12.7 16.2C12.3 16.6 11.7 16.6 11.3 16.2L4.3 9.2C3.9 8.8 3.9 8.2 4.3 7.8C4.7 7.4 5.3 7.4 5.7 7.8L12 14.1L18.3 7.8C18.7 7.4 19.3 7.4 19.7 7.8C19.9 8 20 8.2 20 8.5Z" fill="currentColor"/>\n</svg>',arrow_drop_down:'<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9 11.75L5.25 8H12.75L9 11.75Z" fill="#2175D9"/>\n</svg>',arrow_drop_up:'<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9 8L5.25 11.75H12.75L9 8Z" fill="#2175D9"/>\n</svg>',arrow_left:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M15 20C14.744 20 14.488 19.902 14.293 19.707L7.293 12.707C6.902 12.316 6.902 11.684 7.293 11.293L14.293 4.29301C14.684 3.90201 15.316 3.90201 15.707 4.29301C16.098 4.68401 16.098 5.31601 15.707 5.70701L9.414 12L15.707 18.293C16.098 18.684 16.098 19.316 15.707 19.707C15.512 19.902 15.256 20 15 20Z" fill="#2175D9"/>\n</svg>',arrow_next:'<svg width="28" height="17" viewBox="0 0 28 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18.645 0.692567C18.3776 0.959902 18.3776 1.3609 18.645 1.62824L25.061 8.04428L1.33502 8.04428C0.967439 8.04428 0.666687 8.34503 0.666687 8.71262C0.666687 9.0802 0.967439 9.38095 1.33502 9.38095L25.0944 9.38095L18.5781 15.8638C18.3108 16.1312 18.3108 16.5322 18.5781 16.7995C18.8455 17.0668 19.2465 17.0668 19.5138 16.7995L27.1329 9.18045C27.2665 9.04678 27.3334 8.8797 27.3334 8.71262C27.3334 8.54553 27.2665 8.37845 27.1329 8.24478L19.5806 0.692567C19.3467 0.425232 18.9123 0.425232 18.645 0.692567Z" fill="white"/>\n</svg>',arrow_prev:'<svg width="28" height="17" viewBox="0 0 28 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M26.6334 7.6H2.96669L9.43335 1.13333C9.70002 0.866666 9.70002 0.466667 9.43335 0.2C9.16669 -0.0666667 8.76669 -0.0666667 8.50002 0.2L0.866687 7.8C0.60002 8.06667 0.60002 8.46667 0.866687 8.73333L8.40002 16.2667C8.53335 16.4 8.70002 16.4667 8.86669 16.4667C9.03335 16.4667 9.20002 16.4 9.33335 16.2667C9.60002 16 9.60002 15.6 9.33335 15.3333L2.96669 8.93333H26.6667C27.0334 8.93333 27.3334 8.63333 27.3334 8.26667C27.3334 7.9 27 7.6 26.6334 7.6Z" fill="white"/>\n</svg>',arrow_right:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.00001 4C9.25601 4 9.51201 4.098 9.70701 4.293L16.707 11.293C17.098 11.684 17.098 12.316 16.707 12.707L9.70701 19.707C9.31601 20.098 8.68401 20.098 8.29301 19.707C7.90201 19.316 7.90201 18.684 8.29301 18.293L14.586 12L8.29301 5.707C7.90201 5.316 7.90201 4.684 8.29301 4.293C8.48801 4.098 8.74401 4 9.00001 4Z" fill="#2175D9"/>\n</svg>',arrow_up:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M4 15.0002C4 14.7442 4.098 14.4883 4.293 14.2933L11.293 7.29325C11.684 6.90225 12.316 6.90225 12.707 7.29325L19.707 14.2933C20.098 14.6842 20.098 15.3162 19.707 15.7072C19.316 16.0982 18.684 16.0982 18.293 15.7072L12 9.41425L5.707 15.7072C5.316 16.0982 4.684 16.0982 4.293 15.7072C4.098 15.5122 4 15.2562 4 15.0002Z" fill="currentColor"/>\n</svg>',ayuda:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2313_3705)">\n<path d="M12.4496 6.01244C10.3196 6.01244 8.56549 7.74151 8.56549 9.89658C8.56549 10.1722 8.79102 10.3978 9.06667 10.3978C9.34232 10.3978 9.56785 10.1722 9.56785 9.89658C9.56785 8.31787 10.8459 7.0148 12.4496 7.0148C14.0534 7.0148 15.3314 8.29281 15.3314 9.89658C15.3314 11.5004 14.0534 12.7784 12.4496 12.7784C12.174 12.7784 11.9485 13.0039 11.9485 13.2796V14.6578C11.9485 14.9334 12.174 15.159 12.4496 15.159C12.7253 15.159 12.9508 14.9334 12.9508 14.6578V13.7557C14.8553 13.5051 16.3338 11.8762 16.3338 9.92164C16.3338 7.76657 14.5797 6.01244 12.4496 6.01244Z" />\n<path d="M12.4245 16.2113C11.9985 16.2113 11.6477 16.5622 11.6477 16.9882C11.6477 17.4142 11.9985 17.765 12.4245 17.765C12.8505 17.765 13.2014 17.4142 13.2014 16.9882C13.2014 16.5622 12.8505 16.2113 12.4245 16.2113Z" />\n<path d="M13.6775 2.07808C11.1214 1.75231 8.59048 2.45396 6.58576 4.03268C4.58104 5.63646 3.32809 7.91683 3.05244 10.4728C2.75173 13.3546 3.75409 16.1362 5.80893 18.1409V20.722C5.80893 21.1731 6.05952 21.5991 6.4354 21.8246C6.63588 21.9499 6.86141 22 7.08694 22C7.31247 22 7.51294 21.9499 7.71342 21.8246L9.94367 20.5466C10.4448 20.6719 10.946 20.7721 11.4723 20.8222C14.1035 21.0979 16.7096 20.2709 18.6893 18.5419C20.694 16.7877 21.8216 14.357 21.8968 11.7007C22.0472 6.91447 18.4387 2.6795 13.6775 2.07808ZM20.8945 11.6757C20.8193 14.0563 19.7919 16.2364 18.0127 17.7901C16.2585 19.3187 13.903 20.0705 11.5976 19.8449C11.0713 19.7948 10.5451 19.6946 10.0439 19.5442C9.91861 19.4941 9.76825 19.5192 9.66802 19.5943L7.23729 20.9726C7.112 21.0478 7.01176 20.9976 6.96164 20.9726C6.91153 20.9475 6.81129 20.8723 6.81129 20.722V18.0156C6.83635 17.8402 6.78623 17.6648 6.66094 17.5646C4.73139 15.7603 3.77915 13.2043 4.0548 10.5731C4.28033 8.29271 5.40799 6.23788 7.21223 4.80951C9.01648 3.38115 11.2718 2.75467 13.5522 3.05538C17.7871 3.60668 21.0198 7.39059 20.8945 11.6757Z" />\n</g>\n<defs>\n<clipPath id="clip0_2313_3705">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',calendar:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4813)">\n<path d="M19.975 3.125H16.975V2.5C16.975 2.225 16.75 2 16.475 2C16.2 2 15.975 2.225 15.975 2.5V3.125H7.975V2.5C7.975 2.225 7.75 2 7.475 2C7.2 2 6.975 2.225 6.975 2.5V3.125H4.025C2.925 3.125 2 4.025 2 5.15V19.925C2 21.025 2.9 21.95 4.025 21.95H19.975C21.075 21.95 22 21.05 22 19.925V5.125C22 4.025 21.1 3.125 19.975 3.125ZM4.025 4.15H6.95V4.8C6.95 5.075 7.175 5.3 7.45 5.3C7.725 5.3 7.95 5.075 7.95 4.8V4.15H15.925V4.8C15.925 5.075 16.15 5.3 16.425 5.3C16.7 5.3 16.925 5.075 16.925 4.8V4.15H19.95C20.5 4.15 20.95 4.6 20.95 5.15V7.95H3.025V5.125C3.025 4.575 3.475 4.15 4.025 4.15ZM19.975 20.9H4.025C3.475 20.9 3.025 20.45 3.025 19.9V8.975H20.975V19.9C20.975 20.45 20.525 20.9 19.975 20.9Z" />\n<path d="M7.45001 12.575C7.86423 12.575 8.20001 12.2392 8.20001 11.825C8.20001 11.4108 7.86423 11.075 7.45001 11.075C7.0358 11.075 6.70001 11.4108 6.70001 11.825C6.70001 12.2392 7.0358 12.575 7.45001 12.575Z" />\n<path d="M10.4499 12.575C10.8641 12.575 11.1999 12.2392 11.1999 11.825C11.1999 11.4108 10.8641 11.075 10.4499 11.075C10.0357 11.075 9.69989 11.4108 9.69989 11.825C9.69989 12.2392 10.0357 12.575 10.4499 12.575Z" />\n<path d="M13.4501 12.575C13.8643 12.575 14.2001 12.2392 14.2001 11.825C14.2001 11.4108 13.8643 11.075 13.4501 11.075C13.0359 11.075 12.7001 11.4108 12.7001 11.825C12.7001 12.2392 13.0359 12.575 13.4501 12.575Z" />\n<path d="M16.45 12.575C16.8642 12.575 17.2 12.2392 17.2 11.825C17.2 11.4108 16.8642 11.075 16.45 11.075C16.0357 11.075 15.7 11.4108 15.7 11.825C15.7 12.2392 16.0357 12.575 16.45 12.575Z" />\n<path d="M7.45001 15.5749C7.86423 15.5749 8.20001 15.2391 8.20001 14.8249C8.20001 14.4107 7.86423 14.0749 7.45001 14.0749C7.0358 14.0749 6.70001 14.4107 6.70001 14.8249C6.70001 15.2391 7.0358 15.5749 7.45001 15.5749Z" />\n<path d="M10.4499 15.5749C10.8641 15.5749 11.1999 15.2391 11.1999 14.8249C11.1999 14.4107 10.8641 14.0749 10.4499 14.0749C10.0357 14.0749 9.69989 14.4107 9.69989 14.8249C9.69989 15.2391 10.0357 15.5749 10.4499 15.5749Z" />\n<path d="M13.4501 15.5749C13.8643 15.5749 14.2001 15.2391 14.2001 14.8249C14.2001 14.4107 13.8643 14.0749 13.4501 14.0749C13.0359 14.0749 12.7001 14.4107 12.7001 14.8249C12.7001 15.2391 13.0359 15.5749 13.4501 15.5749Z" />\n<path d="M16.45 15.5749C16.8642 15.5749 17.2 15.2391 17.2 14.8249C17.2 14.4107 16.8642 14.0749 16.45 14.0749C16.0357 14.0749 15.7 14.4107 15.7 14.8249C15.7 15.2391 16.0357 15.5749 16.45 15.5749Z" />\n<path d="M7.45001 18.5751C7.86423 18.5751 8.20001 18.2393 8.20001 17.8251C8.20001 17.4109 7.86423 17.0751 7.45001 17.0751C7.0358 17.0751 6.70001 17.4109 6.70001 17.8251C6.70001 18.2393 7.0358 18.5751 7.45001 18.5751Z" />\n<path d="M10.4499 18.5751C10.8641 18.5751 11.1999 18.2393 11.1999 17.8251C11.1999 17.4109 10.8641 17.0751 10.4499 17.0751C10.0357 17.0751 9.69989 17.4109 9.69989 17.8251C9.69989 18.2393 10.0357 18.5751 10.4499 18.5751Z" />\n</g>\n<defs>\n<clipPath id="clip0_2335_4813">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',check:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4801)">\n<path d="M21.8098 4.11505C21.6095 3.93974 21.2839 3.96478 21.1086 4.19018L9.21268 18.4152L2.8515 11.9538C2.65114 11.7535 2.35062 11.7535 2.15026 11.9538C1.94991 12.1542 1.94991 12.4547 2.15026 12.6551L8.88711 19.5171C8.98728 19.6173 9.1125 19.6674 9.23772 19.6674H9.26277C9.41303 19.6674 9.53825 19.5923 9.63843 19.4921L21.885 4.81628C22.0603 4.59088 22.0352 4.29035 21.8098 4.11505Z"/>\n</g>\n<defs>\n<clipPath id="clip0_2335_4801">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',close:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4789)">\n<path d="M12.7018 12L21.8496 2.85213C22.0501 2.65163 22.0501 2.35088 21.8496 2.15038C21.6491 1.94987 21.3484 1.94987 21.1479 2.15038L12 11.2982L2.85213 2.15038C2.65163 1.94987 2.35088 1.94987 2.15038 2.15038C1.94987 2.35088 1.94987 2.65163 2.15038 2.85213L11.2982 12L2.15038 21.1479C1.94987 21.3484 1.94987 21.6491 2.15038 21.8496C2.25063 21.9499 2.37594 22 2.50125 22C2.62657 22 2.75188 21.9499 2.85213 21.8496L12 12.7018L21.1479 21.8496C21.2481 21.9499 21.3734 22 21.4987 22C21.6241 22 21.7494 21.9499 21.8496 21.8496C22.0501 21.6491 22.0501 21.3484 21.8496 21.1479L12.7018 12Z" fill="currentColor"/>\n</g>\n<defs>\n<clipPath id="clip0_2335_4789">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',edit:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2313_3987)">\n<path d="M21.1792 2.86303C20.0866 1.72074 18.249 1.72074 17.1315 2.81336L3.02678 16.5456C2.95228 16.6201 2.90262 16.6946 2.87778 16.794L2.00865 20.8665C1.98382 21.0154 2.00865 21.1893 2.13281 21.3134C2.23214 21.4128 2.35631 21.4624 2.5053 21.4624C2.53013 21.4624 2.55496 21.4624 2.5798 21.4624L6.77646 20.792C6.87579 20.7671 6.97511 20.7175 7.04961 20.6678L21.1295 6.91069C21.6758 6.36438 21.9738 5.66908 21.9987 4.89928C22.0235 4.12947 21.7007 3.40934 21.1792 2.86303ZM20.4342 6.21539L6.45364 19.8483L3.12611 20.3698L3.82141 17.1664L17.802 3.5335C18.547 2.81336 19.7389 2.83819 20.4591 3.55833C20.8067 3.90598 21.0054 4.3778 20.9805 4.89928C20.9805 5.39592 20.7819 5.86774 20.4342 6.21539Z" fill="#2175D9"/>\n</g>\n<defs>\n<clipPath id="clip0_2313_3987">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>\n</svg>',email:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4843)">\n<path d="M19.975 5H4.025C2.925 5 2 5.9 2 7.025V16.75C2 17.85 2.9 18.775 4.025 18.775H19.975C21.075 18.775 22 17.875 22 16.75V7C22 5.9 21.1 5 19.975 5ZM20.975 16.725C20.975 17.275 20.525 17.725 19.975 17.725H4.025C3.475 17.725 3.025 17.275 3.025 16.725V7C3.025 6.45 3.475 6 4.025 6H19.975C20.525 6 20.975 6.45 20.975 7V16.725Z"/>\n<path d="M14.6001 11.7498L17.6251 9.17477C17.8501 8.99977 17.8751 8.67477 17.6751 8.44977C17.5001 8.22477 17.1751 8.19977 16.9501 8.39977L12.0001 12.6498L7.0501 8.39977C6.8251 8.22477 6.5001 8.24977 6.3251 8.44977C6.1501 8.67477 6.1751 8.99977 6.3751 9.17477L9.4001 11.7748L6.3751 14.4748C6.1751 14.6748 6.1501 14.9998 6.3251 15.1998C6.4251 15.3248 6.5751 15.3748 6.7001 15.3748C6.8251 15.3748 6.9501 15.3248 7.0501 15.2498L10.1751 12.4248L11.6751 13.6998C11.6751 13.6998 11.6751 13.6998 11.7001 13.6998L11.7251 13.7248C11.7501 13.7498 11.7751 13.7498 11.7751 13.7498C11.7751 13.7498 11.8001 13.7498 11.8001 13.7748C11.8251 13.7748 11.8501 13.7998 11.8751 13.7998H11.9001C11.9251 13.7998 11.9751 13.7998 12.0001 13.7998C12.0251 13.7998 12.0751 13.7998 12.1001 13.7998H12.1251C12.1501 13.7998 12.1751 13.7748 12.2001 13.7748C12.2001 13.7748 12.2251 13.7748 12.2251 13.7498C12.2501 13.7498 12.2751 13.7248 12.2751 13.7248L12.3001 13.6998C12.3001 13.6998 12.3001 13.6998 12.3251 13.6998L13.8251 12.4248L16.9501 15.2248C17.0501 15.3248 17.1751 15.3498 17.3001 15.3498C17.4501 15.3498 17.5751 15.2998 17.6751 15.1748C17.8751 14.9748 17.8501 14.6498 17.6251 14.4498L14.6001 11.7498Z"/>\n</g>\n<defs>\n<clipPath id="clip0_2335_4843">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',eye:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4808)">\n<path d="M21.4 10.5C19.65 8.825 16.125 6 12 6C7.875 6 4.325 8.825 2.6 10.5C2.2 10.875 2 11.4 2 11.95C2 12.5 2.225 13 2.6 13.4C4.35 15.075 7.875 17.9 12 17.9C16.125 17.9 19.675 15.075 21.4 13.4C21.8 13.025 22 12.5 22 11.95C22 11.4 21.8 10.9 21.4 10.5ZM12 16.375C9.55 16.375 7.575 14.4 7.575 11.95C7.575 9.5 9.55 7.525 12 7.525C14.45 7.525 16.425 9.5 16.425 11.95C16.425 14.4 14.425 16.375 12 16.375ZM2.975 11.95C2.975 11.675 3.075 11.425 3.275 11.225C4.4 10.125 6.325 8.525 8.675 7.65C7.4 8.65 6.575 10.2 6.575 11.95C6.575 13.7 7.4 15.25 8.675 16.25C6.35 15.375 4.425 13.775 3.275 12.675C3.1 12.475 2.975 12.225 2.975 11.95ZM20.7 12.675C19.575 13.775 17.65 15.375 15.3 16.25C16.575 15.25 17.4 13.7 17.4 11.95C17.4 10.2 16.575 8.65 15.3 7.65C17.625 8.525 19.55 10.125 20.7 11.225C20.9 11.425 21 11.675 21 11.95C21 12.225 20.9 12.475 20.7 12.675Z"/>\n<path d="M12 10.425C11.15 10.425 10.475 11.1 10.475 11.95C10.475 12.8 11.15 13.475 12 13.475C12.85 13.475 13.525 12.8 13.525 11.95C13.5 11.1 12.825 10.425 12 10.425Z"/>\n</g>\n<defs>\n<clipPath id="clip0_2335_4808">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',eye_crossed:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4805)">\n<path d="M21.4007 10.569C20.0774 9.29562 17.7054 7.34805 14.834 6.49911L16.382 2.72883C16.4569 2.55405 16.432 2.35429 16.3321 2.20448C16.2322 2.05467 16.0325 1.97976 15.8577 2.00473C15.6829 2.0297 15.5331 2.15454 15.4582 2.32933L13.8352 6.22446C13.236 6.09961 12.6117 6.04968 11.9875 6.04968C7.86767 6.04968 4.3221 8.87115 2.59925 10.5441C2.19975 10.9186 2 11.4429 2 11.9922C2 12.5416 2.22472 13.0409 2.59925 13.4404C3.9226 14.7138 6.29463 16.6614 9.16604 17.5104L7.61798 21.2806C7.56804 21.4055 7.56804 21.5303 7.61798 21.6552C7.66792 21.78 7.76779 21.8799 7.89263 21.9298C7.94257 21.9548 8.01748 21.9548 8.09238 21.9548C8.29214 21.9548 8.46692 21.8299 8.54182 21.6552L10.1648 17.76C10.764 17.8849 11.3883 17.9348 12.0125 17.9348C16.1323 17.9348 19.6779 15.1133 21.4007 13.4404C21.8002 13.0659 22 12.5416 22 12.0172C22 11.4929 21.8002 10.9436 21.4007 10.569ZM10.789 16.2619L11.9376 13.5153C12.5868 13.5403 13.186 13.1658 13.4107 12.5915C13.6604 11.9922 13.5106 11.3181 13.0112 10.8936L14.1348 8.14705C16.1074 9.24568 16.9313 11.6177 16.0824 13.7151C15.2335 15.7625 12.9613 16.8861 10.789 16.2619ZM3.29838 12.7413C3.1236 12.5416 2.99875 12.2919 2.99875 12.0172C2.99875 11.7426 3.09863 11.4929 3.29838 11.2931C4.92135 9.72009 8.2422 7.0734 11.9875 7.0734C12.4619 7.0734 12.9613 7.12333 13.4357 7.19824L13.4107 7.24818L9.66542 16.3618L9.56554 16.5615C6.84395 15.8125 4.57179 13.9648 3.29838 12.7413ZM20.7016 12.7413C19.578 13.8399 17.6554 15.4379 15.3333 16.3118C16.6567 15.2881 17.4307 13.7151 17.4307 12.0172C17.4307 10.3193 16.6567 8.7463 15.3333 7.72258C17.6554 8.59649 19.578 10.1945 20.7266 11.2931C20.9263 11.4929 21.0262 11.7426 21.0262 12.0172C21.0262 12.2919 20.9014 12.5416 20.7016 12.7413Z"/>\n</g>\n<defs>\n<clipPath id="clip0_2335_4805">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',home:'<svg width="26" height="25" viewBox="0 0 26 25" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2670_151)">\n<path d="M21.6796 9.22381L14.539 3.01029C13.7874 2.35887 12.6599 2.35887 11.9083 3.01029L4.69261 9.22381C4.24163 9.59962 3.99109 10.1508 3.99109 10.7521V20.5484C3.99109 21.6508 4.89305 22.5528 5.99545 22.5528H10.5554H15.8168H20.3767C21.4791 22.5528 22.3811 21.6508 22.3811 20.5484V10.7521C22.356 10.1759 22.1055 9.62468 21.6796 9.22381ZM11.0565 21.5506V17.3415C11.0565 16.7903 11.5074 16.3393 12.0586 16.3393H14.3135C14.8647 16.3393 15.3157 16.7903 15.3157 17.3415V21.5757H11.0565V21.5506ZM21.3539 20.5484C21.3539 21.0996 20.9029 21.5506 20.3517 21.5506H16.3179V17.3415C16.3179 16.2391 15.4159 15.3371 14.3135 15.3371H12.0586C10.9562 15.3371 10.0543 16.2391 10.0543 17.3415V21.5757H5.99545C5.44425 21.5757 4.99327 21.1247 4.99327 20.5735V10.7521C4.99327 10.4515 5.11854 10.1759 5.34403 10.0005L12.5597 3.78698C12.7351 3.63665 12.9857 3.53644 13.2111 3.53644C13.4366 3.53644 13.6872 3.6116 13.8626 3.78698L21.0031 10.0005C21.2286 10.2009 21.3539 10.4765 21.3539 10.7521V20.5484Z" fill="currentColor"/>\n</g>\n<defs>\n<clipPath id="clip0_2670_151">\n<rect width="24.0373" height="24.0373" fill="currentColor" transform="translate(0.986328 0.518555)"/>\n</clipPath>\n</defs>\n</svg>',icon_check:'<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="56" height="56" rx="28" fill="#257156" fill-opacity="0.2"/>\n<path d="M43.6957 15.6502C43.3752 15.3697 42.8542 15.4097 42.5737 15.7704L23.5403 38.5304L13.3624 28.1922C13.0418 27.8717 12.561 27.8717 12.2404 28.1922C11.9199 28.5128 11.9199 28.9936 12.2404 29.3142L23.0194 40.2935C23.1797 40.4538 23.38 40.5339 23.5804 40.5339H23.6204C23.8608 40.5339 24.0612 40.4137 24.2215 40.2534L43.8159 16.7721C44.0964 16.4115 44.0563 15.9307 43.6957 15.6502Z" fill="#257156"/>\n</svg>',icon_trash:'<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="56" height="56" rx="28" fill="#E00F0F" fill-opacity="0.2"/>\n<path d="M40.7391 16.96H33.4991C33.0991 14.16 30.7791 12 27.9791 12C25.1791 12 22.8191 14.16 22.4191 16.96H15.3391C14.8991 16.96 14.5391 17.32 14.5391 17.76C14.5391 18.2 14.8991 18.56 15.3391 18.56H16.9391V40.72C16.9391 42.52 18.4191 44 20.1791 44H35.8191C37.6191 44 39.0591 42.52 39.0591 40.72V18.56H40.6591C41.0991 18.56 41.4591 18.2 41.4591 17.76C41.4591 17.32 41.1791 16.96 40.7391 16.96ZM27.9791 13.6C29.8991 13.6 31.5391 15.04 31.8991 16.96H24.0591C24.4191 15.04 26.0191 13.6 27.9791 13.6ZM37.5391 40.72C37.5391 41.64 36.7791 42.4 35.8991 42.4H20.2191C19.2991 42.4 18.5791 41.64 18.5791 40.72V18.56H37.5391V40.72Z" fill="#E00F0F"/>\n<path d="M27.9797 37.6C28.4197 37.6 28.7797 37.24 28.7797 36.8V24.2C28.7797 23.76 28.4197 23.4 27.9797 23.4C27.5397 23.4 27.1797 23.76 27.1797 24.2V36.8C27.1797 37.24 27.5397 37.6 27.9797 37.6Z" fill="#E00F0F"/>\n<path d="M32.7805 37.6C33.2205 37.6 33.5805 37.24 33.5805 36.8V24.2C33.5805 23.76 33.2205 23.4 32.7805 23.4C32.3405 23.4 31.9805 23.76 31.9805 24.2V36.8C31.9805 37.24 32.3405 37.6 32.7805 37.6Z" fill="#E00F0F"/>\n<path d="M23.1789 37.6C23.6189 37.6 23.9789 37.24 23.9789 36.8V24.2C23.9789 23.76 23.6189 23.4 23.1789 23.4C22.7389 23.4 22.3789 23.76 22.3789 24.2V36.8C22.3789 37.24 22.7389 37.6 23.1789 37.6Z" fill="#E00F0F"/>\n</svg>',icon_warning:'<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="56" height="56" rx="28" fill="#E9A204" fill-opacity="0.2"/>\n<path d="M28.0413 24.16C28.7041 24.16 29.2413 23.6228 29.2413 22.96C29.2413 22.2973 28.7041 21.76 28.0413 21.76C27.3786 21.76 26.8413 22.2973 26.8413 22.96C26.8413 23.6228 27.3786 24.16 28.0413 24.16Z" fill="#E9A204"/>\n<path d="M28.0412 34.24C27.6012 34.24 27.2412 33.88 27.2412 33.44V26.56C27.2412 26.12 27.6012 25.76 28.0412 25.76C28.4812 25.76 28.8412 26.12 28.8412 26.56V33.44C28.8412 33.88 28.4812 34.24 28.0412 34.24Z" fill="#E9A204"/>\n<path d="M28 12C19.16 12 12 19.2 12 28C12 36.8 19.16 44 28 44C36.84 44 44 36.84 44 28C44 19.16 36.84 12 28 12ZM28 42.4C20.04 42.4 13.6 35.96 13.6 28C13.6 20.04 20.04 13.6 28 13.6C35.96 13.6 42.4 20.04 42.4 28C42.4 35.96 35.96 42.4 28 42.4Z" fill="#E9A204"/>\n</svg>',image:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM21 20C21 20.55 20.55 21 20 21H4C3.45 21 3 20.55 3 20V4C3 3.45 3.45 3 4 3H20C20.55 3 21 3.45 21 4V20Z" fill="#2175D9"/>\n<path d="M17.725 8.475C17.625 8.325 17.475 8.25 17.3 8.25C17.125 8.25 16.975 8.325 16.875 8.475L11.9 15.75L8.60001 12.875C8.40001 12.7 8.12501 12.7 7.92501 12.9L4.42501 16.2C4.22501 16.4 4.22501 16.7 4.40001 16.9C4.50001 17 4.62501 17.05 4.77501 17.05C4.90001 17.05 5.02501 17 5.12501 16.925L8.30001 13.925L11.7 16.875C11.8 16.975 11.95 17 12.1 17C12.25 16.975 12.375 16.9 12.45 16.775L17.35 9.65L19.075 12.25C19.225 12.475 19.55 12.55 19.775 12.4C20 12.25 20.075 11.925 19.925 11.7L17.725 8.475Z" fill="#2175D9"/>\n<path d="M8.27502 10.9C9.92502 10.9 11.275 9.54999 11.275 7.89999C11.275 6.24999 9.92502 4.89999 8.27502 4.89999C6.62502 4.89999 5.27502 6.24999 5.27502 7.89999C5.27502 9.54999 6.60002 10.9 8.27502 10.9ZM8.27502 5.89999C9.37502 5.89999 10.275 6.79999 10.275 7.89999C10.275 8.99999 9.37502 9.89999 8.27502 9.89999C7.17502 9.89999 6.27502 8.99999 6.27502 7.89999C6.27502 6.79999 7.15002 5.89999 8.27502 5.89999Z" fill="#2175D9"/>\n</svg>',info:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2313_3707)">\n<path d="M12.0249 9.59985C12.4391 9.59985 12.7749 9.26407 12.7749 8.84985C12.7749 8.43564 12.4391 8.09985 12.0249 8.09985C11.6107 8.09985 11.2749 8.43564 11.2749 8.84985C11.2749 9.26407 11.6107 9.59985 12.0249 9.59985Z"/>\n<path d="M12.0248 15.8999C11.7498 15.8999 11.5248 15.6749 11.5248 15.3999V11.0999C11.5248 10.8249 11.7498 10.5999 12.0248 10.5999C12.2998 10.5999 12.5248 10.8249 12.5248 11.0999V15.3999C12.5248 15.6749 12.2998 15.8999 12.0248 15.8999Z"/>\n<path d="M12 2C6.475 2 2 6.5 2 12C2 17.5 6.475 22 12 22C17.525 22 22 17.525 22 12C22 6.475 17.525 2 12 2ZM12 21C7.025 21 3 16.975 3 12C3 7.025 7.025 3 12 3C16.975 3 21 7.025 21 12C21 16.975 16.975 21 12 21Z"/>\n</g>\n<defs>\n<clipPath id="clip0_2313_3707">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>',postulation:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M17.7249 3.55H16.7499V3.25C16.7499 2.55 16.1999 2 15.4999 2H8.4999C7.7999 2 7.2499 2.55 7.2499 3.25V3.525H6.2749C5.1749 3.525 4.2749 4.425 4.2749 5.525V20C4.2749 21.1 5.1749 22 6.2749 22H17.7249C18.8249 22 19.7249 21.1 19.7249 20V5.525C19.7249 4.425 18.8249 3.55 17.7249 3.55ZM8.2499 4.55V3.55V3.25C8.2499 3.1 8.3499 3 8.4999 3H15.4999C15.6499 3 15.7499 3.1 15.7499 3.25V3.525V4.525V5.25C15.7499 5.4 15.6499 5.5 15.4999 5.5H8.4999C8.3499 5.5 8.2499 5.4 8.2499 5.25V4.55ZM18.7249 20C18.7249 20.55 18.2749 21 17.7249 21H6.2749C5.7249 21 5.2749 20.55 5.2749 20V5.525C5.2749 4.975 5.7249 4.525 6.2749 4.525H7.2499V5.25C7.2499 5.95 7.7999 6.5 8.4999 6.5H15.4999C16.1999 6.5 16.7499 5.95 16.7499 5.25V4.525H17.7249C18.2749 4.525 18.7249 4.975 18.7249 5.525V20Z" fill="#404767"/>\n<path d="M15.625 9.17498L11.475 13.775L9.85 12.15C9.65 11.95 9.35 11.95 9.15 12.15C8.95 12.35 8.95 12.65 9.15 12.85L11.15 14.85C11.25 14.95 11.375 15 11.5 15C11.5 15 11.5 15 11.525 15C11.65 15 11.8 14.925 11.875 14.825L16.375 9.82498C16.55 9.62498 16.55 9.29998 16.35 9.12498C16.125 8.94998 15.825 8.94998 15.625 9.17498Z" fill="#404767"/>\n</svg>',"search-white":'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_9569_18053)">\n<path d="M29.128 28.2426L23.9698 23.0843C25.946 20.9071 27.1518 18.0265 27.1518 14.8444C27.1518 8.11188 21.6586 2.61865 14.926 2.61865C8.19347 2.61865 2.66675 8.11188 2.66675 14.8444C2.66675 21.577 8.15998 27.0702 14.926 27.0702C18.0411 27.0702 20.8547 25.8979 23.0319 23.9887L28.2237 29.1804C28.3577 29.3144 28.5251 29.3814 28.6926 29.3814C28.8601 29.3814 29.0276 29.3144 29.1615 29.1804C29.396 28.9125 29.396 28.5105 29.128 28.2426ZM14.926 25.7304C8.93037 25.7304 4.04006 20.8401 4.04006 14.8444C4.04006 8.84878 8.89688 3.95846 14.926 3.95846C20.9217 3.95846 25.812 8.84878 25.812 14.8444C25.812 20.8401 20.9217 25.7304 14.926 25.7304Z" fill="white"/>\n</g>\n<defs>\n<clipPath id="clip0_9569_18053">\n<rect width="32" height="32" fill="white"/>\n</clipPath>\n</defs>\n</svg>',settings:'<svg width="25" height="25" viewBox="0 0 25 25" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2670_175)">\n<path d="M21.1417 10.5342H20.1401C19.9398 9.80803 19.6644 9.10694 19.2888 8.48097L20.0149 7.75485C20.2403 7.5295 20.3905 7.20399 20.3905 6.87849C20.3905 6.55298 20.2653 6.22748 20.0149 6.00213L18.9633 4.9505C18.4625 4.44972 17.6863 4.47476 17.1855 4.9505L16.4594 5.67662C15.8084 5.276 15.1073 4.97554 14.3812 4.77522V3.77367C14.3812 3.07258 13.8303 2.52173 13.1293 2.52173H11.6269C10.9258 2.52173 10.375 3.07258 10.375 3.77367V4.77522C9.64885 4.97554 8.94777 5.25096 8.29676 5.62655L7.59567 4.92546C7.37032 4.70011 7.04481 4.54988 6.71931 4.54988C6.3938 4.54988 6.0683 4.67507 5.84295 4.92546L4.79132 5.97709C4.56597 6.20244 4.41573 6.52794 4.41573 6.85345C4.41573 7.17895 4.54093 7.50446 4.79132 7.72981L5.4924 8.4309C5.11682 9.08191 4.81636 9.75795 4.61604 10.5091H3.61449C2.9134 10.5091 2.36255 11.06 2.36255 11.7611V13.2634C2.36255 13.9645 2.9134 14.5153 3.61449 14.5153H4.59101C4.79132 15.2665 5.06674 15.9676 5.46737 16.5936L4.79132 17.2696C4.31558 17.7453 4.31558 18.5466 4.79132 19.0474L5.84295 20.099C6.0683 20.3243 6.3938 20.4746 6.71931 20.4746C7.04481 20.4746 7.37032 20.3494 7.59567 20.099L8.27172 19.4229C8.92273 19.7985 9.62381 20.099 10.3499 20.2993V21.3009C10.3499 22.0019 10.9008 22.5528 11.6019 22.5528H13.1042C13.8053 22.5528 14.3562 22.0019 14.3562 21.3009V20.3243C15.1073 20.124 15.7834 19.8236 16.4344 19.448L17.1355 20.1491C17.3859 20.3995 17.7114 20.5247 18.0118 20.5247C18.3373 20.5247 18.6628 20.3995 18.8882 20.1491L19.9398 19.0974C20.4406 18.6217 20.4406 17.8205 19.9398 17.3197L19.2387 16.6186C19.6143 15.9676 19.9148 15.2915 20.0901 14.5404H21.0916C21.7927 14.5404 22.3435 13.9895 22.3435 13.2884V11.7861C22.3936 11.085 21.8428 10.5342 21.1417 10.5342ZM21.3921 13.2884C21.3921 13.4387 21.2919 13.5388 21.1417 13.5388H20.3154H19.3138C19.2638 13.8894 19.1887 14.2149 19.0885 14.5404C18.9383 15.0161 18.763 15.4668 18.5376 15.8925C18.3874 16.1929 18.1871 16.4934 17.9868 16.7438L18.6879 17.4449L19.2638 18.0208C19.3389 18.0959 19.3389 18.171 19.3389 18.196C19.3389 18.2461 19.3389 18.3212 19.2638 18.3713L18.2121 19.4229C18.137 19.4981 18.0619 19.4981 18.0369 19.4981C17.9868 19.4981 17.9117 19.4981 17.8616 19.4229L17.2857 18.8471L16.5846 18.146C16.3092 18.3463 16.0338 18.5466 15.7333 18.6968C15.3076 18.9222 14.8569 19.1225 14.3812 19.2727C14.0557 19.3729 13.7302 19.448 13.3796 19.4981V20.4996V21.3009C13.3796 21.4511 13.2795 21.5513 13.1293 21.5513H11.6269C11.4767 21.5513 11.3765 21.4511 11.3765 21.3009V20.5247V19.5231C11.026 19.473 10.7005 19.3979 10.375 19.2978C9.89924 19.1475 9.44854 18.9723 9.02288 18.7469C8.72241 18.5716 8.42195 18.3964 8.17156 18.196L7.47047 18.8971L6.91962 19.448C6.8445 19.5231 6.76939 19.5231 6.74435 19.5231C6.69427 19.5231 6.61915 19.5231 6.56907 19.448L5.51744 18.3964C5.41729 18.2962 5.41729 18.146 5.51744 18.0458L6.0683 17.495L6.76939 16.7939C6.56907 16.5184 6.36876 16.243 6.21853 15.9425C5.99318 15.5169 5.79287 15.0662 5.66768 14.5905C5.56752 14.2649 5.4924 13.9394 5.44233 13.5889H4.44077H3.61449C3.46426 13.5889 3.3641 13.4887 3.3641 13.3385V11.8362C3.3641 11.6859 3.46426 11.5858 3.61449 11.5858H4.3907H5.39225C5.44233 11.2352 5.51744 10.9097 5.6176 10.5842C5.76783 10.1085 5.9431 9.6578 6.19349 9.23214C6.36876 8.93167 6.54404 8.65625 6.74435 8.38082L6.04326 7.67973L5.46737 7.10384C5.39225 7.02872 5.39225 6.9536 5.39225 6.92856C5.39225 6.87849 5.39225 6.80337 5.46737 6.75329L6.519 5.70166C6.59411 5.62655 6.66923 5.62655 6.69427 5.62655C6.74435 5.62655 6.81946 5.62655 6.86954 5.70166L7.44543 6.27756L8.14652 6.97864C8.42195 6.77833 8.69738 6.60306 8.99784 6.42779C9.4235 6.20244 9.8742 6.00213 10.3499 5.87693C10.6754 5.77678 11.001 5.70166 11.3515 5.65158V4.65003V3.77367C11.3515 3.62344 11.4516 3.52328 11.6019 3.52328H13.1042C13.2544 3.52328 13.3546 3.62344 13.3546 3.77367V4.59995V5.60151C13.7051 5.65158 14.0307 5.7267 14.3562 5.82686C14.8319 5.97709 15.2826 6.15236 15.6832 6.37771C15.9837 6.55298 16.2591 6.72825 16.5345 6.92856L17.2356 6.22748L17.8115 5.65158C17.9117 5.55143 18.0619 5.55143 18.1621 5.65158L19.2137 6.70322C19.2888 6.77833 19.2888 6.85345 19.2888 6.87849C19.2888 6.92857 19.2888 7.00368 19.2137 7.05376L18.6378 7.62965L17.9367 8.33074C18.137 8.60617 18.3373 8.88159 18.4876 9.18206C18.7129 9.60772 18.9132 10.0584 19.0384 10.5091C19.1386 10.8346 19.2137 11.1601 19.2638 11.5107H20.2653H21.1417C21.2919 11.5107 21.3921 11.6108 21.3921 11.7611V13.2884Z" fill="currentColor"/>\n<path d="M12.3781 8.03027C9.89924 8.03027 7.87109 10.0584 7.87109 12.5373C7.87109 15.0161 9.89924 17.0443 12.3781 17.0443C14.8569 17.0443 16.8851 15.0161 16.8851 12.5373C16.8851 10.0584 14.8569 8.03027 12.3781 8.03027ZM12.3781 16.0427C10.4501 16.0427 8.87265 14.4653 8.87265 12.5373C8.87265 10.6093 10.4501 9.03183 12.3781 9.03183C14.3061 9.03183 15.8835 10.6093 15.8835 12.5373C15.8835 14.4653 14.3061 16.0427 12.3781 16.0427Z" fill="currentColor"/>\n</g>\n<defs>\n<clipPath id="clip0_2670_175">\n<rect width="24.0373" height="24.0373" fill="currentColor" transform="translate(0.359375 0.518555)"/>\n</clipPath>\n</defs>\n</svg>',thumbs_up:'<svg width="25" height="25" viewBox="0 0 25 25" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2670_160)">\n<path d="M2.61542 11.5669C2.33965 11.5669 2.11401 11.7925 2.11401 12.0683V21.6952C2.11401 21.971 2.33965 22.1967 2.61542 22.1967C2.89119 22.1967 3.11682 21.971 3.11682 21.6952V12.0683C3.11682 11.7925 2.89119 11.5669 2.61542 11.5669Z" fill="currentColor"/>\n<path d="M22.1453 17.8596C22.1453 17.2328 21.8696 16.6562 21.4183 16.2801C21.8696 15.9041 22.1453 15.3275 22.1453 14.7007C22.1453 13.8233 21.6189 13.0712 20.8417 12.7703C21.0924 12.4193 21.2177 12.0182 21.2177 11.5669C21.2177 10.9903 20.9921 10.4388 20.6161 10.0627C20.24 9.68668 19.7135 9.48612 19.1369 9.48612C19.1369 9.48612 19.1369 9.48612 19.1118 9.48612C19.0617 9.48612 17.4321 9.48612 16.1034 9.48612H15.4265L16.6299 6.75347V6.7284C16.8555 6.12672 16.8305 5.47489 16.5547 4.89828C16.2789 4.32166 15.8026 3.8704 15.226 3.66984C13.9975 3.21858 12.6437 3.84533 12.1674 5.0487L10.0114 9.76189C10.0114 9.78696 9.9863 9.78696 9.9863 9.81203C9.71052 10.4889 9.08377 11.6171 7.95561 11.6171H6.12549C5.0224 11.6171 4.11987 12.5196 4.11987 13.6227V20.2412C4.11987 20.7677 4.32043 21.2942 4.69649 21.6702C5.07254 22.0463 5.57394 22.2468 6.12549 22.2468L18.2344 22.2218C19.7637 22.2218 20.3653 21.595 20.6161 21.0685C20.8166 20.6674 20.8166 20.2412 20.7414 19.8652C21.5687 19.5393 22.1453 18.7621 22.1453 17.8596ZM20.0896 18.9626C19.9141 18.9626 19.7386 19.088 19.6383 19.2384C19.538 19.4139 19.5631 19.6395 19.6885 19.79C19.7386 19.8652 19.8639 20.2914 19.7135 20.6173C19.4879 21.0685 18.7859 21.1688 18.2595 21.1688L6.15056 21.1939C5.87479 21.1939 5.62408 21.0936 5.44859 20.8931C5.24803 20.6925 5.14775 20.4418 5.14775 20.1911V13.5726C5.14775 13.021 5.59901 12.5698 6.15056 12.5698H7.98068C9.23419 12.5698 10.2871 11.6923 10.939 10.163L13.095 5.42475C13.095 5.42475 13.095 5.39968 13.1201 5.39968C13.3708 4.69772 14.173 4.32166 14.875 4.59744C15.5769 4.84814 15.953 5.65038 15.7023 6.35235L14.1981 9.78696C14.1229 9.93738 14.1479 10.1129 14.2482 10.2633C14.3485 10.4137 14.4989 10.4889 14.6744 10.4889H16.1034C17.4572 10.4889 19.0868 10.4889 19.1118 10.4889C19.4127 10.4889 19.6885 10.5892 19.889 10.7898C20.0896 10.9903 20.2149 11.2661 20.2149 11.592C20.2149 11.9931 19.9893 12.3692 19.6132 12.5698C19.538 12.5948 19.4628 12.645 19.3876 12.645C19.1369 12.7202 18.9865 12.9458 19.0116 13.1965C19.0366 13.4472 19.2623 13.6227 19.513 13.6227H20.0394C20.0645 13.6227 20.0645 13.6227 20.0896 13.6227C20.6662 13.6478 21.1175 14.1241 21.1175 14.7007C21.1175 15.3024 20.6411 15.7787 20.0645 15.7787C19.7887 15.7787 19.5882 16.0044 19.5882 16.2801C19.5882 16.5559 19.8138 16.7815 20.0645 16.7815C20.6662 16.8066 21.1175 17.2829 21.1175 17.8596C21.1425 18.4612 20.6662 18.9376 20.0896 18.9626Z" fill="currentColor"/>\n</g>\n<defs>\n<clipPath id="clip0_2670_160">\n<rect width="24.0373" height="24.0373" fill="currentColor" transform="translate(0.11084 0.518555)"/>\n</clipPath>\n</defs>\n</svg>',"tick-circle":'<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M8.81719 12.9834C8.65052 12.9834 8.49219 12.9167 8.37552 12.8L6.01719 10.4417C5.77552 10.2 5.77552 9.80002 6.01719 9.55835C6.25885 9.31669 6.65885 9.31669 6.90052 9.55835L8.81719 11.475L13.1005 7.19169C13.3422 6.95002 13.7422 6.95002 13.9839 7.19169C14.2255 7.43335 14.2255 7.83335 13.9839 8.07502L9.25885 12.8C9.14219 12.9167 8.98385 12.9834 8.81719 12.9834Z" fill="currentColor"/>\n</svg>',trash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2335_4819)">\n<path d="M20.375 5.1H15.85C15.6 3.35 14.15 2 12.4 2C10.65 2 9.175 3.35 8.925 5.1H4.5C4.225 5.1 4 5.325 4 5.6C4 5.875 4.225 6.1 4.5 6.1H5.5V19.95C5.5 21.075 6.425 22 7.525 22H17.3C18.425 22 19.325 21.075 19.325 19.95V6.1H20.325C20.6 6.1 20.825 5.875 20.825 5.6C20.825 5.325 20.65 5.1 20.375 5.1ZM12.4 3C13.6 3 14.625 3.9 14.85 5.1H9.95C10.175 3.9 11.175 3 12.4 3ZM18.375 19.95C18.375 20.525 17.9 21 17.35 21H7.55C6.975 21 6.525 20.525 6.525 19.95V6.1H18.375V19.95Z" fill="#2175D9"/>\n<path d="M12.4001 18C12.6751 18 12.9001 17.775 12.9001 17.5V9.62495C12.9001 9.34995 12.6751 9.12495 12.4001 9.12495C12.1251 9.12495 11.9001 9.34995 11.9001 9.62495V17.5C11.9001 17.775 12.1251 18 12.4001 18Z" fill="#2175D9"/>\n<path d="M15.3999 18C15.6749 18 15.8999 17.775 15.8999 17.5V9.62495C15.8999 9.34995 15.6749 9.12495 15.3999 9.12495C15.1249 9.12495 14.8999 9.34995 14.8999 9.62495V17.5C14.8999 17.775 15.1249 18 15.3999 18Z" fill="#2175D9"/>\n<path d="M9.39983 18C9.67483 18 9.89983 17.775 9.89983 17.5V9.62495C9.89983 9.34995 9.67483 9.12495 9.39983 9.12495C9.12483 9.12495 8.89983 9.34995 8.89983 9.62495V17.5C8.89983 17.775 9.12483 18 9.39983 18Z" fill="#2175D9"/>\n</g>\n<defs>\n<clipPath id="clip0_2335_4819">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>\n</svg>',user:'<svg width="25" height="25" viewBox="0 0 25 25" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2670_168)">\n<path d="M13.5308 11.3354C15.3336 10.7345 16.6356 9.03183 16.6356 7.05376C16.6606 4.54987 14.6325 2.52173 12.1286 2.52173C9.62472 2.52173 7.59657 4.54987 7.59657 7.05376C7.59657 9.05687 8.89859 10.7345 10.7014 11.3354C9.42441 11.6108 8.27262 12.2118 7.32114 13.1382C5.96905 14.4402 5.24292 16.1929 5.24292 18.0709V20.5497C5.24292 21.6514 6.14432 22.5528 7.24603 22.5528H17.0112C18.1129 22.5528 19.0143 21.6514 19.0143 20.5497V18.2211C19.0143 14.8659 16.6356 12.0115 13.5308 11.3354ZM8.59813 7.05376C8.59813 5.10073 10.1756 3.52328 12.1286 3.52328C14.0816 3.52328 15.6591 5.10073 15.6591 7.05376C15.6591 9.00679 14.0816 10.5592 12.1286 10.5592C10.1756 10.5592 8.59813 8.98175 8.59813 7.05376ZM18.0127 20.5497C18.0127 21.1006 17.562 21.5513 17.0112 21.5513H7.24603C6.69517 21.5513 6.24447 21.1006 6.24447 20.5497V18.0709C6.24447 16.4684 6.87044 14.966 8.02223 13.8643C9.12394 12.7877 10.5762 12.1867 12.1286 12.1867C12.1787 12.1867 12.2288 12.1867 12.2788 12.1867C15.4337 12.2618 18.0127 14.966 18.0127 18.196V20.5497Z" fill="currentColor"/>\n</g>\n<defs>\n<clipPath id="clip0_2670_168">\n<rect width="24.0373" height="24.0373" fill="currentColor" transform="translate(0.235107 0.518555)"/>\n</clipPath>\n</defs>\n</svg>',warning:'<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_2269_3652)">\n<path d="M21.731 18.3973L13.8574 4.1498C13.5074 3.44992 12.8076 3 12.0077 3C11.2078 3 10.508 3.42493 10.158 4.1498L2.25941 18.3973C1.90947 19.0472 1.90947 19.822 2.28441 20.4719C2.65934 21.1218 3.33422 21.4967 4.08409 21.4967H19.9063C20.6562 21.4967 21.3311 21.1218 21.706 20.4719C22.0809 19.822 22.1059 19.0472 21.731 18.3973ZM20.8561 19.972C20.6562 20.297 20.3062 20.4969 19.9063 20.4969H4.10908C3.70915 20.4969 3.35922 20.297 3.15925 19.972C2.95929 19.6471 2.95929 19.2221 3.13426 18.8972L11.0079 4.62471V4.59972C11.2078 4.22478 11.5578 3.99982 11.9827 3.99982C12.4076 3.99982 12.7576 4.22478 12.9575 4.62471L20.8311 18.8972C21.0561 19.2221 21.0561 19.6221 20.8561 19.972Z"/>\n<path d="M11.9077 15.2728C12.1827 15.2728 12.4077 15.0479 12.4077 14.7729V8.49903C12.4077 8.22408 12.1827 7.99911 11.9077 7.99911C11.6328 7.99911 11.4078 8.22408 11.4078 8.49903V14.7729C11.4078 15.0479 11.6328 15.2728 11.9077 15.2728Z"/>\n<path d="M11.9078 17.9724C12.3219 17.9724 12.6577 17.6367 12.6577 17.2225C12.6577 16.8084 12.3219 16.4727 11.9078 16.4727C11.4937 16.4727 11.1579 16.8084 11.1579 17.2225C11.1579 17.6367 11.4937 17.9724 11.9078 17.9724Z"/>\n</g>\n<defs>\n<clipPath id="clip0_2269_3652">\n<rect width="24" height="24" fill="currentColor"/>\n</clipPath>\n</defs>\n</svg>'};class rt extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
|
|
1301
1301
|
:host {
|
|
1302
1302
|
display: inline-flex;
|
|
1303
1303
|
width: var( --icon-size, 24px );
|
|
@@ -1319,14 +1319,14 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1319
1319
|
width: 100%;
|
|
1320
1320
|
height: 100%;
|
|
1321
1321
|
}
|
|
1322
|
-
`}updated(t){super.updated(t),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color),t.has("name")&&this.name&&this.loadIcon()}async loadIcon(){try{
|
|
1322
|
+
`}updated(t){super.updated(t),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color),t.has("name")&&this.name&&this.loadIcon()}async loadIcon(){try{let t=ot[this.name];if(!t)throw new Error("Icon not found");t=t.replace(/fill="[^"]*"/g,""),t=t.replace(/fill='[^']*'/g,"");const i=new DOMParser,o=i.parseFromString(t,"image/svg+xml").documentElement;this.svgTemplate=e` ${o} `}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.innerHTML=" <span>⚠️</span> "}}render(){return this.svgTemplate?e`
|
|
1323
1323
|
<div class="custom-icon" style="color: ${this.color};">
|
|
1324
1324
|
${this.svgTemplate}
|
|
1325
1325
|
</div>
|
|
1326
|
-
`:e``}}
|
|
1326
|
+
`:e``}}n([L({type:String}),s("design:type",Object)],rt.prototype,"name",void 0),n([L({type:String}),s("design:type",Object)],rt.prototype,"size",void 0),n([L({type:String}),s("design:type",Object)],rt.prototype,"color",void 0),n([B(),s("design:type",Object)],rt.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",rt);const nt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let st=class extends P{constructor(){super(...arguments),this.platform="linkedin",this.size="md",this.maxLength=100,this.isPasswordVisible=!1,this.customSanitizeRegex=void 0,this.customUrlValidationRegex=void 0,this.value="",this._inputValue="",this._showFormatError=!1,this._onChangeFn=()=>{},this._onTouchedFn=()=>{}}static{this.styles=[J,o`
|
|
1327
|
+
${X}
|
|
1327
1328
|
${Q}
|
|
1328
|
-
${
|
|
1329
|
-
${K}
|
|
1329
|
+
${G}
|
|
1330
1330
|
|
|
1331
1331
|
.linkedin-input-container {
|
|
1332
1332
|
display: flex;
|
|
@@ -1380,7 +1380,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
.fixed-prefix {
|
|
1383
|
-
${
|
|
1383
|
+
${A}
|
|
1384
1384
|
color: var(--secondary-color);
|
|
1385
1385
|
white-space: nowrap;
|
|
1386
1386
|
user-select: none;
|
|
@@ -1397,7 +1397,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
1399
|
.user-input {
|
|
1400
|
-
${
|
|
1400
|
+
${A}
|
|
1401
1401
|
flex: 1;
|
|
1402
1402
|
border: none;
|
|
1403
1403
|
outline: none;
|
|
@@ -1451,7 +1451,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1451
1451
|
.linkedin-input-container.error .input-wrapper:focus-within {
|
|
1452
1452
|
border-width: 1px;
|
|
1453
1453
|
}
|
|
1454
|
-
`]}get _fixedPrefix(){switch(this.platform){case"facebook":return"facebook.com/";case"google":return"@gmail.com";default:return"linkedin.com/in/"}}get _isSuffix(){return"google"===this.platform}get _isPrefix(){return"linkedin"===this.platform||"facebook"===this.platform}get _placeholder(){return this.placeholder||"tu-usuario"}get _sanitizeRegex(){if(this.customSanitizeRegex)try{return new RegExp(this.customSanitizeRegex,"g")}catch{return/[^a-zA-Z0-9-]/g}return/[^a-zA-Z0-9-]/g}get _sentPrefixLength(){switch(this.platform){case"facebook":return 25;case"google":return 10;default:return 28}}get _maxCharsAllowed(){return(Number(this.maxLength)||100)-("facebook"===this.platform?25:"google"===this.platform?10:25)}_handleInputOrPaste(t){const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(
|
|
1454
|
+
`]}get _fixedPrefix(){switch(this.platform){case"facebook":return"facebook.com/";case"google":return"@gmail.com";default:return"linkedin.com/in/"}}get _isSuffix(){return"google"===this.platform}get _isPrefix(){return"linkedin"===this.platform||"facebook"===this.platform}get _placeholder(){return this.placeholder||"tu-usuario"}get _sanitizeRegex(){if(this.customSanitizeRegex)try{return new RegExp(this.customSanitizeRegex,"g")}catch{return/[^a-zA-Z0-9-]/g}return/[^a-zA-Z0-9-]/g}get _sentPrefixLength(){switch(this.platform){case"facebook":return 25;case"google":return 10;default:return 28}}get _maxCharsAllowed(){return(Number(this.maxLength)||100)-("facebook"===this.platform?25:"google"===this.platform?10:25)}_handleInputOrPaste(t){const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(nt,"").length;let n=i.replace(nt,"");n.startsWith(" ")&&(n=n.trimStart());const s=this._urlValidationRegex;if(s){const t=n.match(s);t&&(n="google"===this.platform?t[1]:t[3],n=n.replace(this._sanitizeRegex,""))}const a=this._maxCharsAllowed;n.length>a&&(n=n.slice(0,a)),e.value=n,this._inputValue=n,this._sanitizeRegex.lastIndex=0,this._showFormatError=this._sanitizeRegex.test(n);const l=!this._showFormatError&&n.length>=3?this._getFullValue(n):n;this.value=l;const d=Math.min(r,n.length);e.setSelectionRange(d,d),this._onChangeFn(l),this.dispatchEvent(new CustomEvent("valueChanged",{detail:l}))}get _urlValidationRegex(){if(this.customUrlValidationRegex)try{return new RegExp(this.customUrlValidationRegex,"i")}catch{return null}switch(this.platform){case"linkedin":return/^(https?:\/\/)?(www\.)?linkedin\.com\/in\/([a-zA-Z0-9-]+)\/?.*$/i;case"facebook":return/^(https?:\/\/)?(www\.)?facebook\.com\/([a-zA-Z0-9-]+)\/?.*$/i;case"google":return/^([a-zA-Z0-9-._]+)@gmail\.com$/i;default:return null}}get _hasMinLengthError(){return this._inputValue.length>0&&this._inputValue.length<3}get _errorMessageToDisplay(){if(this._hasMinLengthError)return"debés ingresar como mínimo 3 caracteres";if(this._showFormatError)switch(this.platform){case"facebook":return"la URL de facebook no es válida";case"google":return"la URL de tu cuenta de Google no es válida";default:return"la URL de linkedIn no es válida"}return this.errorMessage}get _hasError(){return this.error||this._hasMinLengthError||this._showFormatError}_handleKeyDown(t){const e=t.key,i=t.target;if(e.length>1)return;if(nt.test(e))return nt.lastIndex=0,void t.preventDefault();if(0===i.value.length&&" "===e)return void t.preventDefault();const o=/^[a-zA-Z0-9-]$/.test(e);Number(this.maxLength);this._sentPrefixLength,(0!==i.value.length||o)&&(o||o)?i.value.length>=this._maxCharsAllowed&&i.selectionStart===i.selectionEnd&&t.preventDefault():t.preventDefault()}_getFullValue(t){if(!t)return"";switch(this.platform){case"facebook":return`https://www.facebook.com/${t}`;case"google":return`${t}@gmail.com`;default:return`https://www.linkedin.com/in/${t}`}}_extractUsernameFromValue(t){if(!t)return"";const e=this._urlValidationRegex;if(e){const i=t.match(e);if(i)return"google"===this.platform?i[1]:i[3]}return t}updated(t){if(super.updated?.(t),t.has("value")&&this.value){const t=this._extractUsernameFromValue(this.value);t!==this._inputValue&&(this._inputValue=t,this.updateComplete.then((()=>{const e=this._getFullValue(t);this.dispatchEvent(new CustomEvent("valueChanged",{detail:e}))})))}}render(){const t=this.labelColor?`--label-color: ${this.labelColor};`:"",o=(Number(this.maxLength)||100)-this._sentPrefixLength;return e`
|
|
1455
1455
|
<div
|
|
1456
1456
|
class="linkedin-input-container ${this._hasError?"error":""} ${this.disabled?"disabled":""}"
|
|
1457
1457
|
style="${t}"
|
|
@@ -1499,14 +1499,14 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1499
1499
|
${t}
|
|
1500
1500
|
</p>
|
|
1501
1501
|
`}
|
|
1502
|
-
`}writeValue(t){if(t&&"string"==typeof t){const e=this._extractUsernameFromValue(t);e!==this._inputValue&&(this._inputValue=e,this.value=t,this.requestUpdate())}else t||(this._inputValue="",this.value="",this.requestUpdate())}registerOnChange(t){this._onChangeFn=t}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}};
|
|
1502
|
+
`}writeValue(t){if(t&&"string"==typeof t){const e=this._extractUsernameFromValue(t);e!==this._inputValue&&(this._inputValue=e,this.value=t,this.requestUpdate())}else t||(this._inputValue="",this.value="",this.requestUpdate())}registerOnChange(t){this._onChangeFn=t}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}};n([L({type:String}),s("design:type",String)],st.prototype,"platform",void 0),n([L({type:String}),s("design:type",String)],st.prototype,"size",void 0),n([L({type:Number}),s("design:type",Number)],st.prototype,"maxLength",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],st.prototype,"isPasswordVisible",void 0),n([L({type:String}),s("design:type",Object)],st.prototype,"customSanitizeRegex",void 0),n([L({type:String}),s("design:type",Object)],st.prototype,"customUrlValidationRegex",void 0),n([L({type:String,hasChanged:()=>!1}),s("design:type",String)],st.prototype,"value",void 0),n([B(),s("design:type",String)],st.prototype,"_inputValue",void 0),n([B(),s("design:type",Boolean)],st.prototype,"_showFormatError",void 0),st=n([a("randstad-social-input")],st);let at=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
|
|
1503
1503
|
:host {
|
|
1504
1504
|
display: block;
|
|
1505
1505
|
font-family: 'Graphik', sans-serif;
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
1508
|
.container {
|
|
1509
|
-
${
|
|
1509
|
+
${V}
|
|
1510
1510
|
display: flex;
|
|
1511
1511
|
align-items: flex-start;
|
|
1512
1512
|
gap: 8px;
|
|
@@ -1556,8 +1556,8 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1556
1556
|
|
|
1557
1557
|
<span class="message">${this.message}</span>
|
|
1558
1558
|
</div>
|
|
1559
|
-
`}};
|
|
1560
|
-
${
|
|
1559
|
+
`}};n([L({type:String}),s("design:type",String)],at.prototype,"type",void 0),n([L({type:String}),s("design:type",String)],at.prototype,"icon",void 0),n([L({type:String}),s("design:type",String)],at.prototype,"message",void 0),n([L({type:Boolean}),s("design:type",Boolean)],at.prototype,"open",void 0),at=n([a("randstad-notice")],at);let lt=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.modalHeight="80dvh",this.maxHeight="90dvh",this.hideFooter=!1,this.scrollable=!1,this.hasDropdownOpen=!1,this.hasCalendarOpen=!1,this.handleDropdownOpen=t=>{const e=t.detail;e&&"boolean"==typeof e.open?this.hasDropdownOpen=e.open:this.hasDropdownOpen=!0},this.handleCalendarOpen=t=>{const e=t.detail;e&&"boolean"==typeof e.open?this.hasCalendarOpen=e.open:this.hasCalendarOpen=!0},this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
|
|
1560
|
+
${K}
|
|
1561
1561
|
|
|
1562
1562
|
:host {
|
|
1563
1563
|
font-family: 'Graphik', sans-serif;
|
|
@@ -1661,7 +1661,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1661
1661
|
display: flex;
|
|
1662
1662
|
justify-content: space-between;
|
|
1663
1663
|
align-items: center;
|
|
1664
|
-
${
|
|
1664
|
+
${I}
|
|
1665
1665
|
font-style: regular;
|
|
1666
1666
|
font-size: 24px;
|
|
1667
1667
|
line-height: 32px;
|
|
@@ -1671,7 +1671,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
1673
|
.modal-subtitle {
|
|
1674
|
-
${
|
|
1674
|
+
${V}
|
|
1675
1675
|
margin: 0;
|
|
1676
1676
|
color: var(--secondary-color-60);
|
|
1677
1677
|
}
|
|
@@ -1797,7 +1797,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1797
1797
|
`}
|
|
1798
1798
|
</div>
|
|
1799
1799
|
</div>
|
|
1800
|
-
`}};
|
|
1800
|
+
`}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],lt.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"title",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"subtitle",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showNotice",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"noticeType",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeMessage",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeIcon",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showPrimaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"primaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showSecondaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"secondaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isFooterCustom",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryLoader",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryDisabled",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"maxHeight",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"hideFooter",void 0),n([B(),s("design:type",Object)],lt.prototype,"scrollable",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasDropdownOpen",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasCalendarOpen",void 0),lt=n([a("custom-modal")],lt);let dt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="",this.description="",this.width="400px",this.height="",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.closeOnOutsideClick=!1,this.stackedActions=[],this._onBackgroundClick=t=>{if(!this.closeOnOutsideClick)return;const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
|
|
1801
1801
|
:host {
|
|
1802
1802
|
display: none;
|
|
1803
1803
|
position: fixed;
|
|
@@ -1863,13 +1863,13 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
1865
|
.popup-title {
|
|
1866
|
-
${
|
|
1866
|
+
${N}
|
|
1867
1867
|
margin: 0;
|
|
1868
1868
|
color: var(--secondary-color-80);
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
1871
|
.popup-description {
|
|
1872
|
-
${
|
|
1872
|
+
${V}
|
|
1873
1873
|
margin: 0;
|
|
1874
1874
|
color: var(--secondary-color-60);
|
|
1875
1875
|
}
|
|
@@ -1897,7 +1897,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
1899
|
.action-item {
|
|
1900
|
-
${
|
|
1900
|
+
${z};
|
|
1901
1901
|
display: flex;
|
|
1902
1902
|
align-items: center;
|
|
1903
1903
|
gap: 16px;
|
|
@@ -1931,7 +1931,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1931
1931
|
${"default"!==this.type?e`aria-labelledby="popup-title"`:i}
|
|
1932
1932
|
aria-describedby="popup-description"
|
|
1933
1933
|
>
|
|
1934
|
-
${"stacked"!==this.type&&this.icon?e`<
|
|
1934
|
+
${"stacked"!==this.type&&this.icon?e`<randstad-icon name=${this.icon} size="56px" color="#D3E3F7" />`:i}
|
|
1935
1935
|
|
|
1936
1936
|
<div class="popup-content">
|
|
1937
1937
|
${"default"===this.type?e`
|
|
@@ -1993,7 +1993,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1993
1993
|
`}
|
|
1994
1994
|
</div>
|
|
1995
1995
|
</div>
|
|
1996
|
-
`}};
|
|
1996
|
+
`}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],dt.prototype,"open",void 0),n([L({type:String}),s("design:type",String)],dt.prototype,"type",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"icon",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"description",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"width",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"height",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"buttonText",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"confirmText",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"cancelText",void 0),n([L({type:Boolean}),s("design:type",Object)],dt.prototype,"closeOnOutsideClick",void 0),n([L({type:Array}),s("design:type",Array)],dt.prototype,"stackedActions",void 0),dt=n([a("custom-popup")],dt);let ct=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
|
|
1997
1997
|
:host {
|
|
1998
1998
|
display: inline-block;
|
|
1999
1999
|
width: 64px;
|
|
@@ -2006,7 +2006,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2006
2006
|
}
|
|
2007
2007
|
|
|
2008
2008
|
.circle-text {
|
|
2009
|
-
${
|
|
2009
|
+
${R};
|
|
2010
2010
|
text-align: center;
|
|
2011
2011
|
vertical-align: middle;
|
|
2012
2012
|
fill: var(--secondary-color-40);
|
|
@@ -2054,7 +2054,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2054
2054
|
${this.value} de ${this.max}
|
|
2055
2055
|
</text>
|
|
2056
2056
|
</svg>
|
|
2057
|
-
`}};
|
|
2057
|
+
`}};n([L({type:Number}),s("design:type",Object)],ct.prototype,"value",void 0),n([L({type:Number}),s("design:type",Object)],ct.prototype,"max",void 0),ct=n([a("progress-circle")],ct);let ht=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
|
|
2058
2058
|
:host {
|
|
2059
2059
|
font-family: "Graphik", sans-serif;
|
|
2060
2060
|
|
|
@@ -2198,10 +2198,10 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2198
2198
|
|
|
2199
2199
|
<span> ${o} </span>
|
|
2200
2200
|
</label>
|
|
2201
|
-
`}};
|
|
2201
|
+
`}};n([L({type:String}),s("design:type",Object)],ht.prototype,"name",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"checked",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"disabled",void 0),n([L({type:Boolean}),s("design:type",Object)],ht.prototype,"error",void 0),n([L({type:String}),s("design:type",Object)],ht.prototype,"label",void 0),n([L({type:String}),s("design:type",Object)],ht.prototype,"value",void 0),ht=n([a("custom-radio")],ht);const pt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let ut=class extends P{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.sortable=!0,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.originalHtmlOverflow="",this.originalHtmlPaddingRight="",this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this.lastElement=!1,this.debounceTimeout=null,this.getOptionLabel=t=>"string"==typeof t?t:t.label,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}get _effectiveFilterable(){const t=this.getAttribute("filterable");return null!==t?"false"!==t:void 0!==this.filterable?this.filterable:this.options.length>5}static{this.styles=[J,o`
|
|
2202
|
+
${X}
|
|
2202
2203
|
${Q}
|
|
2203
|
-
${
|
|
2204
|
-
${K}
|
|
2204
|
+
${G}
|
|
2205
2205
|
|
|
2206
2206
|
/* --- Own Error Styles --- */
|
|
2207
2207
|
:host([error]) .input-container:not(.open) .input-wrapper:hover {
|
|
@@ -2311,7 +2311,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2311
2311
|
}
|
|
2312
2312
|
|
|
2313
2313
|
.filter-input {
|
|
2314
|
-
${
|
|
2314
|
+
${A};
|
|
2315
2315
|
padding: 16px;
|
|
2316
2316
|
padding-right: 40px;
|
|
2317
2317
|
border: none;
|
|
@@ -2333,7 +2333,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2333
2333
|
}
|
|
2334
2334
|
|
|
2335
2335
|
.filter-input::placeholder {
|
|
2336
|
-
${
|
|
2336
|
+
${A};
|
|
2337
2337
|
color: var( --filter-text-color, var( --secondary-color-40 ) );
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
@@ -2393,7 +2393,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2393
2393
|
}
|
|
2394
2394
|
|
|
2395
2395
|
.options-list li {
|
|
2396
|
-
${
|
|
2396
|
+
${A};
|
|
2397
2397
|
padding: 8px 16px 8px 16px;
|
|
2398
2398
|
color: var(--secondary-color-80);
|
|
2399
2399
|
display: flex;
|
|
@@ -2442,7 +2442,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2442
2442
|
}
|
|
2443
2443
|
|
|
2444
2444
|
.mobile-modal .modal-input-container input::placeholder {
|
|
2445
|
-
${
|
|
2445
|
+
${A}
|
|
2446
2446
|
color: rgba( 159, 163, 179, 1 );
|
|
2447
2447
|
}
|
|
2448
2448
|
|
|
@@ -2504,7 +2504,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2504
2504
|
}
|
|
2505
2505
|
|
|
2506
2506
|
.filter-fake {
|
|
2507
|
-
${
|
|
2507
|
+
${A};
|
|
2508
2508
|
padding: 15px;
|
|
2509
2509
|
padding-right: 40px;
|
|
2510
2510
|
width: 100%;
|
|
@@ -2574,7 +2574,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
2576
|
options-list li.no-results-item {
|
|
2577
|
-
${
|
|
2577
|
+
${A}
|
|
2578
2578
|
cursor: default !important;
|
|
2579
2579
|
background-color: white !important;
|
|
2580
2580
|
pointer-events: none;
|
|
@@ -2592,19 +2592,19 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2592
2592
|
background-color: transparent;
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
|
-
`]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}normalizeText(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),s=this.getOptionLabel(e),n=this.normalizeText(r),a=this.normalizeText(s);if(i&&i.length>0){const t=this.normalizeText(i),e=n.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=s.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(s,"es",{usage:"sort",sensitivity:"accent"}):p-u}_computeFilteredOptions(t){if(!this._effectiveFilterable||!t||0===t.length){const t=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options];return this.highlightedIndex=-1,this.showNoResults=!1,t}const e=this.normalizeText(t);let i=this.options.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)}));return this.sortable&&(i=i.sort(((e,i)=>this.sortOptions(e,i,t)))),this.highlightedIndex=i.length>0?0:-1,this.showNoResults=0===i.length,i}filterAndSortOptions(){this.filteredOptions=this._computeFilteredOptions(this.filterValue)}_sortedOptionsCopy(){return this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options]}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}willUpdate(t){(t.has("filterValue")||t.has("options"))&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this)),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.notifyOverlayOpened(),this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this._effectiveFilterable)return;this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(ht,"").length,s=i.replace(ht,"");let n=this.maxLength?s.slice(0,this.maxLength):s;n.startsWith(" ")&&(n=n.trimStart()),e.value=n,this.filterValue=n,e.setSelectionRange(r,r),this.notifyOverlayOpened(),this.isOpen=!0,""===n&&(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(ht,"").length,s=i.replace(ht,"");let n=this.maxLength?s.slice(0,this.maxLength):s;n.startsWith(" ")&&(n=n.trimStart()),e.value=n,this.mobileFilterValue=n,e.setSelectionRange(r,r),""===n?(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.filteredOptions=this._computeFilteredOptions(n),this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{n.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:n},bubbles:!0,composed:!0})):0===n.length&&(this.filteredOptions=this._sortedOptionsCopy())}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=this._sortedOptionsCopy(),this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.notifyOverlayOpened(),this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy()))}preventInvalidStart(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart&&1===t.key.length){if(!/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t.key))return t.preventDefault(),!0}return!1}handlePaste(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart){const i=e.selectionStart,o=e.selectionEnd;if(null===i||null===o)return;t.preventDefault();let r=(t.clipboardData?.getData("text")||"").replace(ht,"").replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/,"");r.startsWith(" ")&&(r=r.trimStart()),r&&(e.setRangeText(r,i,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}}handleKeyDown(t){if(this.preventInvalidStart(t))return;const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this._effectiveFilterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.notifyOverlayOpened(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||!this._effectiveFilterable&&" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this._effectiveFilterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this._effectiveFilterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this._effectiveFilterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}validateAndCleanOnBlur(){if(!this._effectiveFilterable)return;const t=this.normalizeText((this.filterValue||"").trim());if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(String(i))===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
|
|
2595
|
+
`]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}normalizeText(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),n=this.getOptionLabel(e),s=this.normalizeText(r),a=this.normalizeText(n);if(i&&i.length>0){const t=this.normalizeText(i),e=s.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=n.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(n,"es",{usage:"sort",sensitivity:"accent"}):p-u}_computeFilteredOptions(t){if(!this._effectiveFilterable||!t||0===t.length){const t=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options];return this.highlightedIndex=-1,this.showNoResults=!1,t}const e=this.normalizeText(t);let i=this.options.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)}));return this.sortable&&(i=i.sort(((e,i)=>this.sortOptions(e,i,t)))),this.highlightedIndex=i.length>0?0:-1,this.showNoResults=0===i.length,i}filterAndSortOptions(){this.filteredOptions=this._computeFilteredOptions(this.filterValue)}_sortedOptionsCopy(){return this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options]}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}willUpdate(t){(t.has("filterValue")||t.has("options"))&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this)),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.notifyOverlayOpened(),this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this._effectiveFilterable)return;this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(pt,"").length,n=i.replace(pt,"");let s=this.maxLength?n.slice(0,this.maxLength):n;s.startsWith(" ")&&(s=s.trimStart()),e.value=s,this.filterValue=s,e.setSelectionRange(r,r),this.notifyOverlayOpened(),this.isOpen=!0,""===s&&(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(pt,"").length,n=i.replace(pt,"");let s=this.maxLength?n.slice(0,this.maxLength):n;s.startsWith(" ")&&(s=s.trimStart()),e.value=s,this.mobileFilterValue=s,e.setSelectionRange(r,r),""===s?(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.filteredOptions=this._computeFilteredOptions(s),this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{s.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:s},bubbles:!0,composed:!0})):0===s.length&&(this.filteredOptions=this._sortedOptionsCopy())}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=this._sortedOptionsCopy(),this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.notifyOverlayOpened(),this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy()))}preventInvalidStart(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart&&1===t.key.length){if(!/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t.key))return t.preventDefault(),!0}return!1}handlePaste(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart){const i=e.selectionStart,o=e.selectionEnd;if(null===i||null===o)return;t.preventDefault();let r=(t.clipboardData?.getData("text")||"").replace(pt,"").replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/,"");r.startsWith(" ")&&(r=r.trimStart()),r&&(e.setRangeText(r,i,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}}handleKeyDown(t){if(this.preventInvalidStart(t))return;const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this._effectiveFilterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.notifyOverlayOpened(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||!this._effectiveFilterable&&" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this._effectiveFilterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this._effectiveFilterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this._effectiveFilterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}validateAndCleanOnBlur(){if(!this._effectiveFilterable)return;const t=this.normalizeText((this.filterValue||"").trim());if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(String(i))===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
|
|
2596
2596
|
<randstad-icon
|
|
2597
2597
|
name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
|
|
2598
2598
|
size="24px"
|
|
2599
2599
|
.color=${"var( --primary-color )"}
|
|
2600
2600
|
>
|
|
2601
2601
|
</randstad-icon>
|
|
2602
|
-
`,
|
|
2602
|
+
`,n=!0===this.isRenderClearButton,s=this.isOpen&&(this.filteredOptions.length>0||this.filterValue.length>0),a=!this.textLabelFilterNotResult||"string"!=typeof this.textLabelFilterNotResult,l=!this.textLabelMobileSearch||"string"!=typeof this.textLabelMobileSearch,d=!this.placeholder||"string"!=typeof this.placeholder,c=a?"No se encontraron resultados":this.textLabelFilterNotResult,h=l?"buscá una opción":this.textLabelMobileSearch,p=d?"seleccioná una opción":this.placeholder;return e`
|
|
2603
2603
|
<div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor};`:""} ${o}">
|
|
2604
2604
|
${this.renderLabelContainer()}
|
|
2605
2605
|
|
|
2606
2606
|
<div class="list-container">
|
|
2607
|
-
<div class="input-container ${this.isOpen?"focused":""} ${
|
|
2607
|
+
<div class="input-container ${this.isOpen?"focused":""} ${s?"open":""} ${t?"mobile":""}">
|
|
2608
2608
|
<div class="input-wrapper ${this.disabled?"disabled":""}">
|
|
2609
2609
|
${t?e`
|
|
2610
2610
|
<div
|
|
@@ -2656,13 +2656,13 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2656
2656
|
tabindex="0"
|
|
2657
2657
|
aria-label="${this.value&&""!==this.value?"Clear selection":"Toggle options"}"
|
|
2658
2658
|
>
|
|
2659
|
-
${
|
|
2659
|
+
${n&&this.value&&""!==this.value?e`<randstad-icon name="close" size="24px"></randstad-icon>`:r}
|
|
2660
2660
|
</button>
|
|
2661
2661
|
|
|
2662
2662
|
${!t&&this.isOpen?e`
|
|
2663
2663
|
${this.filteredOptions.length>0?e`
|
|
2664
2664
|
<ul class="options-list" role="listbox">
|
|
2665
|
-
${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,
|
|
2665
|
+
${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return e`
|
|
2666
2666
|
<li
|
|
2667
2667
|
class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
|
|
2668
2668
|
role="option"
|
|
@@ -2670,7 +2670,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2670
2670
|
@click="${()=>{r||this.handleSelect(t)}}"
|
|
2671
2671
|
@mouseenter="${()=>this.handleOptionHover(i)}"
|
|
2672
2672
|
>
|
|
2673
|
-
${this.renderOptionIcon(
|
|
2673
|
+
${this.renderOptionIcon(n)}
|
|
2674
2674
|
${o}
|
|
2675
2675
|
</li>
|
|
2676
2676
|
`}))}
|
|
@@ -2717,7 +2717,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2717
2717
|
|
|
2718
2718
|
${this.filteredOptions.length>0?e`
|
|
2719
2719
|
<ul class="options-list">
|
|
2720
|
-
${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,
|
|
2720
|
+
${this.filteredOptions.map(((t,i)=>{const o="string"==typeof t?t:t.label,r="object"==typeof t&&t.disabled,n="object"==typeof t?t.icon:void 0;return e`
|
|
2721
2721
|
<li
|
|
2722
2722
|
class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
|
|
2723
2723
|
role="option"
|
|
@@ -2725,7 +2725,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2725
2725
|
@click="${()=>{r||this.handleSelect(t)}}"
|
|
2726
2726
|
@mouseenter="${()=>this.handleOptionHover(i)}"
|
|
2727
2727
|
>
|
|
2728
|
-
${this.renderOptionIcon(
|
|
2728
|
+
${this.renderOptionIcon(n)}
|
|
2729
2729
|
${o}
|
|
2730
2730
|
</li>
|
|
2731
2731
|
`}))}
|
|
@@ -2740,7 +2740,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2740
2740
|
</div>
|
|
2741
2741
|
</div>
|
|
2742
2742
|
`:i}
|
|
2743
|
-
`}};
|
|
2743
|
+
`}};n([L({type:Object}),s("design:type",Object)],ut.prototype,"value",void 0),n([L({type:String,attribute:"default-value"}),s("design:type",Object)],ut.prototype,"defaultValue",void 0),n([L({type:Array}),s("design:type",Array)],ut.prototype,"options",void 0),n([L({type:Boolean}),s("design:type",Object)],ut.prototype,"filterable",void 0),n([L({type:Number}),s("design:type",Number)],ut.prototype,"maxLength",void 0),n([L({type:String}),s("design:type",String)],ut.prototype,"textLabelFilterNotResult",void 0),n([L({type:String}),s("design:type",String)],ut.prototype,"textLabelMobileSearch",void 0),n([L({type:Boolean}),s("design:type",Object)],ut.prototype,"isRenderClearButton",void 0),n([L({type:Boolean}),s("design:type",Object)],ut.prototype,"sortable",void 0),n([B(),s("design:type",Boolean)],ut.prototype,"isMobile",void 0),n([B(),s("design:type",Object)],ut.prototype,"highlightedIndex",void 0),n([B(),s("design:type",Boolean)],ut.prototype,"_isCleared",void 0),n([B(),s("design:type",Array)],ut.prototype,"filteredOptions",void 0),n([B(),s("design:type",Object)],ut.prototype,"filterValue",void 0),n([B(),s("design:type",Object)],ut.prototype,"isOpen",void 0),n([B(),s("design:type",Object)],ut.prototype,"mobileFilterValue",void 0),n([B(),s("design:type",Boolean)],ut.prototype,"showNoResults",void 0),n([L({type:Boolean,attribute:"last-element"}),s("design:type",Object)],ut.prototype,"lastElement",void 0),n([T(".mobile-modal .filter-input"),s("design:type",HTMLInputElement)],ut.prototype,"mobileInputRef",void 0),ut=n([a("filterable-select")],ut);const gt=new CSSStyleSheet;gt.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n\n .body-l {\n font-family: Graphik;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 30px;\n }\n");class bt extends t{static{this.styles=[gt,o`
|
|
2744
2744
|
:host {
|
|
2745
2745
|
display: flex;
|
|
2746
2746
|
position: fixed;
|
|
@@ -2820,7 +2820,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
2822
|
.container {
|
|
2823
|
-
${
|
|
2823
|
+
${j};
|
|
2824
2824
|
display: flex;
|
|
2825
2825
|
align-items: center;
|
|
2826
2826
|
box-sizing: border-box;
|
|
@@ -2884,7 +2884,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2884
2884
|
<randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
|
|
2885
2885
|
<span class="message">${this.message}</span>
|
|
2886
2886
|
</div>
|
|
2887
|
-
`}}customElements.define("randstad-snackbar",
|
|
2887
|
+
`}}customElements.define("randstad-snackbar",bt);let mt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
|
|
2888
2888
|
.stepper {
|
|
2889
2889
|
display: flex;
|
|
2890
2890
|
gap: 20px;
|
|
@@ -2984,7 +2984,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2984
2984
|
</div>
|
|
2985
2985
|
`))}
|
|
2986
2986
|
</div>
|
|
2987
|
-
`}};
|
|
2987
|
+
`}};n([L({type:Number}),s("design:type",Object)],mt.prototype,"totalSteps",void 0),n([L({type:Number}),s("design:type",Object)],mt.prototype,"currentStep",void 0),mt=n([a("custom-stepper")],mt);let yt=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
|
|
2988
2988
|
:host {
|
|
2989
2989
|
display: block;
|
|
2990
2990
|
border-bottom: 1px solid #E7E8EC;
|
|
@@ -2997,7 +2997,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2997
2997
|
}
|
|
2998
2998
|
|
|
2999
2999
|
.tab {
|
|
3000
|
-
${
|
|
3000
|
+
${z};
|
|
3001
3001
|
display: flex;
|
|
3002
3002
|
gap: 8px;
|
|
3003
3003
|
flex-direction: row;
|
|
@@ -3035,14 +3035,10 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3035
3035
|
pointer-events: none;
|
|
3036
3036
|
}
|
|
3037
3037
|
|
|
3038
|
-
.tab.active
|
|
3038
|
+
.tab.active randstad-icon {
|
|
3039
3039
|
filter: brightness(0) saturate(100%) invert(28%) sepia(87%) saturate(3514%) hue-rotate(202deg) brightness(92%) contrast(101%);
|
|
3040
3040
|
}
|
|
3041
3041
|
|
|
3042
|
-
img {
|
|
3043
|
-
width: 24px;
|
|
3044
|
-
height: 24px;
|
|
3045
|
-
}
|
|
3046
3042
|
|
|
3047
3043
|
.scroll-container {
|
|
3048
3044
|
position: relative;
|
|
@@ -3095,7 +3091,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3095
3091
|
|
|
3096
3092
|
@media (max-width: 940px) {
|
|
3097
3093
|
.tab {
|
|
3098
|
-
${
|
|
3094
|
+
${V};
|
|
3099
3095
|
padding: 16px;
|
|
3100
3096
|
}
|
|
3101
3097
|
}
|
|
@@ -3111,7 +3107,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3111
3107
|
${this.tabs.map((t=>e`
|
|
3112
3108
|
<div class="tab ${this.internalSelected===t.value?"active":""}"
|
|
3113
3109
|
@click=${()=>this.selectTab(t.value)}>
|
|
3114
|
-
<
|
|
3110
|
+
<randstad-icon name=${t.icon} size="24px"></randstad-icon>
|
|
3115
3111
|
<span>${t.label}</span>
|
|
3116
3112
|
</div>
|
|
3117
3113
|
`))}
|
|
@@ -3123,7 +3119,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3123
3119
|
</button>
|
|
3124
3120
|
`:null}
|
|
3125
3121
|
</div>
|
|
3126
|
-
`}};
|
|
3122
|
+
`}};n([L({type:Array}),s("design:type",Array)],yt.prototype,"tabs",void 0),n([L({type:String}),s("design:type",String)],yt.prototype,"selected",void 0),n([B(),s("design:type",String)],yt.prototype,"internalSelected",void 0),n([B(),s("design:type",Object)],yt.prototype,"showPrev",void 0),n([B(),s("design:type",Object)],yt.prototype,"showNext",void 0),yt=n([a("tabs-bar")],yt);let vt=class extends P{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=()=>"El formato del archivo no es válido",this.TEXT_SNACKBAR_ERROR_SIZE=t=>`El archivo es muy grande. Máximo ${t}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(clearTimeout(o.timer),o.open&&(o.open=!1),setTimeout((()=>{o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,o.timer=setTimeout((()=>o.open=!1),e)}),150)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return`${parseFloat((t/e).toPrecision(3)).toString()} MB`}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,n){const s=e>0,a=i.length>0;for(const l of t){const t="."+l.name.split(".").pop()?.toLowerCase(),d=i.includes(l.type),c=i.some((e=>{const i=e.split("/")[1];return"jpeg"===i?".jpeg"===t||".jpg"===t:t===`.${i}`}));if(a&&(!d||!c))return this.setError(n,o,this.TEXT_SNACKBAR_ERROR_TYPE()),!1;if(s&&l.size>e)return this.setError(n,r,this.TEXT_SNACKBAR_ERROR_SIZE(this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:n,errorMessageSize:s,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=(Number.isFinite(i)&&i>0?i:1)-l.length;if(d<=0){const t="Alcanzaste el número máximo de archivos";return void this.setError(a,t,t)}const c=Array.from(t).slice(0,d);if(0===c.length)return;if(!this.validateFiles(c,o,r,n,s,a))return;const h=this.simulatedDelay??0;if(h<=0)return this.files=[...l,...c],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const p=Date.now(),u=setInterval((()=>{const t=Date.now()-p,e=Math.min(Math.round(t/h*100),100);this.progress=e,this.progress>=100&&(clearInterval(u),this.files=[...l,...c],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
|
|
3127
3123
|
${this.loading?e`
|
|
3128
3124
|
<div class="progress-bar-container">
|
|
3129
3125
|
<div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
|
|
@@ -3133,7 +3129,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3133
3129
|
`:e`
|
|
3134
3130
|
${t}
|
|
3135
3131
|
`}
|
|
3136
|
-
`}};
|
|
3132
|
+
`}};n([L({type:Array}),s("design:type",Array)],vt.prototype,"files",void 0),n([L({type:Number}),s("design:type",Object)],vt.prototype,"simulatedDelay",void 0),n([L({type:Boolean}),s("design:type",Object)],vt.prototype,"showAlertInError",void 0),n([L({type:String}),s("design:type",Object)],vt.prototype,"typeTextFile",void 0),n([B(),s("design:type",Object)],vt.prototype,"loading",void 0),n([B(),s("design:type",Object)],vt.prototype,"progress",void 0),n([B(),s("design:type",Object)],vt.prototype,"errorTextMessage",void 0),n([T('input[ type="file" ]'),s("design:type",HTMLInputElement)],vt.prototype,"fileInput",void 0),vt=n([a("base-upload")],vt);const ft={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},wt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...ft,"text/plain":".txt"},xt=o`
|
|
3137
3133
|
.progress-bar-container {
|
|
3138
3134
|
min-height: 23px;
|
|
3139
3135
|
display: flex;
|
|
@@ -3153,9 +3149,9 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3153
3149
|
background-color: var( --primary-color );
|
|
3154
3150
|
transition: width 0.1s ease;
|
|
3155
3151
|
}
|
|
3156
|
-
`;let
|
|
3157
|
-
${
|
|
3158
|
-
${
|
|
3152
|
+
`;let Ct=class extends vt{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isChangeStyleError=!1,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
|
|
3153
|
+
${X}
|
|
3154
|
+
${xt}
|
|
3159
3155
|
|
|
3160
3156
|
:host {
|
|
3161
3157
|
font-family: 'Graphik', sans-serif;
|
|
@@ -3202,28 +3198,28 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3202
3198
|
}
|
|
3203
3199
|
|
|
3204
3200
|
.text-main {
|
|
3205
|
-
${
|
|
3201
|
+
${j};
|
|
3206
3202
|
text-align: center;
|
|
3207
3203
|
vertical-align: middle;
|
|
3208
3204
|
color: var( --secondary-color-80 );
|
|
3209
3205
|
}
|
|
3210
3206
|
|
|
3211
3207
|
.text-secondary {
|
|
3212
|
-
${
|
|
3208
|
+
${R};
|
|
3213
3209
|
text-align: center;
|
|
3214
3210
|
vertical-align: middle;
|
|
3215
3211
|
color: var( --secondary-color-60 );
|
|
3216
3212
|
}
|
|
3217
3213
|
|
|
3218
3214
|
.text-tertiary {
|
|
3219
|
-
${
|
|
3215
|
+
${R};
|
|
3220
3216
|
text-align: center;
|
|
3221
3217
|
vertical-align: middle;
|
|
3222
3218
|
color: var( --secondary-color-40 );
|
|
3223
3219
|
}
|
|
3224
3220
|
|
|
3225
3221
|
.button {
|
|
3226
|
-
${
|
|
3222
|
+
${R};
|
|
3227
3223
|
background-color: var( --primary-color );
|
|
3228
3224
|
border: none;
|
|
3229
3225
|
padding: 4px 16px;
|
|
@@ -3282,7 +3278,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3282
3278
|
.text-main.error {
|
|
3283
3279
|
color: var(--ui-negative, #E00F0F);
|
|
3284
3280
|
}
|
|
3285
|
-
`}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,
|
|
3281
|
+
`}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ft)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}handleButtonKeydown(t,e){if(!e&&("Enter"===t.key||" "===t.key)){t.preventDefault();const e=t.currentTarget?.querySelector('input[type="file"]');e&&!e.disabled&&e.click()}}render(){const t=this.disabled||this.isMaxFilesReached,o=this.disabled,r=this.maxFileSize>0,n=this.acceptedFileTypes.length>0,s=!1!==this.isShowInfoSize,a=r&&s?` / max. ${this.getTextMaxFileSize()}`:"",l=n?this.getTextAcceptedFileTypes():"",d=!0===this.isChangeStyleError,c=!!this.errorTextMessage&&d,h=c&&this.errorTextMessage?this.errorTextMessage:`subí hasta ${this.maxFiles} imágenes`,p=c?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",u=`container ${this.isDragging?"dragging":""} ${c?"error":""}`,g=e`
|
|
3286
3282
|
<label class="button"
|
|
3287
3283
|
tabindex="0"
|
|
3288
3284
|
@keydown=${e=>this.handleButtonKeydown(e,t)}
|
|
@@ -3348,8 +3344,8 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3348
3344
|
</div>
|
|
3349
3345
|
</div>
|
|
3350
3346
|
</div>
|
|
3351
|
-
`}};s([T({type:Array}),n("design:type",Array)],xt.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],xt.prototype,"maxFiles",void 0),s([T({type:Number}),n("design:type",Object)],xt.prototype,"maxFileSize",void 0),s([T({type:Boolean}),n("design:type",Object)],xt.prototype,"isShowInfoSize",void 0),s([T({type:Boolean}),n("design:type",Object)],xt.prototype,"isChangeStyleError",void 0),s([B(),n("design:type",Object)],xt.prototype,"isDragging",void 0),s([B(),n("design:type",Array)],xt.prototype,"imageUrls",void 0),s([B(),n("design:type",Boolean)],xt.prototype,"isMaxFilesReached",void 0),xt=s([a("upload-image")],xt);const kt=6048e5,$t=Symbol.for("constructDateFrom");function St(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&$t in t?t[$t](e):t instanceof Date?new t.constructor(e):new Date(e)}function Et(t,e){return St(e||t,t)}function Dt(t,e,i){const o=Et(t,i?.in);if(isNaN(e))return St(t,NaN);if(!e)return o;const r=o.getDate(),s=St(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let Ct={};function Ot(){return Ct}function Ft(t,e){const i=Ot(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Et(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function _t(t,e){return Ft(t,{...e,weekStartsOn:1})}function Mt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=St(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=_t(r),n=St(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=_t(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Tt(t){const e=Et(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Bt(t,...e){const i=St.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Lt(t,e){const i=Et(t,e?.in);return i.setHours(0,0,0,0),i}function Rt(t,e,i){return Dt(t,12*e,i)}function jt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Et(t)));var e}function Pt(t,e){const i=Et(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const At={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function zt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const Nt={date:zt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zt({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:zt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},It={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Wt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Vt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var qt;const Ut={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=At[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:Nt,formatRelative:(t,e,i,o)=>It[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Wt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Wt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Wt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Wt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Wt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(qt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(qt.matchPattern);if(!i)return null;const o=i[0],r=t.match(qt.parsePattern);if(!r)return null;let s=qt.valueCallback?qt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Vt({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:Vt({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:Vt({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:Vt({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:Vt({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 Ht(t,e){const i=Et(t,e?.in),o=function(t,e){const[i,o]=Bt(0,t,e),r=Lt(i),s=Lt(o),n=+r-Tt(r),a=+s-Tt(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=Et(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Yt(t,e){const i=Et(t,e?.in),o=+_t(i)-+function(t,e){const i=Mt(t,e),o=St(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),_t(o)}(i);return Math.round(o/kt)+1}function Gt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=Ot(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=St(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=Ft(n,e),l=St(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=Ft(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Kt(t,e){const i=Et(t,e?.in),o=+Ft(i,e)-+function(t,e){const i=Ot(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Gt(t,e),s=St(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),Ft(s,e)}(i,e);return Math.round(o/kt)+1}function Xt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Qt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Xt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Xt(i+1,2)},d:(t,e)=>Xt(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Xt(t.getHours()%12||12,e.length),H:(t,e)=>Xt(t.getHours(),e.length),m:(t,e)=>Xt(t.getMinutes(),e.length),s:(t,e)=>Xt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Xt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Zt="midnight",Jt="noon",te="morning",ee="afternoon",ie="evening",oe="night",re={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Qt.y(t,e)},Y:function(t,e,i,o){const r=Gt(t,o),s=r>0?r:1-r;if("YY"===e){return Xt(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Xt(s,e.length)},R:function(t,e){return Xt(Mt(t),e.length)},u:function(t,e){return Xt(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Xt(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Xt(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Qt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Xt(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Kt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Xt(r,e.length)},I:function(t,e,i){const o=Yt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Xt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Qt.d(t,e)},D:function(t,e,i){const o=Ht(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Xt(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Xt(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Xt(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Xt(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Jt:0===o?Zt:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?ie:o>=12?ee:o>=4?te:oe,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Qt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Qt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Qt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Qt.s(t,e)},S:function(t,e){return Qt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ne(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 ne(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"+se(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"+se(o,":");default:return"GMT"+ae(o,":")}},t:function(t,e,i){return Xt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Xt(+t,e.length)}};function se(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Xt(s,2)}function ne(t,e){if(t%60==0){return(t>0?"-":"+")+Xt(Math.abs(t)/60,2)}return ae(t,e)}function ae(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Xt(Math.trunc(o/60),2)+e+Xt(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"})}},de=(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"})}},ce={p:de,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return le(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",le(o,e)).replace("{{time}}",de(r,e))}},he=/^D+$/,pe=/^Y+$/,ue=["D","DD","YY","YYYY"];const ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,be=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,me=/^'([^]*?)'?$/,ye=/''/g,ve=/[a-zA-Z]/;function fe(t,e,i){const o=Ot(),r=o.locale??Ut,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=Et(t,i?.in);if(!jt(a))throw new RangeError("Invalid time value");let l=e.match(be).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,ce[e])(t,r.formatLong)}return t})).join("").match(ge).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:we(t)};if(re[e])return{isToken:!0,value:t};if(e.match(ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return pe.test(t)}(o)||function(t){return he.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),ue.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,re[o[0]])(a,o,r.localize,d)})).join("")}function we(t){const e=t.match(me);return e?e[1].replace(ye,"'"):t}function xe(t,e){return Et(t,e?.in).getDate()}function ke(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=St(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function $e(t,e){return+Et(t)>+Et(e)}function Se(t,e){return+Et(t)<+Et(e)}function Ee(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function De(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()}function Ce(t,e){return function(t,e){const[i,o]=Bt(0,t,e);return+Lt(i)===+Lt(o)}(St(t,t),function(t){return St(t,Date.now())}(t))}function Oe(t,e,i){const o=Et(t,i?.in);return o.setDate(e),o}let Fe=class extends t{static{this.styles=[J,o`
|
|
3352
|
-
${
|
|
3347
|
+
`}};n([L({type:Array}),s("design:type",Array)],Ct.prototype,"acceptedFileTypes",void 0),n([L({type:Number}),s("design:type",Object)],Ct.prototype,"maxFiles",void 0),n([L({type:Number}),s("design:type",Object)],Ct.prototype,"maxFileSize",void 0),n([L({type:Boolean}),s("design:type",Object)],Ct.prototype,"isShowInfoSize",void 0),n([L({type:Boolean}),s("design:type",Object)],Ct.prototype,"isChangeStyleError",void 0),n([B(),s("design:type",Object)],Ct.prototype,"isDragging",void 0),n([B(),s("design:type",Array)],Ct.prototype,"imageUrls",void 0),n([B(),s("design:type",Boolean)],Ct.prototype,"isMaxFilesReached",void 0),Ct=n([a("upload-image")],Ct);const kt=6048e5,$t=Symbol.for("constructDateFrom");function St(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&$t in t?t[$t](e):t instanceof Date?new t.constructor(e):new Date(e)}function Et(t,e){return St(e||t,t)}function Dt(t,e,i){const o=Et(t,i?.in);if(isNaN(e))return St(t,NaN);if(!e)return o;const r=o.getDate(),n=St(t,o.getTime());n.setMonth(o.getMonth()+e+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let Ot={};function _t(){return Ot}function Mt(t,e){const i=_t(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Et(t,e?.in),n=r.getDay(),s=(n<o?7:0)+n-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Ft(t,e){return Mt(t,{...e,weekStartsOn:1})}function Lt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=St(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=Ft(r),s=St(i,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const a=Ft(s);return i.getTime()>=n.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Bt(t){const e=Et(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 Tt(t,...e){const i=St.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Pt(t,e){const i=Et(t,e?.in);return i.setHours(0,0,0,0),i}function Rt(t,e,i){return Dt(t,12*e,i)}function jt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Et(t)));var e}function Vt(t,e){const i=Et(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const At={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function zt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const Nt={date:zt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zt({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:zt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},It={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Wt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Ht(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],n=e.match(r);if(!n)return null;const s=n[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(s))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(s)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(s.length)}}}var qt;const Ut={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=At[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:Nt,formatRelative:(t,e,i,o)=>It[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Wt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Wt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Wt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Wt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Wt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(qt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(qt.matchPattern);if(!i)return null;const o=i[0],r=t.match(qt.parsePattern);if(!r)return null;let n=qt.valueCallback?qt.valueCallback(r[0]):r[0];return n=e.valueCallback?e.valueCallback(n):n,{value:n,rest:t.slice(o.length)}}),era:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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 Zt(t,e){const i=Et(t,e?.in),o=function(t,e){const[i,o]=Tt(0,t,e),r=Pt(i),n=Pt(o),s=+r-Bt(r),a=+n-Bt(n);return Math.round((s-a)/864e5)}(i,function(t,e){const i=Et(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Yt(t,e){const i=Et(t,e?.in),o=+Ft(i)-+function(t,e){const i=Lt(t,e),o=St(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Ft(o)}(i);return Math.round(o/kt)+1}function Gt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=_t(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=St(e?.in||t,0);s.setFullYear(o+1,0,n),s.setHours(0,0,0,0);const a=Mt(s,e),l=St(e?.in||t,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);const d=Mt(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Kt(t,e){const i=Et(t,e?.in),o=+Mt(i,e)-+function(t,e){const i=_t(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Gt(t,e),n=St(e?.in||t,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),Mt(n,e)}(i,e);return Math.round(o/kt)+1}function Xt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Qt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Xt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Xt(i+1,2)},d:(t,e)=>Xt(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Xt(t.getHours()%12||12,e.length),H:(t,e)=>Xt(t.getHours(),e.length),m:(t,e)=>Xt(t.getMinutes(),e.length),s:(t,e)=>Xt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Xt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Jt="midnight",te="noon",ee="morning",ie="afternoon",oe="evening",re="night",ne={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Qt.y(t,e)},Y:function(t,e,i,o){const r=Gt(t,o),n=r>0?r:1-r;if("YY"===e){return Xt(n%100,2)}return"Yo"===e?i.ordinalNumber(n,{unit:"year"}):Xt(n,e.length)},R:function(t,e){return Xt(Lt(t),e.length)},u:function(t,e){return Xt(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Xt(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Xt(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Qt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Xt(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Kt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Xt(r,e.length)},I:function(t,e,i){const o=Yt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Xt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Qt.d(t,e)},D:function(t,e,i){const o=Zt(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Xt(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(n);case"ee":return Xt(n,2);case"eo":return i.ordinalNumber(n,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(n);case"cc":return Xt(n,e.length);case"co":return i.ordinalNumber(n,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Xt(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?te:0===o?Jt:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?oe:o>=12?ie:o>=4?ee:re,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Qt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Qt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Qt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Qt.s(t,e)},S:function(t,e){return Qt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ae(o);case"XXXX":case"XX":return le(o);default:return le(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ae(o);case"xxxx":case"xx":return le(o);default:return le(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+se(o,":");default:return"GMT"+le(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+se(o,":");default:return"GMT"+le(o,":")}},t:function(t,e,i){return Xt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Xt(+t,e.length)}};function se(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),n=o%60;return 0===n?i+String(r):i+String(r)+e+Xt(n,2)}function ae(t,e){if(t%60==0){return(t>0?"-":"+")+Xt(Math.abs(t)/60,2)}return le(t,e)}function le(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Xt(Math.trunc(o/60),2)+e+Xt(o%60,2)}const de=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},ce=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},he={p:ce,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return de(t,e);let n;switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",de(o,e)).replace("{{time}}",ce(r,e))}},pe=/^D+$/,ue=/^Y+$/,ge=["D","DD","YY","YYYY"];const be=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,me=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ye=/^'([^]*?)'?$/,ve=/''/g,fe=/[a-zA-Z]/;function we(t,e,i){const o=_t(),r=o.locale??Ut,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=Et(t,i?.in);if(!jt(a))throw new RangeError("Invalid time value");let l=e.match(me).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,he[e])(t,r.formatLong)}return t})).join("").match(be).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:xe(t)};if(ne[e])return{isToken:!0,value:t};if(e.match(fe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:n,weekStartsOn:s,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return ue.test(t)}(o)||function(t){return pe.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),ge.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,ne[o[0]])(a,o,r.localize,d)})).join("")}function xe(t){const e=t.match(ye);return e?e[1].replace(ve,"'"):t}function Ce(t,e){return Et(t,e?.in).getDate()}function ke(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=i.getMonth(),n=St(i,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function $e(t,e){return+Et(t)>+Et(e)}function Se(t,e){return+Et(t)<+Et(e)}function Ee(t,e,i){const[o,r]=Tt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function De(t,e,i){const[o,r]=Tt(0,t,e);return o.getFullYear()===r.getFullYear()}function Oe(t,e){return function(t,e){const[i,o]=Tt(0,t,e);return+Pt(i)===+Pt(o)}(St(t,t),function(t){return St(t,Date.now())}(t))}function _e(t,e,i){const o=Et(t,i?.in);return o.setDate(e),o}let Me=class extends t{static{this.styles=[J,o`
|
|
3348
|
+
${K}
|
|
3353
3349
|
|
|
3354
3350
|
/* Estilos generales del contenedor del calendario (escritorio) */
|
|
3355
3351
|
.calendar-container {
|
|
@@ -3415,7 +3411,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3415
3411
|
}
|
|
3416
3412
|
|
|
3417
3413
|
.month-year-button {
|
|
3418
|
-
${
|
|
3414
|
+
${j}
|
|
3419
3415
|
display: flex;
|
|
3420
3416
|
align-items: center;
|
|
3421
3417
|
justify-content: center;
|
|
@@ -3464,7 +3460,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3464
3460
|
|
|
3465
3461
|
/* Estilos para cada botón de día */
|
|
3466
3462
|
.day {
|
|
3467
|
-
${
|
|
3463
|
+
${V}
|
|
3468
3464
|
display: flex;
|
|
3469
3465
|
align-items: center;
|
|
3470
3466
|
justify-content: center;
|
|
@@ -3527,7 +3523,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3527
3523
|
/* Botones de año y mes en la grilla */
|
|
3528
3524
|
.year-button,
|
|
3529
3525
|
.month-button {
|
|
3530
|
-
${
|
|
3526
|
+
${V}
|
|
3531
3527
|
background: var(--secondary-white, #fff);
|
|
3532
3528
|
border: 1px solid transparent;
|
|
3533
3529
|
color: var( --secondary-dark-blue-80, #3c4257 );
|
|
@@ -3681,7 +3677,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3681
3677
|
}
|
|
3682
3678
|
|
|
3683
3679
|
.mobile-modal .day {
|
|
3684
|
-
${
|
|
3680
|
+
${A}
|
|
3685
3681
|
font-weight: 500;
|
|
3686
3682
|
display: flex;
|
|
3687
3683
|
align-items: center;
|
|
@@ -3779,7 +3775,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3779
3775
|
border-radius: 9999px;
|
|
3780
3776
|
}
|
|
3781
3777
|
/* */
|
|
3782
|
-
`]}constructor(){super(),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.type="date",this.lastElement=!1,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))},this._boundHandleCalendarKeydown=this.handleCalendarKeydown.bind(this),this._boundHandleFocusout=t=>{const e=t.relatedTarget;e&&!this.contains(e)&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this._boundHandleCalendarKeydown),this.addEventListener("focusout",this._boundHandleFocusout)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),this.shadowRoot?.removeEventListener("keydown",this._boundHandleCalendarKeydown),this.removeEventListener("focusout",this._boundHandleFocusout)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"month"===this.type?this.currentView="months"===this.currentView?"years":"months":"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?Dt(this.viewDate,t):"months"===this.currentView?Rt(this.viewDate,t):Rt(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=Et(t,i?.in);return isNaN(+o)?St(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=Et(t,i?.in),r=o.getFullYear(),
|
|
3778
|
+
`]}constructor(){super(),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.type="date",this.lastElement=!1,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))},this._boundHandleCalendarKeydown=this.handleCalendarKeydown.bind(this),this._boundHandleFocusout=t=>{const e=t.relatedTarget;e&&!this.contains(e)&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this._boundHandleCalendarKeydown),this.addEventListener("focusout",this._boundHandleFocusout)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),this.shadowRoot?.removeEventListener("keydown",this._boundHandleCalendarKeydown),this.removeEventListener("focusout",this._boundHandleFocusout)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"month"===this.type?this.currentView="months"===this.currentView?"years":"months":"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?Dt(this.viewDate,t):"months"===this.currentView?Rt(this.viewDate,t):Rt(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=Et(t,i?.in);return isNaN(+o)?St(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=Et(t,i?.in),r=o.getFullYear(),n=o.getDate(),s=St(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const a=ke(s);return o.setMonth(e,Math.min(n,a)),o}(this.viewDate,t);"month"===this.type?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))):(this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()})))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}focusFirstElement(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("button:not([disabled])");t?.focus()}))}))}focusYearsView(){this.updateComplete.then((()=>{this.currentView="years";const t=this.shadowRoot?.querySelector(".year-button:not([disabled])");t&&t.focus()}))}focusMonthsView(){this.updateComplete.then((()=>{"months"!==this.currentView&&(this.currentView="months");const t=this.shadowRoot?.querySelector(".month-button:not([disabled])");t&&t.focus()}))}focusDaysView(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days");const t=this.shadowRoot?.querySelector(".day:not([disabled])");t&&t.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const n=i[r];n&&n.focus()}_focusDayOfWeekEdge(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;if(-1===Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===e)))return;const i=Array.from(this.shadowRoot.querySelectorAll(".days-grid > *")).findIndex((t=>t===e));if(-1===i)return;const o=i%7;let r=null;if("start"===t){const t=i-o;r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e<=i;)e++,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}else{const t=i+(6-o);r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e>=i;)e--,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}r?.focus()}handleCalendarKeydown(t){const{key:e}=t,i=this.shadowRoot?.activeElement;if("Escape"===e)return t.preventDefault(),void this.dispatchEvent(new CustomEvent("close"));if("Tab"!==e)if(i&&(i.classList.contains("month-year-button")||i.classList.contains("nav-button"))){t.preventDefault();const o=this.shadowRoot?.querySelector(".month-year-button"),r=this.shadowRoot?.querySelector(".header-right button:first-child"),n=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===n&&this.handleNavClick(1),void this.updateComplete.then((()=>i.focus()));switch(e){case"ArrowUp":return t.preventDefault(),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));case"ArrowRight":(i===o||i===r)&&n?.focus();break;case"ArrowLeft":i===n?r?.focus():i===r&&o?.focus();break;case"ArrowDown":if("days"===this.currentView){const t=this.initialFocusElement||this.shadowRoot?.querySelector(".day:not([disabled])");t?.focus()}else if("months"===this.currentView||"years"===this.currentView){const t=this.shadowRoot?.querySelector(`.${"months"===this.currentView?"month":"year"}-grid button:not([disabled])`);t?.focus()}}}else if(i&&i.classList.contains("day")&&"days"===this.currentView){t.preventDefault();const o=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===i)),r=this.shadowRoot?.querySelector(".month-year-button");switch(e){case"ArrowLeft":this._findAndFocusDayButton(-1);break;case"ArrowRight":this._findAndFocusDayButton(1);break;case"ArrowDown":this._findAndFocusDayButton(7);break;case"ArrowUp":o-7<0?r?.focus():this._findAndFocusDayButton(-7);break;case"Home":this._focusDayOfWeekEdge("start");break;case"End":this._focusDayOfWeekEdge("end");break;case"Enter":i.click()}}else if(i&&(i.classList.contains("month-button")||i.classList.contains("year-button"))){t.preventDefault();const o="months"===this.currentView?".month-button:not([disabled])":".year-button:not([disabled])",r=Array.from(this.shadowRoot.querySelectorAll(o)),n=r.findIndex((t=>t===i)),s=this.shadowRoot?.querySelector(".month-year-button");if(-1===n)return;let a=n;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void s?.focus();break;case"ArrowLeft":a-=1,a<0&&(a=0);break;case"ArrowRight":a+=1,a>=r.length&&(a=r.length-1);break;case"Enter":i.click()}a!==n&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault();else{const e=Array.from(this.shadowRoot.querySelectorAll("button:not([disabled])"));if(!e.includes(i))return;if(e.length>0){const o=e[0],r=e[e.length-1];if(t.shiftKey&&i===o)return t.preventDefault(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));t.shiftKey||i!==r||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=Ee(Vt(this.viewDate),Vt(this.minDate))||Se(this.viewDate,this.minDate)),this.maxDate&&(r=Ee(Vt(this.viewDate),Vt(this.maxDate))||$e(this.viewDate,this.maxDate))}return e`
|
|
3783
3779
|
<div class="header">
|
|
3784
3780
|
<div class="header-left">
|
|
3785
3781
|
<button class="month-year-button" @click=${this.handleHeaderClick}>
|
|
@@ -3796,13 +3792,13 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3796
3792
|
</button>
|
|
3797
3793
|
</div>
|
|
3798
3794
|
</div>
|
|
3799
|
-
`}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((e,i)=>t+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),
|
|
3795
|
+
`}renderYearsView(){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((e,i)=>t+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),n=this.minDate?this.minDate.getFullYear():-1/0,s=this.maxDate?this.maxDate.getFullYear():1/0;return e`
|
|
3800
3796
|
<div class="year-grid">
|
|
3801
3797
|
${i.map((t=>e`
|
|
3802
3798
|
<button
|
|
3803
3799
|
class="${` year-button ${t===o?"selected":t===r?"current":""} `}"
|
|
3804
3800
|
@click=${()=>this.handleYearSelect(t)}
|
|
3805
|
-
?disabled=${t<
|
|
3801
|
+
?disabled=${t<n||t>s}
|
|
3806
3802
|
>
|
|
3807
3803
|
${t}
|
|
3808
3804
|
</button>
|
|
@@ -3810,30 +3806,30 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3810
3806
|
</div>
|
|
3811
3807
|
`}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return e`
|
|
3812
3808
|
<div class="month-grid">
|
|
3813
|
-
${t.map(((t,
|
|
3809
|
+
${t.map(((t,n)=>{const s=n===o,a=n===i&&this.selectedDate&&De(this.viewDate,this.selectedDate),l=n===i&&this.selectedDate&&!De(this.viewDate,this.selectedDate);let d=!1;this.minDate&&r===this.minDate.getFullYear()&&(d=n<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||n>this.maxDate.getMonth());return e`
|
|
3814
3810
|
<button
|
|
3815
|
-
class="${"month-button "+(a?"selected":l?"secondary-selected":
|
|
3811
|
+
class="${"month-button "+(a?"selected":l?"secondary-selected":s?"current":"")}"
|
|
3816
3812
|
?disabled=${d}
|
|
3817
|
-
@click=${()=>this.handleMonthSelect(
|
|
3813
|
+
@click=${()=>this.handleMonthSelect(n)}
|
|
3818
3814
|
>
|
|
3819
3815
|
${t}
|
|
3820
3816
|
</button>
|
|
3821
3817
|
`}))}
|
|
3822
3818
|
</div>
|
|
3823
|
-
`}renderDayView(){const t=ke(this.viewDate),i=
|
|
3819
|
+
`}renderDayView(){const t=ke(this.viewDate),i=Vt(this.viewDate),o=Et(i,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),s=Array.from({length:t},((t,e)=>_e(i,e+1))),a=this.getShortWeekdays();return e`
|
|
3824
3820
|
<div class="weekdays">
|
|
3825
3821
|
${a.map((t=>e`<div>${t}</div>`))}
|
|
3826
3822
|
</div>
|
|
3827
3823
|
|
|
3828
3824
|
<div class="days-grid">
|
|
3829
|
-
${
|
|
3830
|
-
${
|
|
3825
|
+
${n.map((()=>e`<div></div>`))}
|
|
3826
|
+
${s.map((t=>{const i=Pt(t),o=this.selectedDate?Pt(this.selectedDate):null,r=this.minDate&&Se(i,Pt(this.minDate))||this.maxDate&&$e(i,Pt(this.maxDate)),n=Oe(i),s=o&&Ce(i)===Ce(o),a=s&&o&&Ee(i,o)&&De(i,o);return e`
|
|
3831
3827
|
<button
|
|
3832
|
-
class="${`day ${
|
|
3828
|
+
class="${`day ${n?"today":""} ${a?"selected":s&&!a?"secondary-selected":""}`}"
|
|
3833
3829
|
?disabled=${r}
|
|
3834
3830
|
@click=${()=>this.handleDayClick(t)}
|
|
3835
3831
|
>
|
|
3836
|
-
${
|
|
3832
|
+
${we(t,"d")}
|
|
3837
3833
|
</button>
|
|
3838
3834
|
`}))}
|
|
3839
3835
|
</div>
|
|
@@ -3851,10 +3847,10 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3851
3847
|
<div class="calendar-container" style="width: ${this.calendarWidth}px;">
|
|
3852
3848
|
${r}
|
|
3853
3849
|
</div>
|
|
3854
|
-
`}};
|
|
3850
|
+
`}};n([L({type:Object}),s("design:type",Object)],Me.prototype,"selectedDate",void 0),n([L({type:Object}),s("design:type",Date)],Me.prototype,"viewDate",void 0),n([L({type:Boolean}),s("design:type",Object)],Me.prototype,"isMobile",void 0),n([L({type:Number}),s("design:type",Number)],Me.prototype,"calendarWidth",void 0),n([L({type:Object}),s("design:type",Object)],Me.prototype,"minDate",void 0),n([L({type:Object}),s("design:type",Object)],Me.prototype,"maxDate",void 0),n([L({type:String}),s("design:type",String)],Me.prototype,"type",void 0),n([L({type:Boolean}),s("design:type",Object)],Me.prototype,"lastElement",void 0),n([B(),s("design:type",String)],Me.prototype,"currentView",void 0),n([T(".day.selected, .day.today:not(.selected)"),s("design:type",HTMLButtonElement)],Me.prototype,"initialFocusElement",void 0),Me=n([a("calendar-overlay"),s("design:paramtypes",[])],Me);let Fe=class extends P{constructor(){super(...arguments),this.isRenderClearButton=!0,this.readonly=!1,this.type="date",this.eighteenOrOlder=!1,this.maxLength=10,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.lastElement=!1,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this._emitDropdownToggle(!1))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen&&(this._emitToggle(!1),this._emitDropdownToggle(!1)),this.isOpen=!1)}}static{this.styles=o`
|
|
3851
|
+
${X}
|
|
3855
3852
|
${Q}
|
|
3856
|
-
${
|
|
3857
|
-
${K}
|
|
3853
|
+
${G}
|
|
3858
3854
|
|
|
3859
3855
|
/* Si se proporciona una propiedad width (ej. width="600px"), se usa ese valor. */
|
|
3860
3856
|
:host {
|
|
@@ -3930,7 +3926,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3930
3926
|
}
|
|
3931
3927
|
|
|
3932
3928
|
.date-input {
|
|
3933
|
-
${
|
|
3929
|
+
${A}
|
|
3934
3930
|
flex-grow: 1;
|
|
3935
3931
|
border: none;
|
|
3936
3932
|
outline: none;
|
|
@@ -3992,7 +3988,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3992
3988
|
background-color: transparent;
|
|
3993
3989
|
}
|
|
3994
3990
|
}
|
|
3995
|
-
`}setMessageErrorFormatInvalid(){return`formato de fecha inválido, se esperaba '${"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}'`}get _currentFormat(){return"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}firstUpdated(){this.setInitialWidth()}setInitialWidth(){if(!this.inputContainer)return;const t=this.inputContainer.getBoundingClientRect().width;this.calendarWidth!==t&&(this.calendarWidth=t)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){this.onlyNumericAndDash(t);const e=t.target,i=e.value.substring(0,this.maxLength);e.value!==i&&(e.value=i),this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){let e=t.detail.date;if(!e)return;"month"===this.type&&(e=
|
|
3991
|
+
`}setMessageErrorFormatInvalid(){return`formato de fecha inválido, se esperaba '${"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}'`}get _currentFormat(){return"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}firstUpdated(){this.setInitialWidth()}setInitialWidth(){if(!this.inputContainer)return;const t=this.inputContainer.getBoundingClientRect().width;this.calendarWidth!==t&&(this.calendarWidth=t)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){this.onlyNumericAndDash(t);const e=t.target,i=e.value.substring(0,this.maxLength);e.value!==i&&(e.value=i),this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){let e=t.detail.date;if(!e)return;"month"===this.type&&(e=_e(e,1));if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=we(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.closeOverlay(t)}else{const t=we(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.selectedDate=null,this.closeOverlay(null)}}_emitToggle(t){this.dispatchEvent(new CustomEvent("calendar-toggle",{detail:{open:t},bubbles:!0,composed:!0}))}_isLastFocusableInModal(){const t=this.parentElement;if(!t)return!1;const e=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","a[href]",'[tabindex]:not([tabindex="-1"])',"randstad-button:not([disabled])","datepicker-component:not([disabled])","randstad-select:not([disabled])"].join(", "),i=t.querySelectorAll(e),o=Array.from(i),r=o.indexOf(this);return-1!==r&&r===o.length-1}_emitDropdownToggle(t){t?this.isOpen&&this.lastElement&&this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:!0},bubbles:!0,composed:!0}))})):this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:!1},bubbles:!0,composed:!0}))}))}willUpdate(t){if(t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")){const e=t.get("value");this.value!==e&&this._syncValue(this.value)}t.has("type")&&("month"===this.type?this.maxLength=7:this.maxLength=10)}updated(t){(t.has("isOpen")||t.has("value"))&&this.isOpen&&this.updateComplete.then((()=>{this.setInitialWidth()})),super.updated(t)}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.inputValue=t?t.replace(/-/g,"/"):null,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(null===this.selectedDate&&null===this.inputValue||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null,this.error=!1));let e=this._parseDate(t);e&&this._validateDate(e)?("month"===this.type&&(e=_e(e,1)),this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.inputValue=we(e,this._currentFormat).replace(/-/g,"/")):this.selectedDate=e}_validateDate(t){if(!t)return!1;if(this.error=!1,this.errorMessage=null,this.eighteenOrOlder){const e=function(t,e,i){return Rt(t,-18,i)}(new Date);if($e(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}return!!this._isWithinBounds(t)||(this._getValidDateRange(),this.error=!0,!1)}_parseAndValidateDate(t,e){if(this.disabled)return;if(""===t||null===t)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(e&&this.closeOverlay(null));const i=this._parseDate(t);if(i){this._validateDate(i)?(this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,e&&this.closeOverlay(we(i,this._currentFormat))):(this.error=!0,this.selectedDate=null,e&&this.closeOverlay(null))}else this.error=!0,this.errorMessage=this.setMessageErrorFormatInvalid(),this.selectedDate=null,e&&this.closeOverlay(null)}_parseDate(t){const e=t.split("-").map(Number);if("month"===this.type&&2===e.length){const[t,i]=e;if(t>=1&&t<=12&&i>1e3){const e=new Date(i,t-1,1,12);if(jt(e))return e}return null}if(3===e.length){const[i,o,r]=e;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const e=new Date(r,o-1,i,12);if(jt(e)&&we(e,"dd-MM-yyyy")===t)return e}}const i=t.split("-").map(Number);if(3===i.length){const[e,o,r]=i;if(e&&o&&r&&o>=1&&o<=12&&e>1e3){const i=new Date(e,o-1,r,12);if(jt(i)&&we(i,"yyyy-MM-dd")===t)return i}}return null}_parseDateString(t){if(!t)return null;const e=t.split("-").map(Number);if(3===e.length&&!isNaN(e[0])&&!isNaN(e[1])&&!isNaN(e[2])){return new Date(e[0],e[1]-1,e[2],12)}return null}_getValidDateRange(){const t=this._parseDateString(this.minDate),e=this._parseDateString(this.maxDate);return t||e?t&&e&&$e(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!Se(t,e.minDate))&&(!e.maxDate||!$e(t,e.maxDate))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input");if("Enter"===e||" "===e)t.preventDefault(),this.isOpen?(this.closeOverlay(this.value),this._emitDropdownToggle(!1)):(this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date);else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value),this._emitDropdownToggle(!1)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusCalendar&&t.focusCalendar()})));const o=this.shadowRoot?.querySelector(".clear-button"),r=this.shadowRoot?.querySelector(".calendar-button");"ArrowRight"===e&&(t.preventDefault(),this.shadowRoot?.activeElement===i&&(o?o.focus():r?.focus()))}handleClearButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".calendar-button");"ArrowLeft"===e?(t.preventDefault(),i?.focus()):"ArrowRight"===e&&(t.preventDefault(),o?.focus())}handleCalendarButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".clear-button");if("Tab"===e){if(!t.shiftKey&&!this.isOpen)return t.preventDefault(),this.notifyOverlayOpened(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,void this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusFirstElement&&t.focusFirstElement()}));if(this.isOpen)return t.preventDefault(),void this.closeOverlay(this.value)}"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}onlyNumericAndDash(t){const e=t.target,i=e.value.replace(/[^0-9-]/g,"");e.value=i}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled,readonly:this.readonly}),o=this._getValidDateRange();return e`
|
|
3996
3992
|
<div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
3997
3993
|
${this.renderLabelContainer()}
|
|
3998
3994
|
|
|
@@ -4055,11 +4051,11 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4055
4051
|
|
|
4056
4052
|
${this.renderHelper()}
|
|
4057
4053
|
</div>
|
|
4058
|
-
`}};
|
|
4054
|
+
`}};n([L({type:String}),s("design:type",String)],Fe.prototype,"width",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"isRenderClearButton",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"readonly",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"minDate",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"maxDate",void 0),n([L({type:String}),s("design:type",String)],Fe.prototype,"type",void 0),n([L({type:Boolean}),s("design:type",Object)],Fe.prototype,"eighteenOrOlder",void 0),n([L({type:Number}),s("design:type",Number)],Fe.prototype,"maxLength",void 0),n([B(),s("design:type",Object)],Fe.prototype,"isOpen",void 0),n([B(),s("design:type",Object)],Fe.prototype,"selectedDate",void 0),n([B(),s("design:type",Date)],Fe.prototype,"viewDate",void 0),n([B(),s("design:type",Object)],Fe.prototype,"isMobile",void 0),n([B(),s("design:type",Number)],Fe.prototype,"calendarWidth",void 0),n([B(),s("design:type",Object)],Fe.prototype,"inputValue",void 0),n([T(".input-container"),s("design:type",HTMLDivElement)],Fe.prototype,"inputContainer",void 0),n([L({type:Boolean,attribute:"last-element"}),s("design:type",Object)],Fe.prototype,"lastElement",void 0),Fe=n([a("datepicker-component")],Fe);let Le=class extends vt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.showInternalError=!0,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
|
|
4055
|
+
${X}
|
|
4059
4056
|
${Q}
|
|
4060
|
-
${
|
|
4061
|
-
${
|
|
4062
|
-
${wt}
|
|
4057
|
+
${G}
|
|
4058
|
+
${xt}
|
|
4063
4059
|
|
|
4064
4060
|
:host([width]) {
|
|
4065
4061
|
width: var( --upload-file-width );
|
|
@@ -4098,7 +4094,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4098
4094
|
}
|
|
4099
4095
|
|
|
4100
4096
|
.file-name {
|
|
4101
|
-
${
|
|
4097
|
+
${V};
|
|
4102
4098
|
text-align: right;
|
|
4103
4099
|
color: var( --secondary-color-40 );
|
|
4104
4100
|
vertical-align: middle;
|
|
@@ -4121,7 +4117,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4121
4117
|
outline: 2px solid rgb( 0, 215, 255 ) !important;
|
|
4122
4118
|
outline-offset: 1px;
|
|
4123
4119
|
}
|
|
4124
|
-
`}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,
|
|
4120
|
+
`}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,wt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}handleRemoveFile(t,e){this.showDeleteConfirmation?this.confirmRemoveFile(t,e):this.removeFile(t,"file")}confirmRemoveFile(t,e){this.fileIndexToRemove=t,this.fileNameToRemove=e,this.isRemovePopupOpen=!0}handlePopupClose(t){!1===t.detail&&this.removeFile(this.fileIndexToRemove,"file"),this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
|
|
4125
4121
|
<randstad-button
|
|
4126
4122
|
.label=${this.buttonText}
|
|
4127
4123
|
.variant=${"button-primary"}
|
|
@@ -4182,7 +4178,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4182
4178
|
</custom-popup>
|
|
4183
4179
|
`:i}
|
|
4184
4180
|
</div>
|
|
4185
|
-
`}};
|
|
4181
|
+
`}};n([L({type:String}),s("design:type",String)],Le.prototype,"width",void 0),n([L({type:Number}),s("design:type",Object)],Le.prototype,"maxFiles",void 0),n([L({type:Array}),s("design:type",Array)],Le.prototype,"acceptedFileTypes",void 0),n([L({type:Number}),s("design:type",Object)],Le.prototype,"maxFileSize",void 0),n([L({type:String}),s("design:type",Object)],Le.prototype,"buttonText",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"showDeleteConfirmation",void 0),n([L({type:Boolean}),s("design:type",Object)],Le.prototype,"showInternalError",void 0),n([B(),s("design:type",Boolean)],Le.prototype,"isRemovePopupOpen",void 0),n([B(),s("design:type",Number)],Le.prototype,"fileIndexToRemove",void 0),n([B(),s("design:type",String)],Le.prototype,"fileNameToRemove",void 0),Le=n([a("upload-file")],Le);let Be=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
|
|
4186
4182
|
:host {
|
|
4187
4183
|
display: block;
|
|
4188
4184
|
width: 100%;
|
|
@@ -4459,7 +4455,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4459
4455
|
padding-right: 0 !important;
|
|
4460
4456
|
}
|
|
4461
4457
|
}
|
|
4462
|
-
`}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let s,n=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){n=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===n&&t>e&&(n=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){s=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:n+1,s=Math.min(s,a)}else s=l&&n<=2?0:n-1,s=Math.max(0,s);return s}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const s=window.getComputedStyle(this.slider),n=s.getPropertyValue("gap")||s.getPropertyValue("column-gap"),a=r*i+(parseFloat(n)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-s)<Math.round(t)-1){i=r.offsetLeft-s;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),s=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-s)>Math.round(t)+1){o=r.offsetLeft-s;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,s=this.slider.scrollLeft;if(e&&Math.round(s)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
|
|
4458
|
+
`}getCarouselGap(){let t;const e=window.innerWidth;return t=e>=941?this.DESKTOP_GAP:e>=501?this.TABLET_GAP:this.MOBILE_GAP,t}setCarouselGap(){this.style.setProperty("--carousel-cards-gap",`${this.getCarouselGap()}px`)}getNavWidth(){return this.navWidth??112}getInitialPadding(){if(!this.slider||!1===this.showNavButtons)return 0;const t=window.getComputedStyle(this.slider).getPropertyValue("scroll-padding-left");return parseFloat(t)||0}updated(t){super.updated(t),t.has("navWidth")&&this.style.setProperty("--nav-width",`${this.getNavWidth()}px`)}firstUpdated(){this.slider&&(this.setCarouselGap(),this.initAutoPlayConfig(),this.cardWidth||!1===this.isDynamicWidth?this.isDynamicWidth=!1:this.hasAttribute("isdynamicwidth")&&void 0!==this.isDynamicWidth||(this.isDynamicWidth=!0),this.initNavModeConfig(),this.slider.addEventListener("dragstart",(t=>t.preventDefault())),0===this.cards.length&&this.slotElement&&this.loadMutationObserver())}initAutoPlayConfig(){this.autoPlayDelayMs>0&&(this.isDynamicWidth=!0,this.showNavButtons=!1),this.autoPlayDelayMs>0&&this.slider&&(this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag.bind(this)),this.slider.addEventListener("touchstart",this.handleMouseEnter.bind(this)),this.slider.addEventListener("touchend",this.handleMouseLeaveDrag.bind(this)))}initNavModeConfig(){!1!==this.showNavButtons?(this.slider.addEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.addEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.addEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.addEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.addEventListener("scroll",this.handleScrollWithButtons),window.requestAnimationFrame((()=>this.handleScrollWithButtons())),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this))):(this.slider.classList.add("drag-mode"),this.slider.addEventListener("mousedown",this.handleMouseDownDrag),this.slider.addEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.addEventListener("mouseup",this.handleMouseUpDrag),this.slider.addEventListener("mousemove",this.handleMouseMoveDrag),this.slider.addEventListener("mouseenter",this.handleMouseEnter.bind(this)))}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize),this.autoPlayDelayMs>0&&setTimeout((()=>this.startAutoPlay()),100)}disconnectedCallback(){super.disconnectedCallback(),this.slider&&(this.slider.removeEventListener("mousedown",this.handleMouseDownWithButtons),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveWithButtons),this.slider.removeEventListener("mouseup",this.handleMouseUpWithButtons),this.slider.removeEventListener("mousemove",this.handleMouseMoveWithButtons),this.slider.removeEventListener("scroll",this.handleScrollWithButtons),this.slider.removeEventListener("mousedown",this.handleMouseDownDrag),this.slider.removeEventListener("mouseleave",this.handleMouseLeaveDrag),this.slider.removeEventListener("mouseup",this.handleMouseUpDrag),this.slider.removeEventListener("mousemove",this.handleMouseMoveDrag),null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.observer&&this.observer.disconnect(),this.stopAutoPlay())}resizeHandler(){this.requestUpdate(),this.setCarouselGap()}loadMutationObserver(){this.observer=new MutationObserver(((t,e)=>{t.some((t=>t.addedNodes.length>0))&&setTimeout((()=>{this.handleScrollWithButtons(),this.slider.scrollWidth>this.slider.clientWidth&&e.disconnect()}),50)})),this.observer.observe(this,{childList:!0,subtree:!0})}handleMouseEnter(){this.stopAutoPlay()}startAutoPlay(){this.autoPlayDelayMs<=0||!this.slider||null!==this.autoPlayTimer||window.setTimeout((()=>{null===this.autoPlayTimer&&(this.autoPlayTimer=window.setInterval((()=>this.scrollToNext(new Event("autoplay"))),this.autoPlayDelayMs))}),100)}stopAutoPlay(){null!==this.autoPlayTimer&&(window.clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)}handleMouseDownDrag(t){this.slider&&0===t.button&&(this.autoPlayDelayMs>0&&this.stopAutoPlay(),this.isDownDrag=!0,this.isDraggingDrag=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.prevXDrag=t.pageX,this.scrollLeftDrag=this.slider.scrollLeft)}handleMouseLeaveDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&window.setTimeout((()=>{this.startAutoPlay()}),500))}handleMouseUpDrag(){this.slider&&(this.isDownDrag=!1,this.isDraggingDrag=!1,this.slider.classList.remove("active"))}handleMouseMoveDrag(t){if(t.preventDefault(),!this.isDownDrag||!this.slider)return;this.isDraggingDrag=!0;const e=t.pageX-this.prevXDrag;this.slider.scrollLeft-=1.5*e,this.prevXDrag=t.pageX}shouldPreventDragWithButtons(){if(!this.slider)return!1;return this.slider.scrollWidth-this.slider.clientWidth>1}handleMouseDownWithButtons(t){this.slider&&0===t.button&&(this.shouldPreventDragWithButtons()||(this.isDownWithButtons=!0,this.isDraggingWithButtons=!1,this.slider.classList.add("active"),this.slider.style.scrollBehavior="auto",this.startXWithButtons=t.pageX,this.scrollLeftPositionWithButtons=this.slider.scrollLeft))}handleMouseMoveWithButtons(t){if(t.preventDefault(),!this.isDownWithButtons||!this.slider)return;if(this.shouldPreventDragWithButtons())return;this.isDraggingWithButtons=!0;const e=1.5*(t.pageX-this.startXWithButtons);this.slider.scrollLeft=this.scrollLeftPositionWithButtons-e}handleMouseUpWithButtons(){this.slider&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"))}handleMouseLeaveWithButtons(){this.isDownWithButtons&&(this.isDownWithButtons=!1,this.isDraggingWithButtons=!1,this.slider.classList.remove("active"),this.autoPlayDelayMs>0&&this.startAutoPlay())}handleScrollWithButtons(){if(!this.slider)return;if(this.isScrollingByButton){const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft,i=10;return t<=i?(this.showPrevButton=!1,void(this.showNextButton=!1)):(this.showPrevButton=e>i,void(this.showNextButton=e<t-i))}null!==this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.slider.style.scrollSnapType="none",this.scrollTimeout=null}),100);const t=this.slider.scrollWidth-this.slider.clientWidth,e=this.slider.scrollLeft;if(t<=10)return this.showPrevButton=!1,void(this.showNextButton=!1);this.showPrevButton=e>10,this.showNextButton=e<t-10}getNavButtonWidth(){if(!1===this.showNavButtons)return 0;if(!this.isDynamicWidth)return this.getNavWidth();return window.matchMedia("( max-width: 500px )").matches?0:this.getNavWidth()}getScrollAmount(){let t=null;if(this.cards.length>0)t=this.slider.querySelector(".carousel-card-item");else if(this.slotElement){t=this.slotElement.assignedElements({flatten:!0}).find((t=>t.classList.contains("carousel-card-item")))||null}if(!t||0===t.getBoundingClientRect().width){const t=parseFloat(this.cardWidth.replace("px",""))||280,e=window.getComputedStyle(this.slider),i=e.getPropertyValue("gap")||e.getPropertyValue("column-gap");return t+(parseFloat(i)||0)}const e=t.getBoundingClientRect().width,i=window.getComputedStyle(this.slider),o=i.getPropertyValue("gap")||i.getPropertyValue("column-gap");return e+(parseFloat(o)||0)}getCarouselItems(){return this.cards.length>0?this.slider?Array.from(this.slider.querySelectorAll(".carousel-card-item")):[]:this.slotElement?this.slotElement.assignedElements({flatten:!0}):[]}getCardsToCenterCount(){return this.isDynamicWidth&&window.matchMedia("( min-width: 941px )").matches?2:1}calculateTargetIndex(t,e,i){const o=this.getCardsToCenterCount();if(0===i.length||0===o)return-1;let r;r=t+5;let n,s=0;for(let t=0;t<i.length;t++){if(i[t].offsetLeft>=r){s=t;break}}if(this.isInfiniteScrollPartial){const e=this.getInitialPadding();0===s&&t>e&&(s=i.length-o)}if(!e&&t<5)return 0;const a=i.length-o,l=2===o;if(e){n=t<(this.isInfiniteScrollPartial?this.getInitialPadding():this.getNavButtonWidth())+5?l?2:1:s+1,n=Math.min(n,a)}else n=l&&s<=2?0:s-1,n=Math.max(0,n);return n}getScrollLeftToCenter(t,e){const i=this.getCardsToCenterCount();if(t<0||t>=e.length||0===i)return this.slider.scrollLeft;const o=e[t],r=o.getBoundingClientRect().width;if(0===r)return this.slider.scrollLeft;const n=window.getComputedStyle(this.slider),s=n.getPropertyValue("gap")||n.getPropertyValue("column-gap"),a=r*i+(parseFloat(s)||0)*(i-1);let l=o.offsetLeft+a/2-this.slider.clientWidth/2;l=Math.max(0,l);const d=this.slider.scrollWidth-this.slider.clientWidth;return l=Math.min(l,d),l}scrollToPrev(t){if("autoplay"===t.type||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const e=this.getCarouselItems();if(0===e.length)return;let i;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,o=this.calculateTargetIndex(t,!1,e);i=this.getScrollLeftToCenter(o,e)}else{const t=this.slider.scrollLeft;i=0;const o=this.getInitialPadding(),r=this.getNavButtonWidth(),n=this.isInfiniteScrollPartial?o:r;for(let o=e.length-1;o>=0;o--){const r=e[o];if(Math.round(r.offsetLeft-n)<Math.round(t)-1){i=r.offsetLeft-n;break}}}this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:i,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}scrollToNext(t){const e="autoplay"===t.type;if(e||(t.preventDefault(),t.stopPropagation()),!this.slider)return;const i=this.getCarouselItems();if(0===i.length)return;let o;if(this.isDynamicWidth&&window.matchMedia("( min-width: 501px )").matches){const t=this.slider.scrollLeft,e=this.calculateTargetIndex(t,!0,i);o=this.getScrollLeftToCenter(e,i)}else{const t=this.slider.scrollLeft;o=-1;const e=this.getInitialPadding(),r=this.getNavButtonWidth(),n=this.isInfiniteScrollPartial?e:r;for(let e=0;e<i.length;e++){const r=i[e];if(Math.round(r.offsetLeft-n)>Math.round(t)+1){o=r.offsetLeft-n;break}}if(-1===o){o=this.slider.scrollWidth-this.slider.clientWidth}}const r=this.slider.scrollWidth-this.slider.clientWidth,n=this.slider.scrollLeft;if(e&&Math.round(n)>=Math.round(r))return this.slider.style.scrollBehavior="auto",this.slider.scrollTo({left:0,behavior:"auto"}),void(this.slider.style.scrollBehavior="smooth");this.slider.style.scrollSnapType="none",this.isScrollingByButton=!0,this.slider.scrollTo({left:o,behavior:"smooth"}),window.setTimeout((()=>{this.isScrollingByButton=!1,this.handleScrollWithButtons()}),350)}getCardCustomDimensionValue(t,e){if("width"!==t||!this.isDynamicWidth){if("width"===t){let t=window.innerWidth;if(t-=2*this.getNavButtonWidth(),t-=this.getCarouselGap(),!e)return`${t}px`;const i=e.match(/^(\d+)px$/);if(!i)return`${t}px`;return parseFloat(i[1])>t?`${t}px`:e}{const t=window.innerHeight;if(!e)return;const i=e.match(/^(\d+)px$/);if(!i)return e;return parseFloat(i[1])>t?`${t}px`:e}}}renderNavButtons(){if(!1===this.showNavButtons)return e``;const t={"nav-button":!0,prev:!0,hidden:!this.showPrevButton},i={"nav-button":!0,next:!0,hidden:!this.showNextButton};return e`
|
|
4463
4459
|
<div class="nav-buttons-container">
|
|
4464
4460
|
<button
|
|
4465
4461
|
class=${r(t)}
|
|
@@ -4502,7 +4498,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4502
4498
|
|
|
4503
4499
|
${this.renderNavButtons()}
|
|
4504
4500
|
</div>
|
|
4505
|
-
`}};
|
|
4501
|
+
`}};n([L({type:Array}),s("design:type",Array)],Be.prototype,"cards",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"cardWidth",void 0),n([L({type:String}),s("design:type",String)],Be.prototype,"cardHeight",void 0),n([L({type:Number}),s("design:type",Number)],Be.prototype,"navWidth",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Be.prototype,"showNavButtons",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Be.prototype,"isDynamicWidth",void 0),n([L({type:Boolean}),s("design:type",Boolean)],Be.prototype,"isInfiniteScrollPartial",void 0),n([L({type:Number}),s("design:type",Number)],Be.prototype,"autoPlayDelayMs",void 0),n([B(),s("design:type",Object)],Be.prototype,"showPrevButton",void 0),n([B(),s("design:type",Object)],Be.prototype,"showNextButton",void 0),n([T(".carousel-wrapper"),s("design:type",HTMLElement)],Be.prototype,"slider",void 0),n([T("slot"),s("design:type",HTMLSlotElement)],Be.prototype,"slotElement",void 0),Be=n([a("carousel-component"),s("design:paramtypes",[])],Be);let Te=class extends t{constructor(){super(...arguments),this.message="",this.position="top",this.variant="bubble",this.visible=!0,this.arrowAlign="15px",this.isAnimating=!1}static{this.styles=o`
|
|
4506
4502
|
:host {
|
|
4507
4503
|
display: inline-block;
|
|
4508
4504
|
position: relative;
|
|
@@ -4614,7 +4610,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4614
4610
|
<slot></slot>
|
|
4615
4611
|
`:""}
|
|
4616
4612
|
</div>
|
|
4617
|
-
`}};
|
|
4613
|
+
`}};n([L({type:String}),s("design:type",Object)],Te.prototype,"message",void 0),n([L({type:Number}),s("design:type",Number)],Te.prototype,"duration",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"position",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"variant",void 0),n([L({type:Boolean}),s("design:type",Object)],Te.prototype,"visible",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"icon",void 0),n([L({type:String}),s("design:type",Object)],Te.prototype,"arrowAlign",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"backgroundColor",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"textColor",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"fontFamily",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"width",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"height",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"top",void 0),n([L({type:String}),s("design:type",String)],Te.prototype,"left",void 0),n([B(),s("design:type",Object)],Te.prototype,"isAnimating",void 0),Te=n([a("randstad-bubble")],Te);let Pe=class extends t{constructor(){super(...arguments),this.open=!1,this.title="verificación de seguridad",this.email="[correo electrónico]",this.loading=!1,this.showError=!1,this.showSuccessNotice=!1,this.successMessage="",this.helperMessage="",this.resendCooldown=60,this._resendDisabled=!1,this._resendRemaining=0,this._pinValues=Array(6).fill(""),this.modalWidth="450px",this.modalHeight="auto",this.maxHeight="90dvh"}static{this.styles=[K,o`
|
|
4618
4614
|
:host {
|
|
4619
4615
|
font-family: 'Graphik', sans-serif;
|
|
4620
4616
|
}
|
|
@@ -4626,7 +4622,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4626
4622
|
}
|
|
4627
4623
|
|
|
4628
4624
|
.mfa-instruction {
|
|
4629
|
-
${
|
|
4625
|
+
${V}
|
|
4630
4626
|
color: var(--secondary-color);
|
|
4631
4627
|
margin: 0;
|
|
4632
4628
|
}
|
|
@@ -4666,7 +4662,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4666
4662
|
}
|
|
4667
4663
|
|
|
4668
4664
|
.resend-line {
|
|
4669
|
-
${
|
|
4665
|
+
${V}
|
|
4670
4666
|
color: var(--secondary-color-60);
|
|
4671
4667
|
margin: 8px 0 0;
|
|
4672
4668
|
text-align: center;
|
|
@@ -4775,7 +4771,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4775
4771
|
${this._renderResendSection()}
|
|
4776
4772
|
</div>
|
|
4777
4773
|
</custom-modal>
|
|
4778
|
-
`}};
|
|
4774
|
+
`}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Pe.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"email",void 0),n([L({type:Boolean}),s("design:type",Object)],Pe.prototype,"loading",void 0),n([L({type:Boolean}),s("design:type",Object)],Pe.prototype,"showError",void 0),n([L({type:Boolean}),s("design:type",Object)],Pe.prototype,"showSuccessNotice",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"successMessage",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"helperMessage",void 0),n([L({type:Number}),s("design:type",Object)],Pe.prototype,"resendCooldown",void 0),n([B(),s("design:type",Object)],Pe.prototype,"_resendDisabled",void 0),n([B(),s("design:type",Object)],Pe.prototype,"_resendRemaining",void 0),n([B(),s("design:type",Array)],Pe.prototype,"_pinValues",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],Pe.prototype,"maxHeight",void 0),Pe=n([a("randstad-mfa-modal")],Pe);let Re=class extends t{constructor(){super(),this.centerIcon="search-white",this.centerLabel="",this.hidden=!1,this.desktop=!1,this.selectedIndex=-1,this._rafId=null,this.handleScroll=()=>{const t=window.innerHeight+window.scrollY,e=document.documentElement.scrollHeight;this.hidden=t>=e-50},this.handleScrollThrottled=()=>{null==this._rafId&&(this._rafId=requestAnimationFrame((()=>{this._rafId=null,this.handleScroll()})))},this.items=[{icon:"home",label:"Home"},{icon:"postulation",label:"Applications"},{icon:"user",label:"Users"},{icon:"settings",label:"Settings"}]}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.handleScrollThrottled,{passive:!0}),this.handleScroll()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.handleScrollThrottled),null!=this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null)}handleItemClick(t,e){this.selectedIndex=t,this.dispatchEvent(new CustomEvent("nav-item-click",{detail:{index:t,item:e},bubbles:!0,composed:!0}))}handleCenterClick(){this.dispatchEvent(new CustomEvent("center-click",{bubbles:!0,composed:!0}))}static{this.styles=o`
|
|
4779
4775
|
:host {
|
|
4780
4776
|
display: none;
|
|
4781
4777
|
position: fixed;
|
|
@@ -4918,13 +4914,13 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4918
4914
|
}
|
|
4919
4915
|
}
|
|
4920
4916
|
}
|
|
4921
|
-
`}render(){const t=this.items.slice(0,2),o=this.items.slice(2,4),
|
|
4917
|
+
`}render(){const t=this.items.slice(0,2),o=this.items.slice(2,4),n=(t,o)=>{const n=o===this.selectedIndex,s=r({"side-item":!0,active:n});return e`
|
|
4922
4918
|
<a
|
|
4923
|
-
class=${
|
|
4919
|
+
class=${s}
|
|
4924
4920
|
href=${t.href||"#"}
|
|
4925
4921
|
@click=${e=>{t.href||e.preventDefault(),this.handleItemClick(o,t)}}
|
|
4926
4922
|
aria-label=${t.label}
|
|
4927
|
-
aria-current=${
|
|
4923
|
+
aria-current=${n?"page":i}
|
|
4928
4924
|
>
|
|
4929
4925
|
<span class="item-icon">
|
|
4930
4926
|
<randstad-icon name=${t.icon} size="24" aria-hidden="true"></randstad-icon>
|
|
@@ -4933,7 +4929,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4933
4929
|
</a>
|
|
4934
4930
|
`};return e`
|
|
4935
4931
|
<nav class="navbar" role="navigation" aria-label="Navegación principal">
|
|
4936
|
-
${t.map(((t,e)=>
|
|
4932
|
+
${t.map(((t,e)=>n(t,e)))}
|
|
4937
4933
|
|
|
4938
4934
|
<button class="center-button" @click=${this.handleCenterClick} aria-label="Abrir menú">
|
|
4939
4935
|
<span class="center-circle">
|
|
@@ -4942,7 +4938,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4942
4938
|
${this.centerLabel?e`<span class="center-label">${this.centerLabel}</span>`:i}
|
|
4943
4939
|
</button>
|
|
4944
4940
|
|
|
4945
|
-
${o.map(((t,e)=>
|
|
4941
|
+
${o.map(((t,e)=>n(t,e+2)))}
|
|
4946
4942
|
</nav>
|
|
4947
|
-
`}};
|
|
4943
|
+
`}};n([L({type:Array}),s("design:type",Array)],Re.prototype,"items",void 0),n([L({type:String}),s("design:type",Object)],Re.prototype,"centerIcon",void 0),n([L({type:String}),s("design:type",Object)],Re.prototype,"centerLabel",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Re.prototype,"hidden",void 0),n([L({type:Boolean,reflect:!0}),s("design:type",Object)],Re.prototype,"desktop",void 0),n([L({type:Number}),s("design:type",Object)],Re.prototype,"selectedIndex",void 0),Re=n([a("randstad-navbar"),s("design:paramtypes",[])],Re);export{q as AccordionList,H as AccordionPanel,P as BaseControl,Me as CalendarOverlay,Be as Carousel,Z as CarouselCard,Y as Checkbox,lt as CustomModal,dt as CustomPopup,ht as CustomRadio,mt as CustomStepper,Fe as DatePickerComponent,ut as FilterableSelect,it as FormGroup,rt as IconComponent,Pe as MfaModal,ct as ProgressCircle,Te as RandstadBubble,U as RandstadButton,et as RandstadForm,Re as RandstadNavbar,at as RandstadNotice,st as RandstadSocialMediaInput,yt as TabsBar,Le as UploadFile,Ct as UploadImage,J as scrollbarStyles};
|
|
4948
4944
|
//# sourceMappingURL=index.js.map
|