@randstad-uca/design-system 1.0.94 → 1.0.96
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/Checkbox.d.ts +2 -0
- package/dist/components/SocialMediaInput.d.ts +125 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +246 -68
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/stories/Checkbox.stories.d.ts +1 -0
- package/dist/stories/SocialMediaInput.stories.d.ts +31 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ const M={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C},T=(t=M,e,
|
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
function
|
|
39
|
+
function _(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let P=class extends t{constructor(){super(...arguments),this.label="",this.placeholder="",this.labelColor="",this.value="",this.required=!1,this.optional=!1,this.disabled=!1,this.error=!1,this.errorMessage=null,this.helper=null,this.helperAlign="left",this.helpClickable=!1,this._tooltipOpen=!1,this._lastClickTime=0,this._boundCloseTooltip=this._closeTooltip.bind(this)}_handleTooltipClick(t){t.stopPropagation(),t.preventDefault(),this._lastClickTime=Date.now(),this._tooltipOpen=!this._tooltipOpen}_closeTooltip(){this.helpClickable&&this._tooltipOpen&&Date.now()-this._lastClickTime>50&&(this._tooltipOpen=!1)}updated(t){super.updated(t),t.has("helpClickable")&&(this.helpClickable?document.addEventListener("click",this._boundCloseTooltip):document.removeEventListener("click",this._boundCloseTooltip))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._boundCloseTooltip)}renderLabelContainer(){return e`
|
|
40
40
|
${this.label?e`
|
|
41
41
|
<div class="label-container">
|
|
42
42
|
${this.renderLabel()}
|
|
@@ -85,19 +85,19 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
85
85
|
${this.helper}
|
|
86
86
|
</p>
|
|
87
87
|
`:i}
|
|
88
|
-
`}};s([L({type:String}),n("design:type",Object)],P.prototype,"label",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"placeholder",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"labelColor",void 0),s([L(),n("design:type",Object)],P.prototype,"value",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"required",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"optional",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"disabled",void 0),s([L({type:Boolean,reflect:!0}),n("design:type",Object)],P.prototype,"error",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"errorMessage",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"helper",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helperAlign",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"help",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"helpClickable",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helpLink",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helpLinkTooltipMessage",void 0),s([B(),n("design:type",Object)],P.prototype,"_tooltipOpen",void 0),P=s([a("base-control")],P);const
|
|
88
|
+
`}};s([L({type:String}),n("design:type",Object)],P.prototype,"label",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"placeholder",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"labelColor",void 0),s([L(),n("design:type",Object)],P.prototype,"value",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"required",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"optional",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"disabled",void 0),s([L({type:Boolean,reflect:!0}),n("design:type",Object)],P.prototype,"error",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"errorMessage",void 0),s([L({type:String}),n("design:type",Object)],P.prototype,"helper",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helperAlign",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"help",void 0),s([L({type:Boolean}),n("design:type",Object)],P.prototype,"helpClickable",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helpLink",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helpLinkTooltipMessage",void 0),s([B(),n("design:type",Object)],P.prototype,"_tooltipOpen",void 0),P=s([a("base-control")],P);const j=o`
|
|
89
89
|
font-family: 'Graphik', sans-serif;
|
|
90
90
|
font-weight: 400;
|
|
91
91
|
font-size: 12px;
|
|
92
92
|
line-height: 15px;
|
|
93
93
|
letter-spacing: 0%;
|
|
94
|
-
`,
|
|
94
|
+
`,R=o`
|
|
95
95
|
font-family: 'Graphik', sans-serif;
|
|
96
96
|
font-weight: 400;
|
|
97
97
|
font-size: 14px;
|
|
98
98
|
line-height: 25px;
|
|
99
99
|
letter-spacing: 0%;
|
|
100
|
-
`,
|
|
100
|
+
`,A=o`
|
|
101
101
|
font-family: 'Graphik', sans-serif;
|
|
102
102
|
font-weight: 400;
|
|
103
103
|
font-size: 16px;
|
|
@@ -123,14 +123,14 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
123
123
|
line-height: 30px;
|
|
124
124
|
letter-spacing: -1%;
|
|
125
125
|
vertical-align: middle;
|
|
126
|
-
`,
|
|
126
|
+
`,V=o`
|
|
127
127
|
font-family: 'Graphik', sans-serif;
|
|
128
128
|
font-weight: 400;
|
|
129
129
|
font-size: 26px;
|
|
130
130
|
line-height: 30px;
|
|
131
131
|
letter-spacing: -1%;
|
|
132
132
|
vertical-align: middle;
|
|
133
|
-
`,
|
|
133
|
+
`,I="(min-width: 501px)";let q=class extends t{constructor(){super(...arguments),this.title="",this.isOpen=!1,this.isDesktop=window.matchMedia(I).matches,this.handleMediaQueryChange=t=>{this.isDesktop=t.matches}}static{this.styles=o`
|
|
134
134
|
:host {
|
|
135
135
|
display: flex;
|
|
136
136
|
flex-direction: column;
|
|
@@ -149,7 +149,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.title {
|
|
152
|
-
${
|
|
152
|
+
${A}
|
|
153
153
|
color: var( --secondary-color );
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -225,7 +225,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
225
225
|
max-height: unset;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
`}connectedCallback(){super.connectedCallback(),this.mediaQueryList=window.matchMedia(
|
|
228
|
+
`}connectedCallback(){super.connectedCallback(),this.mediaQueryList=window.matchMedia(I),this.mediaQueryList.addEventListener("change",this.handleMediaQueryChange)}disconnectedCallback(){super.disconnectedCallback(),this.mediaQueryList.removeEventListener("change",this.handleMediaQueryChange)}toggle(){this.isOpen=!this.isOpen}render(){const t=e`
|
|
229
229
|
<randstad-icon
|
|
230
230
|
name="${this.isOpen?"arrow_up":"arrow_down"}"
|
|
231
231
|
size="24"
|
|
@@ -294,7 +294,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
.button-md {
|
|
297
|
-
${
|
|
297
|
+
${A}
|
|
298
298
|
min-height: 57px;
|
|
299
299
|
}
|
|
300
300
|
|
|
@@ -698,7 +698,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
.description {
|
|
701
|
-
${
|
|
701
|
+
${R}
|
|
702
702
|
margin: 0;
|
|
703
703
|
}
|
|
704
704
|
|
|
@@ -749,14 +749,14 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
749
749
|
</div>
|
|
750
750
|
</div>
|
|
751
751
|
</div>
|
|
752
|
-
`}};s([L({type:String}),n("design:type",Object)],Y.prototype,"img",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"name",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"title",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"description",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"buttonLabel",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"cardId",void 0),s([L({type:Object}),n("design:type",Object)],Y.prototype,"onClick",void 0),s([L({type:String}),n("design:type",String)],Y.prototype,"width",void 0),s([L({type:String}),n("design:type",String)],Y.prototype,"height",void 0),Y=s([a("carousel-card")],Y);let G=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1}static{this.styles=o`
|
|
752
|
+
`}};s([L({type:String}),n("design:type",Object)],Y.prototype,"img",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"name",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"title",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"description",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"buttonLabel",void 0),s([L({type:String}),n("design:type",Object)],Y.prototype,"cardId",void 0),s([L({type:Object}),n("design:type",Object)],Y.prototype,"onClick",void 0),s([L({type:String}),n("design:type",String)],Y.prototype,"width",void 0),s([L({type:String}),n("design:type",String)],Y.prototype,"height",void 0),Y=s([a("carousel-card")],Y);let G=class extends t{constructor(){super(...arguments),this.checked=!1,this.error=!1,this.disabled=!1,this.checkedColor="var(--primary-color)",this.checkedBgColor="transparent"}static{this.styles=o`
|
|
753
753
|
:host {
|
|
754
754
|
display: block;
|
|
755
755
|
max-width: 100%;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
label {
|
|
759
|
-
${
|
|
759
|
+
${R}
|
|
760
760
|
display: flex;
|
|
761
761
|
align-items: center;
|
|
762
762
|
gap: 8px;
|
|
@@ -771,11 +771,13 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
771
771
|
border: 1px solid var(--secondary-color-20);
|
|
772
772
|
appearance: none;
|
|
773
773
|
position: relative;
|
|
774
|
+
background-color: var(--_initial-bg, transparent);
|
|
775
|
+
transition: background-color 0.2s ease;
|
|
774
776
|
}
|
|
775
777
|
|
|
776
778
|
input[type="checkbox"]:checked {
|
|
777
|
-
background-color: var(--primary-color);
|
|
778
|
-
border: 1px solid var(--primary-color);
|
|
779
|
+
background-color: var(--_checked-bg, var(--primary-color));
|
|
780
|
+
border: 1px solid var(--_checked-bg, var(--primary-color));
|
|
779
781
|
}
|
|
780
782
|
|
|
781
783
|
input[type="checkbox"]:checked::after {
|
|
@@ -843,7 +845,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
843
845
|
}
|
|
844
846
|
|
|
845
847
|
input[type="checkbox"]:disabled {
|
|
846
|
-
background-color: var(--secondary-color-10);
|
|
848
|
+
background-color: var(--secondary-color-10)!important;
|
|
847
849
|
border-color: var(--secondary-color-20);
|
|
848
850
|
color: #9FA3B3;
|
|
849
851
|
cursor: default;
|
|
@@ -858,8 +860,8 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
858
860
|
outline: none;
|
|
859
861
|
box-shadow: 0 0 0 2px rgb( 0, 215, 255 ), 0 0 0 4px var( --secondary-color-10 );
|
|
860
862
|
}
|
|
861
|
-
`}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t;"Enter"!==e&&" "!==e||(t.preventDefault(),this.checked=!this.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 e`
|
|
862
|
-
<label class="${this.error?"error":""} ${this.disabled?"disabled":""}">
|
|
863
|
+
`}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("click",{bubbles:!0,composed:!0}))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t;"Enter"!==e&&" "!==e||(t.preventDefault(),this.checked=!this.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(){const t=`\n --_checked-bg: ${this.checkedColor}; \n --_initial-bg: ${this.checkedBgColor};\n `;return e`
|
|
864
|
+
<label class="${this.error?"error":""} ${this.disabled?"disabled":""}" style="${t}">
|
|
863
865
|
<input
|
|
864
866
|
type="checkbox"
|
|
865
867
|
role="checkbox"
|
|
@@ -867,7 +869,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
867
869
|
.checked=${this.checked}
|
|
868
870
|
?disabled=${this.disabled}
|
|
869
871
|
@change=${this.toggleCheck}
|
|
870
|
-
@keydown=${this.handleKeyDown}
|
|
872
|
+
@keydown=${this.handleKeyDown}
|
|
871
873
|
@focus=${()=>this.setAttribute("focused","")}
|
|
872
874
|
@blur=${()=>this.removeAttribute("focused")}
|
|
873
875
|
/>
|
|
@@ -875,7 +877,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
875
877
|
<slot></slot>
|
|
876
878
|
</span>
|
|
877
879
|
</label>
|
|
878
|
-
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],G.prototype,"checked",void 0),s([L({type:Boolean}),n("design:type",Object)],G.prototype,"error",void 0),s([L({type:Boolean}),n("design:type",Object)],G.prototype,"disabled",void 0),G=s([a("randstad-checkbox")],G);const K=o`
|
|
880
|
+
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],G.prototype,"checked",void 0),s([L({type:Boolean}),n("design:type",Object)],G.prototype,"error",void 0),s([L({type:Boolean}),n("design:type",Object)],G.prototype,"disabled",void 0),s([L({type:String}),n("design:type",Object)],G.prototype,"checkedColor",void 0),s([L({type:String}),n("design:type",Object)],G.prototype,"checkedBgColor",void 0),G=s([a("randstad-checkbox")],G);const K=o`
|
|
879
881
|
.label-container {
|
|
880
882
|
display: flex;
|
|
881
883
|
align-items: center;
|
|
@@ -960,7 +962,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
960
962
|
}
|
|
961
963
|
|
|
962
964
|
.form-label {
|
|
963
|
-
${
|
|
965
|
+
${A}
|
|
964
966
|
display: flex;
|
|
965
967
|
align-items: baseline;
|
|
966
968
|
flex-direction: row;
|
|
@@ -980,7 +982,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
980
982
|
}
|
|
981
983
|
|
|
982
984
|
.helper-description {
|
|
983
|
-
${
|
|
985
|
+
${A}
|
|
984
986
|
color: var( --secondary-color-40 );
|
|
985
987
|
margin: 0;
|
|
986
988
|
}
|
|
@@ -991,7 +993,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
991
993
|
|
|
992
994
|
.optional {
|
|
993
995
|
color: var( --secondary-color-60 );
|
|
994
|
-
${
|
|
996
|
+
${j}
|
|
995
997
|
}
|
|
996
998
|
|
|
997
999
|
randstad-icon {
|
|
@@ -1012,7 +1014,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1012
1014
|
}
|
|
1013
1015
|
|
|
1014
1016
|
.error-message {
|
|
1015
|
-
${
|
|
1017
|
+
${A}
|
|
1016
1018
|
color: var(--ui-negative, #E00F0F);
|
|
1017
1019
|
margin-top: 4px;
|
|
1018
1020
|
}
|
|
@@ -1147,7 +1149,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1147
1149
|
}
|
|
1148
1150
|
|
|
1149
1151
|
.link-text {
|
|
1150
|
-
${
|
|
1152
|
+
${A}
|
|
1151
1153
|
color: var(--primary-color);
|
|
1152
1154
|
cursor: pointer;
|
|
1153
1155
|
text-align: end;
|
|
@@ -1331,14 +1333,190 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1331
1333
|
<div class="custom-icon" style="color: ${this.color};">
|
|
1332
1334
|
${this.svgTemplate}
|
|
1333
1335
|
</div>
|
|
1334
|
-
`:e``}}s([L({type:String}),n("design:type",Object)],it.prototype,"name",void 0),s([L({type:String}),n("design:type",Object)],it.prototype,"size",void 0),s([L({type:String}),n("design:type",Object)],it.prototype,"color",void 0),s([B(),n("design:type",Object)],it.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",it);let ot=class extends
|
|
1336
|
+
`:e``}}s([L({type:String}),n("design:type",Object)],it.prototype,"name",void 0),s([L({type:String}),n("design:type",Object)],it.prototype,"size",void 0),s([L({type:String}),n("design:type",Object)],it.prototype,"color",void 0),s([B(),n("design:type",Object)],it.prototype,"svgTemplate",void 0),customElements.define("randstad-icon",it);let ot=class extends P{constructor(){super(...arguments),this.platform="linkedin",this.size="md",this.maxLength=100,this.isPasswordVisible=!1,this.customSanitizeRegex=void 0,this.customUrlValidationRegex=void 0,this.value="",this._inputValue="",this._showFormatError=!1,this._onChangeFn=()=>{},this._onTouchedFn=()=>{}}static{this.styles=[Z,o`
|
|
1337
|
+
${Q}
|
|
1338
|
+
${J}
|
|
1339
|
+
${K}
|
|
1340
|
+
|
|
1341
|
+
.linkedin-input-container {
|
|
1342
|
+
display: flex;
|
|
1343
|
+
flex-direction: column;
|
|
1344
|
+
gap: 8px;
|
|
1345
|
+
width: 100%;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.input-wrapper {
|
|
1349
|
+
display: flex;
|
|
1350
|
+
align-items: center;
|
|
1351
|
+
width: 100%;
|
|
1352
|
+
border: 1px solid var(--secondary-color-10);
|
|
1353
|
+
border-radius: 4px;
|
|
1354
|
+
background-color: white;
|
|
1355
|
+
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
1356
|
+
overflow: hidden;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.input-wrapper:focus-within {
|
|
1360
|
+
border: 2px solid var(--primary-color);
|
|
1361
|
+
background-color: #ffffff;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/* Hover normal (sin error ni foco) */
|
|
1365
|
+
.linkedin-input-container:not(.error):not(:focus-within) .input-wrapper:hover {
|
|
1366
|
+
box-shadow: 0px 0px 0px 4px var(--form-hover-shadow);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/* Hover con error (sin foco) */
|
|
1370
|
+
.linkedin-input-container.error:not(:focus-within) .input-wrapper:hover {
|
|
1371
|
+
box-shadow: 0px 0px 0px 4px var(--ui-negative-pink-shadow);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.input-wrapper.error {
|
|
1375
|
+
border-color: var(--ui-negative);
|
|
1376
|
+
bo
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.input-wrapper.disabled {
|
|
1380
|
+
background-color: var(--secondary-color-10);
|
|
1381
|
+
cursor: default;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.input-wrapper.disabled .fixed-prefix,
|
|
1385
|
+
.input-wrapper.disabled .user-input {
|
|
1386
|
+
color: #9FA3B3;
|
|
1387
|
+
cursor: default;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.fixed-prefix {
|
|
1391
|
+
${z}
|
|
1392
|
+
padding: 16px 0 16px 16px;
|
|
1393
|
+
color: var(--secondary-color);
|
|
1394
|
+
white-space: nowrap;
|
|
1395
|
+
user-select: none;
|
|
1396
|
+
background-color: transparent;
|
|
1397
|
+
border: none;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.divider {
|
|
1401
|
+
width: 1px;
|
|
1402
|
+
height: 24px;
|
|
1403
|
+
background-color: var(--secondary-color-10);
|
|
1404
|
+
margin: 0 4px;
|
|
1405
|
+
flex-shrink: 0;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
.user-input {
|
|
1409
|
+
${z}
|
|
1410
|
+
flex: 1;
|
|
1411
|
+
padding: 16px;
|
|
1412
|
+
padding-left: 8px;
|
|
1413
|
+
border: none;
|
|
1414
|
+
outline: none;
|
|
1415
|
+
background-color: transparent;
|
|
1416
|
+
color: var(--secondary-color);
|
|
1417
|
+
width: 100%;
|
|
1418
|
+
min-width: 0;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
.user-input::placeholder {
|
|
1422
|
+
color: #9FA3B3;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.user-input:disabled {
|
|
1426
|
+
cursor: default;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
.clean-button {
|
|
1430
|
+
position: relative;
|
|
1431
|
+
background: transparent;
|
|
1432
|
+
border: none;
|
|
1433
|
+
cursor: pointer;
|
|
1434
|
+
display: flex;
|
|
1435
|
+
align-items: center;
|
|
1436
|
+
justify-content: center;
|
|
1437
|
+
width: 40px;
|
|
1438
|
+
height: 40px;
|
|
1439
|
+
margin-right: 8px;
|
|
1440
|
+
flex-shrink: 0;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
.clean-button randstad-icon {
|
|
1444
|
+
width: 24px;
|
|
1445
|
+
height: 24px;
|
|
1446
|
+
color: var(--primary-color);
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
.clean-button:disabled {
|
|
1450
|
+
cursor: default;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.clean-button:disabled randstad-icon {
|
|
1454
|
+
color: #9FA3B3;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
/* Error state styles */
|
|
1458
|
+
.linkedin-input-container.error .input-wrapper {
|
|
1459
|
+
border-color: var(--ui-negative);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.linkedin-input-container.error .input-wrapper:focus-within {
|
|
1463
|
+
border-width: 1px;
|
|
1464
|
+
}
|
|
1465
|
+
`]}get _fixedPrefix(){switch(this.platform){case"facebook":return"facebook.com/";case"google":return"@gmail.com";default:return"linkedin.com/in/"}}get _isSuffix(){return"google"===this.platform}get _isPrefix(){return"linkedin"===this.platform||"facebook"===this.platform}get _placeholder(){return this.placeholder||"tu-usuario"}get _sanitizeRegex(){if(this.customSanitizeRegex)try{return new RegExp(this.customSanitizeRegex,"g")}catch{return/[^a-zA-Z0-9\-._]/g}return/[^a-zA-Z0-9\-._]/g}get _urlValidationRegex(){if(this.customUrlValidationRegex)try{return new RegExp(this.customUrlValidationRegex,"i")}catch{return null}switch(this.platform){case"linkedin":return/^(https?:\/\/)?(www\.)?linkedin\.com\/in\/([a-zA-Z0-9-]+)\/?.*$/i;case"facebook":return/^(https?:\/\/)?(www\.)?facebook\.com\/([a-zA-Z0-9.]+)\/?.*$/i;default:return null}}_handleInput(t){const e=t.target;let i=e.value,o=i.replace(this._sanitizeRegex,"");o.length>0&&/^[^a-zA-Z0-9\-]/.test(o)&&(o=o.substring(1)),i!==o&&(e.value=o,i=o);const r=this.maxLength-this._fixedPrefix.length;i.length>r&&(i=i.slice(0,r),e.value=i),this._inputValue=i,this._showFormatError=!1;const s=this._getFullValue(i);this.value=s,this.dispatchEvent(new CustomEvent("valueChanged",{detail:s})),this.dispatchEvent(new Event("input",{bubbles:!0})),this._onChangeFn(s),this.requestUpdate()}_handlePaste(t){if(t.preventDefault(),this.disabled)return;const e=t.clipboardData||window.clipboardData;if(!e)return;const i=e.getData("text/plain").trim();if(!i)return;let o="",r=!1;const s=this._urlValidationRegex;if(s){const t=i.match(s);t&&t[3]&&(o=t[3],r=!0)}const n=(t,e)=>{let i=t.replace(this._sanitizeRegex,"");const o=this.maxLength-this._fixedPrefix.length;i.length>o&&(i=i.slice(0,o)),this._inputValue=i,this._showFormatError=e;const r=this._getFullValue(i);this.value=r;const s=this.shadowRoot?.querySelector(".user-input");s&&(s.value=i),this.dispatchEvent(new CustomEvent("valueChanged",{detail:r})),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this._onChangeFn(r)};if(r)n(o,!1);else{const t=/[^a-zA-Z0-9\-._/:%]/,e=/^[^a-zA-Z0-9\-]/.test(i),o=t.test(i);n(i,e||o)}this.requestUpdate()}get _hasMinLengthError(){return this._inputValue.length>0&&this._inputValue.length<3}get _errorMessageToDisplay(){return this._hasMinLengthError?"debés ingresar como mínimo 3 caracteres":this._showFormatError?"La URL o el usuario no son válidos":this.errorMessage}get _hasError(){return this.error||this._hasMinLengthError||this._showFormatError}_getFullValue(t){if(!t)return"";switch(this.platform){case"facebook":return`https://www.facebook.com/${t}`;case"google":return`${t}@gmail.com`;default:return`https://www.linkedin.com/in/${t}`}}_extractUsernameFromValue(t){if(!t)return"";const e=this._urlValidationRegex;if(e){const i=t.match(e);if(i&&i[3])return i[3]}return t}updated(t){if(super.updated?.(t),t.has("value")&&this.value){const t=this._extractUsernameFromValue(this.value);if(t!==this._inputValue){this._inputValue=t;const e=this._getFullValue(t);setTimeout((()=>{this.dispatchEvent(new CustomEvent("valueChanged",{detail:e}))}),0),this.requestUpdate()}}}render(){const t=this.labelColor?`--label-color: ${this.labelColor};`:"";return e`
|
|
1466
|
+
<div
|
|
1467
|
+
class="linkedin-input-container ${this._hasError?"error":""} ${this.disabled?"disabled":""}"
|
|
1468
|
+
style="${t}"
|
|
1469
|
+
>
|
|
1470
|
+
${this.renderLabelContainer()}
|
|
1471
|
+
|
|
1472
|
+
<div class="input-wrapper ${this._hasError?"error":""} ${this.disabled?"disabled":""}">
|
|
1473
|
+
${this._isPrefix?e`
|
|
1474
|
+
<span class="fixed-prefix">${this._fixedPrefix}</span>
|
|
1475
|
+
<div class="divider"></div>
|
|
1476
|
+
`:i}
|
|
1477
|
+
|
|
1478
|
+
<input
|
|
1479
|
+
class="user-input"
|
|
1480
|
+
type="text"
|
|
1481
|
+
placeholder=${this._placeholder}
|
|
1482
|
+
.value=${this._inputValue}
|
|
1483
|
+
?disabled=${this.disabled}
|
|
1484
|
+
@input=${this._handleInput}
|
|
1485
|
+
@paste=${this._handlePaste}
|
|
1486
|
+
maxlength=${this.maxLength?this.maxLength-this._fixedPrefix.length:i}
|
|
1487
|
+
/>
|
|
1488
|
+
|
|
1489
|
+
${this._isSuffix?e`
|
|
1490
|
+
<div class="divider"></div>
|
|
1491
|
+
<span class="fixed-prefix">${this._fixedPrefix}</span>
|
|
1492
|
+
`:i}
|
|
1493
|
+
</div>
|
|
1494
|
+
|
|
1495
|
+
${this.renderHelper()}
|
|
1496
|
+
|
|
1497
|
+
${this._hasError?e`
|
|
1498
|
+
<div class="error-message">
|
|
1499
|
+
${this._errorMessageToDisplay}
|
|
1500
|
+
</div>
|
|
1501
|
+
`:i}
|
|
1502
|
+
</div>
|
|
1503
|
+
`}renderHelper(){const t=this.helper||"pegá la URL completa o sólo tu usuario",i=`text-align: ${this.helperAlign??"left"};`;return e`
|
|
1504
|
+
${e`
|
|
1505
|
+
<p
|
|
1506
|
+
class="helper-description"
|
|
1507
|
+
style=${i}
|
|
1508
|
+
>
|
|
1509
|
+
${t}
|
|
1510
|
+
</p>
|
|
1511
|
+
`}
|
|
1512
|
+
`}writeValue(t){if(t&&"string"==typeof t){const e=this._extractUsernameFromValue(t);e!==this._inputValue&&(this._inputValue=e,this.value=t,this.requestUpdate())}else t||(this._inputValue="",this.value="",this.requestUpdate())}registerOnChange(t){this._onChangeFn=t}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}};s([L({type:String}),n("design:type",String)],ot.prototype,"platform",void 0),s([L({type:String}),n("design:type",String)],ot.prototype,"size",void 0),s([L({type:Number}),n("design:type",Number)],ot.prototype,"maxLength",void 0),s([L({type:Boolean,reflect:!0}),n("design:type",Object)],ot.prototype,"isPasswordVisible",void 0),s([L({type:String}),n("design:type",Object)],ot.prototype,"customSanitizeRegex",void 0),s([L({type:String}),n("design:type",Object)],ot.prototype,"customUrlValidationRegex",void 0),s([L({type:String}),n("design:type",String)],ot.prototype,"value",void 0),s([B(),n("design:type",String)],ot.prototype,"_inputValue",void 0),s([B(),n("design:type",Boolean)],ot.prototype,"_showFormatError",void 0),ot=s([a("randstad-social-input")],ot);let rt=class extends t{constructor(){super(...arguments),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static{this.styles=o`
|
|
1335
1513
|
:host {
|
|
1336
1514
|
display: block;
|
|
1337
1515
|
font-family: 'Graphik', sans-serif;
|
|
1338
1516
|
}
|
|
1339
1517
|
|
|
1340
1518
|
.container {
|
|
1341
|
-
${
|
|
1519
|
+
${A}
|
|
1342
1520
|
display: flex;
|
|
1343
1521
|
align-items: flex-start;
|
|
1344
1522
|
gap: 8px;
|
|
@@ -1388,7 +1566,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1388
1566
|
|
|
1389
1567
|
<span class="message">${this.message}</span>
|
|
1390
1568
|
</div>
|
|
1391
|
-
`}};s([L({type:String}),n("design:type",String)],
|
|
1569
|
+
`}};s([L({type:String}),n("design:type",String)],rt.prototype,"type",void 0),s([L({type:String}),n("design:type",String)],rt.prototype,"icon",void 0),s([L({type:String}),n("design:type",String)],rt.prototype,"message",void 0),s([L({type:Boolean}),n("design:type",Boolean)],rt.prototype,"open",void 0),rt=s([a("randstad-notice")],rt);let st=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.modalHeight="80dvh",this.maxHeight="90dvh",this.hideFooter=!1,this.scrollable=!1,this.hasDropdownOpen=!1,this.hasCalendarOpen=!1,this.handleDropdownOpen=t=>{const e=t.detail;e&&"boolean"==typeof e.open?this.hasDropdownOpen=e.open:this.hasDropdownOpen=!0},this.handleCalendarOpen=t=>{const e=t.detail;e&&"boolean"==typeof e.open?this.hasCalendarOpen=e.open:this.hasCalendarOpen=!0},this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[Z,o`
|
|
1392
1570
|
${X}
|
|
1393
1571
|
|
|
1394
1572
|
:host {
|
|
@@ -1490,7 +1668,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1490
1668
|
}
|
|
1491
1669
|
|
|
1492
1670
|
.modal-title {
|
|
1493
|
-
${
|
|
1671
|
+
${V}
|
|
1494
1672
|
font-style: regular;
|
|
1495
1673
|
font-size: 24px;
|
|
1496
1674
|
line-height: 32px;
|
|
@@ -1500,7 +1678,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1500
1678
|
}
|
|
1501
1679
|
|
|
1502
1680
|
.modal-subtitle {
|
|
1503
|
-
${
|
|
1681
|
+
${A}
|
|
1504
1682
|
margin: 0;
|
|
1505
1683
|
color: var(--secondary-color-60);
|
|
1506
1684
|
}
|
|
@@ -1606,7 +1784,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1606
1784
|
`}
|
|
1607
1785
|
</div>
|
|
1608
1786
|
</div>
|
|
1609
|
-
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],
|
|
1787
|
+
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],st.prototype,"open",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"title",void 0),s([L({type:String}),n("design:type",String)],st.prototype,"subtitle",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"showNotice",void 0),s([L({type:String}),n("design:type",String)],st.prototype,"noticeType",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"noticeMessage",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"noticeIcon",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"showPrimaryButton",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"primaryButtonLabel",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"showSecondaryButton",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"secondaryButtonLabel",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"isFooterCustom",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"isPrimaryLoader",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"isPrimaryDisabled",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"modalWidth",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"modalHeight",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"maxHeight",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"hideFooter",void 0),s([B(),n("design:type",Object)],st.prototype,"scrollable",void 0),s([B(),n("design:type",Object)],st.prototype,"hasDropdownOpen",void 0),s([B(),n("design:type",Object)],st.prototype,"hasCalendarOpen",void 0),st=s([a("custom-modal")],st);let nt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="",this.description="",this.width="400px",this.height="",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.closeOnOutsideClick=!1,this.stackedActions=[],this._onBackgroundClick=t=>{if(!this.closeOnOutsideClick)return;const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
|
|
1610
1788
|
:host {
|
|
1611
1789
|
display: none;
|
|
1612
1790
|
position: fixed;
|
|
@@ -1678,7 +1856,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1678
1856
|
}
|
|
1679
1857
|
|
|
1680
1858
|
.popup-description {
|
|
1681
|
-
${
|
|
1859
|
+
${A}
|
|
1682
1860
|
margin: 0;
|
|
1683
1861
|
color: var(--secondary-color-60);
|
|
1684
1862
|
}
|
|
@@ -1802,7 +1980,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1802
1980
|
`}
|
|
1803
1981
|
</div>
|
|
1804
1982
|
</div>
|
|
1805
|
-
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],
|
|
1983
|
+
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],nt.prototype,"open",void 0),s([L({type:String}),n("design:type",String)],nt.prototype,"type",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"icon",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"title",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"description",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"width",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"height",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"buttonText",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"confirmText",void 0),s([L({type:String}),n("design:type",Object)],nt.prototype,"cancelText",void 0),s([L({type:Boolean}),n("design:type",Object)],nt.prototype,"closeOnOutsideClick",void 0),s([L({type:Array}),n("design:type",Array)],nt.prototype,"stackedActions",void 0),nt=s([a("custom-popup")],nt);let at=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
|
|
1806
1984
|
:host {
|
|
1807
1985
|
display: inline-block;
|
|
1808
1986
|
width: 64px;
|
|
@@ -1815,7 +1993,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1815
1993
|
}
|
|
1816
1994
|
|
|
1817
1995
|
.circle-text {
|
|
1818
|
-
${
|
|
1996
|
+
${j};
|
|
1819
1997
|
text-align: center;
|
|
1820
1998
|
vertical-align: middle;
|
|
1821
1999
|
fill: var(--randstad-dark-blue-40);
|
|
@@ -1863,7 +2041,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1863
2041
|
${this.value} de ${this.max}
|
|
1864
2042
|
</text>
|
|
1865
2043
|
</svg>
|
|
1866
|
-
`}};s([L({type:Number}),n("design:type",Object)],
|
|
2044
|
+
`}};s([L({type:Number}),n("design:type",Object)],at.prototype,"value",void 0),s([L({type:Number}),n("design:type",Object)],at.prototype,"max",void 0),at=s([a("progress-circle")],at);let lt=class extends t{constructor(){super(...arguments),this.name="",this.checked=!1,this.disabled=!1,this.error=!1,this.label="",this.value=""}static{this.styles=o`
|
|
1867
2045
|
:host {
|
|
1868
2046
|
font-family: "Graphik", sans-serif;
|
|
1869
2047
|
|
|
@@ -2007,7 +2185,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2007
2185
|
|
|
2008
2186
|
<span> ${o} </span>
|
|
2009
2187
|
</label>
|
|
2010
|
-
`}};s([L({type:String}),n("design:type",Object)],
|
|
2188
|
+
`}};s([L({type:String}),n("design:type",Object)],lt.prototype,"name",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"checked",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"disabled",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"error",void 0),s([L({type:String}),n("design:type",Object)],lt.prototype,"label",void 0),s([L({type:String}),n("design:type",Object)],lt.prototype,"value",void 0),lt=s([a("custom-radio")],lt);let dt=class extends P{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.filterable=!0,this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.sortable=!0,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.originalHtmlOverflow="",this.originalHtmlPaddingRight="",this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this.lastElement=!1,this.debounceTimeout=null,this.getOptionLabel=t=>"string"==typeof t?t:t.label,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[Z,o`
|
|
2011
2189
|
${Q}
|
|
2012
2190
|
${J}
|
|
2013
2191
|
${K}
|
|
@@ -2389,7 +2567,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2389
2567
|
.mobile-modal .options-list li.no-results-item.mobile-item {
|
|
2390
2568
|
text-align: center;
|
|
2391
2569
|
}
|
|
2392
|
-
`]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),s=this.getOptionLabel(e),n=r.toLowerCase(),a=s.toLowerCase();if(i&&i.length>0){const t=i.toLowerCase(),e=n.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=s.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(s,"es",{usage:"sort",sensitivity:"accent"}):p-u}filterAndSortOptions(){if(!this.filterable||!this.filterValue||0===this.filterValue.length)return this.filteredOptions=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options],this.highlightedIndex=-1,void(this.showNoResults=!1);const t=this.filterValue,e=t.toLowerCase();let i=this.options.filter((t=>this.getOptionLabel(t).toLowerCase().includes(e)));this.sortable?this.filteredOptions=i.sort(((e,i)=>this.sortOptions(e,i,t))):this.filteredOptions=i,this.highlightedIndex=this.filteredOptions.length>0?0:-1,this.showNoResults=0===this.filteredOptions.length}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if(t.has("options")){if(this.sortable){const t=[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0)));this.options=t}this.filterAndSortOptions();if(this.options.length<=5)this.filterable=!1;else{const t=this.getAttribute("filterable");this.filterable=null===t||"false"!==t}}if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}willUpdate(t){t.has("filterValue")&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.filteredOptions=[...this.options],this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;if(this.filterValue=i,this.isOpen=!0,""===i)this.value="",this.filteredOptions=[...this.options],this.showNoResults=!1;else{const t=i.toLowerCase();this.filteredOptions=this.options.filter((e=>("string"==typeof e?e:e.label).toLowerCase().includes(t))),this.showNoResults=0===this.filteredOptions.length}this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;this.mobileFilterValue=i;const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.showNoResults=i.length>0&&0===this.filteredOptions.length,this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0})):0===i.length&&(this.filteredOptions=[...this.options])}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=[...this.options],this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=[...this.options],this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=[...this.options],this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleReset(){this.filterValue="",this.showNoResults=!1,this.highlightedIndex=-1,this.mobileFilterValue="",this.filteredOptions=[...this.options]}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=[...this.options]))}handleKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this.filterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=[...this.options],this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this.filterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this.filterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this.filterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.isOpen||(this.validateAndCleanOnBlur(),this.requestUpdate())}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?e`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:i}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}_getFilteredOptions(){if(!this.filterable)return this.options;if(!this.filterValue||""===this.filterValue.trim())return this.options;const t=this.filterValue.toLowerCase();return this.options.filter((e=>"string"==typeof e?e.toLowerCase().includes(t):e.label.toLowerCase().includes(t)))}validateAndCleanOnBlur(){if(!this.filterable)return;const t=(this.filterValue||"").trim().toLowerCase();if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=[...this.options],void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return String(i).toLowerCase()===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=[...this.options],this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
|
|
2570
|
+
`]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),s=this.getOptionLabel(e),n=r.toLowerCase(),a=s.toLowerCase();if(i&&i.length>0){const t=i.toLowerCase(),e=n.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=s.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(s,"es",{usage:"sort",sensitivity:"accent"}):p-u}filterAndSortOptions(){if(!this.filterable||!this.filterValue||0===this.filterValue.length)return this.filteredOptions=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options],this.highlightedIndex=-1,void(this.showNoResults=!1);const t=this.filterValue,e=t.toLowerCase();let i=this.options.filter((t=>this.getOptionLabel(t).toLowerCase().includes(e)));this.sortable?this.filteredOptions=i.sort(((e,i)=>this.sortOptions(e,i,t))):this.filteredOptions=i,this.highlightedIndex=this.filteredOptions.length>0?0:-1,this.showNoResults=0===this.filteredOptions.length}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if(t.has("options")){if(this.sortable){const t=[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0)));this.options=t}this.filterAndSortOptions();if(this.options.length<=5)this.filterable=!1;else{const t=this.getAttribute("filterable");this.filterable=null===t||"false"!==t}}if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}willUpdate(t){t.has("filterValue")&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.filteredOptions=[...this.options],this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;if(this.filterValue=i,this.isOpen=!0,""===i)this.value="",this.filteredOptions=[...this.options],this.showNoResults=!1;else{const t=i.toLowerCase();this.filteredOptions=this.options.filter((e=>("string"==typeof e?e:e.label).toLowerCase().includes(t))),this.showNoResults=0===this.filteredOptions.length}this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):e;this.mobileFilterValue=i;const o=i.toLowerCase();this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.showNoResults=i.length>0&&0===this.filteredOptions.length,this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0})):0===i.length&&(this.filteredOptions=[...this.options])}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=[...this.options],this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=[...this.options],this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=[...this.options],this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleReset(){this.filterValue="",this.showNoResults=!1,this.highlightedIndex=-1,this.mobileFilterValue="",this.filteredOptions=[...this.options]}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=[...this.options]))}handleKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this.filterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=[...this.options],this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this.filterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this.filterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this.filterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderSelectedIcon(){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));return t&&"string"!=typeof t&&t.icon&&"string"==typeof t.icon?e`<span class="icon-selected" .innerHTML="${t.icon}"></span>`:i}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}_getFilteredOptions(){if(!this.filterable)return this.options;if(!this.filterValue||""===this.filterValue.trim())return this.options;const t=this.filterValue.toLowerCase();return this.options.filter((e=>"string"==typeof e?e.toLowerCase().includes(t):e.label.toLowerCase().includes(t)))}validateAndCleanOnBlur(){if(!this.filterable)return;const t=(this.filterValue||"").trim().toLowerCase();if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=[...this.options],void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return String(i).toLowerCase()===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=[...this.options],this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
|
|
2393
2571
|
<randstad-icon
|
|
2394
2572
|
name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
|
|
2395
2573
|
size="24px"
|
|
@@ -2532,7 +2710,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2532
2710
|
</div>
|
|
2533
2711
|
</div>
|
|
2534
2712
|
`:i}
|
|
2535
|
-
`}};s([L({type:Object}),n("design:type",Object)],
|
|
2713
|
+
`}};s([L({type:Object}),n("design:type",Object)],dt.prototype,"value",void 0),s([L({type:String,attribute:"default-value"}),n("design:type",Object)],dt.prototype,"defaultValue",void 0),s([L({type:Array}),n("design:type",Array)],dt.prototype,"options",void 0),s([L({type:Boolean}),n("design:type",Object)],dt.prototype,"filterable",void 0),s([L({type:Number}),n("design:type",Number)],dt.prototype,"maxLength",void 0),s([L({type:String}),n("design:type",String)],dt.prototype,"textLabelFilterNotResult",void 0),s([L({type:String}),n("design:type",String)],dt.prototype,"textLabelMobileSearch",void 0),s([L({type:Boolean}),n("design:type",Object)],dt.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],dt.prototype,"sortable",void 0),s([B(),n("design:type",Boolean)],dt.prototype,"isMobile",void 0),s([B(),n("design:type",Object)],dt.prototype,"highlightedIndex",void 0),s([B(),n("design:type",Boolean)],dt.prototype,"_isCleared",void 0),s([B(),n("design:type",Array)],dt.prototype,"filteredOptions",void 0),s([B(),n("design:type",Object)],dt.prototype,"filterValue",void 0),s([B(),n("design:type",Object)],dt.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],dt.prototype,"mobileFilterValue",void 0),s([B(),n("design:type",Boolean)],dt.prototype,"showNoResults",void 0),s([L({type:Boolean,attribute:"last-element"}),n("design:type",Object)],dt.prototype,"lastElement",void 0),s([_(".mobile-modal .filter-input"),n("design:type",HTMLInputElement)],dt.prototype,"mobileInputRef",void 0),dt=s([a("filterable-select")],dt);const ct=new CSSStyleSheet;ct.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 ht extends t{static{this.styles=[ct,o`
|
|
2536
2714
|
:host {
|
|
2537
2715
|
display: flex;
|
|
2538
2716
|
position: fixed;
|
|
@@ -2602,7 +2780,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2602
2780
|
}
|
|
2603
2781
|
|
|
2604
2782
|
.container {
|
|
2605
|
-
${
|
|
2783
|
+
${R};
|
|
2606
2784
|
display: flex;
|
|
2607
2785
|
align-items: center;
|
|
2608
2786
|
box-sizing: border-box;
|
|
@@ -2667,7 +2845,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2667
2845
|
<randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
|
|
2668
2846
|
<span class="message">${this.message}</span>
|
|
2669
2847
|
</div>
|
|
2670
|
-
`}}customElements.define("randstad-snackbar",
|
|
2848
|
+
`}}customElements.define("randstad-snackbar",ht);let pt=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=o`
|
|
2671
2849
|
.stepper {
|
|
2672
2850
|
display: flex;
|
|
2673
2851
|
gap: 20px;
|
|
@@ -2767,7 +2945,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2767
2945
|
</div>
|
|
2768
2946
|
`))}
|
|
2769
2947
|
</div>
|
|
2770
|
-
`}};s([L({type:Number}),n("design:type",Object)],
|
|
2948
|
+
`}};s([L({type:Number}),n("design:type",Object)],pt.prototype,"totalSteps",void 0),s([L({type:Number}),n("design:type",Object)],pt.prototype,"currentStep",void 0),pt=s([a("custom-stepper")],pt);let ut=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected="",this.showPrev=!1,this.showNext=!1,this.SCROLL_OFFSET=56,this.handleScroll=()=>{const t=this.renderRoot.querySelector(".tab-wrapper");if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:o}=t;this.showPrev=e>0,this.showNext=e+o<i-1}}static{this.styles=o`
|
|
2771
2949
|
:host {
|
|
2772
2950
|
display: block;
|
|
2773
2951
|
border-bottom: 1px solid #E7E8EC;
|
|
@@ -2878,7 +3056,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2878
3056
|
|
|
2879
3057
|
@media (max-width: 940px) {
|
|
2880
3058
|
.tab {
|
|
2881
|
-
${
|
|
3059
|
+
${A};
|
|
2882
3060
|
padding: 16px;
|
|
2883
3061
|
}
|
|
2884
3062
|
}
|
|
@@ -2906,7 +3084,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2906
3084
|
</button>
|
|
2907
3085
|
`:null}
|
|
2908
3086
|
</div>
|
|
2909
|
-
`}};s([L({type:Array}),n("design:type",Array)],
|
|
3087
|
+
`}};s([L({type:Array}),n("design:type",Array)],ut.prototype,"tabs",void 0),s([L({type:String}),n("design:type",String)],ut.prototype,"selected",void 0),s([B(),n("design:type",String)],ut.prototype,"internalSelected",void 0),s([B(),n("design:type",Object)],ut.prototype,"showPrev",void 0),s([B(),n("design:type",Object)],ut.prototype,"showNext",void 0),ut=s([a("tabs-bar")],ut);let gt=class extends P{constructor(){super(...arguments),this.files=[],this.simulatedDelay=0,this.showAlertInError=!1,this.typeTextFile="",this.loading=!1,this.progress=0,this.errorTextMessage=null,this.isMultiple=!1,this.TEXT_SNACKBAR_ERROR_TYPE=()=>"El formato del archivo no es válido",this.TEXT_SNACKBAR_ERROR_SIZE=t=>`El archivo es muy grande. Máximo ${t}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(clearTimeout(o.timer),o.open&&(o.open=!1),setTimeout((()=>{o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,o.timer=setTimeout((()=>o.open=!1),e)}),150)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return`${parseFloat((t/e).toPrecision(3)).toString()} MB`}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const n=e>0,a=i.length>0;for(const l of t){const t="."+l.name.split(".").pop()?.toLowerCase(),d=i.includes(l.type),c=i.some((e=>{const i=e.split("/")[1];return"jpeg"===i?".jpeg"===t||".jpg"===t:t===`.${i}`}));if(a&&(!d||!c))return this.setError(s,o,this.TEXT_SNACKBAR_ERROR_TYPE()),!1;if(n&&l.size>e)return this.setError(s,r,this.TEXT_SNACKBAR_ERROR_SIZE(this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:s,errorMessageSize:n,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=(Number.isFinite(i)&&i>0?i:1)-l.length;if(d<=0){const t="Alcanzaste el número máximo de archivos";return void this.setError(a,t,t)}const c=Array.from(t).slice(0,d);if(0===c.length)return;if(!this.validateFiles(c,o,r,s,n,a))return;const h=this.simulatedDelay??0;if(h<=0)return this.files=[...l,...c],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const p=Date.now(),u=setInterval((()=>{const t=Date.now()-p,e=Math.min(Math.round(t/h*100),100);this.progress=e,this.progress>=100&&(clearInterval(u),this.files=[...l,...c],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
|
|
2910
3088
|
${this.loading?e`
|
|
2911
3089
|
<div class="progress-bar-container">
|
|
2912
3090
|
<div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
|
|
@@ -2916,7 +3094,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2916
3094
|
`:e`
|
|
2917
3095
|
${t}
|
|
2918
3096
|
`}
|
|
2919
|
-
`}};s([L({type:Array}),n("design:type",Array)],
|
|
3097
|
+
`}};s([L({type:Array}),n("design:type",Array)],gt.prototype,"files",void 0),s([L({type:Number}),n("design:type",Object)],gt.prototype,"simulatedDelay",void 0),s([L({type:Boolean}),n("design:type",Object)],gt.prototype,"showAlertInError",void 0),s([L({type:String}),n("design:type",Object)],gt.prototype,"typeTextFile",void 0),s([B(),n("design:type",Object)],gt.prototype,"loading",void 0),s([B(),n("design:type",Object)],gt.prototype,"progress",void 0),s([B(),n("design:type",Object)],gt.prototype,"errorTextMessage",void 0),s([_('input[ type="file" ]'),n("design:type",HTMLInputElement)],gt.prototype,"fileInput",void 0),gt=s([a("base-upload")],gt);const bt={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},mt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...bt,"text/plain":".txt"},yt=o`
|
|
2920
3098
|
.progress-bar-container {
|
|
2921
3099
|
min-height: 23px;
|
|
2922
3100
|
display: flex;
|
|
@@ -2936,9 +3114,9 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2936
3114
|
background-color: var( --primary-color );
|
|
2937
3115
|
transition: width 0.1s ease;
|
|
2938
3116
|
}
|
|
2939
|
-
`;let
|
|
3117
|
+
`;let vt=class extends gt{constructor(){super(...arguments),this.acceptedFileTypes=[],this.maxFiles=3,this.maxFileSize=0,this.isShowInfoSize=!0,this.isChangeStyleError=!1,this.isDragging=!1,this.imageUrls=[],this.isMaxFilesReached=!1}static{this.styles=o`
|
|
2940
3118
|
${Q}
|
|
2941
|
-
${
|
|
3119
|
+
${yt}
|
|
2942
3120
|
|
|
2943
3121
|
:host {
|
|
2944
3122
|
font-family: 'Graphik', sans-serif;
|
|
@@ -2985,28 +3163,28 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2985
3163
|
}
|
|
2986
3164
|
|
|
2987
3165
|
.text-main {
|
|
2988
|
-
${
|
|
3166
|
+
${R};
|
|
2989
3167
|
text-align: center;
|
|
2990
3168
|
vertical-align: middle;
|
|
2991
3169
|
color: var( --secondary-color-80 );
|
|
2992
3170
|
}
|
|
2993
3171
|
|
|
2994
3172
|
.text-secondary {
|
|
2995
|
-
${
|
|
3173
|
+
${j};
|
|
2996
3174
|
text-align: center;
|
|
2997
3175
|
vertical-align: middle;
|
|
2998
3176
|
color: var( --secondary-color-60 );
|
|
2999
3177
|
}
|
|
3000
3178
|
|
|
3001
3179
|
.text-tertiary {
|
|
3002
|
-
${
|
|
3180
|
+
${j};
|
|
3003
3181
|
text-align: center;
|
|
3004
3182
|
vertical-align: middle;
|
|
3005
3183
|
color: var( --secondary-color-40 );
|
|
3006
3184
|
}
|
|
3007
3185
|
|
|
3008
3186
|
.button {
|
|
3009
|
-
${
|
|
3187
|
+
${j};
|
|
3010
3188
|
background-color: var( --primary-color );
|
|
3011
3189
|
border: none;
|
|
3012
3190
|
padding: 4px 16px;
|
|
@@ -3065,7 +3243,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3065
3243
|
.text-main.error {
|
|
3066
3244
|
color: var(--ui-negative, #E00F0F);
|
|
3067
3245
|
}
|
|
3068
|
-
`}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,
|
|
3246
|
+
`}getFileConfig(){const t="tu archivo no es válido",e=this.maxFileSize>0,i=this.acceptedFileTypes.length>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:i?t:"",errorMessageSize:e?t:"",typeError:"image"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,bt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){t.has("files")&&this.files&&(this.imageUrls.forEach((t=>URL.revokeObjectURL(t))),this.imageUrls=this.files.map((t=>URL.createObjectURL(t))))}disconnectedCallback(){super.disconnectedCallback(),this.imageUrls.forEach((t=>URL.revokeObjectURL(t)))}async handleFiles(t){await this.baseHandleFiles(t,this.getFileConfig())}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}onDrop(t){t.preventDefault(),this.disabled||(this.isDragging=!1,this.handleFiles(t.dataTransfer?.files||null))}onDragOver(t){t.preventDefault(),this.disabled||(this.isDragging=!0)}onDragLeave(t){t.preventDefault(),this.disabled||(this.isDragging=!1)}willUpdate(t){t.has("files")&&(this.isMaxFilesReached=(this.files||[]).length>=3,(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1))}handleButtonKeydown(t,e){if(!e&&("Enter"===t.key||" "===t.key)){t.preventDefault();const e=t.currentTarget?.querySelector('input[type="file"]');e&&!e.disabled&&e.click()}}render(){const t=this.disabled||this.isMaxFilesReached,o=this.disabled,r=this.maxFileSize>0,s=this.acceptedFileTypes.length>0,n=!1!==this.isShowInfoSize,a=r&&n?` / max. ${this.getTextMaxFileSize()}`:"",l=s?this.getTextAcceptedFileTypes():"",d=!0===this.isChangeStyleError,c=!!this.errorTextMessage&&d,h=c&&this.errorTextMessage?this.errorTextMessage:`subí hasta ${this.maxFiles} imágenes`,p=c?"assets/img/image-upload-error.svg":t?"assets/img/image-upload-disabled.svg":"assets/img/image-upload-circle.svg",u=`container ${this.isDragging?"dragging":""} ${c?"error":""}`,g=e`
|
|
3069
3247
|
<label class="button"
|
|
3070
3248
|
tabindex="0"
|
|
3071
3249
|
@keydown=${e=>this.handleButtonKeydown(e,t)}
|
|
@@ -3131,7 +3309,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3131
3309
|
</div>
|
|
3132
3310
|
</div>
|
|
3133
3311
|
</div>
|
|
3134
|
-
`}};s([L({type:Array}),n("design:type",Array)],yt.prototype,"acceptedFileTypes",void 0),s([L({type:Number}),n("design:type",Object)],yt.prototype,"maxFiles",void 0),s([L({type:Number}),n("design:type",Object)],yt.prototype,"maxFileSize",void 0),s([L({type:Boolean}),n("design:type",Object)],yt.prototype,"isShowInfoSize",void 0),s([L({type:Boolean}),n("design:type",Object)],yt.prototype,"isChangeStyleError",void 0),s([B(),n("design:type",Object)],yt.prototype,"isDragging",void 0),s([B(),n("design:type",Array)],yt.prototype,"imageUrls",void 0),s([B(),n("design:type",Boolean)],yt.prototype,"isMaxFilesReached",void 0),yt=s([a("upload-image")],yt);const vt=6048e5,ft=Symbol.for("constructDateFrom");function wt(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&ft in t?t[ft](e):t instanceof Date?new t.constructor(e):new Date(e)}function xt(t,e){return wt(e||t,t)}function kt(t,e,i){const o=xt(t,i?.in);if(isNaN(e))return wt(t,NaN);if(!e)return o;const r=o.getDate(),s=wt(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let $t={};function St(){return $t}function Dt(t,e){const i=St(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=xt(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function Et(t,e){return Dt(t,{...e,weekStartsOn:1})}function Ct(t,e){const i=xt(t,e?.in),o=i.getFullYear(),r=wt(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=Et(r),n=wt(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=Et(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Ot(t){const e=xt(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 Ft(t,...e){const i=wt.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Mt(t,e){const i=xt(t,e?.in);return i.setHours(0,0,0,0),i}function Tt(t,e,i){return kt(t,12*e,i)}function Lt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+xt(t)));var e}function Bt(t,e){const i=xt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const jt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const Rt={date:Pt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},At={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _t(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function zt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var Nt;const Wt={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=jt[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:Rt,formatRelative:(t,e,i,o)=>At[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:_t({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_t({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:_t({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:_t({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:_t({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:(Nt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(Nt.matchPattern);if(!i)return null;const o=i[0],r=t.match(Nt.parsePattern);if(!r)return null;let s=Nt.valueCallback?Nt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:zt({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:zt({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:zt({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:zt({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:zt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function It(t,e){const i=xt(t,e?.in),o=function(t,e){const[i,o]=Ft(0,t,e),r=Mt(i),s=Mt(o),n=+r-Ot(r),a=+s-Ot(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=xt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Vt(t,e){const i=xt(t,e?.in),o=+Et(i)-+function(t,e){const i=Ct(t,e),o=wt(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Et(o)}(i);return Math.round(o/vt)+1}function qt(t,e){const i=xt(t,e?.in),o=i.getFullYear(),r=St(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=wt(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=Dt(n,e),l=wt(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=Dt(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Ut(t,e){const i=xt(t,e?.in),o=+Dt(i,e)-+function(t,e){const i=St(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=qt(t,e),s=wt(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),Dt(s,e)}(i,e);return Math.round(o/vt)+1}function Ht(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Yt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Ht("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Ht(i+1,2)},d:(t,e)=>Ht(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)=>Ht(t.getHours()%12||12,e.length),H:(t,e)=>Ht(t.getHours(),e.length),m:(t,e)=>Ht(t.getMinutes(),e.length),s:(t,e)=>Ht(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Ht(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Gt="midnight",Kt="noon",Xt="morning",Qt="afternoon",Jt="evening",Zt="night",te={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Yt.y(t,e)},Y:function(t,e,i,o){const r=qt(t,o),s=r>0?r:1-r;if("YY"===e){return Ht(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Ht(s,e.length)},R:function(t,e){return Ht(Ct(t),e.length)},u:function(t,e){return Ht(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Ht(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Ht(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Yt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Ht(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Ut(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Ht(r,e.length)},I:function(t,e,i){const o=Vt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Ht(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Yt.d(t,e)},D:function(t,e,i){const o=It(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Ht(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ht(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ht(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Ht(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Kt:0===o?Gt:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?Jt:o>=12?Qt:o>=4?Xt:Zt,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Yt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Yt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ht(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Ht(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Yt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Yt.s(t,e)},S:function(t,e){return Yt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ie(o);case"XXXX":case"XX":return oe(o);default:return oe(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ie(o);case"xxxx":case"xx":return oe(o);default:return oe(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ee(o,":");default:return"GMT"+oe(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ee(o,":");default:return"GMT"+oe(o,":")}},t:function(t,e,i){return Ht(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Ht(+t,e.length)}};function ee(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Ht(s,2)}function ie(t,e){if(t%60==0){return(t>0?"-":"+")+Ht(Math.abs(t)/60,2)}return oe(t,e)}function oe(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Ht(Math.trunc(o/60),2)+e+Ht(o%60,2)}const re=(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"})}},se=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ne={p:se,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return re(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",re(o,e)).replace("{{time}}",se(r,e))}},ae=/^D+$/,le=/^Y+$/,de=["D","DD","YY","YYYY"];const ce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,he=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,ue=/''/g,ge=/[a-zA-Z]/;function be(t,e,i){const o=St(),r=o.locale??Wt,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=xt(t,i?.in);if(!Lt(a))throw new RangeError("Invalid time value");let l=e.match(he).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,ne[e])(t,r.formatLong)}return t})).join("").match(ce).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:me(t)};if(te[e])return{isToken:!0,value:t};if(e.match(ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return le.test(t)}(o)||function(t){return ae.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),de.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,te[o[0]])(a,o,r.localize,d)})).join("")}function me(t){const e=t.match(pe);return e?e[1].replace(ue,"'"):t}function ye(t,e){return xt(t,e?.in).getDate()}function ve(t,e){const i=xt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=wt(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function fe(t,e){return+xt(t)>+xt(e)}function we(t,e){return+xt(t)<+xt(e)}function xe(t,e,i){const[o,r]=Ft(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function ke(t,e,i){const[o,r]=Ft(0,t,e);return o.getFullYear()===r.getFullYear()}function $e(t,e){return function(t,e){const[i,o]=Ft(0,t,e);return+Mt(i)===+Mt(o)}(wt(t,t),function(t){return wt(t,Date.now())}(t))}function Se(t,e,i){const o=xt(t,i?.in);return o.setDate(e),o}let De=class extends t{static{this.styles=[Z,o`
|
|
3312
|
+
`}};s([L({type:Array}),n("design:type",Array)],vt.prototype,"acceptedFileTypes",void 0),s([L({type:Number}),n("design:type",Object)],vt.prototype,"maxFiles",void 0),s([L({type:Number}),n("design:type",Object)],vt.prototype,"maxFileSize",void 0),s([L({type:Boolean}),n("design:type",Object)],vt.prototype,"isShowInfoSize",void 0),s([L({type:Boolean}),n("design:type",Object)],vt.prototype,"isChangeStyleError",void 0),s([B(),n("design:type",Object)],vt.prototype,"isDragging",void 0),s([B(),n("design:type",Array)],vt.prototype,"imageUrls",void 0),s([B(),n("design:type",Boolean)],vt.prototype,"isMaxFilesReached",void 0),vt=s([a("upload-image")],vt);const ft=6048e5,wt=Symbol.for("constructDateFrom");function xt(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&wt in t?t[wt](e):t instanceof Date?new t.constructor(e):new Date(e)}function kt(t,e){return xt(e||t,t)}function $t(t,e,i){const o=kt(t,i?.in);if(isNaN(e))return xt(t,NaN);if(!e)return o;const r=o.getDate(),s=xt(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let St={};function Dt(){return St}function Et(t,e){const i=Dt(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=kt(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function Ct(t,e){return Et(t,{...e,weekStartsOn:1})}function Ot(t,e){const i=kt(t,e?.in),o=i.getFullYear(),r=xt(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=Ct(r),n=xt(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=Ct(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Ft(t){const e=kt(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Mt(t,...e){const i=xt.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Tt(t,e){const i=kt(t,e?.in);return i.setHours(0,0,0,0),i}function Lt(t,e,i){return $t(t,12*e,i)}function Bt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+kt(t)));var e}function _t(t,e){const i=kt(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const Pt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function jt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const Rt={date:jt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jt({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:jt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},At={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function zt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Nt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var Wt;const Vt={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=Pt[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:Rt,formatRelative:(t,e,i,o)=>At[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:zt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:zt({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:zt({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:zt({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:zt({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:(Wt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(Wt.matchPattern);if(!i)return null;const o=i[0],r=t.match(Wt.parsePattern);if(!r)return null;let s=Wt.valueCallback?Wt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Nt({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:Nt({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:Nt({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:Nt({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:Nt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function It(t,e){const i=kt(t,e?.in),o=function(t,e){const[i,o]=Mt(0,t,e),r=Tt(i),s=Tt(o),n=+r-Ft(r),a=+s-Ft(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=kt(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function qt(t,e){const i=kt(t,e?.in),o=+Ct(i)-+function(t,e){const i=Ot(t,e),o=xt(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Ct(o)}(i);return Math.round(o/ft)+1}function Ut(t,e){const i=kt(t,e?.in),o=i.getFullYear(),r=Dt(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=xt(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=Et(n,e),l=xt(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=Et(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Ht(t,e){const i=kt(t,e?.in),o=+Et(i,e)-+function(t,e){const i=Dt(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Ut(t,e),s=xt(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),Et(s,e)}(i,e);return Math.round(o/ft)+1}function Yt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Gt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Yt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Yt(i+1,2)},d:(t,e)=>Yt(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)=>Yt(t.getHours()%12||12,e.length),H:(t,e)=>Yt(t.getHours(),e.length),m:(t,e)=>Yt(t.getMinutes(),e.length),s:(t,e)=>Yt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Yt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Kt="midnight",Xt="noon",Qt="morning",Jt="afternoon",Zt="evening",te="night",ee={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Gt.y(t,e)},Y:function(t,e,i,o){const r=Ut(t,o),s=r>0?r:1-r;if("YY"===e){return Yt(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Yt(s,e.length)},R:function(t,e){return Yt(Ot(t),e.length)},u:function(t,e){return Yt(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Yt(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Yt(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Gt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Yt(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Ht(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Yt(r,e.length)},I:function(t,e,i){const o=qt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Yt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Gt.d(t,e)},D:function(t,e,i){const o=It(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Yt(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Yt(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Yt(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Yt(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Xt:0===o?Kt:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?Zt:o>=12?Jt:o>=4?Qt:te,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Gt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Gt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Yt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Yt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Gt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Gt.s(t,e)},S:function(t,e){return Gt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return oe(o);case"XXXX":case"XX":return re(o);default:return re(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return oe(o);case"xxxx":case"xx":return re(o);default:return re(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ie(o,":");default:return"GMT"+re(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ie(o,":");default:return"GMT"+re(o,":")}},t:function(t,e,i){return Yt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Yt(+t,e.length)}};function ie(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Yt(s,2)}function oe(t,e){if(t%60==0){return(t>0?"-":"+")+Yt(Math.abs(t)/60,2)}return re(t,e)}function re(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Yt(Math.trunc(o/60),2)+e+Yt(o%60,2)}const se=(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"})}},ne=(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"})}},ae={p:ne,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return se(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",se(o,e)).replace("{{time}}",ne(r,e))}},le=/^D+$/,de=/^Y+$/,ce=["D","DD","YY","YYYY"];const he=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ue=/^'([^]*?)'?$/,ge=/''/g,be=/[a-zA-Z]/;function me(t,e,i){const o=Dt(),r=o.locale??Vt,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=kt(t,i?.in);if(!Bt(a))throw new RangeError("Invalid time value");let l=e.match(pe).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,ae[e])(t,r.formatLong)}return t})).join("").match(he).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:ye(t)};if(ee[e])return{isToken:!0,value:t};if(e.match(be))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return de.test(t)}(o)||function(t){return le.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),ce.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,ee[o[0]])(a,o,r.localize,d)})).join("")}function ye(t){const e=t.match(ue);return e?e[1].replace(ge,"'"):t}function ve(t,e){return kt(t,e?.in).getDate()}function fe(t,e){const i=kt(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=xt(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function we(t,e){return+kt(t)>+kt(e)}function xe(t,e){return+kt(t)<+kt(e)}function ke(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function $e(t,e,i){const[o,r]=Mt(0,t,e);return o.getFullYear()===r.getFullYear()}function Se(t,e){return function(t,e){const[i,o]=Mt(0,t,e);return+Tt(i)===+Tt(o)}(xt(t,t),function(t){return xt(t,Date.now())}(t))}function De(t,e,i){const o=kt(t,i?.in);return o.setDate(e),o}let Ee=class extends t{static{this.styles=[Z,o`
|
|
3135
3313
|
${X}
|
|
3136
3314
|
|
|
3137
3315
|
/* Estilos generales del contenedor del calendario (escritorio) */
|
|
@@ -3198,7 +3376,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3198
3376
|
}
|
|
3199
3377
|
|
|
3200
3378
|
.month-year-button {
|
|
3201
|
-
${
|
|
3379
|
+
${R}
|
|
3202
3380
|
display: flex;
|
|
3203
3381
|
align-items: center;
|
|
3204
3382
|
justify-content: center;
|
|
@@ -3247,7 +3425,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3247
3425
|
|
|
3248
3426
|
/* Estilos para cada botón de día */
|
|
3249
3427
|
.day {
|
|
3250
|
-
${
|
|
3428
|
+
${A}
|
|
3251
3429
|
display: flex;
|
|
3252
3430
|
align-items: center;
|
|
3253
3431
|
justify-content: center;
|
|
@@ -3310,7 +3488,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3310
3488
|
/* Botones de año y mes en la grilla */
|
|
3311
3489
|
.year-button,
|
|
3312
3490
|
.month-button {
|
|
3313
|
-
${
|
|
3491
|
+
${A}
|
|
3314
3492
|
background: var(--secondary-white, #fff);
|
|
3315
3493
|
border: 1px solid transparent;
|
|
3316
3494
|
color: var( --secondary-dark-blue-80, #3c4257 );
|
|
@@ -3562,7 +3740,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3562
3740
|
border-radius: 9999px;
|
|
3563
3741
|
}
|
|
3564
3742
|
/* */
|
|
3565
|
-
`]}constructor(){super(),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.type="date",this.lastElement=!1,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))},this._boundHandleCalendarKeydown=this.handleCalendarKeydown.bind(this),this._boundHandleFocusout=t=>{const e=t.relatedTarget;e&&!this.contains(e)&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this._boundHandleCalendarKeydown),this.addEventListener("focusout",this._boundHandleFocusout)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),this.shadowRoot?.removeEventListener("keydown",this._boundHandleCalendarKeydown),this.removeEventListener("focusout",this._boundHandleFocusout)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"month"===this.type?this.currentView="months"===this.currentView?"years":"months":"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView
|
|
3743
|
+
`]}constructor(){super(),this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.minDate=null,this.maxDate=null,this.type="date",this.lastElement=!1,this.currentView="days",this.handleOutsideClick=t=>{const e=this.getRootNode(),i=e?.host;!i||t.composedPath().includes(this)||t.composedPath().includes(i)||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))},this._boundHandleCalendarKeydown=this.handleCalendarKeydown.bind(this),this._boundHandleFocusout=t=>{const e=t.relatedTarget;e&&!this.contains(e)&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}firstUpdated(){this.shadowRoot?.addEventListener("keydown",this._boundHandleCalendarKeydown),this.addEventListener("focusout",this._boundHandleFocusout)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick),this.shadowRoot?.removeEventListener("keydown",this._boundHandleCalendarKeydown),this.removeEventListener("focusout",this._boundHandleFocusout)}handleFocusInput(){const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}handleHeaderClick(){"month"===this.type?this.currentView="months"===this.currentView?"years":"months":"days"===this.currentView?this.currentView="years":this.currentView="days"}_updateView(t,e=null){this.viewDate=t,e&&(this.currentView=e),this.dispatchEvent(new CustomEvent("view-date-change",{detail:{date:this.viewDate}}))}handleNavClick(t){let e=this.viewDate;e="days"===this.currentView?$t(this.viewDate,t):"months"===this.currentView?Lt(this.viewDate,t):Lt(this.viewDate,21*t),this._updateView(e)}handleYearSelect(t){const e=function(t,e,i){const o=kt(t,i?.in);return isNaN(+o)?xt(t,NaN):(o.setFullYear(e),o)}(this.viewDate,t);this._updateView(e,"months"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?.focus()}))}handleMonthSelect(t){const e=function(t,e,i){const o=kt(t,i?.in),r=o.getFullYear(),s=o.getDate(),n=xt(t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);const a=fe(n);return o.setMonth(e,Math.min(s,a)),o}(this.viewDate,t);"month"===this.type?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))):(this._updateView(e,"days"),this.updateComplete.then((()=>{const t=this.initialFocusElement||this.shadowRoot?.querySelector(".month-year-button");t?.focus()})))}handleDayClick(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}getFullMonthNames(){return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}getShortMonthNames(){return this.getFullMonthNames().map((t=>t.substring(0,3)))}getShortWeekdays(){return["lu","ma","mi","ju","vi","sa","do"]}focusCalendar(){this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".month-year-button");t?t.focus():this.initialFocusElement?.focus()}))}focusFirstElement(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days"),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("button:not([disabled])");t?.focus()}))}))}focusYearsView(){this.updateComplete.then((()=>{this.currentView="years";const t=this.shadowRoot?.querySelector(".year-button:not([disabled])");t&&t.focus()}))}focusMonthsView(){this.updateComplete.then((()=>{"months"!==this.currentView&&(this.currentView="months");const t=this.shadowRoot?.querySelector(".month-button:not([disabled])");t&&t.focus()}))}focusDaysView(){this.updateComplete.then((()=>{"days"!==this.currentView&&(this.currentView="days");const t=this.shadowRoot?.querySelector(".day:not([disabled])");t&&t.focus()}))}_findAndFocusDayButton(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;const i=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")),o=i.findIndex((t=>t===e));if(-1===o)return;let r=o+t;r<0&&(r=0),r>=i.length&&(r=i.length-1);const s=i[r];s&&s.focus()}_focusDayOfWeekEdge(t){const e=this.shadowRoot?.activeElement;if(!e||!e.classList.contains("day"))return;if(-1===Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===e)))return;const i=Array.from(this.shadowRoot.querySelectorAll(".days-grid > *")).findIndex((t=>t===e));if(-1===i)return;const o=i%7;let r=null;if("start"===t){const t=i-o;r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e<=i;)e++,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}else{const t=i+(6-o);r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${t+1}) .day:not([disabled]), .days-grid > :nth-child(${t+1}).day:not([disabled])`);let e=t;for(;!r&&e>=i;)e--,r=this.shadowRoot?.querySelector(`.days-grid > :nth-child(${e+1}) .day:not([disabled]), .days-grid > :nth-child(${e+1}).day:not([disabled])`)}r?.focus()}handleCalendarKeydown(t){const{key:e}=t,i=this.shadowRoot?.activeElement;if("Escape"===e)return t.preventDefault(),void this.dispatchEvent(new CustomEvent("close"));if("Tab"!==e)if(i&&(i.classList.contains("month-year-button")||i.classList.contains("nav-button"))){t.preventDefault();const o=this.shadowRoot?.querySelector(".month-year-button"),r=this.shadowRoot?.querySelector(".header-right button:first-child"),s=this.shadowRoot?.querySelector(".header-right button:last-child");if("Enter"===e||" "===e)return i===o?this.handleHeaderClick():i===r?this.handleNavClick(-1):i===s&&this.handleNavClick(1),void this.updateComplete.then((()=>i.focus()));switch(e){case"ArrowUp":return t.preventDefault(),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));case"ArrowRight":(i===o||i===r)&&s?.focus();break;case"ArrowLeft":i===s?r?.focus():i===r&&o?.focus();break;case"ArrowDown":if("days"===this.currentView){const t=this.initialFocusElement||this.shadowRoot?.querySelector(".day:not([disabled])");t?.focus()}else if("months"===this.currentView||"years"===this.currentView){const t=this.shadowRoot?.querySelector(`.${"months"===this.currentView?"month":"year"}-grid button:not([disabled])`);t?.focus()}}}else if(i&&i.classList.contains("day")&&"days"===this.currentView){t.preventDefault();const o=Array.from(this.shadowRoot.querySelectorAll(".day:not([disabled])")).findIndex((t=>t===i)),r=this.shadowRoot?.querySelector(".month-year-button");switch(e){case"ArrowLeft":this._findAndFocusDayButton(-1);break;case"ArrowRight":this._findAndFocusDayButton(1);break;case"ArrowDown":this._findAndFocusDayButton(7);break;case"ArrowUp":o-7<0?r?.focus():this._findAndFocusDayButton(-7);break;case"Home":this._focusDayOfWeekEdge("start");break;case"End":this._focusDayOfWeekEdge("end");break;case"Enter":i.click()}}else if(i&&(i.classList.contains("month-button")||i.classList.contains("year-button"))){t.preventDefault();const o="months"===this.currentView?".month-button:not([disabled])":".year-button:not([disabled])",r=Array.from(this.shadowRoot.querySelectorAll(o)),s=r.findIndex((t=>t===i)),n=this.shadowRoot?.querySelector(".month-year-button");if(-1===s)return;let a=s;switch(e){case"ArrowDown":a+=3,a>=r.length&&(a=r.length-1);break;case"ArrowUp":if(a-=3,a<0)return void n?.focus();break;case"ArrowLeft":a-=1,a<0&&(a=0);break;case"ArrowRight":a+=1,a>=r.length&&(a=r.length-1);break;case"Enter":i.click()}a!==s&&r[a]?.focus()}else(e.startsWith("Arrow")||"Enter"===e)&&t.preventDefault();else{const e=Array.from(this.shadowRoot.querySelectorAll("button:not([disabled])"));if(!e.includes(i))return;if(e.length>0){const o=e[0],r=e[e.length-1];if(t.shiftKey&&i===o)return t.preventDefault(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),void this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));t.shiftKey||i!==r||this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}}}renderHeader(){const t=this.getFullMonthNames();let i="",o=!1,r=!1;if("years"===this.currentView){const t=this.viewDate.getFullYear()-this.viewDate.getFullYear()%21,e=t+20;i=`${t} - ${e}`;o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=e>=(this.maxDate?this.maxDate.getFullYear():1/0)}else if("months"===this.currentView){i=`${this.viewDate.getFullYear()}`;const t=this.viewDate.getFullYear();o=t<=(this.minDate?this.minDate.getFullYear():-1/0),r=t>=(this.maxDate?this.maxDate.getFullYear():1/0)}else{i=` ${t[this.viewDate.getMonth()]} ${this.viewDate.getFullYear()} `,this.minDate&&(o=ke(_t(this.viewDate),_t(this.minDate))||xe(this.viewDate,this.minDate)),this.maxDate&&(r=ke(_t(this.viewDate),_t(this.maxDate))||we(this.viewDate,this.maxDate))}return e`
|
|
3566
3744
|
<div class="header">
|
|
3567
3745
|
<div class="header-left">
|
|
3568
3746
|
<button class="month-year-button" @click=${this.handleHeaderClick}>
|
|
@@ -3593,7 +3771,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3593
3771
|
</div>
|
|
3594
3772
|
`}renderMonthsView(){const t=this.getShortMonthNames(),i=this.selectedDate?.getMonth(),o=(new Date).getMonth(),r=this.viewDate.getFullYear();return e`
|
|
3595
3773
|
<div class="month-grid">
|
|
3596
|
-
${t.map(((t,s)=>{const n=s===o,a=s===i&&this.selectedDate
|
|
3774
|
+
${t.map(((t,s)=>{const n=s===o,a=s===i&&this.selectedDate&&$e(this.viewDate,this.selectedDate),l=s===i&&this.selectedDate&&!$e(this.viewDate,this.selectedDate);let d=!1;this.minDate&&r===this.minDate.getFullYear()&&(d=s<this.minDate.getMonth()),this.maxDate&&r===this.maxDate.getFullYear()&&(d=d||s>this.maxDate.getMonth());return e`
|
|
3597
3775
|
<button
|
|
3598
3776
|
class="${"month-button "+(a?"selected":l?"secondary-selected":n?"current":"")}"
|
|
3599
3777
|
?disabled=${d}
|
|
@@ -3603,20 +3781,20 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3603
3781
|
</button>
|
|
3604
3782
|
`}))}
|
|
3605
3783
|
</div>
|
|
3606
|
-
`}renderDayView(){const t=
|
|
3784
|
+
`}renderDayView(){const t=fe(this.viewDate),i=_t(this.viewDate),o=kt(i,r?.in).getDay();var r;const s=Array.from({length:0===o?6:o-1},(()=>null)),n=Array.from({length:t},((t,e)=>De(i,e+1))),a=this.getShortWeekdays();return e`
|
|
3607
3785
|
<div class="weekdays">
|
|
3608
3786
|
${a.map((t=>e`<div>${t}</div>`))}
|
|
3609
3787
|
</div>
|
|
3610
3788
|
|
|
3611
3789
|
<div class="days-grid">
|
|
3612
3790
|
${s.map((()=>e`<div></div>`))}
|
|
3613
|
-
${n.map((t=>{const i=
|
|
3791
|
+
${n.map((t=>{const i=Tt(t),o=this.selectedDate?Tt(this.selectedDate):null,r=this.minDate&&xe(i,Tt(this.minDate))||this.maxDate&&we(i,Tt(this.maxDate)),s=Se(i),n=o&&ve(i)===ve(o),a=n&&o&&ke(i,o)&&$e(i,o);return e`
|
|
3614
3792
|
<button
|
|
3615
3793
|
class="${`day ${s?"today":""} ${a?"selected":n&&!a?"secondary-selected":""}`}"
|
|
3616
3794
|
?disabled=${r}
|
|
3617
3795
|
@click=${()=>this.handleDayClick(t)}
|
|
3618
3796
|
>
|
|
3619
|
-
${
|
|
3797
|
+
${me(t,"d")}
|
|
3620
3798
|
</button>
|
|
3621
3799
|
`}))}
|
|
3622
3800
|
</div>
|
|
@@ -3634,7 +3812,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3634
3812
|
<div class="calendar-container" style="width: ${this.calendarWidth}px;">
|
|
3635
3813
|
${r}
|
|
3636
3814
|
</div>
|
|
3637
|
-
`}};s([L({type:Object}),n("design:type",Object)],
|
|
3815
|
+
`}};s([L({type:Object}),n("design:type",Object)],Ee.prototype,"selectedDate",void 0),s([L({type:Object}),n("design:type",Date)],Ee.prototype,"viewDate",void 0),s([L({type:Boolean}),n("design:type",Object)],Ee.prototype,"isMobile",void 0),s([L({type:Number}),n("design:type",Number)],Ee.prototype,"calendarWidth",void 0),s([L({type:Object}),n("design:type",Object)],Ee.prototype,"minDate",void 0),s([L({type:Object}),n("design:type",Object)],Ee.prototype,"maxDate",void 0),s([L({type:String}),n("design:type",String)],Ee.prototype,"type",void 0),s([L({type:Boolean}),n("design:type",Object)],Ee.prototype,"lastElement",void 0),s([B(),n("design:type",String)],Ee.prototype,"currentView",void 0),s([_(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],Ee.prototype,"initialFocusElement",void 0),Ee=s([a("calendar-overlay"),n("design:paramtypes",[])],Ee);let Ce=class extends P{constructor(){super(...arguments),this.isRenderClearButton=!0,this.readonly=!1,this.type="date",this.eighteenOrOlder=!1,this.maxLength=10,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.lastElement=!1,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen&&this._emitToggle(!1),this.isOpen=!1)}}static{this.styles=o`
|
|
3638
3816
|
${Q}
|
|
3639
3817
|
${J}
|
|
3640
3818
|
${K}
|
|
@@ -3761,7 +3939,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3761
3939
|
.calendar-button randstad-icon {
|
|
3762
3940
|
font-size: 18px;
|
|
3763
3941
|
}
|
|
3764
|
-
`}setMessageErrorFormatInvalid(){return`formato de fecha inválido, se esperaba '${"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}'`}get _currentFormat(){return"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}setInitialWidth(){if(!this.inputContainer)return;const t=this.inputContainer.getBoundingClientRect().width;this.calendarWidth!==t&&(this.calendarWidth=t)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){this.onlyNumericAndDash(t);const e=t.target,i=e.value.substring(0,this.maxLength);e.value!==i&&(e.value=i),this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){let e=t.detail.date;if(!e)return;"month"===this.type&&(e=
|
|
3942
|
+
`}setMessageErrorFormatInvalid(){return`formato de fecha inválido, se esperaba '${"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}'`}get _currentFormat(){return"month"===this.type?"MM-yyyy":"dd-MM-yyyy"}handleFocusInput(){this.shadowRoot?.querySelector(".date-input")?.focus()}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside),this.addEventListener("focus-input",this.handleFocusInput)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside),this.removeEventListener("focus-input",this.handleFocusInput),super.disconnectedCallback()}firstUpdated(){this.setInitialWidth()}setInitialWidth(){if(!this.inputContainer)return;const t=this.inputContainer.getBoundingClientRect().width;this.calendarWidth!==t&&(this.calendarWidth=t)}updateResponsiveMode(){this.isMobile=window.innerWidth<=940,this.setInitialWidth()}handleInput(t){this.onlyNumericAndDash(t);const e=t.target,i=e.value.substring(0,this.maxLength);e.value!==i&&(e.value=i),this.inputValue=e.value,this._parseAndValidateDate(e.value,!0)}handleCalendarButtonClick(t){if(!this.disabled)if(t.stopPropagation(),this.isOpen){this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}else this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector(".date-input");t?.focus()}))}handleClearDate(){this.inputValue=null,this.selectedDate=null,this.error=!1,this.errorMessage=null,this.closeOverlay(null)}handleDateSelect(t){let e=t.detail.date;if(!e)return;"month"===this.type&&(e=De(e,1));if(this._validateDate(e)){this.selectedDate=e,this.viewDate=e;const t=me(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.closeOverlay(t)}else{const t=me(e,this._currentFormat);this.inputValue=t.replace(/-/g,"/"),this.selectedDate=null,this.closeOverlay(null)}}_emitToggle(t){this.dispatchEvent(new CustomEvent("calendar-toggle",{detail:{open:t},bubbles:!0,composed:!0}))}_isLastFocusableInModal(){const t=this.parentElement;if(!t)return!1;const e=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","a[href]",'[tabindex]:not([tabindex="-1"])',"randstad-button:not([disabled])","datepicker-component:not([disabled])","randstad-select:not([disabled])"].join(", "),i=t.querySelectorAll(e),o=Array.from(i),r=o.indexOf(this);return-1!==r&&r===o.length-1}_emitDropdownToggle(t){(t?this.isOpen&&this.lastElement:this.lastElement)&&this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dropdown-toggle-calendar",{detail:{open:t},bubbles:!0,composed:!0}))}))}willUpdate(t){if(t.has("width")&&this.style.setProperty("width",this.width||"100%"),t.has("value")){const e=t.get("value");this.value!==e&&this._syncValue(this.value)}t.has("type")&&("month"===this.type?this.maxLength=7:this.maxLength=10)}updated(t){(t.has("isOpen")||t.has("value"))&&this.isOpen&&this.updateComplete.then((()=>{this.setInitialWidth()})),super.updated(t)}handleViewDateChange(t){this.viewDate=t.detail.date}closeOverlay(t){this.value=t,this.inputValue=t?t.replace(/-/g,"/"):null,this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t}})),this.isOpen=!1,this._emitToggle(!1),this._emitDropdownToggle(!1);const e=this.shadowRoot?.querySelector(".date-input");e?.focus()}_syncValue(t){if(""===t||null===t)return void(null===this.selectedDate&&null===this.inputValue||(this.selectedDate=null,this.inputValue=null,this.errorMessage=null,this.error=!1));let e=this._parseDate(t);e&&this._validateDate(e)?("month"===this.type&&(e=De(e,1)),this.selectedDate=e,this.viewDate=e,this.error=!1,this.errorMessage=null,this.inputValue=me(e,this._currentFormat).replace(/-/g,"/")):this.selectedDate=e}_validateDate(t){if(!t)return!1;if(this.error=!1,this.errorMessage=null,this.eighteenOrOlder){const e=function(t,e,i){return Lt(t,-18,i)}(new Date);if(we(t,e))return this.error=!0,this.errorMessage="tenés que ser mayor de 18 años",!1}return!!this._isWithinBounds(t)||(this._getValidDateRange(),this.error=!0,!1)}_parseAndValidateDate(t,e){if(this.disabled)return;if(""===t||null===t)return this.selectedDate=null,this.error=!1,this.errorMessage=null,void(e&&this.closeOverlay(null));const i=this._parseDate(t);if(i){this._validateDate(i)?(this.selectedDate=i,this.viewDate=i,this.error=!1,this.errorMessage=null,e&&this.closeOverlay(me(i,this._currentFormat))):(this.error=!0,this.selectedDate=null,e&&this.closeOverlay(null))}else this.error=!0,this.errorMessage=this.setMessageErrorFormatInvalid(),this.selectedDate=null,e&&this.closeOverlay(null)}_parseDate(t){const e=t.split("-").map(Number);if("month"===this.type&&2===e.length){const[t,i]=e;if(t>=1&&t<=12&&i>1e3){const e=new Date(i,t-1,1,12);if(Bt(e))return e}return null}if(3===e.length){const[i,o,r]=e;if(i&&o&&r&&o>=1&&o<=12&&r>1e3){const e=new Date(r,o-1,i,12);if(Bt(e)&&me(e,"dd-MM-yyyy")===t)return e}}const i=t.split("-").map(Number);if(3===i.length){const[e,o,r]=i;if(e&&o&&r&&o>=1&&o<=12&&e>1e3){const i=new Date(e,o-1,r,12);if(Bt(i)&&me(i,"yyyy-MM-dd")===t)return i}}return null}_parseDateString(t){if(!t)return null;const e=t.split("-").map(Number);if(3===e.length&&!isNaN(e[0])&&!isNaN(e[1])&&!isNaN(e[2])){return new Date(e[0],e[1]-1,e[2],12)}return null}_getValidDateRange(){const t=this._parseDateString(this.minDate),e=this._parseDateString(this.maxDate);return t||e?t&&e&&we(t,e)?null:{minDate:t,maxDate:e}:{minDate:null,maxDate:null}}_isWithinBounds(t){const e=this._getValidDateRange();return!e||(!e.minDate||!xe(t,e.minDate))&&(!e.maxDate||!we(t,e.maxDate))}handleKeyDown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input");if("Enter"===e||" "===e)t.preventDefault(),this.isOpen?(this.closeOverlay(this.value),this._emitDropdownToggle(!1)):(this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date);else if("Escape"===e){if(!this.isOpen)return;t.preventDefault(),this.closeOverlay(this.value),this._emitDropdownToggle(!1)}else"ArrowDown"===e&&(t.preventDefault(),this.isOpen||(this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date),this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusCalendar&&t.focusCalendar()})));const o=this.shadowRoot?.querySelector(".clear-button"),r=this.shadowRoot?.querySelector(".calendar-button");"ArrowRight"===e&&(t.preventDefault(),this.shadowRoot?.activeElement===i&&(o?o.focus():r?.focus()))}handleClearButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".calendar-button");"ArrowLeft"===e?(t.preventDefault(),i?.focus()):"ArrowRight"===e&&(t.preventDefault(),o?.focus())}handleCalendarButtonKeydown(t){if(this.disabled)return;const{key:e}=t,i=this.shadowRoot?.querySelector(".date-input"),o=this.shadowRoot?.querySelector(".clear-button");if("Tab"===e){if(!t.shiftKey&&!this.isOpen)return t.preventDefault(),this.isOpen=!0,this._emitToggle(!0),this._emitDropdownToggle(!0),this.selectedDate?this.viewDate=this.selectedDate:this.viewDate=new Date,void this.updateComplete.then((()=>{const t=this.shadowRoot?.querySelector("calendar-overlay");t&&"function"==typeof t.focusFirstElement&&t.focusFirstElement()}));if(this.isOpen)return t.preventDefault(),void this.closeOverlay(this.value)}"ArrowLeft"===e?(t.preventDefault(),o?o.focus():i?.focus()):("Enter"!==e&&" "!==e||t.preventDefault(),this.handleCalendarButtonClick(t))}onlyNumericAndDash(t){const e=t.target,i=e.value.replace(/[^0-9-]/g,"");e.value=i}render(){const t=r({"input-wrapper":!0,active:this.isOpen,error:this.error,disabled:this.disabled,readonly:this.readonly}),o=this._getValidDateRange();return e`
|
|
3765
3943
|
<div class="datepicker-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
3766
3944
|
${this.renderLabelContainer()}
|
|
3767
3945
|
|
|
@@ -3823,11 +4001,11 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3823
4001
|
|
|
3824
4002
|
${this.renderHelper()}
|
|
3825
4003
|
</div>
|
|
3826
|
-
`}};s([L({type:String}),n("design:type",String)],
|
|
4004
|
+
`}};s([L({type:String}),n("design:type",String)],Ce.prototype,"width",void 0),s([L({type:Boolean}),n("design:type",Object)],Ce.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],Ce.prototype,"readonly",void 0),s([L({type:String}),n("design:type",String)],Ce.prototype,"minDate",void 0),s([L({type:String}),n("design:type",String)],Ce.prototype,"maxDate",void 0),s([L({type:String}),n("design:type",String)],Ce.prototype,"type",void 0),s([L({type:Boolean}),n("design:type",Object)],Ce.prototype,"eighteenOrOlder",void 0),s([L({type:Number}),n("design:type",Number)],Ce.prototype,"maxLength",void 0),s([B(),n("design:type",Object)],Ce.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],Ce.prototype,"selectedDate",void 0),s([B(),n("design:type",Date)],Ce.prototype,"viewDate",void 0),s([B(),n("design:type",Object)],Ce.prototype,"isMobile",void 0),s([B(),n("design:type",Number)],Ce.prototype,"calendarWidth",void 0),s([B(),n("design:type",Object)],Ce.prototype,"inputValue",void 0),s([_(".input-container"),n("design:type",HTMLDivElement)],Ce.prototype,"inputContainer",void 0),s([L({type:Boolean,attribute:"last-element"}),n("design:type",Object)],Ce.prototype,"lastElement",void 0),Ce=s([a("datepicker-component")],Ce);let Oe=class extends gt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.showInternalError=!0,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
|
|
3827
4005
|
${Q}
|
|
3828
4006
|
${J}
|
|
3829
4007
|
${K}
|
|
3830
|
-
${
|
|
4008
|
+
${yt}
|
|
3831
4009
|
|
|
3832
4010
|
:host([width]) {
|
|
3833
4011
|
width: var( --upload-file-width );
|
|
@@ -3866,7 +4044,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3866
4044
|
}
|
|
3867
4045
|
|
|
3868
4046
|
.file-name {
|
|
3869
|
-
${
|
|
4047
|
+
${A};
|
|
3870
4048
|
text-align: right;
|
|
3871
4049
|
color: var( --secondary-color-40 );
|
|
3872
4050
|
vertical-align: middle;
|
|
@@ -3889,7 +4067,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3889
4067
|
outline: 2px solid rgb( 0, 215, 255 ) !important;
|
|
3890
4068
|
outline-offset: 1px;
|
|
3891
4069
|
}
|
|
3892
|
-
`}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,
|
|
4070
|
+
`}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,mt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}handleRemoveFile(t,e){this.showDeleteConfirmation?this.confirmRemoveFile(t,e):this.removeFile(t,"file")}confirmRemoveFile(t,e){this.fileIndexToRemove=t,this.fileNameToRemove=e,this.isRemovePopupOpen=!0}handlePopupClose(t){!1===t.detail&&this.removeFile(this.fileIndexToRemove,"file"),this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
|
|
3893
4071
|
<randstad-button
|
|
3894
4072
|
.label=${this.buttonText}
|
|
3895
4073
|
.variant=${"button-primary"}
|
|
@@ -3950,7 +4128,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3950
4128
|
</custom-popup>
|
|
3951
4129
|
`:i}
|
|
3952
4130
|
</div>
|
|
3953
|
-
`}};s([L({type:String}),n("design:type",String)],
|
|
4131
|
+
`}};s([L({type:String}),n("design:type",String)],Oe.prototype,"width",void 0),s([L({type:Number}),n("design:type",Object)],Oe.prototype,"maxFiles",void 0),s([L({type:Array}),n("design:type",Array)],Oe.prototype,"acceptedFileTypes",void 0),s([L({type:Number}),n("design:type",Object)],Oe.prototype,"maxFileSize",void 0),s([L({type:String}),n("design:type",Object)],Oe.prototype,"buttonText",void 0),s([L({type:Boolean}),n("design:type",Object)],Oe.prototype,"showDeleteConfirmation",void 0),s([L({type:Boolean}),n("design:type",Object)],Oe.prototype,"showInternalError",void 0),s([B(),n("design:type",Boolean)],Oe.prototype,"isRemovePopupOpen",void 0),s([B(),n("design:type",Number)],Oe.prototype,"fileIndexToRemove",void 0),s([B(),n("design:type",String)],Oe.prototype,"fileNameToRemove",void 0),Oe=s([a("upload-file")],Oe);let Fe=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
|
|
3954
4132
|
:host {
|
|
3955
4133
|
display: block;
|
|
3956
4134
|
width: 100%;
|
|
@@ -4270,7 +4448,7 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4270
4448
|
|
|
4271
4449
|
${this.renderNavButtons()}
|
|
4272
4450
|
</div>
|
|
4273
|
-
`}};s([L({type:Array}),n("design:type",Array)],
|
|
4451
|
+
`}};s([L({type:Array}),n("design:type",Array)],Fe.prototype,"cards",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"cardWidth",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"cardHeight",void 0),s([L({type:Number}),n("design:type",Number)],Fe.prototype,"navWidth",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Fe.prototype,"showNavButtons",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Fe.prototype,"isDynamicWidth",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Fe.prototype,"isInfiniteScrollPartial",void 0),s([L({type:Number}),n("design:type",Number)],Fe.prototype,"autoPlayDelayMs",void 0),s([B(),n("design:type",Object)],Fe.prototype,"showPrevButton",void 0),s([B(),n("design:type",Object)],Fe.prototype,"showNextButton",void 0),s([_(".carousel-wrapper"),n("design:type",HTMLElement)],Fe.prototype,"slider",void 0),s([_("slot"),n("design:type",HTMLSlotElement)],Fe.prototype,"slotElement",void 0),Fe=s([a("carousel-component"),n("design:paramtypes",[])],Fe);let Me=class extends t{constructor(){super(...arguments),this.message="",this.position="top",this.variant="bubble",this.visible=!0,this.arrowAlign="15px",this.isAnimating=!1}static{this.styles=o`
|
|
4274
4452
|
:host {
|
|
4275
4453
|
display: inline-block;
|
|
4276
4454
|
position: relative;
|
|
@@ -4382,5 +4560,5 @@ function j(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4382
4560
|
<slot></slot>
|
|
4383
4561
|
`:""}
|
|
4384
4562
|
</div>
|
|
4385
|
-
`}};s([L({type:String}),n("design:type",Object)],
|
|
4563
|
+
`}};s([L({type:String}),n("design:type",Object)],Me.prototype,"message",void 0),s([L({type:Number}),n("design:type",Number)],Me.prototype,"duration",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"position",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"variant",void 0),s([L({type:Boolean}),n("design:type",Object)],Me.prototype,"visible",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"icon",void 0),s([L({type:String}),n("design:type",Object)],Me.prototype,"arrowAlign",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"backgroundColor",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"textColor",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"fontFamily",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"width",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"height",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"top",void 0),s([L({type:String}),n("design:type",String)],Me.prototype,"left",void 0),s([B(),n("design:type",Object)],Me.prototype,"isAnimating",void 0),Me=s([a("randstad-bubble")],Me);export{U as AccordionList,q as AccordionPanel,P as BaseControl,Ee as CalendarOverlay,Fe as Carousel,Y as CarouselCard,G as Checkbox,st as CustomModal,nt as CustomPopup,lt as CustomRadio,pt as CustomStepper,Ce as DatePickerComponent,dt as FilterableSelect,et as FormGroup,it as IconComponent,at as ProgressCircle,Me as RandstadBubble,H as RandstadButton,tt as RandstadForm,rt as RandstadNotice,ot as RandstadSocialMediaInput,ut as TabsBar,Oe as UploadFile,vt as UploadImage,Z as scrollbarStyles};
|
|
4386
4564
|
//# sourceMappingURL=index.js.map
|