@randstad-uca/design-system 1.0.61 → 1.0.62
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/Icon.d.ts +1 -1
- package/dist/index.js +283 -306
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import{LitElement as
|
|
1
|
+
import{LitElement as e,html as t,nothing as i,css as o,isServer as r}from"lit";import{classMap as n}from"lit/directives/class-map.js";function a(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const d=e=>(t,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},l=globalThis,c=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),h=new WeakMap;
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/let u=class{constructor(t,
|
|
12
|
+
*/let u=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(c&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=h.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(t,e))}return e}toString(){return this.cssText}};const b=(e,t)=>{if(c)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),o=l.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=i.cssText,e.appendChild(t)}},g=c?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new u("string"==typeof e?e:e+"",void 0,p))(t)})(e):e,{is:m,defineProperty:y,getOwnPropertyDescriptor:v,getOwnPropertyNames:f,getOwnPropertySymbols:x,getPrototypeOf:w}=Object,k=globalThis,$=k.trustedTypes,S=$?$.emptyScript:"",C=k.reactiveElementPolyfillSupport,E=(e,t)=>e,D={toAttribute(e,t){switch(t){case Boolean:e=e?S:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},M=(e,t)=>!m(e,t),O={attribute:!0,type:String,converter:D,reflect:!1,useDefault:!1,hasChanged:M};
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/Symbol.metadata??=Symbol("metadata"),
|
|
17
|
+
*/Symbol.metadata??=Symbol("metadata"),k.litPropertyMetadata??=new WeakMap;class F extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=O){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);void 0!==o&&y(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:r}=v(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const n=o?.call(this);r?.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??O}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const e=w(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const e=this.properties,t=[...f(e),...x(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(g(e))}else void 0!==e&&t.push(g(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:D).toAttribute(t,i.type);this._$Em=e,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){const i=this.constructor,o=i._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=i.getPropertyOptions(o),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:D;this._$Em=o,this[o]=r.fromAttribute(t,e.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){const o=this.constructor,r=this[e];if(i??=o.getPropertyOptions(e),!((i.hasChanged??M)(r,t)||i.useDefault&&i.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:r},n){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??t??this[e]),!0!==r||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===o&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,i,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}}F.elementStyles=[],F.shadowRootOptions={mode:"open"},F[E("elementProperties")]=new Map,F[E("finalized")]=new Map,C?.({ReactiveElement:F}),(k.reactiveElementVersions??=[]).push("2.1.0");
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const T={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:M},j=(e=T,t,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),n.set(i.name,e),"accessor"===o){const{name:o}=i;return{set(i){const r=t.get.call(this);t.set.call(this,i),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];t.call(this,i),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)};function P(e){return(t,i)=>"object"==typeof i?j(e,t,i):((e,t,i)=>{const o=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),o?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/function
|
|
28
|
+
*/function z(e){return P({...e,state:!0,attribute:!1})}
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
@@ -36,95 +36,95 @@ const O={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:D},F=(t=O,e,
|
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
function
|
|
40
|
-
${this.label?
|
|
39
|
+
function A(e,t){return(t,i,o)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}let L=class extends e{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left"}renderLabelContainer(){return t`
|
|
40
|
+
${this.label?t`
|
|
41
41
|
<div class="label-container">
|
|
42
42
|
${this.renderLabel()}
|
|
43
43
|
|
|
44
44
|
${this.renderHelp()}
|
|
45
45
|
</div>
|
|
46
46
|
`:""}
|
|
47
|
-
`}renderLabel(){return
|
|
47
|
+
`}renderLabel(){return t`
|
|
48
48
|
<label class="form-label">
|
|
49
49
|
${this.label}
|
|
50
|
-
${this.required?
|
|
51
|
-
<span class="required">*</span>`:this.optional?
|
|
50
|
+
${this.required?t`
|
|
51
|
+
<span class="required">*</span>`:this.optional?t` <span class="optional">opcional</span> `:i}
|
|
52
52
|
</label>
|
|
53
|
-
`}renderHelp(){return
|
|
54
|
-
${this.help?
|
|
53
|
+
`}renderHelp(){return t`
|
|
54
|
+
${this.help?t`
|
|
55
55
|
<div class="tooltip-wrapper">
|
|
56
56
|
<randstad-icon name="info" size="20px"></randstad-icon>
|
|
57
57
|
|
|
58
58
|
<div class="tooltip">${this.help}</div>
|
|
59
59
|
</div>
|
|
60
|
-
`:this.helpLink?
|
|
60
|
+
`:this.helpLink?t`
|
|
61
61
|
<a class="tooltip-wrapper" href="${this.helpLink}">
|
|
62
62
|
<randstad-icon name="ayuda" size="20px"></randstad-icon>
|
|
63
63
|
|
|
64
|
-
${this.helpLinkTooltipMessage?
|
|
64
|
+
${this.helpLinkTooltipMessage?t`<div class="tooltip">${this.helpLinkTooltipMessage}</div>`:i}
|
|
65
65
|
</a>
|
|
66
66
|
`:i}
|
|
67
|
-
`}renderError(){return
|
|
68
|
-
${this.error?
|
|
67
|
+
`}renderError(){return t`
|
|
68
|
+
${this.error?t`
|
|
69
69
|
<div class="error-message">
|
|
70
|
-
${this.errorMessage?this.errorMessage:
|
|
70
|
+
${this.errorMessage?this.errorMessage:t`<slot name="error-extended"></slot>`}
|
|
71
71
|
</div>
|
|
72
72
|
`:i}
|
|
73
|
-
`}renderHelper(){const
|
|
74
|
-
${this.helper?
|
|
73
|
+
`}renderHelper(){const e=`text-align: ${this.helperAlign??"left"};`;return t`
|
|
74
|
+
${this.helper?t`
|
|
75
75
|
<p
|
|
76
76
|
class="helper-description"
|
|
77
|
-
style=${
|
|
77
|
+
style=${e}
|
|
78
78
|
>
|
|
79
79
|
${this.helper}
|
|
80
80
|
</p>
|
|
81
81
|
`:i}
|
|
82
|
-
`}};
|
|
82
|
+
`}};a([P({type:String}),s("design:type",Object)],L.prototype,"label",void 0),a([P({type:String}),s("design:type",Object)],L.prototype,"placeholder",void 0),a([P({type:String}),s("design:type",Object)],L.prototype,"labelColor",void 0),a([P(),s("design:type",Object)],L.prototype,"value",void 0),a([P({type:Boolean}),s("design:type",Object)],L.prototype,"required",void 0),a([P({type:Boolean}),s("design:type",Object)],L.prototype,"optional",void 0),a([P({type:Boolean}),s("design:type",Object)],L.prototype,"disabled",void 0),a([P({type:Boolean,reflect:!0}),s("design:type",Object)],L.prototype,"error",void 0),a([P({type:String}),s("design:type",Object)],L.prototype,"errorMessage",void 0),a([P({type:String}),s("design:type",Object)],L.prototype,"helper",void 0),a([P({type:String}),s("design:type",String)],L.prototype,"helperAlign",void 0),a([P({type:String}),s("design:type",String)],L.prototype,"help",void 0),a([P({type:String}),s("design:type",String)],L.prototype,"helpLink",void 0),a([P({type:String}),s("design:type",String)],L.prototype,"helpLinkTooltipMessage",void 0),L=a([d("base-control")],L);const I=o`
|
|
83
83
|
font-family: 'Graphik', sans-serif;
|
|
84
84
|
font-weight: 400;
|
|
85
85
|
font-size: 12px;
|
|
86
86
|
line-height: 15px;
|
|
87
87
|
letter-spacing: 0%;
|
|
88
|
-
`,
|
|
88
|
+
`,_=o`
|
|
89
89
|
font-family: 'Graphik', sans-serif;
|
|
90
90
|
font-weight: 400;
|
|
91
91
|
font-size: 14px;
|
|
92
92
|
line-height: 25px;
|
|
93
93
|
letter-spacing: 0%;
|
|
94
|
-
`,
|
|
94
|
+
`,B=o`
|
|
95
95
|
font-family: 'Graphik', sans-serif;
|
|
96
96
|
font-weight: 400;
|
|
97
97
|
font-size: 16px;
|
|
98
98
|
line-height: 25px;
|
|
99
99
|
letter-spacing: 0%;
|
|
100
|
-
`,
|
|
100
|
+
`,R=o`
|
|
101
101
|
font-family: 'Graphik', sans-serif;
|
|
102
102
|
font-weight: 400;
|
|
103
103
|
font-size: 18px;
|
|
104
104
|
line-height: 30px;
|
|
105
105
|
letter-spacing: 0%;
|
|
106
|
-
`,
|
|
106
|
+
`,N=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
|
vertical-align: middle;
|
|
113
|
-
`,
|
|
113
|
+
`,V=o`
|
|
114
114
|
font-family: 'Graphik', sans-serif;
|
|
115
115
|
font-weight: 400;
|
|
116
116
|
font-size: 20px;
|
|
117
117
|
line-height: 30px;
|
|
118
118
|
letter-spacing: -1%;
|
|
119
119
|
vertical-align: middle;
|
|
120
|
-
`,
|
|
120
|
+
`,U=o`
|
|
121
121
|
font-family: 'Graphik', sans-serif;
|
|
122
122
|
font-weight: 400;
|
|
123
123
|
font-size: 26px;
|
|
124
124
|
line-height: 30px;
|
|
125
125
|
letter-spacing: -1%;
|
|
126
126
|
vertical-align: middle;
|
|
127
|
-
`;let
|
|
127
|
+
`;let q=class extends e{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.innerWidth>940,this.handleResize=()=>{this.isDesktop=window.innerWidth>940}}static{this.styles=o`
|
|
128
128
|
:host {
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
@@ -143,7 +143,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.title {
|
|
146
|
-
${
|
|
146
|
+
${B}
|
|
147
147
|
color: var( --secondary-color );
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -196,32 +196,32 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
196
196
|
background-color: var( --primary-color-5 );
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}toggle(){this.isOpen=!this.isOpen}render(){const t
|
|
199
|
+
`}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}toggle(){this.isOpen=!this.isOpen}render(){const e=t`
|
|
200
200
|
<randstad-icon
|
|
201
201
|
name="${this.isOpen?"arrow_up":"arrow_down"}"
|
|
202
202
|
size="24"
|
|
203
203
|
.color=${"var( --primary-color )"}
|
|
204
204
|
>
|
|
205
205
|
</randstad-icon>
|
|
206
|
-
`;return
|
|
206
|
+
`;return t`
|
|
207
207
|
<div class="header" @click=${this.toggle}>
|
|
208
208
|
<div class="title">${this.title}</div>
|
|
209
209
|
|
|
210
210
|
<div class="icon">
|
|
211
|
-
${this.isDesktop?
|
|
211
|
+
${this.isDesktop?t`<div class="icon-wrapper">${e}</div>`:e}
|
|
212
212
|
</div>
|
|
213
213
|
</div>
|
|
214
214
|
|
|
215
215
|
<div class="content ${this.isOpen?"open":""}">
|
|
216
216
|
<slot></slot>
|
|
217
217
|
</div>
|
|
218
|
-
`}};
|
|
218
|
+
`}};a([P({type:String}),s("design:type",Object)],q.prototype,"title",void 0),a([z(),s("design:type",Object)],q.prototype,"isOpen",void 0),a([z(),s("design:type",Object)],q.prototype,"isDesktop",void 0),q=a([d("accordion-panel")],q);let Y=class extends e{static{this.styles=o`
|
|
219
219
|
:host {
|
|
220
220
|
display: flex;
|
|
221
221
|
flex-direction: column;
|
|
222
222
|
gap: 16px;
|
|
223
223
|
}
|
|
224
|
-
`}render(){return
|
|
224
|
+
`}render(){return t`<slot></slot>`}};Y=a([d("accordion-list")],Y);let W=class extends e{constructor(){super(...arguments),this.type="button",this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.iconName=null,this.disabled=!1,this.idevent=""}static{this.styles=o`
|
|
225
225
|
:host {
|
|
226
226
|
display: inline-block;
|
|
227
227
|
--content-padding: 16px;
|
|
@@ -261,12 +261,12 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.button-lg {
|
|
264
|
-
${
|
|
264
|
+
${R}
|
|
265
265
|
min-height: 62px;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.button-md {
|
|
269
|
-
${
|
|
269
|
+
${B}
|
|
270
270
|
min-height: 57px;
|
|
271
271
|
}
|
|
272
272
|
|
|
@@ -518,16 +518,16 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
518
518
|
color: #6F758D;
|
|
519
519
|
cursor: default;
|
|
520
520
|
}
|
|
521
|
-
`}handleClick(
|
|
521
|
+
`}handleClick(e){if(!this.disabled)if("submit"===this.type){const e=this.closest("form");e&&e.requestSubmit()}else if("reset"===this.type){const e=this.closest("form");e&&e.reset()}else this.idevent&&this.dispatchEvent(new CustomEvent("randstad-button-click",{detail:this.idevent,composed:!0,bubbles:!0,cancelable:!1}))}render(){const e={button:!0,[this.variant]:!0,loader:this.loader,[`button-${this.size}`]:["button-primary","button-secondary","button-tertiary"].includes(this.variant)},i="button-tertiary"===this.variant?"var(--primary-color)":"white";return t`
|
|
522
522
|
<button
|
|
523
523
|
part="button"
|
|
524
524
|
type=${this.type}
|
|
525
|
-
class=${
|
|
525
|
+
class=${n(e)}
|
|
526
526
|
?disabled=${this.disabled||this.loader}
|
|
527
527
|
?aria-busy=${this.loader}
|
|
528
528
|
@click=${this.handleClick}
|
|
529
529
|
>
|
|
530
|
-
${this.loader?
|
|
530
|
+
${this.loader?t`
|
|
531
531
|
<div class="content-container">
|
|
532
532
|
<div class="loader">
|
|
533
533
|
<span class="dot" style="background-color: ${i};"></span>
|
|
@@ -535,19 +535,19 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
535
535
|
<span class="dot" style="background-color: ${i};"></span>
|
|
536
536
|
</div>
|
|
537
537
|
</div>
|
|
538
|
-
`:
|
|
538
|
+
`:t`
|
|
539
539
|
<div class="content-container">
|
|
540
|
-
${this.iconSrc&&"button-round"===this.variant?
|
|
540
|
+
${this.iconSrc&&"button-round"===this.variant?t`<img src=${this.iconSrc} alt="icon" class="button-icon" part="button-icon"/>`:""}
|
|
541
541
|
|
|
542
|
-
${this.iconName&&"button-round"!==this.variant&&"left"===this.iconPosition?
|
|
542
|
+
${this.iconName&&"button-round"!==this.variant&&"left"===this.iconPosition?t`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
543
543
|
|
|
544
|
-
${this.label?
|
|
544
|
+
${this.label?t`<span class="label-text" part="label">${this.label}</span>`:t`<slot></slot>`}
|
|
545
545
|
|
|
546
|
-
${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?
|
|
546
|
+
${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?t`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
547
547
|
</div>
|
|
548
548
|
`}
|
|
549
549
|
</button>
|
|
550
|
-
`}};
|
|
550
|
+
`}};a([P({type:String}),s("design:type",String)],W.prototype,"type",void 0),a([P({type:String}),s("design:type",String)],W.prototype,"variant",void 0),a([P({type:String}),s("design:type",String)],W.prototype,"size",void 0),a([P({type:String}),s("design:type",Object)],W.prototype,"label",void 0),a([P({type:Boolean}),s("design:type",Object)],W.prototype,"loader",void 0),a([P({type:String,attribute:"icon-src"}),s("design:type",String)],W.prototype,"iconSrc",void 0),a([P({type:String}),s("design:type",String)],W.prototype,"iconPosition",void 0),a([P({type:String}),s("design:type",Object)],W.prototype,"iconName",void 0),a([P({type:Boolean,reflect:!0}),s("design:type",Boolean)],W.prototype,"disabled",void 0),a([P({type:String}),s("design:type",Object)],W.prototype,"idevent",void 0),W=a([d("randstad-button")],W);let H=class extends e{constructor(){super(...arguments),this.img="",this.name="",this.title="",this.description="",this.buttonLabel="",this.cardId=""}static{this.styles=o`
|
|
551
551
|
:host {
|
|
552
552
|
display: inline-block;
|
|
553
553
|
font-family: "Graphik", sans-serif;
|
|
@@ -613,7 +613,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.title {
|
|
616
|
-
${
|
|
616
|
+
${R}
|
|
617
617
|
margin: 0;
|
|
618
618
|
}
|
|
619
619
|
|
|
@@ -635,7 +635,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
635
635
|
}
|
|
636
636
|
|
|
637
637
|
.description {
|
|
638
|
-
${
|
|
638
|
+
${_}
|
|
639
639
|
margin: 0;
|
|
640
640
|
}
|
|
641
641
|
|
|
@@ -654,7 +654,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
654
654
|
::part(button):active {
|
|
655
655
|
background-color: rgba(255, 255, 255, 0.2);
|
|
656
656
|
}
|
|
657
|
-
`}handleButtonClick(
|
|
657
|
+
`}handleButtonClick(e){e.stopPropagation(),this.onClick?this.onClick(e):this.dispatchEvent(new CustomEvent("card-button-click",{detail:e.detail,bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener("randstad-button-click",this.handleButtonClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("randstad-button-click",this.handleButtonClick)}render(){return t`
|
|
658
658
|
<div class="image-container" style="background-image: url( ${this.img} );">
|
|
659
659
|
<div class="overlay-gradient"></div>
|
|
660
660
|
|
|
@@ -668,14 +668,14 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
668
668
|
<div class="details">
|
|
669
669
|
<p class="description">${this.description}</p>
|
|
670
670
|
|
|
671
|
-
${this.cardId?
|
|
671
|
+
${this.cardId?t`
|
|
672
672
|
<randstad-button
|
|
673
673
|
variant="button-tertiary"
|
|
674
674
|
.label=${this.buttonLabel}
|
|
675
675
|
idevent=${this.cardId}
|
|
676
676
|
@randstad-button-click=${this.handleButtonClick}
|
|
677
677
|
>
|
|
678
|
-
</randstad-button>`:
|
|
678
|
+
</randstad-button>`:t`
|
|
679
679
|
<randstad-button
|
|
680
680
|
variant="button-tertiary"
|
|
681
681
|
.label=${this.buttonLabel}
|
|
@@ -686,14 +686,14 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
686
686
|
</div>
|
|
687
687
|
</div>
|
|
688
688
|
</div>
|
|
689
|
-
`}};
|
|
689
|
+
`}};a([P({type:String}),s("design:type",Object)],H.prototype,"img",void 0),a([P({type:String}),s("design:type",Object)],H.prototype,"name",void 0),a([P({type:String}),s("design:type",Object)],H.prototype,"title",void 0),a([P({type:String}),s("design:type",Object)],H.prototype,"description",void 0),a([P({type:String}),s("design:type",Object)],H.prototype,"buttonLabel",void 0),a([P({type:String}),s("design:type",Object)],H.prototype,"cardId",void 0),a([P({type:Object}),s("design:type",Object)],H.prototype,"onClick",void 0),H=a([d("carousel-card")],H);let G=class extends e{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
|
|
690
690
|
:host {
|
|
691
691
|
display: block;
|
|
692
692
|
max-width: 100%;
|
|
693
693
|
}
|
|
694
694
|
|
|
695
695
|
label {
|
|
696
|
-
${
|
|
696
|
+
${_}
|
|
697
697
|
display: flex;
|
|
698
698
|
align-items: center;
|
|
699
699
|
gap: 8px;
|
|
@@ -789,7 +789,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
789
789
|
label.disabled {
|
|
790
790
|
color: #9FA3B3;
|
|
791
791
|
}
|
|
792
|
-
`}toggleCheck(
|
|
792
|
+
`}toggleCheck(e){this.checked=e.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}render(){return t`
|
|
793
793
|
<label class="${this.error?"error":""} ${this.disabled?"disabled":""}">
|
|
794
794
|
<input
|
|
795
795
|
type="checkbox"
|
|
@@ -805,7 +805,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
805
805
|
<slot></slot>
|
|
806
806
|
</span>
|
|
807
807
|
</label>
|
|
808
|
-
`}};
|
|
808
|
+
`}};a([P({type:Boolean,reflect:!0}),s("design:type",Object)],G.prototype,"checked",void 0),a([P({type:Boolean}),s("design:type",Object)],G.prototype,"error",void 0),a([P({type:Boolean}),s("design:type",Object)],G.prototype,"disabled",void 0),G=a([d("randstad-checkbox")],G);const X=o`
|
|
809
809
|
.label-container {
|
|
810
810
|
display: flex;
|
|
811
811
|
align-items: center;
|
|
@@ -858,7 +858,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
858
858
|
visibility: visible;
|
|
859
859
|
opacity: 1;
|
|
860
860
|
}
|
|
861
|
-
`,
|
|
861
|
+
`,K=o`
|
|
862
862
|
:host {
|
|
863
863
|
display: block;
|
|
864
864
|
font-family: "Graphik", sans-serif;
|
|
@@ -867,7 +867,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
.form-label {
|
|
870
|
-
${
|
|
870
|
+
${B}
|
|
871
871
|
display: flex;
|
|
872
872
|
align-items: baseline;
|
|
873
873
|
flex-direction: row;
|
|
@@ -882,12 +882,12 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
input::placeholder {
|
|
885
|
-
${
|
|
885
|
+
${R}
|
|
886
886
|
color: var( --secondary-color-40 );
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
.helper-description {
|
|
890
|
-
${
|
|
890
|
+
${B}
|
|
891
891
|
color: var( --secondary-color-40 );
|
|
892
892
|
margin: 0;
|
|
893
893
|
}
|
|
@@ -898,13 +898,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
898
898
|
|
|
899
899
|
.optional {
|
|
900
900
|
color: var( --secondary-color-60 );
|
|
901
|
-
${
|
|
901
|
+
${I}
|
|
902
902
|
}
|
|
903
903
|
|
|
904
904
|
randstad-icon {
|
|
905
905
|
color: var( --primary-color );
|
|
906
906
|
}
|
|
907
|
-
`,
|
|
907
|
+
`,Q=o`
|
|
908
908
|
:host([error]) .input-wrapper, .form.error .form-input {
|
|
909
909
|
border: 1px solid var( --ui-negative, red ) !important;
|
|
910
910
|
}
|
|
@@ -919,11 +919,11 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
919
919
|
}
|
|
920
920
|
|
|
921
921
|
.error-message {
|
|
922
|
-
${
|
|
922
|
+
${B}
|
|
923
923
|
color: var(--ui-negative, #E00F0F);
|
|
924
924
|
margin-top: 4px;
|
|
925
925
|
}
|
|
926
|
-
`,
|
|
926
|
+
`,J=new CSSStyleSheet;J.replaceSync(o`
|
|
927
927
|
::-webkit-scrollbar {
|
|
928
928
|
width: 8px;
|
|
929
929
|
height: 8px;
|
|
@@ -941,10 +941,10 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
941
941
|
::-webkit-scrollbar-button {
|
|
942
942
|
display: none;
|
|
943
943
|
}
|
|
944
|
-
`.cssText);let
|
|
945
|
-
${X}
|
|
944
|
+
`.cssText);let Z=class extends L{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`
|
|
946
945
|
${K}
|
|
947
|
-
${
|
|
946
|
+
${Q}
|
|
947
|
+
${X}
|
|
948
948
|
|
|
949
949
|
.form {
|
|
950
950
|
display: flex;
|
|
@@ -954,7 +954,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
.form-input {
|
|
957
|
-
${
|
|
957
|
+
${R}
|
|
958
958
|
padding: 16px;
|
|
959
959
|
border: 1px solid var(--secondary-color-10);
|
|
960
960
|
border-radius: 4px;
|
|
@@ -1029,7 +1029,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
1031
|
textarea {
|
|
1032
|
-
${
|
|
1032
|
+
${R}
|
|
1033
1033
|
resize: none;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
@@ -1045,7 +1045,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
1047
|
.link-text {
|
|
1048
|
-
${
|
|
1048
|
+
${B}
|
|
1049
1049
|
color: var(--primary-color);
|
|
1050
1050
|
cursor: pointer;
|
|
1051
1051
|
text-align: end;
|
|
@@ -1081,26 +1081,26 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1081
1081
|
height: 24px;
|
|
1082
1082
|
color: var( --primary-color );
|
|
1083
1083
|
}
|
|
1084
|
-
`]}togglePassword(
|
|
1084
|
+
`]}togglePassword(e){this.isPasswordVisible=!this.isPasswordVisible;const t=e.currentTarget.parentElement?.querySelector("input");t&&(t.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(e){this.handleInputCustom(e);const t=e.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=t.slice(0,this.maxLength):this.value=t,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(e){e.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleInputCustom(e){"number"===this.keydown?this.onlyNumeric(e):"text"===this.keydown&&this.onlyText(e)}onlyNumeric(e){const t=e.target,i=t.value.replace(/[^0-9]/g,"");t.value=i}onlyText(e){const t=e.target,i=t.value.replace(/[^a-zA-Z\sáéíóúñÁÉÍÓÚÑ]/g,"");t.value=i}handleKeyDown(e){if("Enter"!==e.key)return;const t=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),i=this.closest("form");i&&i.dispatchEvent(t)}render(){const e=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type,o="textarea"===this.type?`height: ${this.heightTextArea??"30px"}; max-height: ${this.maxHeightTextArea??"30px"}; overflow-y: auto;`:"",r=t`
|
|
1085
1085
|
${this.labelColor?`--label-color: ${this.labelColor};`:""}
|
|
1086
|
-
`,
|
|
1086
|
+
`,n=t`
|
|
1087
1087
|
<randstad-icon
|
|
1088
1088
|
name="${this.isPasswordVisible?"eye_crossed":"eye"}"
|
|
1089
1089
|
size="24px"
|
|
1090
1090
|
>
|
|
1091
1091
|
</randstad-icon>
|
|
1092
|
-
`;return
|
|
1092
|
+
`;return t`
|
|
1093
1093
|
<div
|
|
1094
1094
|
class="form ${this.error?"error":""} ${this.disabled?"disabled":""}"
|
|
1095
|
-
style="${
|
|
1095
|
+
style="${r}"
|
|
1096
1096
|
>
|
|
1097
1097
|
${this.renderLabelContainer()}
|
|
1098
1098
|
|
|
1099
1099
|
<div class="form-container">
|
|
1100
|
-
${"left"===this.icon?
|
|
1100
|
+
${"left"===this.icon?t`<span class="icon left"></span>`:i}
|
|
1101
1101
|
|
|
1102
1102
|
<div class="input-with-button">
|
|
1103
|
-
${"textarea"===this.type?
|
|
1103
|
+
${"textarea"===this.type?t`
|
|
1104
1104
|
<textarea
|
|
1105
1105
|
class="form-input"
|
|
1106
1106
|
placeholder=${this.placeholder||""}
|
|
@@ -1109,10 +1109,10 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1109
1109
|
@input=${this.handleInput}
|
|
1110
1110
|
@keydown=${this.handleKeyDown}
|
|
1111
1111
|
maxlength=${this.maxLength??i}
|
|
1112
|
-
style="${
|
|
1112
|
+
style="${o}"
|
|
1113
1113
|
>
|
|
1114
1114
|
</textarea>
|
|
1115
|
-
`:
|
|
1115
|
+
`:t`
|
|
1116
1116
|
<input
|
|
1117
1117
|
class="form-input"
|
|
1118
1118
|
type=${"password"!==this.type||this.isPasswordVisible?"text":"password"}
|
|
@@ -1124,17 +1124,17 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1124
1124
|
maxlength=${this.maxLength??i}
|
|
1125
1125
|
/>
|
|
1126
1126
|
|
|
1127
|
-
${"password"===this.type?
|
|
1127
|
+
${"password"===this.type?t`
|
|
1128
1128
|
<button
|
|
1129
1129
|
type="button"
|
|
1130
1130
|
class="toggle-password"
|
|
1131
1131
|
@click=${this.togglePassword}
|
|
1132
1132
|
?disabled=${this.disabled}
|
|
1133
1133
|
>
|
|
1134
|
-
${
|
|
1134
|
+
${n}
|
|
1135
1135
|
</button>`:i}
|
|
1136
1136
|
|
|
1137
|
-
${t
|
|
1137
|
+
${e?t`
|
|
1138
1138
|
<button
|
|
1139
1139
|
type="button"
|
|
1140
1140
|
class="clean-button"
|
|
@@ -1150,13 +1150,13 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1150
1150
|
`}
|
|
1151
1151
|
</div>
|
|
1152
1152
|
|
|
1153
|
-
${"right"===this.icon?
|
|
1153
|
+
${"right"===this.icon?t`<span class="icon right"></span>`:i}
|
|
1154
1154
|
|
|
1155
1155
|
${this.renderError()}
|
|
1156
1156
|
</div>
|
|
1157
1157
|
|
|
1158
1158
|
|
|
1159
|
-
${this.linkText&&this.linkRoute?
|
|
1159
|
+
${this.linkText&&this.linkRoute?t`
|
|
1160
1160
|
<div style="text-align: end;">
|
|
1161
1161
|
<a class="link-text" @click=${this.handleLinkClick}>
|
|
1162
1162
|
${this.linkText}
|
|
@@ -1165,10 +1165,10 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1165
1165
|
|
|
1166
1166
|
${this.renderHelper()}
|
|
1167
1167
|
</div>
|
|
1168
|
-
`}};
|
|
1169
|
-
${X}
|
|
1168
|
+
`}};a([P({type:String}),s("design:type",Object)],Z.prototype,"keydown",void 0),a([P({type:String}),s("design:type",String)],Z.prototype,"size",void 0),a([P({type:String}),s("design:type",Object)],Z.prototype,"icon",void 0),a([P({type:Boolean}),s("design:type",Boolean)],Z.prototype,"typing",void 0),a([P({type:String}),s("design:type",String)],Z.prototype,"type",void 0),a([P({type:String}),s("design:type",String)],Z.prototype,"linkText",void 0),a([P({type:String}),s("design:type",String)],Z.prototype,"linkRoute",void 0),a([P({type:Boolean,reflect:!0}),s("design:type",Object)],Z.prototype,"isPasswordVisible",void 0),a([P({type:Boolean}),s("design:type",Boolean)],Z.prototype,"cleanButton",void 0),a([P({type:Number}),s("design:type",Number)],Z.prototype,"maxLength",void 0),a([P({type:String}),s("design:type",String)],Z.prototype,"heightTextArea",void 0),a([P({type:String}),s("design:type",String)],Z.prototype,"maxHeightTextArea",void 0),Z=a([d("randstad-form")],Z);let ee=class extends L{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
|
|
1170
1169
|
${K}
|
|
1171
|
-
${
|
|
1170
|
+
${Q}
|
|
1171
|
+
${X}
|
|
1172
1172
|
|
|
1173
1173
|
:host {
|
|
1174
1174
|
display: flex;
|
|
@@ -1186,12 +1186,12 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1186
1186
|
.fields {
|
|
1187
1187
|
gap: 8px;
|
|
1188
1188
|
}
|
|
1189
|
-
`}render(){const
|
|
1189
|
+
`}render(){const e=this.rows?`display: grid; grid-template-columns: ${this.rows};`:"display: flex; flex-direction: column;";return t`
|
|
1190
1190
|
<div class="group-container">
|
|
1191
1191
|
${this.renderLabelContainer()}
|
|
1192
1192
|
|
|
1193
1193
|
<div class="input-container">
|
|
1194
|
-
<div class="fields" style="${
|
|
1194
|
+
<div class="fields" style="${e};">
|
|
1195
1195
|
<slot></slot>
|
|
1196
1196
|
</div>
|
|
1197
1197
|
|
|
@@ -1200,30 +1200,7 @@ function j(t,e){return(e,i,r)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1200
1200
|
|
|
1201
1201
|
${this.renderHelper()}
|
|
1202
1202
|
</div>
|
|
1203
|
-
`}};
|
|
1204
|
-
/**
|
|
1205
|
-
* @license
|
|
1206
|
-
* Copyright 2017 Google LLC
|
|
1207
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1208
|
-
*/
|
|
1209
|
-
const tt=2;let et=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
1210
|
-
/**
|
|
1211
|
-
* @license
|
|
1212
|
-
* Copyright 2017 Google LLC
|
|
1213
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1214
|
-
*/const it=globalThis,rt=it.trustedTypes,ot=rt?rt.createPolicy("lit-html",{createHTML:t=>t}):void 0,st="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,at="?"+nt,lt=`<${at}>`,dt=document,ct=()=>dt.createComment(""),ht=t=>null===t||"object"!=typeof t&&"function"!=typeof t,pt=Array.isArray,ut="[ \t\n\f\r]",bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gt=/-->/g,mt=/>/g,yt=RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),vt=/'/g,ft=/"/g,xt=/^(?:script|style|textarea|title)$/i,wt=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),$t=new WeakMap,St=dt.createTreeWalker(dt,129);function Ct(t,e){if(!pt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ot?ot.createHTML(e):e}const Et=(t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":3===e?"<math>":"",n=bt;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===bt?"!--"===l[1]?n=gt:void 0!==l[1]?n=mt:void 0!==l[2]?(xt.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=yt):void 0!==l[3]&&(n=yt):n===yt?">"===l[0]?(n=o??bt,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?yt:'"'===l[3]?ft:vt):n===ft||n===vt?n=yt:n===gt||n===mt?n=bt:(n=yt,o=void 0);const h=n===yt&&t[e+1].startsWith("/>")?" ":"";s+=n===bt?i+lt:d>=0?(r.push(a),i.slice(0,d)+st+i.slice(d)+nt+h):i+nt+(-2===d?e:h)}return[Ct(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Dt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,d]=Et(t,e);if(this.el=Dt.createElement(l,i),St.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=St.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(st)){const e=d[s++],i=r.getAttribute(t).split(nt),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?_t:"?"===n[1]?Tt:"@"===n[1]?jt:Ft}),r.removeAttribute(t)}else t.startsWith(nt)&&(a.push({type:6,index:o}),r.removeAttribute(t));if(xt.test(r.tagName)){const t=r.textContent.split(nt),e=t.length-1;if(e>0){r.textContent=rt?rt.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],ct()),St.nextNode(),a.push({type:2,index:++o});r.append(t[e],ct())}}}else if(8===r.nodeType)if(r.data===at)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(nt,t+1));)a.push({type:7,index:o}),t+=nt.length-1}o++}}static createElement(t,e){const i=dt.createElement("template");return i.innerHTML=t,i}}function Mt(t,e,i=t,r){if(e===wt)return e;let o=void 0!==r?i._$Co?.[r]:i._$Cl;const s=ht(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),void 0===s?o=void 0:(o=new s(t),o._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=o:i._$Cl=o),void 0!==o&&(e=Mt(t,o._$AS(t,e.values),o,r)),e}class At{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??dt).importNode(e,!0);St.currentNode=r;let o=St.nextNode(),s=0,n=0,a=i[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new Ot(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new Pt(o,this,t)),this._$AV.push(e),a=i[++n]}s!==a?.index&&(o=St.nextNode(),s++)}return St.currentNode=dt,r}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ot{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Mt(this,t,e),ht(t)?t===kt||null==t||""===t?(this._$AH!==kt&&this._$AR(),this._$AH=kt):t!==this._$AH&&t!==wt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>pt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==kt&&ht(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Dt.createElement(Ct(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new At(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=$t.get(t.strings);return void 0===e&&$t.set(t.strings,e=new Dt(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Ot(this.O(ct()),this.O(ct()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=kt}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=Mt(this,t,e,0),s=!ht(t)||t!==this._$AH&&t!==wt,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Mt(this,r[i+n],e,n),a===wt&&(a=this._$AH[n]),s||=!ht(a)||a!==this._$AH[n],a===kt?t=kt:t!==kt&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class _t extends Ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===kt?void 0:t}}class Tt extends Ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==kt)}}class jt extends Ft{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=Mt(this,t,e,0)??kt)===wt)return;const i=this._$AH,r=t===kt&&i!==kt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==kt&&(i===kt||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Mt(this,t)}}const Lt=it.litHtmlPolyfillSupport;Lt?.(Dt,Ot),(it.litHtmlVersions??=[]).push("3.3.1");
|
|
1215
|
-
/**
|
|
1216
|
-
* @license
|
|
1217
|
-
* Copyright 2017 Google LLC
|
|
1218
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1219
|
-
*/
|
|
1220
|
-
class zt extends et{constructor(t){if(super(t),this.it=kt,t.type!==tt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===kt||null==t)return this._t=void 0,this.it=t;if(t===wt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}zt.directiveName="unsafeHTML",zt.resultType=1;
|
|
1221
|
-
/**
|
|
1222
|
-
* @license
|
|
1223
|
-
* Copyright 2017 Google LLC
|
|
1224
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1225
|
-
*/
|
|
1226
|
-
class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(...e)=>({_$litDirective$:t,values:e}))(It);class Bt extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgContent=null}static{this.styles=r`
|
|
1203
|
+
`}};a([P({type:String}),s("design:type",String)],ee.prototype,"rows",void 0),ee=a([d("randstad-form-group")],ee);class te extends e{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.svgTemplate=null}static{this.styles=o`
|
|
1227
1204
|
:host {
|
|
1228
1205
|
display: inline-flex;
|
|
1229
1206
|
width: var( --icon-size, 24px );
|
|
@@ -1245,18 +1222,18 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1245
1222
|
width: 100%;
|
|
1246
1223
|
height: 100%;
|
|
1247
1224
|
}
|
|
1248
|
-
`}updated(
|
|
1225
|
+
`}updated(e){super.updated(e),e.has("size")&&this.style.setProperty("--icon-size",this.size),e.has("color")&&this.style.setProperty("--icon-color",this.color),e.has("name")&&this.name&&this.loadIcon()}async loadIcon(){try{const e=await fetch(`/assets/icons/${this.name}.svg`);if(!e.ok)throw new Error("Icon not found");let i=await e.text();i=i.replace(/fill="[^"]*"/g,""),i=i.replace(/fill='[^']*'/g,"");const o=new DOMParser,r=o.parseFromString(i,"image/svg+xml").documentElement;this.svgTemplate=t` ${r} `}catch(e){console.error(`❌ Error cargando icono ${this.name}:`,e),this.innerHTML=" <span>⚠️</span> "}}render(){return this.svgTemplate?t`
|
|
1249
1226
|
<div class="custom-icon" style="color: ${this.color};">
|
|
1250
|
-
${
|
|
1227
|
+
${this.svgTemplate}
|
|
1251
1228
|
</div>
|
|
1252
|
-
`:
|
|
1229
|
+
`:t``}}a([P({type:String}),s("design:type",Object)],te.prototype,"name",void 0),a([P({type:String}),s("design:type",Object)],te.prototype,"size",void 0),a([P({type:String}),s("design:type",Object)],te.prototype,"color",void 0),a([z(),s("design:type",Object)],te.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",te);let ie=class extends e{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
|
|
1253
1230
|
:host {
|
|
1254
1231
|
display: block;
|
|
1255
1232
|
font-family: 'Graphik', sans-serif;
|
|
1256
1233
|
}
|
|
1257
1234
|
|
|
1258
1235
|
.container {
|
|
1259
|
-
${
|
|
1236
|
+
${B}
|
|
1260
1237
|
display: flex;
|
|
1261
1238
|
align-items: flex-start;
|
|
1262
1239
|
gap: 8px;
|
|
@@ -1297,7 +1274,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1297
1274
|
background: var(--ui-informative-10);
|
|
1298
1275
|
--icon-color: var(--ui-informative);
|
|
1299
1276
|
}
|
|
1300
|
-
`}render(){return
|
|
1277
|
+
`}render(){return t`
|
|
1301
1278
|
<div class="container ${this.open?"":"hidden"} ${this.type}">
|
|
1302
1279
|
<randstad-icon
|
|
1303
1280
|
name="${this.icon}"
|
|
@@ -1306,7 +1283,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1306
1283
|
|
|
1307
1284
|
<span class="message">${this.message}</span>
|
|
1308
1285
|
</div>
|
|
1309
|
-
`}};
|
|
1286
|
+
`}};a([P({type:String}),s("design:type",String)],ie.prototype,"type",void 0),a([P({type:String}),s("design:type",String)],ie.prototype,"icon",void 0),a([P({type:String}),s("design:type",String)],ie.prototype,"message",void 0),a([P({type:Boolean}),s("design:type",Boolean)],ie.prototype,"open",void 0),ie=a([d("randstad-notice")],ie);let oe=class extends e{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.scrollable=!1,this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
|
|
1310
1287
|
:host {
|
|
1311
1288
|
font-family: 'Graphik', sans-serif;
|
|
1312
1289
|
display: none;
|
|
@@ -1405,13 +1382,13 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1405
1382
|
}
|
|
1406
1383
|
|
|
1407
1384
|
.modal-title {
|
|
1408
|
-
${
|
|
1385
|
+
${U}
|
|
1409
1386
|
margin: 0;
|
|
1410
1387
|
color: var(--secondary-color);
|
|
1411
1388
|
}
|
|
1412
1389
|
|
|
1413
1390
|
.modal-subtitle {
|
|
1414
|
-
${
|
|
1391
|
+
${B}
|
|
1415
1392
|
margin: 0;
|
|
1416
1393
|
color: var(--secondary-color-60);
|
|
1417
1394
|
}
|
|
@@ -1443,7 +1420,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1443
1420
|
gap: 16px;
|
|
1444
1421
|
border-top: 1px solid var(--secondary-color-20);
|
|
1445
1422
|
}
|
|
1446
|
-
`]}closeModal(){this.dispatchEvent(new CustomEvent("modal-close"))}connectedCallback(){super.connectedCallback(),this.setScrollableMode(),window.addEventListener("resize",this.setScrollableMode)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.setScrollableMode)}getFooterClass(){return!this.isFooterCustom||this.showPrimaryButton||this.showSecondaryButton?this.showPrimaryButton&&this.showSecondaryButton?"two-buttons":"one-button":"footer-custom"}render(){return
|
|
1423
|
+
`]}closeModal(){this.dispatchEvent(new CustomEvent("modal-close"))}connectedCallback(){super.connectedCallback(),this.setScrollableMode(),window.addEventListener("resize",this.setScrollableMode)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.setScrollableMode)}getFooterClass(){return!this.isFooterCustom||this.showPrimaryButton||this.showSecondaryButton?this.showPrimaryButton&&this.showSecondaryButton?"two-buttons":"one-button":"footer-custom"}render(){return t`
|
|
1447
1424
|
<div class="overlay" role="dialog" aria-modal="true">
|
|
1448
1425
|
<div class="modal" style="--modal-width: ${this.modalWidth};">
|
|
1449
1426
|
<div class="modal-header">
|
|
@@ -1451,7 +1428,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1451
1428
|
<div class="titles-container">
|
|
1452
1429
|
<div class="modal-title">${this.title}</div>
|
|
1453
1430
|
|
|
1454
|
-
${this.subtitle?
|
|
1431
|
+
${this.subtitle?t`<div class="modal-subtitle">${this.subtitle}</div>`:i}
|
|
1455
1432
|
</div>
|
|
1456
1433
|
|
|
1457
1434
|
<button class="modal-close" @click=${this.closeModal} aria-label="Cerrar modal">
|
|
@@ -1464,7 +1441,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1464
1441
|
</button>
|
|
1465
1442
|
</div>
|
|
1466
1443
|
|
|
1467
|
-
${this.showNotice?
|
|
1444
|
+
${this.showNotice?t`
|
|
1468
1445
|
<randstad-notice
|
|
1469
1446
|
.open=${!0}
|
|
1470
1447
|
.type=${this.noticeType}
|
|
@@ -1480,9 +1457,9 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1480
1457
|
</div>
|
|
1481
1458
|
|
|
1482
1459
|
<div class="modal-footer ${this.getFooterClass()}">
|
|
1483
|
-
${!this.isFooterCustom||this.showPrimaryButton||this.showSecondaryButton?i:
|
|
1460
|
+
${!this.isFooterCustom||this.showPrimaryButton||this.showSecondaryButton?i:t` <slot name="footer-custom"></slot> `}
|
|
1484
1461
|
|
|
1485
|
-
${this.showSecondaryButton?
|
|
1462
|
+
${this.showSecondaryButton?t`
|
|
1486
1463
|
<randstad-button
|
|
1487
1464
|
variant="button-secondary"
|
|
1488
1465
|
size="md"
|
|
@@ -1491,7 +1468,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1491
1468
|
>
|
|
1492
1469
|
</randstad-button>
|
|
1493
1470
|
`:i}
|
|
1494
|
-
${this.showPrimaryButton?
|
|
1471
|
+
${this.showPrimaryButton?t`
|
|
1495
1472
|
<randstad-button
|
|
1496
1473
|
variant="button-primary"
|
|
1497
1474
|
size="md"
|
|
@@ -1505,7 +1482,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1505
1482
|
</div>
|
|
1506
1483
|
</div>
|
|
1507
1484
|
</div>
|
|
1508
|
-
`}};
|
|
1485
|
+
`}};a([P({type:Boolean,reflect:!0}),s("design:type",Object)],oe.prototype,"open",void 0),a([P({type:String}),s("design:type",Object)],oe.prototype,"title",void 0),a([P({type:String}),s("design:type",String)],oe.prototype,"subtitle",void 0),a([P({type:Boolean}),s("design:type",Object)],oe.prototype,"showNotice",void 0),a([P({type:String}),s("design:type",String)],oe.prototype,"noticeType",void 0),a([P({type:String}),s("design:type",Object)],oe.prototype,"noticeMessage",void 0),a([P({type:String}),s("design:type",Object)],oe.prototype,"noticeIcon",void 0),a([P({type:Boolean}),s("design:type",Object)],oe.prototype,"showPrimaryButton",void 0),a([P({type:String}),s("design:type",Object)],oe.prototype,"primaryButtonLabel",void 0),a([P({type:Boolean}),s("design:type",Object)],oe.prototype,"showSecondaryButton",void 0),a([P({type:String}),s("design:type",Object)],oe.prototype,"secondaryButtonLabel",void 0),a([P({type:Boolean}),s("design:type",Object)],oe.prototype,"isFooterCustom",void 0),a([P({type:Boolean}),s("design:type",Object)],oe.prototype,"isPrimaryLoader",void 0),a([P({type:Boolean}),s("design:type",Object)],oe.prototype,"isPrimaryDisabled",void 0),a([P({type:String}),s("design:type",Object)],oe.prototype,"modalWidth",void 0),a([z(),s("design:type",Object)],oe.prototype,"scrollable",void 0),oe=a([d("custom-modal")],oe);let re=class extends e{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.stackedActions=[],this._onBackgroundClick=e=>{const t=e.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!t.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
|
|
1509
1486
|
:host {
|
|
1510
1487
|
display: none;
|
|
1511
1488
|
position: fixed;
|
|
@@ -1567,13 +1544,13 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1567
1544
|
}
|
|
1568
1545
|
|
|
1569
1546
|
.popup-title {
|
|
1570
|
-
${
|
|
1547
|
+
${V}
|
|
1571
1548
|
margin: 0;
|
|
1572
1549
|
color: var(--secondary-color-80);
|
|
1573
1550
|
}
|
|
1574
1551
|
|
|
1575
1552
|
.popup-description {
|
|
1576
|
-
${
|
|
1553
|
+
${B}
|
|
1577
1554
|
margin: 0;
|
|
1578
1555
|
color: var(--secondary-color-60);
|
|
1579
1556
|
}
|
|
@@ -1601,7 +1578,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1601
1578
|
}
|
|
1602
1579
|
|
|
1603
1580
|
.action-item {
|
|
1604
|
-
${
|
|
1581
|
+
${N};
|
|
1605
1582
|
display: flex;
|
|
1606
1583
|
align-items: center;
|
|
1607
1584
|
gap: 16px;
|
|
@@ -1626,19 +1603,19 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1626
1603
|
justify-content: center;
|
|
1627
1604
|
}
|
|
1628
1605
|
|
|
1629
|
-
`}firstUpdated(){if(this.open){const
|
|
1606
|
+
`}firstUpdated(){if(this.open){const e=this.renderRoot.querySelector("randstad-button");e&&e.focus()}this.addEventListener("click",this._onBackgroundClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._onBackgroundClick)}closePopup(e){this.dispatchEvent(new CustomEvent("popup-close",{detail:e})),this.open=!1}render(){return t`
|
|
1630
1607
|
<div
|
|
1631
1608
|
class="popup"
|
|
1632
1609
|
role="dialog"
|
|
1633
1610
|
aria-modal="true"
|
|
1634
|
-
${"default"!==this.type?
|
|
1611
|
+
${"default"!==this.type?t`aria-labelledby="popup-title"`:i}
|
|
1635
1612
|
aria-describedby="popup-description"
|
|
1636
1613
|
>
|
|
1637
|
-
${"stacked"!==this.type&&this.icon?
|
|
1614
|
+
${"stacked"!==this.type&&this.icon?t`<img src="/assets/icons/${this.icon}" alt="" width="56" height="56" />`:i}
|
|
1638
1615
|
|
|
1639
1616
|
<div class="popup-content">
|
|
1640
|
-
${"default"===this.type?
|
|
1641
|
-
${this.title?
|
|
1617
|
+
${"default"===this.type?t`
|
|
1618
|
+
${this.title?t`<h2 id="popup-title" class="popup-title">${this.title}</h2>`:i}
|
|
1642
1619
|
|
|
1643
1620
|
<div class="titles-container">
|
|
1644
1621
|
<p id="popup-description" class="popup-description">${this.description}</p>
|
|
@@ -1652,26 +1629,26 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1652
1629
|
label=${this.buttonText}
|
|
1653
1630
|
></randstad-button>
|
|
1654
1631
|
</div>
|
|
1655
|
-
`:"stacked"===this.type?
|
|
1632
|
+
`:"stacked"===this.type?t`
|
|
1656
1633
|
<div class="popup-actions">
|
|
1657
|
-
${this.stackedActions.map((t
|
|
1634
|
+
${this.stackedActions.map((e=>t`
|
|
1658
1635
|
<div
|
|
1659
1636
|
class="action-item"
|
|
1660
|
-
@click=${()=>this.closePopup(
|
|
1637
|
+
@click=${()=>this.closePopup(e.value)}
|
|
1661
1638
|
>
|
|
1662
1639
|
<div class="icon-circle">
|
|
1663
1640
|
<randstad-icon
|
|
1664
|
-
name=${
|
|
1641
|
+
name=${e.icon}
|
|
1665
1642
|
size="24px"
|
|
1666
1643
|
.color=${"var( --primary-color )"}
|
|
1667
1644
|
>
|
|
1668
1645
|
</randstad-icon>
|
|
1669
1646
|
</div>
|
|
1670
|
-
<span>${
|
|
1647
|
+
<span>${e.label}</span>
|
|
1671
1648
|
</div>
|
|
1672
1649
|
`))}
|
|
1673
1650
|
</div>
|
|
1674
|
-
`:
|
|
1651
|
+
`:t`
|
|
1675
1652
|
<div class="titles-container">
|
|
1676
1653
|
<h2 id="popup-title" class="popup-title">${this.title}</h2>
|
|
1677
1654
|
<p id="popup-description" class="popup-description">${this.description}</p>
|
|
@@ -1697,7 +1674,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1697
1674
|
`}
|
|
1698
1675
|
</div>
|
|
1699
1676
|
</div>
|
|
1700
|
-
`}};
|
|
1677
|
+
`}};a([P({type:Boolean,reflect:!0}),s("design:type",Object)],re.prototype,"open",void 0),a([P({type:String}),s("design:type",String)],re.prototype,"type",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"icon",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"title",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"description",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"width",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"buttonText",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"confirmText",void 0),a([P({type:String}),s("design:type",Object)],re.prototype,"cancelText",void 0),a([P({type:Array}),s("design:type",Array)],re.prototype,"stackedActions",void 0),re=a([d("custom-popup")],re);let ne=class extends e{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
|
|
1701
1678
|
:host {
|
|
1702
1679
|
display: inline-block;
|
|
1703
1680
|
width: 64px;
|
|
@@ -1710,7 +1687,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1710
1687
|
}
|
|
1711
1688
|
|
|
1712
1689
|
.circle-text {
|
|
1713
|
-
${
|
|
1690
|
+
${I};
|
|
1714
1691
|
text-align: center;
|
|
1715
1692
|
vertical-align: middle;
|
|
1716
1693
|
fill: var(--randstad-dark-blue-40);
|
|
@@ -1726,7 +1703,7 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1726
1703
|
stroke: var(--primary-light-blue);
|
|
1727
1704
|
stroke-linecap: round;
|
|
1728
1705
|
}
|
|
1729
|
-
`}render(){const
|
|
1706
|
+
`}render(){const e=2*Math.PI*28,i=Math.max(this.max,1),o=e*(1-Math.min(this.value/i,1));return t`
|
|
1730
1707
|
<svg
|
|
1731
1708
|
viewBox="0 0 64 64"
|
|
1732
1709
|
role="img"
|
|
@@ -1749,8 +1726,8 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1749
1726
|
r="${28}"
|
|
1750
1727
|
stroke-width="${6}"
|
|
1751
1728
|
fill="none"
|
|
1752
|
-
stroke-dasharray="${
|
|
1753
|
-
stroke-dashoffset="${
|
|
1729
|
+
stroke-dasharray="${e}"
|
|
1730
|
+
stroke-dashoffset="${o}"
|
|
1754
1731
|
transform="rotate(-90 32 32)"
|
|
1755
1732
|
/>
|
|
1756
1733
|
<!-- Texto -->
|
|
@@ -1758,18 +1735,18 @@ class It extends zt{}It.directiveName="unsafeSVG",It.resultType=2;const Nt=(t=>(
|
|
|
1758
1735
|
${this.value} de ${this.max}
|
|
1759
1736
|
</text>
|
|
1760
1737
|
</svg>
|
|
1761
|
-
`}};
|
|
1738
|
+
`}};a([P({type:Number}),s("design:type",Object)],ne.prototype,"value",void 0),a([P({type:Number}),s("design:type",Object)],ne.prototype,"max",void 0),ne=a([d("progress-circle")],ne);
|
|
1762
1739
|
/**
|
|
1763
1740
|
* @license
|
|
1764
1741
|
* Copyright 2023 Google LLC
|
|
1765
1742
|
* SPDX-License-Identifier: Apache-2.0
|
|
1766
1743
|
*/
|
|
1767
|
-
const
|
|
1744
|
+
const ae=Symbol("attachableController");let se;r||(se=new MutationObserver((e=>{for(const t of e)t.target[ae]?.hostConnected()})));class de{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){null===e?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,t){this.host=e,this.onControlChange=t,this.currentControl=null,e.addController(this),e[ae]=this,se?.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}
|
|
1768
1745
|
/**
|
|
1769
1746
|
* @license
|
|
1770
1747
|
* Copyright 2021 Google LLC
|
|
1771
1748
|
* SPDX-License-Identifier: Apache-2.0
|
|
1772
|
-
*/const
|
|
1749
|
+
*/const le=["focusin","focusout","pointerdown"];class ce extends e{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new de(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){if(!e[pe]){switch(e.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}e[pe]=!0}}onControlChange(e,t){if(!r)for(const i of le)e?.removeEventListener(i,this),t?.addEventListener(i,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}a([P({type:Boolean,reflect:!0})],ce.prototype,"visible",void 0),a([P({type:Boolean,reflect:!0})],ce.prototype,"inward",void 0);const pe=Symbol("handledByFocusRing"),he=o`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
1773
1750
|
`
|
|
1774
1751
|
/**
|
|
1775
1752
|
* @license
|
|
@@ -1780,81 +1757,81 @@ const qt=Symbol("attachableController");let Wt;o||(Wt=new MutationObserver((t=>{
|
|
|
1780
1757
|
* @license
|
|
1781
1758
|
* Copyright 2024 Google LLC
|
|
1782
1759
|
* SPDX-License-Identifier: Apache-2.0
|
|
1783
|
-
*/let
|
|
1760
|
+
*/let ue=class extends ce{};ue.styles=[he],ue=a([d("md-focus-ring")],ue);
|
|
1784
1761
|
/**
|
|
1785
1762
|
* @license
|
|
1786
1763
|
* Copyright 2021 Google LLC
|
|
1787
1764
|
* SPDX-License-Identifier: Apache-2.0
|
|
1788
1765
|
*/
|
|
1789
|
-
const
|
|
1766
|
+
const be="cubic-bezier(0.2, 0, 0, 1)";
|
|
1790
1767
|
/**
|
|
1791
1768
|
* @license
|
|
1792
1769
|
* Copyright 2022 Google LLC
|
|
1793
1770
|
* SPDX-License-Identifier: Apache-2.0
|
|
1794
|
-
*/var
|
|
1771
|
+
*/var ge;!function(e){e[e.INACTIVE=0]="INACTIVE",e[e.TOUCH_DELAY=1]="TOUCH_DELAY",e[e.HOLDING=2]="HOLDING",e[e.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(ge||(ge={}));const me=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],ye=r?null:window.matchMedia("(forced-colors: active)");class ve extends e{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=ge.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new de(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return t`<div class="surface ${n(e)}"></div>`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==ge.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state!==ge.HOLDING)return this.state===ge.TOUCH_DELAY?(this.state=ge.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=ge.WAITING_FOR_CLICK}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e))return this.state=ge.WAITING_FOR_CLICK,void this.startPressAnimation(e);this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=ge.TOUCH_DELAY,await new Promise((e=>{setTimeout(e,150)})),this.state===ge.TOUCH_DELAY&&(this.state=ge.HOLDING,this.startPressAnimation(e)))}}handleClick(){this.disabled||(this.state!==ge.WAITING_FOR_CLICK?this.state===ge.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),i=Math.max(e,t),o=Math.max(.35*i,75),r=Math.floor(.2*i),n=Math.sqrt(t**2+e**2)+10;this.initialSize=r,this.rippleScale=""+(n+o)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:i}=window,{left:o,top:r}=this.getBoundingClientRect(),n=t+o,a=i+r,{pageX:s,pageY:d}=e;return{x:s-n,y:d-a}}getTranslationCoordinates(e){const{height:t,width:i}=this.getBoundingClientRect(),o={x:(i-this.initialSize)/2,y:(t-this.initialSize)/2};let r;return r=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:i/2,y:t/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:o}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:i}=this.getTranslationCoordinates(e),o=`${t.x}px, ${t.y}px`,r=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${o}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:be,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=ge.INACTIVE;const e=this.growAnimation;let t=1/0;"number"==typeof e?.currentTime?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to("ms").value),t>=225?this.pressed=!1:(await new Promise((e=>{setTimeout(e,225-t)})),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);const t=1===e.buttons;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:i,left:o,bottom:r,right:n}=this.getBoundingClientRect();return e>=o&&e<=n&&t>=i&&t<=r}isTouch({pointerType:e}){return"touch"===e}async handleEvent(e){if(!ye?.matches)switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e)}}onControlChange(e,t){if(!r)for(const i of me)e?.removeEventListener(i,this),t?.addEventListener(i,this)}}a([P({type:Boolean,reflect:!0})],ve.prototype,"disabled",void 0),a([z()],ve.prototype,"hovered",void 0),a([z()],ve.prototype,"pressed",void 0),a([A(".surface")],ve.prototype,"mdRoot",void 0);
|
|
1795
1772
|
/**
|
|
1796
1773
|
* @license
|
|
1797
1774
|
* Copyright 2024 Google LLC
|
|
1798
1775
|
* SPDX-License-Identifier: Apache-2.0
|
|
1799
1776
|
*/
|
|
1800
|
-
const
|
|
1777
|
+
const fe=o`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
1801
1778
|
`
|
|
1802
1779
|
/**
|
|
1803
1780
|
* @license
|
|
1804
1781
|
* Copyright 2022 Google LLC
|
|
1805
1782
|
* SPDX-License-Identifier: Apache-2.0
|
|
1806
|
-
*/;let
|
|
1783
|
+
*/;let xe=class extends ve{};
|
|
1807
1784
|
/**
|
|
1808
1785
|
* @license
|
|
1809
1786
|
* Copyright 2021 Google LLC
|
|
1810
1787
|
* SPDX-License-Identifier: Apache-2.0
|
|
1811
1788
|
*/
|
|
1812
|
-
function
|
|
1789
|
+
function we(e){return e.currentTarget===e.target&&(e.composedPath()[0]===e.target&&(!e.target.disabled&&!function(e){const t=ke;t&&(e.preventDefault(),e.stopImmediatePropagation());return async function(){ke=!0,await null,ke=!1}
|
|
1813
1790
|
/**
|
|
1814
1791
|
* @license
|
|
1815
1792
|
* Copyright 2023 Google LLC
|
|
1816
1793
|
* SPDX-License-Identifier: Apache-2.0
|
|
1817
|
-
*/(),
|
|
1794
|
+
*/(),t}(e)))}xe.styles=[fe],xe=a([d("md-ripple")],xe);let ke=!1;const $e=Symbol("internals"),Se=Symbol("privateInternals");
|
|
1818
1795
|
/**
|
|
1819
1796
|
* @license
|
|
1820
1797
|
* Copyright 2023 Google LLC
|
|
1821
1798
|
* SPDX-License-Identifier: Apache-2.0
|
|
1822
1799
|
*/
|
|
1823
|
-
const
|
|
1800
|
+
const Ce=Symbol("createValidator"),Ee=Symbol("getValidityAnchor"),De=Symbol("privateValidator"),Me=Symbol("privateSyncValidity"),Oe=Symbol("privateCustomValidationMessage");
|
|
1824
1801
|
/**
|
|
1825
1802
|
* @license
|
|
1826
1803
|
* Copyright 2023 Google LLC
|
|
1827
1804
|
* SPDX-License-Identifier: Apache-2.0
|
|
1828
1805
|
*/
|
|
1829
|
-
const
|
|
1806
|
+
const Fe=Symbol("isFocusable"),Te=Symbol("privateIsFocusable"),je=Symbol("externalTabIndex"),Pe=Symbol("isUpdatingTabIndex"),ze=Symbol("updateTabIndex");
|
|
1830
1807
|
/**
|
|
1831
1808
|
* @license
|
|
1832
1809
|
* Copyright 2023 Google LLC
|
|
1833
1810
|
* SPDX-License-Identifier: Apache-2.0
|
|
1834
1811
|
*/
|
|
1835
|
-
const
|
|
1812
|
+
const Ae=Symbol("getFormValue"),Le=Symbol("getFormState");
|
|
1836
1813
|
/**
|
|
1837
1814
|
* @license
|
|
1838
1815
|
* Copyright 2023 Google LLC
|
|
1839
1816
|
* SPDX-License-Identifier: Apache-2.0
|
|
1840
1817
|
*/
|
|
1841
|
-
class
|
|
1818
|
+
class Ie{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const e=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,e)))return this.currentValidity;const{validity:t,validationMessage:i}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:i,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}}
|
|
1842
1819
|
/**
|
|
1843
1820
|
* @license
|
|
1844
1821
|
* Copyright 2023 Google LLC
|
|
1845
1822
|
* SPDX-License-Identifier: Apache-2.0
|
|
1846
|
-
*/class
|
|
1823
|
+
*/class _e extends Ie{computeValidity(e){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let t=!1,i=!1;for(const{checked:o,required:r}of e)r&&(t=!0),o&&(i=!0);return this.radioElement.checked=i,this.radioElement.required=t,{validity:{valueMissing:t&&!i},validationMessage:this.radioElement.validationMessage}}equals(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const o=e[i],r=t[i];if(o.checked!==r.checked||o.required!==r.required)return!1}return!0}copy(e){return e.map((({checked:e,required:t})=>({checked:e,required:t})))}}
|
|
1847
1824
|
/**
|
|
1848
1825
|
* @license
|
|
1849
1826
|
* Copyright 2022 Google LLC
|
|
1850
1827
|
* SPDX-License-Identifier: Apache-2.0
|
|
1851
|
-
*/class
|
|
1828
|
+
*/class Be{get controls(){const e=this.host.getAttribute("name");return e&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll(`[name="${e}"]`)):[this.host]}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=e=>{const t="ArrowDown"===e.key,i="ArrowUp"===e.key,o="ArrowLeft"===e.key,r="ArrowRight"===e.key;if(!(o||r||t||i))return;const n=this.controls;if(!n.length)return;e.preventDefault();const a="rtl"===getComputedStyle(this.host).direction?o||t:r||t,s=n.indexOf(this.host);let d=a?s+1:s-1;for(;d!==s;){d>=n.length?d=0:d<0&&(d=n.length-1);const e=n[d];if(!e.hasAttribute("disabled")){for(const t of n)t!==e&&(t.checked=!1,t.tabIndex=-1,t.blur());e.checked=!0,e.tabIndex=0,e.focus(),e.dispatchEvent(new Event("change",{bubbles:!0}));break}a?d++:d--}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const e of this.controls)e!==this.host&&(e.checked=!1)}updateTabIndices(){const e=this.controls,t=e.find((e=>e.checked));if(t||this.focused){const i=t||this.host;i.tabIndex=0;for(const t of e)t!==i&&(t.tabIndex=-1)}else for(const t of e)t.tabIndex=0}}
|
|
1852
1829
|
/**
|
|
1853
1830
|
* @license
|
|
1854
1831
|
* Copyright 2018 Google LLC
|
|
1855
1832
|
* SPDX-License-Identifier: Apache-2.0
|
|
1856
|
-
*/var
|
|
1857
|
-
<div class="container ${
|
|
1833
|
+
*/var Re;const Ne=Symbol("checked");let Ve=0;const Ue=function(e){var t;class i extends e{constructor(){super(...arguments),this[t]=""}get validity(){return this[Me](),this[$e].validity}get validationMessage(){return this[Me](),this[$e].validationMessage}get willValidate(){return this[Me](),this[$e].willValidate}checkValidity(){return this[Me](),this[$e].checkValidity()}reportValidity(){return this[Me](),this[$e].reportValidity()}setCustomValidity(e){this[Oe]=e,this[Me]()}requestUpdate(e,t,i){super.requestUpdate(e,t,i),this[Me]()}firstUpdated(e){super.firstUpdated(e),this[Me]()}[(t=Oe,Me)](){if(r)return;this[De]||(this[De]=this[Ce]());const{validity:e,validationMessage:t}=this[De].getValidity(),i=!!this[Oe],o=this[Oe]||t;this[$e].setValidity({...e,customError:i},o,this[Ee]()??void 0)}[Ce](){throw new Error("Implement [createValidator]")}[Ee](){throw new Error("Implement [getValidityAnchor]")}}return i}(function(e){class t extends e{get form(){return this[$e].form}get labels(){return this[$e].labels}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get disabled(){return this.hasAttribute("disabled")}set disabled(e){this.toggleAttribute("disabled",e)}attributeChangedCallback(e,t,i){if("name"!==e&&"disabled"!==e)super.attributeChangedCallback(e,t,i);else{const i="disabled"===e?null!==t:t;this.requestUpdate(e,i)}}requestUpdate(e,t,i){super.requestUpdate(e,t,i),this[$e].setFormValue(this[Ae](),this[Le]())}[Ae](){throw new Error("Implement [getFormValue]")}[Le](){return this[Ae]()}formDisabledCallback(e){this.disabled=e}}return t.formAssociated=!0,a([P({noAccessor:!0})],t.prototype,"name",null),a([P({type:Boolean,noAccessor:!0})],t.prototype,"disabled",null),t}((qe=function(e){var t,i,o;class r extends e{constructor(){super(...arguments),this[t]=!0,this[i]=null,this[o]=!1}get[Fe](){return this[Te]}set[Fe](e){this[Fe]!==e&&(this[Te]=e,this[ze]())}connectedCallback(){super.connectedCallback(),this[ze]()}attributeChangedCallback(e,t,i){if("tabindex"===e){if(this.requestUpdate("tabIndex",Number(t??-1)),!this[Pe])return this.hasAttribute("tabindex")?void(this[je]=this.tabIndex):(this[je]=null,void this[ze]())}else super.attributeChangedCallback(e,t,i)}[(t=Te,i=je,o=Pe,ze)](){const e=this[Fe]?0:-1,t=this[je]??e;this[Pe]=!0,this.tabIndex=t,this[Pe]=!1}}return a([P({noAccessor:!0})],r.prototype,"tabIndex",void 0),r}(e),class extends qe{get[$e](){return this[Se]||(this[Se]=this.attachInternals()),this[Se]}})));var qe;class Ye extends Ue{get checked(){return this[Ne]}set checked(e){const t=this.checked;t!==e&&(this[Ne]=e,this.requestUpdate("checked",t),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout"+ ++Ve,this[Re]=!1,this.required=!1,this.value="on",this.selectionController=new Be(this),this.addController(this.selectionController),r||(this[$e].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this)))}render(){const e={checked:this.checked};return t`
|
|
1834
|
+
<div class="container ${n(e)}" aria-hidden="true">
|
|
1858
1835
|
<md-ripple
|
|
1859
1836
|
part="ripple"
|
|
1860
1837
|
.control=${this}
|
|
@@ -1876,19 +1853,19 @@ class ke{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{}
|
|
|
1876
1853
|
|
|
1877
1854
|
<div class="touch-target"></div>
|
|
1878
1855
|
</div>
|
|
1879
|
-
`}updated(){this[
|
|
1856
|
+
`}updated(){this[$e].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,e.defaultPrevented||(we(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0," "!==e.key||e.defaultPrevented||this.click()}[(Re=Ne,Ae)](){return this.checked?this.value:null}[Le](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked="true"===e}[Ce](){return new _e((()=>this.selectionController?this.selectionController.controls:[this]))}[Ee](){return this.container}}a([P({type:Boolean})],Ye.prototype,"checked",null),a([P({type:Boolean})],Ye.prototype,"required",void 0),a([P()],Ye.prototype,"value",void 0),a([A(".container")],Ye.prototype,"container",void 0);
|
|
1880
1857
|
/**
|
|
1881
1858
|
* @license
|
|
1882
1859
|
* Copyright 2024 Google LLC
|
|
1883
1860
|
* SPDX-License-Identifier: Apache-2.0
|
|
1884
1861
|
*/
|
|
1885
|
-
const
|
|
1862
|
+
const We=o`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
|
|
1886
1863
|
`
|
|
1887
1864
|
/**
|
|
1888
1865
|
* @license
|
|
1889
1866
|
* Copyright 2022 Google LLC
|
|
1890
1867
|
* SPDX-License-Identifier: Apache-2.0
|
|
1891
|
-
*/;let
|
|
1868
|
+
*/;let He=class extends Ye{};He.styles=[We],He=a([d("md-radio")],He);let Ge=class extends e{constructor(){super(...arguments),this.name="radio-group",this.checked=!1,this.disabled=!1,this.error=!1}static{this.styles=o`
|
|
1892
1869
|
:host {
|
|
1893
1870
|
font-family: "Graphik", sans-serif;
|
|
1894
1871
|
}
|
|
@@ -1942,11 +1919,11 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1942
1919
|
color: #9FA3B3;
|
|
1943
1920
|
cursor: default;
|
|
1944
1921
|
}
|
|
1945
|
-
`}render(){const
|
|
1922
|
+
`}render(){const e=[this.checked?"checked":"",this.error?"error":"",this.disabled?"disabled":""].join(" ");return t`
|
|
1946
1923
|
<label class="radio-container ${this.disabled?"disabled":""}">
|
|
1947
1924
|
<md-radio
|
|
1948
1925
|
name=${this.name}
|
|
1949
|
-
class=${
|
|
1926
|
+
class=${e}
|
|
1950
1927
|
?checked=${this.checked}
|
|
1951
1928
|
?disabled=${this.disabled}
|
|
1952
1929
|
>
|
|
@@ -1954,10 +1931,10 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1954
1931
|
|
|
1955
1932
|
<span>${this.checked?"On":"Off"} ${this.error?"Error":""}</span>
|
|
1956
1933
|
</label>
|
|
1957
|
-
`}};
|
|
1958
|
-
${X}
|
|
1934
|
+
`}};a([P({type:String}),s("design:type",Object)],Ge.prototype,"name",void 0),a([P({type:Boolean}),s("design:type",Object)],Ge.prototype,"checked",void 0),a([P({type:Boolean}),s("design:type",Object)],Ge.prototype,"disabled",void 0),a([P({type:Boolean}),s("design:type",Object)],Ge.prototype,"error",void 0),Ge=a([d("custom-radio")],Ge);let Xe=class extends L{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,o`
|
|
1959
1935
|
${K}
|
|
1960
|
-
${
|
|
1936
|
+
${Q}
|
|
1937
|
+
${X}
|
|
1961
1938
|
|
|
1962
1939
|
/* --- Own Error Styles --- */
|
|
1963
1940
|
:host([error]) .input-container:not(.open) .input-wrapper:hover {
|
|
@@ -2066,7 +2043,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2066
2043
|
}
|
|
2067
2044
|
|
|
2068
2045
|
.filter-input {
|
|
2069
|
-
${
|
|
2046
|
+
${R};
|
|
2070
2047
|
padding: 16px;
|
|
2071
2048
|
padding-right: 40px;
|
|
2072
2049
|
border: none;
|
|
@@ -2087,7 +2064,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2087
2064
|
}
|
|
2088
2065
|
|
|
2089
2066
|
.filter-input::placeholder {
|
|
2090
|
-
${
|
|
2067
|
+
${R};
|
|
2091
2068
|
color: var(--secondary-color-40);
|
|
2092
2069
|
}
|
|
2093
2070
|
|
|
@@ -2132,7 +2109,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2132
2109
|
}
|
|
2133
2110
|
|
|
2134
2111
|
.options-list li {
|
|
2135
|
-
${
|
|
2112
|
+
${R};
|
|
2136
2113
|
padding: 8px 16px 8px 16px;
|
|
2137
2114
|
cursor: pointer;
|
|
2138
2115
|
color: var(--secondary-color-80);
|
|
@@ -2202,7 +2179,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2202
2179
|
}
|
|
2203
2180
|
|
|
2204
2181
|
.filter-fake {
|
|
2205
|
-
${
|
|
2182
|
+
${R};
|
|
2206
2183
|
padding: 15px;
|
|
2207
2184
|
padding-right: 40px;
|
|
2208
2185
|
width: 100%;
|
|
@@ -2272,21 +2249,21 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2272
2249
|
margin-right: 8px;
|
|
2273
2250
|
flex-shrink: 0;
|
|
2274
2251
|
}
|
|
2275
|
-
`]}update(
|
|
2252
|
+
`]}update(e){if(e.has("options")&&(this.filteredOptions=[...this.options]),e.has("defaultValue")||e.has("options")||e.has("value")){if(this._isCleared)return void super.update(e);const t=this.value||this.defaultValue,i=this.options.find((e=>"string"==typeof e?e===t:e.value===t));i?(this.filterValue="string"==typeof i?i:i.label,this.value="string"==typeof i?i:i.value):(this.filterValue="",this.value="")}super.update(e)}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(e){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(e){if(!this.filterable)return;this._isCleared=!1;const t=e.target.value,i=this.maxLength?t.slice(0,this.maxLength).toLowerCase():t.toLowerCase();this.filterValue=i,this.value="",this.filteredOptions=this.options.filter((e=>("string"==typeof e?e:e.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(e){this._isCleared=!1;const t=e.target.value,i=this.maxLength?t.slice(0,this.maxLength).toLowerCase():t.toLowerCase();this.mobileFilterValue=i,this.value="",this.filteredOptions=this.options.filter((e=>("string"==typeof e?e:e.label).toLowerCase().includes(i))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0}))}),300)}handleSelect(e){this._isCleared=!1;const t="string"==typeof e?e:e.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0})),this.filterValue="string"==typeof e?e:e.label,this.value=t,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.filterable&&this.filterValue?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate())}handleClickOutside(e){const t=e.target;t instanceof Node&&(this.contains(t)||(this.isOpen=!1,this.requestUpdate()))}handleKeyDown(e){const{key:t}=e;if(!this.isOpen&&("Enter"===t||" "===t))return e.preventDefault(),void(this.isOpen=!0);if(this.isOpen)if("ArrowDown"===t)e.preventDefault(),this.highlightedIndex=Math.min(this.highlightedIndex+1,this.filteredOptions.length-1),this.requestUpdate();else if("ArrowUp"===t)e.preventDefault(),this.highlightedIndex=Math.max(this.highlightedIndex-1,0),this.requestUpdate();else if("Enter"===t){e.preventDefault();const t=this.filteredOptions[this.highlightedIndex];t&&this.handleSelect(t)}else"Escape"===t&&(e.preventDefault(),this.isOpen=!1)}renderSelectedIcon(){const e=this.options.find((e=>"string"==typeof e?e===this.value:e.value===this.value));return e&&"string"!=typeof e&&e.icon&&"string"==typeof e.icon?t`<span class="icon-selected" .innerHTML="${e.icon}"></span>`:i}renderOptionIcon(e){return e&&"string"==typeof e?t`<span class="icon-list" .innerHTML="${e}"></span>`:i}render(){const e=this.isMobile,o=t`
|
|
2276
2253
|
<randstad-icon
|
|
2277
2254
|
name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
|
|
2278
2255
|
size="24px"
|
|
2279
2256
|
.color=${"var( --primary-color )"}
|
|
2280
2257
|
>
|
|
2281
2258
|
</randstad-icon>
|
|
2282
|
-
`;return
|
|
2259
|
+
`;return t`
|
|
2283
2260
|
<div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
2284
2261
|
${this.renderLabelContainer()}
|
|
2285
2262
|
|
|
2286
2263
|
<div class="list-container">
|
|
2287
|
-
<div class="input-container ${this.isOpen?"focused":""} ${this.isOpen&&this.filteredOptions.length>0?"open":""} ${
|
|
2264
|
+
<div class="input-container ${this.isOpen?"focused":""} ${this.isOpen&&this.filteredOptions.length>0?"open":""} ${e?"mobile":""}">
|
|
2288
2265
|
<div class="input-wrapper ${this.disabled?"disabled":""}">
|
|
2289
|
-
${t
|
|
2266
|
+
${e?t`
|
|
2290
2267
|
<div
|
|
2291
2268
|
class="filter-fake"
|
|
2292
2269
|
@click="${this.handleInputClick}"
|
|
@@ -2301,7 +2278,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2301
2278
|
${this.renderSelectedIcon()}
|
|
2302
2279
|
<span class="value-text">${this.filterValue||this.placeholder}</span>
|
|
2303
2280
|
</div>
|
|
2304
|
-
`:
|
|
2281
|
+
`:t`
|
|
2305
2282
|
${this.renderSelectedIcon()}
|
|
2306
2283
|
|
|
2307
2284
|
<input
|
|
@@ -2322,21 +2299,21 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2322
2299
|
@click="${this.handleIconClick}"
|
|
2323
2300
|
?disabled="${this.disabled}"
|
|
2324
2301
|
>
|
|
2325
|
-
${this.filterable&&this.filterValue?
|
|
2302
|
+
${this.filterable&&this.filterValue?t`<randstad-icon name="close" size="24px"></randstad-icon>`:o}
|
|
2326
2303
|
</button>
|
|
2327
2304
|
</div>
|
|
2328
2305
|
|
|
2329
|
-
${!
|
|
2306
|
+
${!e&&this.isOpen&&this.filteredOptions.length>0?t`
|
|
2330
2307
|
<ul class="options-list">
|
|
2331
|
-
${this.filteredOptions.map(((
|
|
2308
|
+
${this.filteredOptions.map(((e,i)=>{const o="string"==typeof e?e:e.label,r="object"==typeof e&&e.disabled,n="object"==typeof e?e.icon:void 0;return t`
|
|
2332
2309
|
<li
|
|
2333
|
-
class="${
|
|
2310
|
+
class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
|
|
2334
2311
|
role="option"
|
|
2335
2312
|
aria-selected="${i===this.highlightedIndex}"
|
|
2336
|
-
@click="${()=>{
|
|
2313
|
+
@click="${()=>{r||this.handleSelect(e)}}"
|
|
2337
2314
|
>
|
|
2338
|
-
${this.renderOptionIcon(
|
|
2339
|
-
${
|
|
2315
|
+
${this.renderOptionIcon(n)}
|
|
2316
|
+
${o}
|
|
2340
2317
|
</li>
|
|
2341
2318
|
`}))}
|
|
2342
2319
|
</ul>
|
|
@@ -2349,14 +2326,14 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2349
2326
|
${this.renderHelper()}
|
|
2350
2327
|
</div>
|
|
2351
2328
|
|
|
2352
|
-
${
|
|
2329
|
+
${e&&this.isOpen?t`
|
|
2353
2330
|
<div class="mobile-backdrop" @click="${()=>{this.isOpen=!1}}">
|
|
2354
|
-
<div class="mobile-modal" @click="${
|
|
2331
|
+
<div class="mobile-modal" @click="${e=>e.stopPropagation()}">
|
|
2355
2332
|
<div class="modal-input-container">
|
|
2356
2333
|
<input
|
|
2357
2334
|
class="filter-input"
|
|
2358
2335
|
.value="${this.mobileFilterValue||""}"
|
|
2359
|
-
@input=${
|
|
2336
|
+
@input=${e=>this.handleMobileInput(e)}
|
|
2360
2337
|
placeholder="${this.placeholder}"
|
|
2361
2338
|
maxlength="${this.maxLength??""}"
|
|
2362
2339
|
/>
|
|
@@ -2366,22 +2343,22 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2366
2343
|
</div>
|
|
2367
2344
|
|
|
2368
2345
|
<ul class="options-list">
|
|
2369
|
-
${this.filteredOptions.map(((
|
|
2346
|
+
${this.filteredOptions.map(((e,i)=>{const o="string"==typeof e?e:e.label,r="object"==typeof e&&e.disabled,n="object"==typeof e?e.icon:void 0;return t`
|
|
2370
2347
|
<li
|
|
2371
|
-
class="${
|
|
2348
|
+
class="${r?"disabled":""} ${i===this.highlightedIndex?"highlighted":""}"
|
|
2372
2349
|
role="option"
|
|
2373
2350
|
aria-selected="${i===this.highlightedIndex}"
|
|
2374
|
-
@click="${()=>{
|
|
2351
|
+
@click="${()=>{r||this.handleSelect(e)}}"
|
|
2375
2352
|
>
|
|
2376
|
-
${this.renderOptionIcon(
|
|
2377
|
-
${
|
|
2353
|
+
${this.renderOptionIcon(n)}
|
|
2354
|
+
${o}
|
|
2378
2355
|
</li>
|
|
2379
2356
|
`}))}
|
|
2380
2357
|
</ul>
|
|
2381
2358
|
</div>
|
|
2382
2359
|
</div>
|
|
2383
2360
|
`:i}
|
|
2384
|
-
`}};
|
|
2361
|
+
`}};a([P({type:Object}),s("design:type",Object)],Xe.prototype,"value",void 0),a([P({type:String,attribute:"default-value"}),s("design:type",Object)],Xe.prototype,"defaultValue",void 0),a([P({type:Array}),s("design:type",Array)],Xe.prototype,"options",void 0),a([P({type:Boolean}),s("design:type",Object)],Xe.prototype,"filterable",void 0),a([P({type:Number}),s("design:type",Number)],Xe.prototype,"maxLength",void 0),a([z(),s("design:type",Boolean)],Xe.prototype,"isMobile",void 0),a([z(),s("design:type",Object)],Xe.prototype,"highlightedIndex",void 0),a([z(),s("design:type",Boolean)],Xe.prototype,"_isCleared",void 0),a([z(),s("design:type",Array)],Xe.prototype,"filteredOptions",void 0),a([z(),s("design:type",Object)],Xe.prototype,"filterValue",void 0),a([z(),s("design:type",Object)],Xe.prototype,"isOpen",void 0),a([z(),s("design:type",Object)],Xe.prototype,"mobileFilterValue",void 0),Xe=a([d("filterable-select")],Xe);const Ke=new CSSStyleSheet;Ke.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 Qe extends e{static{this.styles=[Ke,o`
|
|
2385
2362
|
:host {
|
|
2386
2363
|
display: flex;
|
|
2387
2364
|
position: fixed;
|
|
@@ -2451,7 +2428,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2451
2428
|
}
|
|
2452
2429
|
|
|
2453
2430
|
.container {
|
|
2454
|
-
${
|
|
2431
|
+
${_};
|
|
2455
2432
|
display: flex;
|
|
2456
2433
|
align-items: center;
|
|
2457
2434
|
box-sizing: border-box;
|
|
@@ -2508,16 +2485,16 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2508
2485
|
.informative {
|
|
2509
2486
|
background-color: var(--ui-informative);
|
|
2510
2487
|
}
|
|
2511
|
-
`]}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean},position:{type:String,reflect:!0}}}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center",this.isMobile=!1,this.updateResponsiveStyles=this.updateResponsiveStyles.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.updateResponsiveStyles),this.updateResponsiveStyles()}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveStyles),super.disconnectedCallback()}updateResponsiveStyles(){const
|
|
2488
|
+
`]}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean},position:{type:String,reflect:!0}}}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center",this.isMobile=!1,this.updateResponsiveStyles=this.updateResponsiveStyles.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.updateResponsiveStyles),this.updateResponsiveStyles()}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveStyles),super.disconnectedCallback()}updateResponsiveStyles(){const e=window.innerWidth<=940;this.classList.toggle("mobile",e)}render(){const e="error"===this.type||"warning"===this.type?"alert":"status";return t`
|
|
2512
2489
|
<div
|
|
2513
2490
|
class="container ${this.open?"":"hidden"} ${this.type}"
|
|
2514
|
-
role="${
|
|
2491
|
+
role="${e}"
|
|
2515
2492
|
aria-live="polite"
|
|
2516
2493
|
>
|
|
2517
2494
|
<randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
|
|
2518
2495
|
<span class="message">${this.message}</span>
|
|
2519
2496
|
</div>
|
|
2520
|
-
`}}customElements.define("randstad-snackbar",
|
|
2497
|
+
`}}customElements.define("randstad-snackbar",Qe);let Je=class extends e{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
|
|
2521
2498
|
.stepper {
|
|
2522
2499
|
display: flex;
|
|
2523
2500
|
gap: 20px;
|
|
@@ -2604,20 +2581,20 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2604
2581
|
-webkit-font-smoothing: antialiased;
|
|
2605
2582
|
-moz-osx-font-smoothing: grayscale;
|
|
2606
2583
|
}
|
|
2607
|
-
`}render(){return
|
|
2584
|
+
`}render(){return t`
|
|
2608
2585
|
<div class="stepper">
|
|
2609
|
-
${Array.from({length:this.totalSteps},((
|
|
2586
|
+
${Array.from({length:this.totalSteps},((e,i)=>t`
|
|
2610
2587
|
<div
|
|
2611
2588
|
class="step ${i<this.currentStep?"completed":i===this.currentStep?"active":""}"
|
|
2612
2589
|
>
|
|
2613
|
-
${i<this.currentStep?
|
|
2590
|
+
${i<this.currentStep?t`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:i===this.currentStep?t`
|
|
2614
2591
|
<span class="pulse-circle"></span>
|
|
2615
2592
|
<span class="inner-circle"></span>
|
|
2616
|
-
`:
|
|
2593
|
+
`:t`<span class="inner-circle"></span>`}
|
|
2617
2594
|
</div>
|
|
2618
2595
|
`))}
|
|
2619
2596
|
</div>
|
|
2620
|
-
`}};
|
|
2597
|
+
`}};a([P({type:Number}),s("design:type",Object)],Je.prototype,"totalSteps",void 0),a([P({type:Number}),s("design:type",Object)],Je.prototype,"currentStep",void 0),Je=a([d("custom-stepper")],Je);let Ze=class extends e{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const e=this.renderRoot.querySelector(".tab-wrapper");if(!e)return;const{scrollLeft:t,scrollWidth:i,clientWidth:o}=e;this.showPrev=t>0,this.showNext=t+o<i-1}}static{this.styles=o`
|
|
2621
2598
|
:host {
|
|
2622
2599
|
display: block;
|
|
2623
2600
|
border-bottom: 1px solid #E7E8EC;
|
|
@@ -2630,7 +2607,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2630
2607
|
}
|
|
2631
2608
|
|
|
2632
2609
|
.tab {
|
|
2633
|
-
${
|
|
2610
|
+
${N};
|
|
2634
2611
|
display: flex;
|
|
2635
2612
|
gap: 8px;
|
|
2636
2613
|
flex-direction: row;
|
|
@@ -2728,45 +2705,45 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2728
2705
|
|
|
2729
2706
|
@media (max-width: 940px) {
|
|
2730
2707
|
.tab {
|
|
2731
|
-
${
|
|
2708
|
+
${B};
|
|
2732
2709
|
padding: 16px;
|
|
2733
2710
|
}
|
|
2734
2711
|
}
|
|
2735
|
-
`}firstUpdated(){this.handleScroll()}updated(
|
|
2712
|
+
`}firstUpdated(){this.handleScroll()}updated(e){e.has("selected")&&(this.internalSelected=this.selected)}selectTab(e){this.internalSelected=e;const t=this.tabs.find((t=>t.value===e));t&&this.dispatchEvent(new CustomEvent("tab-change",{detail:t,bubbles:!0,composed:!0}))}scrollTabsLeft(){const e=this.renderRoot.querySelector(".tab-wrapper");if(!e)return;const t=e.scrollLeft,i=Array.from(e.querySelectorAll(".tab"));for(let o=i.length-1;o>=0;o--){const r=i[o].offsetLeft;if(r<t+this.SCROLL_OFFSET-1){const t=r-this.SCROLL_OFFSET;e.scrollTo({left:t,behavior:"smooth"});break}}setTimeout((()=>this.handleScroll()),300)}scrollTabsRight(){const e=this.renderRoot.querySelector(".tab-wrapper");if(!e)return;const t=e.scrollLeft,i=Array.from(e.querySelectorAll(".tab"));for(const o of i)if(o.offsetLeft>t+this.SCROLL_OFFSET){const t=o.offsetLeft-this.SCROLL_OFFSET;e.scrollTo({left:t,behavior:"smooth"});break}setTimeout((()=>this.handleScroll()),300)}render(){return t`
|
|
2736
2713
|
<div class="scroll-container">
|
|
2737
|
-
${this.showPrev?
|
|
2714
|
+
${this.showPrev?t`
|
|
2738
2715
|
<button class="scroll-button prev" @click=${this.scrollTabsLeft}>
|
|
2739
2716
|
<randstad-icon name="arrow_left" size="36px"></randstad-icon>
|
|
2740
2717
|
</button>
|
|
2741
2718
|
`:null}
|
|
2742
2719
|
|
|
2743
2720
|
<div class="tab-wrapper" @scroll=${this.handleScroll}>
|
|
2744
|
-
${this.tabs.map((t
|
|
2745
|
-
<div class="tab ${this.internalSelected===
|
|
2746
|
-
@click=${()=>this.selectTab(
|
|
2747
|
-
<img src="/assets/icons/${
|
|
2748
|
-
<span>${
|
|
2721
|
+
${this.tabs.map((e=>t`
|
|
2722
|
+
<div class="tab ${this.internalSelected===e.value?"active":""}"
|
|
2723
|
+
@click=${()=>this.selectTab(e.value)}>
|
|
2724
|
+
<img src="/assets/icons/${e.icon}" alt="${e.label}" />
|
|
2725
|
+
<span>${e.label}</span>
|
|
2749
2726
|
</div>
|
|
2750
2727
|
`))}
|
|
2751
2728
|
</div>
|
|
2752
2729
|
|
|
2753
|
-
${this.showNext?
|
|
2730
|
+
${this.showNext?t`
|
|
2754
2731
|
<button class="scroll-button next" @click=${this.scrollTabsRight}>
|
|
2755
2732
|
<randstad-icon name="arrow_right" size="36px"></randstad-icon>
|
|
2756
2733
|
</button>
|
|
2757
2734
|
`:null}
|
|
2758
2735
|
</div>
|
|
2759
|
-
`}};
|
|
2760
|
-
${this.loading?
|
|
2736
|
+
`}};a([P({type:Array}),s("design:type",Array)],Ze.prototype,"tabs",void 0),a([P({type:String}),s("design:type",String)],Ze.prototype,"selected",void 0),a([z(),s("design:type",String)],Ze.prototype,"internalSelected",void 0),a([z(),s("design:type",Object)],Ze.prototype,"showPrev",void 0),a([z(),s("design:type",Object)],Ze.prototype,"showNext",void 0),Ze=a([d("tabs-bar")],Ze);let et=class extends L{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.loading=!1,this.progress=0,this.errorTextMessage=null}baseGetTextMaxFileSize(e){return e/1048576}getReadableFileTypes(e,t){const i=e.map((e=>t[e]||e));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(e,t,i,o,r,n){for(const a of e){if(i.length>0&&!i.includes(a.type))return this.setError(n,o),!1;if(a.size>t)return this.setError(n,r),!1}return!0}async baseHandleFiles(e,t){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:n,errorMessageSize:a,typeError:s}=t;if(this.setError(s,null),!e||this.disabled||this.loading)return;const d=Array.isArray(this.files)?this.files:[],l=Number.isFinite(i)&&i>0?i:1,c=l-d.length;if(c<=0){const e=`se ha alcanzado el número máximo de archivos (${l}).`;return void this.setError(s,e)}const p=Array.from(e).slice(0,c);if(0===p.length)return;if(!this.validateFiles(p,o,r,n,a,s))return;const h=this.simulatedDelay??0;if(h<=0)return this.files=[...d,...p],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),b=setInterval((()=>{const e=Date.now()-u,t=Math.min(Math.round(e/h*100),100);this.progress=t,this.progress>=100&&(clearInterval(b),this.files=[...d,...p],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(e,t){const i=e.target;this.baseHandleFiles(i.files,t),this.fileInput&&(this.fileInput.value="")}removeFile(e,t){this.files=this.files.filter(((t,i)=>i!==e)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(t,null)}setError(e="file",t){"file"===e&&(this.error=!!t,this.errorMessage=t),"image"===e&&(this.errorTextMessage=t)}renderLoadingContainer(e){return t`
|
|
2737
|
+
${this.loading?t`
|
|
2761
2738
|
<div class="progress-bar-container">
|
|
2762
2739
|
<div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
|
|
2763
2740
|
<div class="progress-bar-fill" style="width: ${this.progress}%;"></div>
|
|
2764
2741
|
</div>
|
|
2765
2742
|
</div>
|
|
2766
|
-
`:
|
|
2767
|
-
${
|
|
2743
|
+
`:t`
|
|
2744
|
+
${e}
|
|
2768
2745
|
`}
|
|
2769
|
-
`}};
|
|
2746
|
+
`}};a([P({type:Array}),s("design:type",Array)],et.prototype,"files",void 0),a([P({type:Number}),s("design:type",Object)],et.prototype,"simulatedDelay",void 0),a([z(),s("design:type",Object)],et.prototype,"loading",void 0),a([z(),s("design:type",Object)],et.prototype,"progress",void 0),a([z(),s("design:type",Object)],et.prototype,"errorTextMessage",void 0),a([A('input[ type="file" ]'),s("design:type",HTMLInputElement)],et.prototype,"fileInput",void 0),et=a([d("base-upload")],et);const tt=o`
|
|
2770
2747
|
.progress-bar-container {
|
|
2771
2748
|
min-height: 23px;
|
|
2772
2749
|
display: flex;
|
|
@@ -2786,8 +2763,8 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2786
2763
|
background-color: var( --primary-color );
|
|
2787
2764
|
transition: width 0.1s ease;
|
|
2788
2765
|
}
|
|
2789
|
-
`,
|
|
2790
|
-
${
|
|
2766
|
+
`,it={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},ot={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...it,"text/plain":".txt"};let rt=class extends et{constructor(){super(...arguments),this.acceptedFileTypes=["image/jpeg","image/png","image/jpg"],this.maxFiles=3,this.maxFileSize=2097152,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
|
|
2767
|
+
${tt}
|
|
2791
2768
|
|
|
2792
2769
|
:host {
|
|
2793
2770
|
font-family: 'Graphik', sans-serif;
|
|
@@ -2828,28 +2805,28 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2828
2805
|
}
|
|
2829
2806
|
|
|
2830
2807
|
.text-main {
|
|
2831
|
-
${
|
|
2808
|
+
${_};
|
|
2832
2809
|
text-align: center;
|
|
2833
2810
|
vertical-align: middle;
|
|
2834
2811
|
color: var( --secondary-color-80 );
|
|
2835
2812
|
}
|
|
2836
2813
|
|
|
2837
2814
|
.text-secondary {
|
|
2838
|
-
${
|
|
2815
|
+
${I};
|
|
2839
2816
|
text-align: center;
|
|
2840
2817
|
vertical-align: middle;
|
|
2841
2818
|
color: var( --secondary-color-60 );
|
|
2842
2819
|
}
|
|
2843
2820
|
|
|
2844
2821
|
.text-tertiary {
|
|
2845
|
-
${
|
|
2822
|
+
${I};
|
|
2846
2823
|
text-align: center;
|
|
2847
2824
|
vertical-align: middle;
|
|
2848
2825
|
color: var( --secondary-color-40 );
|
|
2849
2826
|
}
|
|
2850
2827
|
|
|
2851
2828
|
.button {
|
|
2852
|
-
${
|
|
2829
|
+
${I};
|
|
2853
2830
|
background-color: var( --primary-color );
|
|
2854
2831
|
border: none;
|
|
2855
2832
|
padding: 4px 16px;
|
|
@@ -2908,7 +2885,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2908
2885
|
.text-main.error {
|
|
2909
2886
|
color: var(--ui-negative, #E00F0F);
|
|
2910
2887
|
}
|
|
2911
|
-
`}getFileConfig(){const
|
|
2888
|
+
`}getFileConfig(){const e="tu archivo no es válido";return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:e,errorMessageSize:e,typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,it)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(e){e.has("files")&&this.files&&(this.imageUrls.forEach((e=>URL.revokeObjectURL(e))),this.imageUrls=this.files.map((e=>URL.createObjectURL(e))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((e=>URL.revokeObjectURL(e)))}async handleFiles(e){await this.baseHandleFiles(e,this.getFileConfig())}onFileInputChange(e){this.baseOnFileInputChange(e,this.getFileConfig())}onDrop(e){e.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(e.dataTransfer?.files||null))}onDragOver(e){e.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(e){e.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(e){e.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3)}render(){const e=this.disabled||this.isMaxFilesReached,i=this.disabled,o=this.errorTextMessage||`subí hasta ${this.maxFiles} imágenes`,r=this.errorTextMessage?"assets/img/image-upload-error.svg":e?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",n=`container ${this.isDragging?"dragging":""} ${this.errorTextMessage?"error":""}`,a=t`
|
|
2912
2889
|
<label class="button">
|
|
2913
2890
|
agregar archivo
|
|
2914
2891
|
|
|
@@ -2917,21 +2894,21 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2917
2894
|
accept=${this.acceptedFileTypes.join(",")}
|
|
2918
2895
|
?multiple=${this.maxFiles>1}
|
|
2919
2896
|
@change="${this.onFileInputChange}"
|
|
2920
|
-
?disabled="${
|
|
2897
|
+
?disabled="${e}"
|
|
2921
2898
|
/>
|
|
2922
2899
|
</label>
|
|
2923
|
-
`;return
|
|
2900
|
+
`;return t`
|
|
2924
2901
|
<div class="upload-component-wrapper">
|
|
2925
|
-
${this.imageUrls.length>0?
|
|
2902
|
+
${this.imageUrls.length>0?t`
|
|
2926
2903
|
<div class="image-gallery">
|
|
2927
|
-
${this.imageUrls.map(((
|
|
2904
|
+
${this.imageUrls.map(((e,o)=>t`
|
|
2928
2905
|
<div class="image-item">
|
|
2929
|
-
<img src="${
|
|
2906
|
+
<img src="${e}" loading="lazy" alt="Uploaded image" />
|
|
2930
2907
|
|
|
2931
2908
|
<randstad-button
|
|
2932
2909
|
.variant=${"button-icon"}
|
|
2933
2910
|
.iconName=${"trash"}
|
|
2934
|
-
@click=${()=>this.removeFile(
|
|
2911
|
+
@click=${()=>this.removeFile(o,"image")}
|
|
2935
2912
|
?disabled=${i}
|
|
2936
2913
|
>
|
|
2937
2914
|
</randstad-button>
|
|
@@ -2941,20 +2918,20 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2941
2918
|
`:""}
|
|
2942
2919
|
|
|
2943
2920
|
<div
|
|
2944
|
-
class="${
|
|
2945
|
-
?disabled="${
|
|
2921
|
+
class="${n}"
|
|
2922
|
+
?disabled="${e}"
|
|
2946
2923
|
@drop="${this.onDrop}"
|
|
2947
2924
|
@dragover="${this.onDragOver}"
|
|
2948
2925
|
@dragleave="${this.onDragLeave}"
|
|
2949
2926
|
>
|
|
2950
2927
|
<img
|
|
2951
2928
|
class="icon"
|
|
2952
|
-
src=${
|
|
2929
|
+
src=${r}
|
|
2953
2930
|
alt="Subir imagen"
|
|
2954
2931
|
/>
|
|
2955
2932
|
|
|
2956
2933
|
<div class="text-container">
|
|
2957
|
-
<div class="text-main ${this.errorTextMessage?"error":""}">${
|
|
2934
|
+
<div class="text-main ${this.errorTextMessage?"error":""}">${o}</div>
|
|
2958
2935
|
|
|
2959
2936
|
<div class="text-secondary">
|
|
2960
2937
|
Podés agregar un archivo o arrastrar y soltar acá
|
|
@@ -2963,10 +2940,10 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
2963
2940
|
<div class="text-tertiary">${this.getTextAcceptedFileTypes()} / max. ${this.getTextMaxFileSize()}MB</div>
|
|
2964
2941
|
</div>
|
|
2965
2942
|
|
|
2966
|
-
${this.renderLoadingContainer(
|
|
2943
|
+
${this.renderLoadingContainer(a)}
|
|
2967
2944
|
</div>
|
|
2968
2945
|
</div>
|
|
2969
|
-
`}};n([_({type:Array}),a("design:type",Array)],Ue.prototype,"acceptedFileTypes",void 0),n([_({type:Number}),a("design:type",Object)],Ue.prototype,"maxFiles",void 0),n([_({type:Number}),a("design:type",Object)],Ue.prototype,"maxFileSize",void 0),n([T(),a("design:type",Object)],Ue.prototype,"isDragging",void 0),n([T(),a("design:type",Array)],Ue.prototype,"imageUrls",void 0),n([T(),a("design:type",Boolean)],Ue.prototype,"isMaxFilesReached",void 0),Ue=n([l("upload-image")],Ue);const He=6048e5,qe=Symbol.for("constructDateFrom");function We(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&qe in t?t[qe](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ye(t,e){return We(e||t,t)}function Ge(t,e,i){const r=Ye(t,i?.in);if(isNaN(e))return We(t,NaN);if(!e)return r;const o=r.getDate(),s=We(t,r.getTime());s.setMonth(r.getMonth()+e+1,0);return o>=s.getDate()?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let Xe={};function Ke(){return Xe}function Qe(t,e){const i=Ke(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=Ye(t,e?.in),s=o.getDay(),n=(s<r?7:0)+s-r;return o.setDate(o.getDate()-n),o.setHours(0,0,0,0),o}function Je(t,e){return Qe(t,{...e,weekStartsOn:1})}function Ze(t,e){const i=Ye(t,e?.in),r=i.getFullYear(),o=We(i,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Je(o),n=We(i,0);n.setFullYear(r,0,4),n.setHours(0,0,0,0);const a=Je(n);return i.getTime()>=s.getTime()?r+1:i.getTime()>=a.getTime()?r:r-1}function ti(t){const e=Ye(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 ei(t,...e){const i=We.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function ii(t,e){const i=Ye(t,e?.in);return i.setHours(0,0,0,0),i}function ri(t,e,i){return Ge(t,12*e,i)}function oi(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Ye(t)));var e}function si(t,e){const i=Ye(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const ni={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 ai(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const li={date:ai({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ai({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:ai({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},di={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ci(t){return(e,i)=>{let r;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,o=i?.width?String(i.width):e;r=t.formattingValues[o]||t.formattingValues[e]}else{const e=t.defaultWidth,o=i?.width?String(i.width):t.defaultWidth;r=t.values[o]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function hi(t){return(e,i={})=>{const r=i.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const n=s[0],a=r&&t.parsePatterns[r]||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 pi;const ui={code:"en-US",formatDistance:(t,e,i)=>{let r;const o=ni[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:li,formatRelative:(t,e,i,r)=>di[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:ci({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ci({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:ci({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:ci({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:ci({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:(pi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(pi.matchPattern);if(!i)return null;const r=i[0],o=t.match(pi.parsePattern);if(!o)return null;let s=pi.valueCallback?pi.valueCallback(o[0]):o[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(r.length)}}),era:hi({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:hi({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:hi({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:hi({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:hi({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 bi(t,e){const i=Ye(t,e?.in),r=function(t,e){const[i,r]=ei(0,t,e),o=ii(i),s=ii(r),n=+o-ti(o),a=+s-ti(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=Ye(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return r+1}function gi(t,e){const i=Ye(t,e?.in),r=+Je(i)-+function(t,e){const i=Ze(t,e),r=We(t,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),Je(r)}(i);return Math.round(r/He)+1}function mi(t,e){const i=Ye(t,e?.in),r=i.getFullYear(),o=Ke(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=We(e?.in||t,0);n.setFullYear(r+1,0,s),n.setHours(0,0,0,0);const a=Qe(n,e),l=We(e?.in||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const d=Qe(l,e);return+i>=+a?r+1:+i>=+d?r:r-1}function yi(t,e){const i=Ye(t,e?.in),r=+Qe(i,e)-+function(t,e){const i=Ke(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=mi(t,e),s=We(e?.in||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Qe(s,e)}(i,e);return Math.round(r/He)+1}function vi(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const fi={y(t,e){const i=t.getFullYear(),r=i>0?i:1-i;return vi("yy"===e?r%100:r,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):vi(i+1,2)},d:(t,e)=>vi(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)=>vi(t.getHours()%12||12,e.length),H:(t,e)=>vi(t.getHours(),e.length),m:(t,e)=>vi(t.getMinutes(),e.length),s:(t,e)=>vi(t.getSeconds(),e.length),S(t,e){const i=e.length,r=t.getMilliseconds();return vi(Math.trunc(r*Math.pow(10,i-3)),e.length)}},xi="midnight",wi="noon",ki="morning",$i="afternoon",Si="evening",Ci="night",Ei={G:function(t,e,i){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return i.ordinalNumber(r,{unit:"year"})}return fi.y(t,e)},Y:function(t,e,i,r){const o=mi(t,r),s=o>0?o:1-o;if("YY"===e){return vi(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):vi(s,e.length)},R:function(t,e){return vi(Ze(t),e.length)},u:function(t,e){return vi(t.getFullYear(),e.length)},Q:function(t,e,i){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return vi(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return vi(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){const r=t.getMonth();switch(e){case"M":case"MM":return fi.M(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return vi(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){const o=yi(t,r);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):vi(o,e.length)},I:function(t,e,i){const r=gi(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):vi(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):fi.d(t,e)},D:function(t,e,i){const r=bi(t);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):vi(r,e.length)},E:function(t,e,i){const r=t.getDay();switch(e){case"E":case"EE":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"})}},e:function(t,e,i,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return vi(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});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"})}},c:function(t,e,i,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return vi(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){const r=t.getDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return vi(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,i){const r=t.getHours();let o;switch(o=12===r?wi:0===r?xi:r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){const r=t.getHours();let o;switch(o=r>=17?Si:r>=12?$i:r>=4?ki:Ci,e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{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 fi.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):fi.H(t,e)},K:function(t,e,i){const r=t.getHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):vi(r,e.length)},k:function(t,e,i){let r=t.getHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):vi(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):fi.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):fi.s(t,e)},S:function(t,e){return fi.S(t,e)},X:function(t,e,i){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return Mi(r);case"XXXX":case"XX":return Ai(r);default:return Ai(r,":")}},x:function(t,e,i){const r=t.getTimezoneOffset();switch(e){case"x":return Mi(r);case"xxxx":case"xx":return Ai(r);default:return Ai(r,":")}},O:function(t,e,i){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Di(r,":");default:return"GMT"+Ai(r,":")}},z:function(t,e,i){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Di(r,":");default:return"GMT"+Ai(r,":")}},t:function(t,e,i){return vi(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return vi(+t,e.length)}};function Di(t,e=""){const i=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return 0===s?i+String(o):i+String(o)+e+vi(s,2)}function Mi(t,e){if(t%60==0){return(t>0?"-":"+")+vi(Math.abs(t)/60,2)}return Ai(t,e)}function Ai(t,e=""){const i=t>0?"-":"+",r=Math.abs(t);return i+vi(Math.trunc(r/60),2)+e+vi(r%60,2)}const Oi=(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"})}},Fi=(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"})}},_i={p:Fi,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return Oi(t,e);let s;switch(r){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}}",Oi(r,e)).replace("{{time}}",Fi(o,e))}},Ti=/^D+$/,ji=/^Y+$/,Pi=["D","DD","YY","YYYY"];const Li=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ii=/^'([^]*?)'?$/,Ni=/''/g,Bi=/[a-zA-Z]/;function Ri(t,e,i){const r=Ke(),o=r.locale??ui,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Ye(t,i?.in);if(!oi(a))throw new RangeError("Invalid time value");let l=e.match(zi).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,_i[e])(t,o.formatLong)}return t})).join("").match(Li).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:Vi(t)};if(Ei[e])return{isToken:!0,value:t};if(e.match(Bi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:o};return l.map((i=>{if(!i.isToken)return i.value;const r=i.value;(function(t){return ji.test(t)}(r)||function(t){return Ti.test(t)}(r))&&function(t,e,i){const r=function(t,e,i){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(r),Pi.includes(t))throw new RangeError(r)}(r,e,String(t));return(0,Ei[r[0]])(a,r,o.localize,d)})).join("")}function Vi(t){const e=t.match(Ii);return e?e[1].replace(Ni,"'"):t}function Ui(t,e){return Ye(t,e?.in).getDate()}function Hi(t,e){const i=Ye(t,e?.in),r=i.getFullYear(),o=i.getMonth(),s=We(i,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function qi(t,e){return+Ye(t)>+Ye(e)}function Wi(t,e){return+Ye(t)<+Ye(e)}function Yi(t,e,i){const[r,o]=ei(0,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Gi(t,e,i){const[r,o]=ei(0,t,e);return r.getFullYear()===o.getFullYear()}function Xi(t,e){return function(t,e){const[i,r]=ei(0,t,e);return+ii(i)===+ii(r)}(We(t,t),function(t){return We(t,Date.now())}(t))}let Ki=class extends t{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[Q,r`
|
|
2946
|
+
`}};a([P({type:Array}),s("design:type",Array)],rt.prototype,"acceptedFileTypes",void 0),a([P({type:Number}),s("design:type",Object)],rt.prototype,"maxFiles",void 0),a([P({type:Number}),s("design:type",Object)],rt.prototype,"maxFileSize",void 0),a([z(),s("design:type",Object)],rt.prototype,"isDragging",void 0),a([z(),s("design:type",Array)],rt.prototype,"imageUrls",void 0),a([z(),s("design:type",Boolean)],rt.prototype,"isMaxFilesReached",void 0),rt=a([d("upload-image")],rt);const nt=6048e5,at=Symbol.for("constructDateFrom");function st(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&at in e?e[at](t):e instanceof Date?new e.constructor(t):new Date(t)}function dt(e,t){return st(t||e,e)}function lt(e,t,i){const o=dt(e,i?.in);if(isNaN(t))return st(e,NaN);if(!t)return o;const r=o.getDate(),n=st(e,o.getTime());n.setMonth(o.getMonth()+t+1,0);return r>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}let ct={};function pt(){return ct}function ht(e,t){const i=pt(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=dt(e,t?.in),n=r.getDay(),a=(n<o?7:0)+n-o;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function ut(e,t){return ht(e,{...t,weekStartsOn:1})}function bt(e,t){const i=dt(e,t?.in),o=i.getFullYear(),r=st(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const n=ut(r),a=st(i,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);const s=ut(a);return i.getTime()>=n.getTime()?o+1:i.getTime()>=s.getTime()?o:o-1}function gt(e){const t=dt(e),i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),+e-+i}function mt(e,...t){const i=st.bind(null,t.find((e=>"object"==typeof e)));return t.map(i)}function yt(e,t){const i=dt(e,t?.in);return i.setHours(0,0,0,0),i}function vt(e,t,i){return lt(e,12*t,i)}function ft(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+dt(e)));var t}function xt(e,t){const i=dt(e,t?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const wt={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 kt(e){return(t={})=>{const i=t.width?String(t.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}const $t={date:kt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kt({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:kt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},St={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ct(e){return(t,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=i?.width?String(i.width):t;o=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=i?.width?String(i.width):e.defaultWidth;o=e.values[r]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function Et(e){return(t,i={})=>{const o=i.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(r);if(!n)return null;const a=n[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?function(e,t){for(let i=0;i<e.length;i++)if(t(e[i]))return i;return}(s,(e=>e.test(a))):function(e,t){for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return i;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(d):d,l=i.valueCallback?i.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}var Dt;const Mt={code:"en-US",formatDistance:(e,t,i)=>{let o;const r=wt[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:$t,formatRelative:(e,t,i,o)=>St[e],localize:{ordinalNumber:(e,t)=>{const i=Number(e),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Ct({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ct({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:Ct({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:Ct({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:(Dt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const i=e.match(Dt.matchPattern);if(!i)return null;const o=i[0],r=e.match(Dt.parsePattern);if(!r)return null;let n=Dt.valueCallback?Dt.valueCallback(r[0]):r[0];return n=t.valueCallback?t.valueCallback(n):n,{value:n,rest:e.slice(o.length)}}),era:Et({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:Et({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Et({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:Et({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:Et({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 Ot(e,t){const i=dt(e,t?.in),o=function(e,t){const[i,o]=mt(0,e,t),r=yt(i),n=yt(o),a=+r-gt(r),s=+n-gt(n);return Math.round((a-s)/864e5)}(i,function(e,t){const i=dt(e,t?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Ft(e,t){const i=dt(e,t?.in),o=+ut(i)-+function(e,t){const i=bt(e,t),o=st(e,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),ut(o)}(i);return Math.round(o/nt)+1}function Tt(e,t){const i=dt(e,t?.in),o=i.getFullYear(),r=pt(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=st(t?.in||e,0);a.setFullYear(o+1,0,n),a.setHours(0,0,0,0);const s=ht(a,t),d=st(t?.in||e,0);d.setFullYear(o,0,n),d.setHours(0,0,0,0);const l=ht(d,t);return+i>=+s?o+1:+i>=+l?o:o-1}function jt(e,t){const i=dt(e,t?.in),o=+ht(i,t)-+function(e,t){const i=pt(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Tt(e,t),n=st(t?.in||e,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),ht(n,t)}(i,t);return Math.round(o/nt)+1}function Pt(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const zt={y(e,t){const i=e.getFullYear(),o=i>0?i:1-i;return Pt("yy"===t?o%100:o,t.length)},M(e,t){const i=e.getMonth();return"M"===t?String(i+1):Pt(i+1,2)},d:(e,t)=>Pt(e.getDate(),t.length),a(e,t){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(e,t)=>Pt(e.getHours()%12||12,t.length),H:(e,t)=>Pt(e.getHours(),t.length),m:(e,t)=>Pt(e.getMinutes(),t.length),s:(e,t)=>Pt(e.getSeconds(),t.length),S(e,t){const i=t.length,o=e.getMilliseconds();return Pt(Math.trunc(o*Math.pow(10,i-3)),t.length)}},At="midnight",Lt="noon",It="morning",_t="afternoon",Bt="evening",Rt="night",Nt={G:function(e,t,i){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(e,t,i){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return i.ordinalNumber(o,{unit:"year"})}return zt.y(e,t)},Y:function(e,t,i,o){const r=Tt(e,o),n=r>0?r:1-r;if("YY"===t){return Pt(n%100,2)}return"Yo"===t?i.ordinalNumber(n,{unit:"year"}):Pt(n,t.length)},R:function(e,t){return Pt(bt(e),t.length)},u:function(e,t){return Pt(e.getFullYear(),t.length)},Q:function(e,t,i){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Pt(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,i){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Pt(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,i){const o=e.getMonth();switch(t){case"M":case"MM":return zt.M(e,t);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,i){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return Pt(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,i,o){const r=jt(e,o);return"wo"===t?i.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},I:function(e,t,i){const o=Ft(e);return"Io"===t?i.ordinalNumber(o,{unit:"week"}):Pt(o,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getDate(),{unit:"date"}):zt.d(e,t)},D:function(e,t,i){const o=Ot(e);return"Do"===t?i.ordinalNumber(o,{unit:"dayOfYear"}):Pt(o,t.length)},E:function(e,t,i){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,i,o){const r=e.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return Pt(n,2);case"eo":return i.ordinalNumber(n,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,i,o){const r=e.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return Pt(n,t.length);case"co":return i.ordinalNumber(n,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,i){const o=e.getDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return Pt(r,t.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,i){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,i){const o=e.getHours();let r;switch(r=12===o?Lt:0===o?At:o/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,i){const o=e.getHours();let r;switch(r=o>=17?Bt:o>=12?_t:o>=4?It:Rt,t){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),i.ordinalNumber(t,{unit:"hour"})}return zt.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getHours(),{unit:"hour"}):zt.H(e,t)},K:function(e,t,i){const o=e.getHours()%12;return"Ko"===t?i.ordinalNumber(o,{unit:"hour"}):Pt(o,t.length)},k:function(e,t,i){let o=e.getHours();return 0===o&&(o=24),"ko"===t?i.ordinalNumber(o,{unit:"hour"}):Pt(o,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getMinutes(),{unit:"minute"}):zt.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getSeconds(),{unit:"second"}):zt.s(e,t)},S:function(e,t){return zt.S(e,t)},X:function(e,t,i){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Ut(o);case"XXXX":case"XX":return qt(o);default:return qt(o,":")}},x:function(e,t,i){const o=e.getTimezoneOffset();switch(t){case"x":return Ut(o);case"xxxx":case"xx":return qt(o);default:return qt(o,":")}},O:function(e,t,i){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Vt(o,":");default:return"GMT"+qt(o,":")}},z:function(e,t,i){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Vt(o,":");default:return"GMT"+qt(o,":")}},t:function(e,t,i){return Pt(Math.trunc(+e/1e3),t.length)},T:function(e,t,i){return Pt(+e,t.length)}};function Vt(e,t=""){const i=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),n=o%60;return 0===n?i+String(r):i+String(r)+t+Pt(n,2)}function Ut(e,t){if(e%60==0){return(e>0?"-":"+")+Pt(Math.abs(e)/60,2)}return qt(e,t)}function qt(e,t=""){const i=e>0?"-":"+",o=Math.abs(e);return i+Pt(Math.trunc(o/60),2)+t+Pt(o%60,2)}const Yt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Wt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ht={p:Wt,P:(e,t)=>{const i=e.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return Yt(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Yt(o,t)).replace("{{time}}",Wt(r,t))}},Gt=/^D+$/,Xt=/^Y+$/,Kt=["D","DD","YY","YYYY"];const Qt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zt=/^'([^]*?)'?$/,ei=/''/g,ti=/[a-zA-Z]/;function ii(e,t,i){const o=pt(),r=o.locale??Mt,n=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=dt(e,i?.in);if(!ft(s))throw new RangeError("Invalid time value");let d=t.match(Jt).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ht[t])(e,r.formatLong)}return e})).join("").match(Qt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:oi(e)};if(Nt[t])return{isToken:!0,value:e};if(t.match(ti))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));r.localize.preprocessor&&(d=r.localize.preprocessor(s,d));const l={firstWeekContainsDate:n,weekStartsOn:a,locale:r};return d.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(e){return Xt.test(e)}(o)||function(e){return Gt.test(e)}(o))&&function(e,t,i){const o=function(e,t,i){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,i);if(console.warn(o),Kt.includes(e))throw new RangeError(o)}(o,t,String(e));return(0,Nt[o[0]])(s,o,r.localize,l)})).join("")}function oi(e){const t=e.match(Zt);return t?t[1].replace(ei,"'"):e}function ri(e,t){return dt(e,t?.in).getDate()}function ni(e,t){const i=dt(e,t?.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 ai(e,t){return+dt(e)>+dt(t)}function si(e,t){return+dt(e)<+dt(t)}function di(e,t,i){const[o,r]=mt(0,e,t);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function li(e,t,i){const[o,r]=mt(0,e,t);return o.getFullYear()===r.getFullYear()}function ci(e,t){return function(e,t){const[i,o]=mt(0,e,t);return+yt(i)===+yt(o)}(st(e,e),function(e){return st(e,Date.now())}(e))}let pi=class extends e{constructor(){super(...arguments),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.currentView="days",this.handleOutsideClick=e=>{const t=this.getRootNode(),i=t?.host;!i||e.composedPath().includes(this)||e.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}static{this.styles=[J,o`
|
|
2970
2947
|
/* Estilos generales del contenedor del calendario (escritorio) */
|
|
2971
2948
|
.calendar-container {
|
|
2972
2949
|
position: absolute;
|
|
@@ -3031,7 +3008,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3031
3008
|
}
|
|
3032
3009
|
|
|
3033
3010
|
.month-year-button {
|
|
3034
|
-
${
|
|
3011
|
+
${_}
|
|
3035
3012
|
display: flex;
|
|
3036
3013
|
align-items: center;
|
|
3037
3014
|
justify-content: center;
|
|
@@ -3080,7 +3057,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3080
3057
|
|
|
3081
3058
|
/* Estilos para cada botón de día */
|
|
3082
3059
|
.day {
|
|
3083
|
-
${
|
|
3060
|
+
${B}
|
|
3084
3061
|
display: flex;
|
|
3085
3062
|
align-items: center;
|
|
3086
3063
|
justify-content: center;
|
|
@@ -3143,7 +3120,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3143
3120
|
/* Botones de año y mes en la grilla */
|
|
3144
3121
|
.year-button,
|
|
3145
3122
|
.month-button {
|
|
3146
|
-
${
|
|
3123
|
+
${B}
|
|
3147
3124
|
background: var(--secondary-white, #fff);
|
|
3148
3125
|
border: 1px solid transparent;
|
|
3149
3126
|
color: var(--secondary-randstad-dark-blue-80, #3c4257);
|
|
@@ -3297,7 +3274,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3297
3274
|
}
|
|
3298
3275
|
|
|
3299
3276
|
.mobile-modal .day {
|
|
3300
|
-
${
|
|
3277
|
+
${R}
|
|
3301
3278
|
font-weight: 500;
|
|
3302
3279
|
display: flex;
|
|
3303
3280
|
align-items: center;
|
|
@@ -3380,90 +3357,90 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3380
3357
|
color: var(--secondary-randstad-dark-blue-30, #b1b5c4);
|
|
3381
3358
|
}
|
|
3382
3359
|
/* */
|
|
3383
|
-
`]}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t
|
|
3360
|
+
`]}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleHeaderClick(){"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(e,t=null){this.viewDate=e,t&&(this.currentView=t),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(e){let t=this.viewDate;t="days"===this.currentView?lt(this.viewDate,e):"months"===this.currentView?vt(this.viewDate,e):vt(this.viewDate,21*e),this._updateView(t)}handleYearSelect(e){const t=function(e,t,i){const o=dt(e,i?.in);return isNaN(+o)?st(e,NaN):(o.setFullYear(t),o)}(this.viewDate,e);this._updateView(t,"months")}handleMonthSelect(e){const t=function(e,t,i){const o=dt(e,i?.in),r=o.getFullYear(),n=o.getDate(),a=st(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const s=ni(a);return o.setMonth(t,Math.min(n,s)),o}(this.viewDate,e);this._updateView(t,"days")}handleDayClick(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((e=>e.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}renderHeader(){const e=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const e=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,t=e+20;i=`${e} - ${t}`;o=e<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const e=this.viewDate.getFullYear();o=e<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=`${e[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()}`,this.minDate&&(o=di(xt(this.viewDate),xt(this.minDate))||si(this.viewDate,this.minDate)),this.maxDate&&(r=di(xt(this.viewDate),xt(this.maxDate))||ai(this.viewDate,this.maxDate))}const n=t`
|
|
3384
3361
|
<randstad-icon
|
|
3385
3362
|
name="${"days"===this.currentView?"arrow_drop_down":"arrow_drop_up"}"
|
|
3386
3363
|
class="select-icon"
|
|
3387
3364
|
>
|
|
3388
3365
|
</randstad-icon>
|
|
3389
|
-
`;return
|
|
3366
|
+
`;return t`
|
|
3390
3367
|
<div class="header">
|
|
3391
3368
|
<div class="header-left">
|
|
3392
3369
|
<button class="month-year-button" @click=${this.handleHeaderClick}>
|
|
3393
3370
|
<span>${i}</span>
|
|
3394
3371
|
|
|
3395
|
-
${
|
|
3372
|
+
${n}
|
|
3396
3373
|
</button>
|
|
3397
3374
|
</div>
|
|
3398
3375
|
|
|
3399
3376
|
<div class="header-right">
|
|
3400
|
-
<button class="nav-button" @click=${()=>this.handleNavClick(-1)} ?disabled=${
|
|
3377
|
+
<button class="nav-button" @click=${()=>this.handleNavClick(-1)} ?disabled=${o}>
|
|
3401
3378
|
<randstad-icon name="arrow_left"></randstad-icon>
|
|
3402
3379
|
</button>
|
|
3403
3380
|
|
|
3404
|
-
<button class="nav-button" @click=${()=>this.handleNavClick(1)} ?disabled=${
|
|
3381
|
+
<button class="nav-button" @click=${()=>this.handleNavClick(1)} ?disabled=${r}>
|
|
3405
3382
|
<randstad-icon name="arrow_right"></randstad-icon>
|
|
3406
3383
|
</button>
|
|
3407
3384
|
</div>
|
|
3408
3385
|
</div>
|
|
3409
|
-
`}renderYearsView(){const
|
|
3386
|
+
`}renderYearsView(){const e=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,i=Array.from({length:21},((t,i)=>e+i)),o=this.selectedDate?this.selectedDate.getFullYear():null,r=(new Date).getFullYear(),n=this.minDate?this.minDate.getFullYear():-1/0,a=this.maxDate?this.maxDate.getFullYear():1/0;return t`
|
|
3410
3387
|
<div class="year-grid">
|
|
3411
|
-
${i.map((t
|
|
3388
|
+
${i.map((e=>t`
|
|
3412
3389
|
<button
|
|
3413
|
-
class="${"year-button "+(
|
|
3414
|
-
@click=${()=>this.handleYearSelect(
|
|
3415
|
-
?disabled=${
|
|
3390
|
+
class="${"year-button "+(e===o?"selected":e===r?"current":"")}"
|
|
3391
|
+
@click=${()=>this.handleYearSelect(e)}
|
|
3392
|
+
?disabled=${e<n||e>a}
|
|
3416
3393
|
>
|
|
3417
|
-
${
|
|
3394
|
+
${e}
|
|
3418
3395
|
</button>
|
|
3419
3396
|
`))}
|
|
3420
3397
|
</div>
|
|
3421
|
-
`}renderMonthsView(){const
|
|
3398
|
+
`}renderMonthsView(){const e=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return t`
|
|
3422
3399
|
<div class="month-grid">
|
|
3423
|
-
${
|
|
3400
|
+
${e.map(((e,n)=>{const a=n===o,s=n===i&&this.selectedDate&&li(this.viewDate,this.selectedDate),d=n===i&&this.selectedDate&&!li(this.viewDate,this.selectedDate);let l=!1;this.minDate&&r===this.minDate.getFullYear()&&(l=n<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(l=l||n>this.maxDate.getMonth());return t`
|
|
3424
3401
|
<button
|
|
3425
|
-
class="${"month-button "+(
|
|
3426
|
-
?disabled=${
|
|
3427
|
-
@click=${()=>this.handleMonthSelect(
|
|
3402
|
+
class="${"month-button "+(s?"selected":d?"secondary-selected":a?"current":"")}"
|
|
3403
|
+
?disabled=${l}
|
|
3404
|
+
@click=${()=>this.handleMonthSelect(n)}
|
|
3428
3405
|
>
|
|
3429
|
-
${
|
|
3406
|
+
${e}
|
|
3430
3407
|
</button>
|
|
3431
3408
|
`}))}
|
|
3432
3409
|
</div>
|
|
3433
|
-
`}renderDayView(){const
|
|
3410
|
+
`}renderDayView(){const e=ni(this.viewDate),i=xt(this.viewDate),o=dt(i,r?.in).getDay();var r;const n=Array.from({length:0===o?6:o-1},(()=>null)),a=Array.from({length:e},((e,t)=>function(e,t,i){const o=dt(e,i?.in);return o.setDate(t),o}(i,t+1))),s=this.getShortWeekdays();return t`
|
|
3434
3411
|
<div class="weekdays">
|
|
3435
|
-
${
|
|
3412
|
+
${s.map((e=>t`<div>${e}</div>`))}
|
|
3436
3413
|
</div>
|
|
3437
3414
|
|
|
3438
3415
|
<div class="days-grid">
|
|
3439
|
-
${
|
|
3440
|
-
${
|
|
3416
|
+
${n.map((()=>t`<div></div>`))}
|
|
3417
|
+
${a.map((e=>{const i=yt(e),o=this.selectedDate?yt(this.selectedDate):null,r=this.minDate&&si(i,yt(this.minDate))||this.maxDate&&ai(i,yt(this.maxDate)),n=ci(i),a=o&&ri(i)===ri(o),s=a&&o&&di(i,o)&&li(i,o);return t`
|
|
3441
3418
|
<button
|
|
3442
|
-
class="${`day ${
|
|
3443
|
-
?disabled=${
|
|
3444
|
-
@click=${()=>this.handleDayClick(
|
|
3419
|
+
class="${`day ${n?"today":""} ${s?"selected":a&&!s?"secondary-selected":""}`}"
|
|
3420
|
+
?disabled=${r}
|
|
3421
|
+
@click=${()=>this.handleDayClick(e)}
|
|
3445
3422
|
>
|
|
3446
|
-
${
|
|
3423
|
+
${ii(e,"d")}
|
|
3447
3424
|
</button>
|
|
3448
3425
|
`}))}
|
|
3449
3426
|
</div>
|
|
3450
|
-
`}render(){let
|
|
3427
|
+
`}render(){let e;e="days"===this.currentView?this.renderDayView():"months"===this.currentView?this.renderMonthsView():this.renderYearsView();const i=t`${this.renderHeader()} <div class="weekdays-separator"></div> ${e}`;return this.isMobile?t`
|
|
3451
3428
|
<div
|
|
3452
3429
|
class="mobile-backdrop"
|
|
3453
3430
|
@click=${()=>this.dispatchEvent(new CustomEvent("close"))}
|
|
3454
3431
|
>
|
|
3455
|
-
<div class="mobile-modal" @click=${
|
|
3432
|
+
<div class="mobile-modal" @click=${e=>e.stopPropagation()}>
|
|
3456
3433
|
${i}
|
|
3457
3434
|
</div>
|
|
3458
3435
|
</div>
|
|
3459
|
-
`:
|
|
3436
|
+
`:t`
|
|
3460
3437
|
<div class="calendar-container" style="width: ${this.calendarWidth}px;">
|
|
3461
3438
|
${i}
|
|
3462
3439
|
</div>
|
|
3463
|
-
`}};
|
|
3464
|
-
${X}
|
|
3440
|
+
`}};a([P({type:Object}),s("design:type",Object)],pi.prototype,"selectedDate",void 0),a([P({type:Object}),s("design:type",Date)],pi.prototype,"viewDate",void 0),a([P({type:Boolean}),s("design:type",Object)],pi.prototype,"isMobile",void 0),a([P({type:Number}),s("design:type",Number)],pi.prototype,"calendarWidth",void 0),a([P({type:Object}),s("design:type",Object)],pi.prototype,"minDate",void 0),a([P({type:Object}),s("design:type",Object)],pi.prototype,"maxDate",void 0),a([z(),s("design:type",String)],pi.prototype,"currentView",void 0),pi=a([d("calendar-overlay")],pi);let hi=class extends L{constructor(){super(...arguments),this.isRenderClearButton=!0,this.eighteenOrOlder=!1,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=e=>{e.composedPath().includes(this)||(this.isOpen=!1)}}static{this.styles=o`
|
|
3465
3441
|
${K}
|
|
3466
|
-
${
|
|
3442
|
+
${Q}
|
|
3443
|
+
${X}
|
|
3467
3444
|
|
|
3468
3445
|
/* Si se proporciona una propiedad width (ej. width="600px"), se usa ese valor. */
|
|
3469
3446
|
:host([width]) {
|
|
@@ -3523,7 +3500,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3523
3500
|
}
|
|
3524
3501
|
|
|
3525
3502
|
.date-input {
|
|
3526
|
-
${
|
|
3503
|
+
${R}
|
|
3527
3504
|
flex-grow: 1;
|
|
3528
3505
|
border: none;
|
|
3529
3506
|
outline: none;
|
|
@@ -3561,12 +3538,12 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3561
3538
|
.calendar-button randstad-icon {
|
|
3562
3539
|
font-size: 18px;
|
|
3563
3540
|
}
|
|
3564
|
-
`}setMessageErrorFormatInvalid(){return"formato de fecha inválido, se esperaba 'dd-MM-yyyy'"}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(
|
|
3565
|
-
<div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""} ${
|
|
3541
|
+
`}setMessageErrorFormatInvalid(){return"formato de fecha inválido, se esperaba 'dd-MM-yyyy'"}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}updated(e){e.has("value")&&this._syncValue(this.value),(e.has("isOpen")||e.has("value"))&&this.setInitialWidth(),super.updated(e)}setInitialWidth(){this.inputContainer&&(this.calendarWidth=this.inputContainer.getBoundingClientRect().width)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(e){const t=e.target;this.inputValue=t.value,this._parseAndValidateDate(t.value,!0)}handleCalendarButtonClick(e){this.disabled||(e.stopPropagation(),this.isOpen=!this.isOpen,this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.requestUpdate())}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(e){const t=e.detail.date;if(!t)return;if(this._validateDate(t)){this.selectedDate=t,this.viewDate=t;const e=ii(t,"dd-MM-yyyy");this.inputValue=e,this.closeOverlay(e)}else{const e=ii(t,"dd-MM-yyyy");this.inputValue=e,this.selectedDate=null,this.closeOverlay(null)}}handleViewDateChange(e){this.viewDate=e.detail.date}closeOverlay(e){this.value=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:e}})),this.isOpen=!1}_syncValue(e){if(""===e||null===e)return void(this.error||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null));const t=this._parseDate(e);t&&this._validateDate(t)?(this.selectedDate=t,this.viewDate=t,this.error=!1,this.errorMessage=null,this.value=ii(t,"dd-MM-yyyy"),this.inputValue=this.value):this.selectedDate=t}_validateDate(e){if(!e)return!1;if(this.error=!1,this.errorMessage=null,this.eighteenOrOlder){const t=function(e,t,i){return vt(e,-18,i)}(new Date);if(ai(e,t))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}if(!this._isWithinBounds(e)){const e=this._getValidDateRange();return this.error=!0,this.errorMessage=`la fecha debe estar entre ${e?.minDate?ii(e.minDate,"dd-MM-yyyy"):""} y ${e?.maxDate?ii(e.maxDate,"dd-MM-yyyy"):""}.`,!1}return!0}_parseAndValidateDate(e,t){if(this.disabled)return;if(""===e||null===e)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(t&&this.closeOverlay(null));const i=this._parseDate(e);if(i){this._validateDate(i)?(this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,t&&this.closeOverlay(ii(i,"dd-MM-yyyy"))):(this.error=!0,this.selectedDate=null,t&&this.closeOverlay(null))}else this.error=!0,this.errorMessage=this.setMessageErrorFormatInvalid(),this.selectedDate=null,t&&this.closeOverlay(null)}_parseDate(e){const t=e.split("-").map(Number);if(3===t.length){const[i,o,r]=t;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const t=new Date(r,o-1,i,12);if(ft(t)&&ii(t,"dd-MM-yyyy")===e)return t}}const i=e.split("-").map(Number);if(3===i.length){const[t,o,r]=i;if(t&&o&&r&&o>=1&&o<=12&&t>1e3){const i=new Date(t,o-1,r,12);if(ft(i)&&ii(i,"yyyy-MM-dd")===e)return i}}return null}_parseDateString(e){if(!e)return null;const t=e.split("-").map(Number);if(3===t.length&&!isNaN(t[0])&&!isNaN(t[1])&&!isNaN(t[2])){return new Date(t[0],t[1]-1,t[2],12)}return null}_getValidDateRange(){const e=this._parseDateString(this.minDate),t=this._parseDateString(this.maxDate);return e||t?e&&t&&ai(e,t)?null:{minDate:e,maxDate:t}:{minDate:null,maxDate:null}}_isWithinBounds(e){const t=this._getValidDateRange();return!t||(!t.minDate||!si(e,t.minDate))&&(!t.maxDate||!ai(e,t.maxDate))}render(){const e=n({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled}),o=`width: ${this.width||"100%"};`,r=this._getValidDateRange();return t`
|
|
3542
|
+
<div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""} ${o}">
|
|
3566
3543
|
${this.renderLabelContainer()}
|
|
3567
3544
|
|
|
3568
3545
|
<div class="input-container">
|
|
3569
|
-
<div class="${
|
|
3546
|
+
<div class="${e}" style="width: 100%">
|
|
3570
3547
|
<input
|
|
3571
3548
|
type="text"
|
|
3572
3549
|
class="date-input"
|
|
@@ -3576,7 +3553,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3576
3553
|
@input=${this.handleInput}
|
|
3577
3554
|
/>
|
|
3578
3555
|
|
|
3579
|
-
${this.isRenderClearButton&&this.selectedDate&&!this.disabled?
|
|
3556
|
+
${this.isRenderClearButton&&this.selectedDate&&!this.disabled?t`
|
|
3580
3557
|
<button
|
|
3581
3558
|
class="icon-button clear-button"
|
|
3582
3559
|
@click=${this.handleClearDate}
|
|
@@ -3593,14 +3570,14 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3593
3570
|
</button>
|
|
3594
3571
|
</div>
|
|
3595
3572
|
|
|
3596
|
-
${this.isOpen?
|
|
3573
|
+
${this.isOpen?t`
|
|
3597
3574
|
<calendar-overlay
|
|
3598
3575
|
.isMobile=${this.isMobile}
|
|
3599
3576
|
.selectedDate=${this.selectedDate}
|
|
3600
3577
|
.viewDate=${this.viewDate}
|
|
3601
3578
|
.calendarWidth=${this.calendarWidth}
|
|
3602
|
-
.minDate=${
|
|
3603
|
-
.maxDate=${
|
|
3579
|
+
.minDate=${r?.minDate}
|
|
3580
|
+
.maxDate=${r?.maxDate}
|
|
3604
3581
|
@close=${()=>this.isOpen=!1}
|
|
3605
3582
|
@view-date-change=${this.handleViewDateChange}
|
|
3606
3583
|
@date-selected=${this.handleDateSelect}
|
|
@@ -3613,11 +3590,11 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3613
3590
|
|
|
3614
3591
|
${this.renderHelper()}
|
|
3615
3592
|
</div>
|
|
3616
|
-
`}};
|
|
3617
|
-
${X}
|
|
3593
|
+
`}};a([P({type:String}),s("design:type",String)],hi.prototype,"width",void 0),a([P({type:Boolean}),s("design:type",Object)],hi.prototype,"isRenderClearButton",void 0),a([P({type:String}),s("design:type",String)],hi.prototype,"minDate",void 0),a([P({type:String}),s("design:type",String)],hi.prototype,"maxDate",void 0),a([P({type:Boolean}),s("design:type",Object)],hi.prototype,"eighteenOrOlder",void 0),a([z(),s("design:type",Object)],hi.prototype,"isOpen",void 0),a([z(),s("design:type",Object)],hi.prototype,"selectedDate",void 0),a([z(),s("design:type",Date)],hi.prototype,"viewDate",void 0),a([z(),s("design:type",Object)],hi.prototype,"isMobile",void 0),a([z(),s("design:type",Number)],hi.prototype,"calendarWidth",void 0),a([z(),s("design:type",Object)],hi.prototype,"inputValue",void 0),a([A(".input-container"),s("design:type",HTMLDivElement)],hi.prototype,"inputContainer",void 0),hi=a([d("datepicker-component")],hi);let ui=class extends et{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=5242880,this.buttonText="Agregar archivo"}static{this.styles=o`
|
|
3618
3594
|
${K}
|
|
3619
|
-
${
|
|
3620
|
-
${
|
|
3595
|
+
${Q}
|
|
3596
|
+
${X}
|
|
3597
|
+
${tt}
|
|
3621
3598
|
|
|
3622
3599
|
:host([width]) {
|
|
3623
3600
|
width: var( --upload-file-width );
|
|
@@ -3656,7 +3633,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3656
3633
|
}
|
|
3657
3634
|
|
|
3658
3635
|
.file-name {
|
|
3659
|
-
${
|
|
3636
|
+
${B};
|
|
3660
3637
|
text-align: right;
|
|
3661
3638
|
color: var( --secondary-color-40 );
|
|
3662
3639
|
vertical-align: middle;
|
|
@@ -3674,25 +3651,25 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3674
3651
|
.progress-bar {
|
|
3675
3652
|
width: 100%;
|
|
3676
3653
|
}
|
|
3677
|
-
`}getFileConfig(){return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`,errorMessageSize:`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}MB`,typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,
|
|
3654
|
+
`}getFileConfig(){return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`,errorMessageSize:`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}MB`,typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,ot)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(e){super.updated(e),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(e){this.baseOnFileInputChange(e,this.getFileConfig())}render(){const e=this.files.length>=this.maxFiles,o=this.disabled||e,r=t`
|
|
3678
3655
|
<randstad-button
|
|
3679
3656
|
.label=${this.buttonText}
|
|
3680
3657
|
.variant=${"button-primary"}
|
|
3681
|
-
?disabled=${
|
|
3658
|
+
?disabled=${o}
|
|
3682
3659
|
@click=${()=>this.fileInput?.click()}
|
|
3683
3660
|
>
|
|
3684
3661
|
</randstad-button>
|
|
3685
|
-
`;return
|
|
3662
|
+
`;return t`
|
|
3686
3663
|
<div class="file-container" style="${this.labelColor?`--label-color: ${this.labelColor};`:""}">
|
|
3687
3664
|
${this.renderLabelContainer()}
|
|
3688
3665
|
|
|
3689
|
-
${this.renderLoadingContainer(
|
|
3666
|
+
${this.renderLoadingContainer(r)}
|
|
3690
3667
|
|
|
3691
3668
|
<input
|
|
3692
3669
|
type="file"
|
|
3693
3670
|
accept=${this.acceptedFileTypes.join(",")}
|
|
3694
3671
|
?multiple=${this.maxFiles>1}
|
|
3695
|
-
?disabled=${
|
|
3672
|
+
?disabled=${o}
|
|
3696
3673
|
@change="${this.onFileInputChange}"
|
|
3697
3674
|
/>
|
|
3698
3675
|
|
|
@@ -3700,12 +3677,12 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3700
3677
|
|
|
3701
3678
|
${this.renderHelper()}
|
|
3702
3679
|
|
|
3703
|
-
${this.files.length>0?
|
|
3680
|
+
${this.files.length>0?t`
|
|
3704
3681
|
<div class="file-list-container">
|
|
3705
3682
|
<div class="file-list">
|
|
3706
|
-
${this.files.map(((
|
|
3683
|
+
${this.files.map(((e,i)=>t`
|
|
3707
3684
|
<div class="file-item">
|
|
3708
|
-
<span class="file-name">${
|
|
3685
|
+
<span class="file-name">${e.name}</span>
|
|
3709
3686
|
|
|
3710
3687
|
<randstad-button
|
|
3711
3688
|
class="remove-file-button"
|
|
@@ -3721,7 +3698,7 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3721
3698
|
</div>
|
|
3722
3699
|
`:i}
|
|
3723
3700
|
</div>
|
|
3724
|
-
`}};
|
|
3701
|
+
`}};a([P({type:String}),s("design:type",String)],ui.prototype,"width",void 0),a([P({type:Number}),s("design:type",Object)],ui.prototype,"maxFiles",void 0),a([P({type:Array}),s("design:type",Array)],ui.prototype,"acceptedFileTypes",void 0),a([P({type:Number}),s("design:type",Object)],ui.prototype,"maxFileSize",void 0),a([P({type:String}),s("design:type",Object)],ui.prototype,"buttonText",void 0),ui=a([d("upload-file")],ui);let bi=class extends e{constructor(){super(...arguments),this.cards=[],this.isDown=!1,this.isDragging=!1,this.prevX=0}static{this.styles=o`
|
|
3725
3702
|
:host {
|
|
3726
3703
|
display: block;
|
|
3727
3704
|
width: 100%;
|
|
@@ -3758,22 +3735,22 @@ const Fe=r`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
3758
3735
|
gap: 40px;
|
|
3759
3736
|
}
|
|
3760
3737
|
}
|
|
3761
|
-
`}disconnectedCallback(){super.disconnectedCallback(),this.baseAddListeners()}get slider(){return this.shadowRoot.querySelector(".carousel-wrapper")}handleMouseDown(
|
|
3738
|
+
`}disconnectedCallback(){super.disconnectedCallback(),this.baseAddListeners()}get slider(){return this.shadowRoot.querySelector(".carousel-wrapper")}handleMouseDown(e){this.slider&&0===e.button&&(this.isDown=!0,this.isDragging=!1,this.slider.classList.add("active"),this.prevX=e.pageX)}handleMouseLeave(){this.slider&&(this.isDown=!1,this.isDragging=!1,this.slider.classList.remove("active"))}handleMouseUp(){if(this.slider){if(this.isDown=!1,this.slider.classList.remove("active"),this.isDragging){const e=this.slider.querySelector(".carousel-card-item").getBoundingClientRect().width+24,t=this.slider.scrollLeft,i=Math.round(t/e)*e;this.slider.scrollTo({left:i,behavior:"smooth"})}this.isDragging=!1}}handleMouseMove(e){if(e.preventDefault(),!this.isDown||!this.slider)return;this.isDragging=!0;const t=e.pageX-this.prevX;this.slider.scrollLeft-=1.5*t,this.prevX=e.pageX}firstUpdated(){const e=this.slider;e&&(e.addEventListener("mousedown",this.handleMouseDown.bind(this)),e.addEventListener("mouseleave",this.handleMouseLeave.bind(this)),e.addEventListener("mouseup",this.handleMouseUp.bind(this)),e.addEventListener("mousemove",this.handleMouseMove.bind(this)),e.addEventListener("dragstart",(e=>e.preventDefault())))}baseAddListeners(){const e=this.slider;e&&(e.addEventListener("mousedown",this.handleMouseDown.bind(this)),e.addEventListener("mouseleave",this.handleMouseLeave.bind(this)),e.addEventListener("mouseup",this.handleMouseUp.bind(this)),e.addEventListener("mousemove",this.handleMouseMove.bind(this)),e.addEventListener("dragstart",(e=>e.preventDefault())))}render(){return t`
|
|
3762
3739
|
<div class="carousel-wrapper">
|
|
3763
|
-
${this.cards.map((t
|
|
3740
|
+
${this.cards.map((e=>t`
|
|
3764
3741
|
<div class="carousel-card-item">
|
|
3765
3742
|
<carousel-card
|
|
3766
|
-
img=${
|
|
3767
|
-
name=${
|
|
3768
|
-
title=${
|
|
3769
|
-
description=${
|
|
3770
|
-
buttonLabel=${
|
|
3771
|
-
cardId=${
|
|
3772
|
-
.onClick=${
|
|
3743
|
+
img=${e.img}
|
|
3744
|
+
name=${e.name}
|
|
3745
|
+
title=${e.title}
|
|
3746
|
+
description=${e.description}
|
|
3747
|
+
buttonLabel=${e.buttonLabel}
|
|
3748
|
+
cardId=${e.cardId}
|
|
3749
|
+
.onClick=${e.onClick}
|
|
3773
3750
|
>
|
|
3774
3751
|
</carousel-card>
|
|
3775
3752
|
</div>
|
|
3776
3753
|
`))}
|
|
3777
3754
|
</div>
|
|
3778
|
-
`}};
|
|
3755
|
+
`}};a([P({type:Array}),s("design:type",Array)],bi.prototype,"cards",void 0),bi=a([d("carousel-component")],bi);export{Y as AccordionList,q as AccordionPanel,L as BaseControl,pi as CalendarOverlay,bi as Carousel,H as CarouselCard,G as Checkbox,oe as CustomModal,re as CustomPopup,Ge as CustomRadio,Je as CustomStepper,hi as DatePickerComponent,Xe as FilterableSelect,ee as FormGroup,te as IconComponent,ne as ProgressCircle,W as RandstadButton,Z as RandstadForm,ie as RandstadNotice,Ze as TabsBar,ui as UploadFile,rt as UploadImage,J as scrollbarStyles};
|
|
3779
3756
|
//# sourceMappingURL=index.js.map
|