@randstad-uca/design-system 1.0.83 → 1.0.84
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/Bubble.d.ts +1 -0
- package/dist/components/Popup.d.ts +1 -0
- package/dist/index.js +20 -19
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/stories/Bubble.stories.d.ts +6 -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 j(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"}renderLabelContainer(){return e`
|
|
40
40
|
${this.label?e`
|
|
41
41
|
<div class="label-container">
|
|
42
42
|
${this.renderLabel()}
|
|
@@ -79,7 +79,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
79
79
|
${this.helper}
|
|
80
80
|
</p>
|
|
81
81
|
`:i}
|
|
82
|
-
`}};s([L({type:String}),n("design:type",Object)],
|
|
82
|
+
`}};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:String}),n("design:type",String)],P.prototype,"helpLink",void 0),s([L({type:String}),n("design:type",String)],P.prototype,"helpLinkTooltipMessage",void 0),P=s([a("base-control")],P);const R=o`
|
|
83
83
|
font-family: 'Graphik', sans-serif;
|
|
84
84
|
font-weight: 400;
|
|
85
85
|
font-size: 12px;
|
|
@@ -1014,7 +1014,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1014
1014
|
::-webkit-scrollbar-button {
|
|
1015
1015
|
display: none;
|
|
1016
1016
|
}
|
|
1017
|
-
`.cssText);let tt=class extends
|
|
1017
|
+
`.cssText);let tt=class extends P{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[Z,o`
|
|
1018
1018
|
${Q}
|
|
1019
1019
|
${J}
|
|
1020
1020
|
${K}
|
|
@@ -1250,7 +1250,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1250
1250
|
|
|
1251
1251
|
${this.renderHelper()}
|
|
1252
1252
|
</div>
|
|
1253
|
-
`}};s([L({type:String}),n("design:type",Object)],tt.prototype,"keydown",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"size",void 0),s([L({type:String}),n("design:type",Object)],tt.prototype,"icon",void 0),s([L({type:Boolean}),n("design:type",Boolean)],tt.prototype,"typing",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"type",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"linkText",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"linkRoute",void 0),s([L({type:Boolean,reflect:!0}),n("design:type",Object)],tt.prototype,"isPasswordVisible",void 0),s([L({type:Boolean}),n("design:type",Boolean)],tt.prototype,"cleanButton",void 0),s([L({type:Number}),n("design:type",Number)],tt.prototype,"maxLength",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"heightTextArea",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"maxHeightTextArea",void 0),tt=s([a("randstad-form")],tt);let et=class extends
|
|
1253
|
+
`}};s([L({type:String}),n("design:type",Object)],tt.prototype,"keydown",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"size",void 0),s([L({type:String}),n("design:type",Object)],tt.prototype,"icon",void 0),s([L({type:Boolean}),n("design:type",Boolean)],tt.prototype,"typing",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"type",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"linkText",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"linkRoute",void 0),s([L({type:Boolean,reflect:!0}),n("design:type",Object)],tt.prototype,"isPasswordVisible",void 0),s([L({type:Boolean}),n("design:type",Boolean)],tt.prototype,"cleanButton",void 0),s([L({type:Number}),n("design:type",Number)],tt.prototype,"maxLength",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"heightTextArea",void 0),s([L({type:String}),n("design:type",String)],tt.prototype,"maxHeightTextArea",void 0),tt=s([a("randstad-form")],tt);let et=class extends P{constructor(){super(...arguments),this.rows=""}static{this.styles=o`
|
|
1254
1254
|
${Q}
|
|
1255
1255
|
${J}
|
|
1256
1256
|
${K}
|
|
@@ -1586,7 +1586,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1586
1586
|
`}
|
|
1587
1587
|
</div>
|
|
1588
1588
|
</div>
|
|
1589
|
-
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),s([L({type:String}),n("design:type",String)],rt.prototype,"subtitle",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showNotice",void 0),s([L({type:String}),n("design:type",String)],rt.prototype,"noticeType",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"noticeMessage",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"noticeIcon",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showPrimaryButton",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"primaryButtonLabel",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showSecondaryButton",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"secondaryButtonLabel",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isFooterCustom",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isPrimaryLoader",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isPrimaryDisabled",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"modalWidth",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"modalHeight",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"maxHeight",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"hideFooter",void 0),s([B(),n("design:type",Object)],rt.prototype,"scrollable",void 0),s([B(),n("design:type",Object)],rt.prototype,"hasDropdownOpen",void 0),s([B(),n("design:type",Object)],rt.prototype,"hasCalendarOpen",void 0),rt=s([a("custom-modal")],rt);let st=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.stackedActions=[],this._onBackgroundClick=t=>{const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
|
|
1589
|
+
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],rt.prototype,"open",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"title",void 0),s([L({type:String}),n("design:type",String)],rt.prototype,"subtitle",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showNotice",void 0),s([L({type:String}),n("design:type",String)],rt.prototype,"noticeType",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"noticeMessage",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"noticeIcon",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showPrimaryButton",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"primaryButtonLabel",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"showSecondaryButton",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"secondaryButtonLabel",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isFooterCustom",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isPrimaryLoader",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"isPrimaryDisabled",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"modalWidth",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"modalHeight",void 0),s([L({type:String}),n("design:type",Object)],rt.prototype,"maxHeight",void 0),s([L({type:Boolean}),n("design:type",Object)],rt.prototype,"hideFooter",void 0),s([B(),n("design:type",Object)],rt.prototype,"scrollable",void 0),s([B(),n("design:type",Object)],rt.prototype,"hasDropdownOpen",void 0),s([B(),n("design:type",Object)],rt.prototype,"hasCalendarOpen",void 0),rt=s([a("custom-modal")],rt);let st=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`
|
|
1590
1590
|
:host {
|
|
1591
1591
|
display: none;
|
|
1592
1592
|
position: fixed;
|
|
@@ -1782,7 +1782,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1782
1782
|
`}
|
|
1783
1783
|
</div>
|
|
1784
1784
|
</div>
|
|
1785
|
-
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],st.prototype,"open",void 0),s([L({type:String}),n("design:type",String)],st.prototype,"type",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"icon",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"title",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"description",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"width",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"height",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"buttonText",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"confirmText",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"cancelText",void 0),s([L({type:Array}),n("design:type",Array)],st.prototype,"stackedActions",void 0),st=s([a("custom-popup")],st);let nt=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
|
|
1785
|
+
`}};s([L({type:Boolean,reflect:!0}),n("design:type",Object)],st.prototype,"open",void 0),s([L({type:String}),n("design:type",String)],st.prototype,"type",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"icon",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"title",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"description",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"width",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"height",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"buttonText",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"confirmText",void 0),s([L({type:String}),n("design:type",Object)],st.prototype,"cancelText",void 0),s([L({type:Boolean}),n("design:type",Object)],st.prototype,"closeOnOutsideClick",void 0),s([L({type:Array}),n("design:type",Array)],st.prototype,"stackedActions",void 0),st=s([a("custom-popup")],st);let nt=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
|
|
1786
1786
|
:host {
|
|
1787
1787
|
display: inline-block;
|
|
1788
1788
|
width: 64px;
|
|
@@ -1987,7 +1987,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
1987
1987
|
|
|
1988
1988
|
<span> ${o} </span>
|
|
1989
1989
|
</label>
|
|
1990
|
-
`}};s([L({type:String}),n("design:type",Object)],at.prototype,"name",void 0),s([L({type:Boolean}),n("design:type",Object)],at.prototype,"checked",void 0),s([L({type:Boolean}),n("design:type",Object)],at.prototype,"disabled",void 0),s([L({type:Boolean}),n("design:type",Object)],at.prototype,"error",void 0),s([L({type:String}),n("design:type",Object)],at.prototype,"label",void 0),s([L({type:String}),n("design:type",Object)],at.prototype,"value",void 0),at=s([a("custom-radio")],at);let lt=class extends
|
|
1990
|
+
`}};s([L({type:String}),n("design:type",Object)],at.prototype,"name",void 0),s([L({type:Boolean}),n("design:type",Object)],at.prototype,"checked",void 0),s([L({type:Boolean}),n("design:type",Object)],at.prototype,"disabled",void 0),s([L({type:Boolean}),n("design:type",Object)],at.prototype,"error",void 0),s([L({type:String}),n("design:type",Object)],at.prototype,"label",void 0),s([L({type:String}),n("design:type",Object)],at.prototype,"value",void 0),at=s([a("custom-radio")],at);let lt=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`
|
|
1991
1991
|
${Q}
|
|
1992
1992
|
${J}
|
|
1993
1993
|
${K}
|
|
@@ -2359,7 +2359,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2359
2359
|
.mobile-modal .options-list li.no-results-item.mobile-item {
|
|
2360
2360
|
text-align: center;
|
|
2361
2361
|
}
|
|
2362
|
-
`]}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)?n<a?-1:n>a?1:0: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);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.isMobile&&this.toggleDynamicScrollLock(this.isOpen),this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):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.isMobile&&this.toggleDynamicScrollLock(!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;if(e instanceof Node){if(!this.contains(e)&&this.isOpen){const t=this.value&&""!==this.value;this.isOpen=!1,t||this.handleReset(),this.isMobile&&this.toggleDynamicScrollLock(!1),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.isMobile&&this.toggleDynamicScrollLock(!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((()=>{if(this.isOpen)return;let t=!1,e=!1;if(this.value&&""!==this.value){const i=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));if(i){t=!0,e=("string"==typeof i?i:i.label).toLowerCase()===this.filterValue.toLowerCase()}}let i=!1;const o=!this.filterValue||""===this.filterValue.trim();o||t&&e||(i=!0),i?(this._isCleared=!0,this.value="",this.filterValue="",this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterable&&(this.filteredOptions=[...this.options])):o&&this.filterable?(this.filteredOptions=[...this.options],this.showNoResults=!1):this.showNoResults&&(this.showNoResults=!1),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)))}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
|
|
2362
|
+
`]}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);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.isMobile&&this.toggleDynamicScrollLock(this.isOpen),this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength):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.isMobile&&this.toggleDynamicScrollLock(!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;if(e instanceof Node){if(!this.contains(e)&&this.isOpen){const t=this.value&&""!==this.value;this.isOpen=!1,t||this.handleReset(),this.isMobile&&this.toggleDynamicScrollLock(!1),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.isMobile&&this.toggleDynamicScrollLock(!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((()=>{if(this.isOpen)return;let t=!1,e=!1;if(this.value&&""!==this.value){const i=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));if(i){t=!0,e=("string"==typeof i?i:i.label).toLowerCase()===this.filterValue.toLowerCase()}}let i=!1;const o=!this.filterValue||""===this.filterValue.trim();o||t&&e||(i=!0),i?(this._isCleared=!0,this.value="",this.filterValue="",this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterable&&(this.filteredOptions=[...this.options])):o&&this.filterable?(this.filteredOptions=[...this.options],this.showNoResults=!1):this.showNoResults&&(this.showNoResults=!1),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)))}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
|
|
2363
2363
|
<randstad-icon
|
|
2364
2364
|
name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
|
|
2365
2365
|
size="24px"
|
|
@@ -2500,7 +2500,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2500
2500
|
</div>
|
|
2501
2501
|
</div>
|
|
2502
2502
|
`:i}
|
|
2503
|
-
`}};s([L({type:Object}),n("design:type",Object)],lt.prototype,"value",void 0),s([L({type:String,attribute:"default-value"}),n("design:type",Object)],lt.prototype,"defaultValue",void 0),s([L({type:Array}),n("design:type",Array)],lt.prototype,"options",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"filterable",void 0),s([L({type:Number}),n("design:type",Number)],lt.prototype,"maxLength",void 0),s([L({type:String}),n("design:type",String)],lt.prototype,"textLabelFilterNotResult",void 0),s([L({type:String}),n("design:type",String)],lt.prototype,"textLabelMobileSearch",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"sortable",void 0),s([B(),n("design:type",Boolean)],lt.prototype,"isMobile",void 0),s([B(),n("design:type",Object)],lt.prototype,"highlightedIndex",void 0),s([B(),n("design:type",Boolean)],lt.prototype,"_isCleared",void 0),s([B(),n("design:type",Array)],lt.prototype,"filteredOptions",void 0),s([B(),n("design:type",Object)],lt.prototype,"filterValue",void 0),s([B(),n("design:type",Object)],lt.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],lt.prototype,"mobileFilterValue",void 0),s([B(),n("design:type",Boolean)],lt.prototype,"showNoResults",void 0),s([L({type:Boolean,attribute:"last-element"}),n("design:type",Object)],lt.prototype,"lastElement",void 0),s([
|
|
2503
|
+
`}};s([L({type:Object}),n("design:type",Object)],lt.prototype,"value",void 0),s([L({type:String,attribute:"default-value"}),n("design:type",Object)],lt.prototype,"defaultValue",void 0),s([L({type:Array}),n("design:type",Array)],lt.prototype,"options",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"filterable",void 0),s([L({type:Number}),n("design:type",Number)],lt.prototype,"maxLength",void 0),s([L({type:String}),n("design:type",String)],lt.prototype,"textLabelFilterNotResult",void 0),s([L({type:String}),n("design:type",String)],lt.prototype,"textLabelMobileSearch",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],lt.prototype,"sortable",void 0),s([B(),n("design:type",Boolean)],lt.prototype,"isMobile",void 0),s([B(),n("design:type",Object)],lt.prototype,"highlightedIndex",void 0),s([B(),n("design:type",Boolean)],lt.prototype,"_isCleared",void 0),s([B(),n("design:type",Array)],lt.prototype,"filteredOptions",void 0),s([B(),n("design:type",Object)],lt.prototype,"filterValue",void 0),s([B(),n("design:type",Object)],lt.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],lt.prototype,"mobileFilterValue",void 0),s([B(),n("design:type",Boolean)],lt.prototype,"showNoResults",void 0),s([L({type:Boolean,attribute:"last-element"}),n("design:type",Object)],lt.prototype,"lastElement",void 0),s([j(".mobile-modal .filter-input"),n("design:type",HTMLInputElement)],lt.prototype,"mobileInputRef",void 0),lt=s([a("filterable-select")],lt);const dt=new CSSStyleSheet;dt.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 ct extends t{static{this.styles=[dt,o`
|
|
2504
2504
|
:host {
|
|
2505
2505
|
display: flex;
|
|
2506
2506
|
position: fixed;
|
|
@@ -2875,7 +2875,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2875
2875
|
</button>
|
|
2876
2876
|
`:null}
|
|
2877
2877
|
</div>
|
|
2878
|
-
`}};s([L({type:Array}),n("design:type",Array)],pt.prototype,"tabs",void 0),s([L({type:String}),n("design:type",String)],pt.prototype,"selected",void 0),s([B(),n("design:type",String)],pt.prototype,"internalSelected",void 0),s([B(),n("design:type",Object)],pt.prototype,"showPrev",void 0),s([B(),n("design:type",Object)],pt.prototype,"showNext",void 0),pt=s([a("tabs-bar")],pt);let ut=class extends
|
|
2878
|
+
`}};s([L({type:Array}),n("design:type",Array)],pt.prototype,"tabs",void 0),s([L({type:String}),n("design:type",String)],pt.prototype,"selected",void 0),s([B(),n("design:type",String)],pt.prototype,"internalSelected",void 0),s([B(),n("design:type",Object)],pt.prototype,"showPrev",void 0),s([B(),n("design:type",Object)],pt.prototype,"showNext",void 0),pt=s([a("tabs-bar")],pt);let ut=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=t=>`El formato del archivo ${this.isMultiple?t:""} no es válido`,this.TEXT_SNACKBAR_ERROR_SIZE=(t,e)=>`El archivo ${this.isMultiple?t:""} es muy grande. Máximo ${e}`,this.TEXT_SNACKBAR_ERROR_DELETE=t=>`Tu ${this.typeTextFile?this.typeTextFile:"file"===t?"archivo":"imagen"} fue ${"file"===t?"eliminado":"eliminada"}`}showSnackbar(t,e=5e3,i){const o=document.querySelector("randstad-snackbar");o?(o.type=i,o.icon="error"===i?"warning":"check",o.message=t,o.open=!0,clearTimeout(o.timer),o.timer=setTimeout((()=>o.open=!1),e)):console.warn("randstad-snackbar component not found in the DOM. Cannot show alert.")}baseGetTextMaxFileSize(t){const e=1048576;if(t>=e){return`${parseFloat((t/e).toPrecision(3)).toString()} MB`}return`${Math.round(t/1024)} KB`}getReadableFileTypes(t,e){const i=t.map((t=>e[t]||t));if(i.length<=1)return i.join("");const o=i.pop();return`${i.join(", ")} y ${o}`}validateFiles(t,e,i,o,r,s){const n=e>0,a=i.length>0;for(const l of t){if(a&&!i.includes(l.type))return this.setError(s,o,this.TEXT_SNACKBAR_ERROR_TYPE(l.name)),!1;if(n&&l.size>e)return this.setError(s,r,this.TEXT_SNACKBAR_ERROR_SIZE(l.name,this.baseGetTextMaxFileSize(e))),!1}return!0}async baseHandleFiles(t,e){const{baseMaxFiles:i,maxFileSize:o,acceptedFileTypes:r,errorMessageType:s,errorMessageSize:n,typeError:a}=e;if(this.setError(a,null,null),!t||this.disabled||this.loading)return;const l=Array.isArray(this.files)?this.files:[],d=Number.isFinite(i)&&i>0?i:1,c=d-l.length;if(c<=0){const t=`se ha alcanzado el número máximo de archivos (${d}).`;return void this.setError(a,t,t)}const h=Array.from(t).slice(0,c);if(0===h.length)return;if(!this.validateFiles(h,o,r,s,n,a))return;const p=this.simulatedDelay??0;if(p<=0)return this.files=[...l,...h],void this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files}));this.loading=!0,this.progress=0,await this.updateComplete;const u=Date.now(),g=setInterval((()=>{const t=Date.now()-u,e=Math.min(Math.round(t/p*100),100);this.progress=e,this.progress>=100&&(clearInterval(g),this.files=[...l,...h],this.loading=!1,this.progress=0,this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})))}),10);this.fileInput&&(this.fileInput.value="")}baseOnFileInputChange(t,e){const i=t.target;this.baseHandleFiles(i.files,e),this.fileInput&&(this.fileInput.value="")}removeFile(t,e){this.files=this.files.filter(((e,i)=>i!==t)),this.dispatchEvent(new CustomEvent("files-changed",{detail:this.files})),0===this.files.length&&this.setError(e,null,null),this.showAlertInError&&this.showSnackbar(this.TEXT_SNACKBAR_ERROR_DELETE(e),5e3,"success")}setError(t="file",e,i){"file"===t&&(this.error=!!e,this.errorMessage=e),"image"===t&&(this.errorTextMessage=e),this.showAlertInError&&i&&this.showSnackbar(i,5e3,"error")}renderLoadingContainer(t){return e`
|
|
2879
2879
|
${this.loading?e`
|
|
2880
2880
|
<div class="progress-bar-container">
|
|
2881
2881
|
<div class="progress-bar" role="progressbar" aria-label="Subiendo archivo…">
|
|
@@ -2885,7 +2885,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
2885
2885
|
`:e`
|
|
2886
2886
|
${t}
|
|
2887
2887
|
`}
|
|
2888
|
-
`}};s([L({type:Array}),n("design:type",Array)],ut.prototype,"files",void 0),s([L({type:Number}),n("design:type",Object)],ut.prototype,"simulatedDelay",void 0),s([L({type:Boolean}),n("design:type",Object)],ut.prototype,"showAlertInError",void 0),s([L({type:String}),n("design:type",Object)],ut.prototype,"typeTextFile",void 0),s([B(),n("design:type",Object)],ut.prototype,"loading",void 0),s([B(),n("design:type",Object)],ut.prototype,"progress",void 0),s([B(),n("design:type",Object)],ut.prototype,"errorTextMessage",void 0),s([
|
|
2888
|
+
`}};s([L({type:Array}),n("design:type",Array)],ut.prototype,"files",void 0),s([L({type:Number}),n("design:type",Object)],ut.prototype,"simulatedDelay",void 0),s([L({type:Boolean}),n("design:type",Object)],ut.prototype,"showAlertInError",void 0),s([L({type:String}),n("design:type",Object)],ut.prototype,"typeTextFile",void 0),s([B(),n("design:type",Object)],ut.prototype,"loading",void 0),s([B(),n("design:type",Object)],ut.prototype,"progress",void 0),s([B(),n("design:type",Object)],ut.prototype,"errorTextMessage",void 0),s([j('input[ type="file" ]'),n("design:type",HTMLInputElement)],ut.prototype,"fileInput",void 0),ut=s([a("base-upload")],ut);const gt={"image/jpg":".jpg","image/jpeg":".jpeg","image/png":".png"},bt={"application/pdf":".pdf","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx",...gt,"text/plain":".txt"},mt=o`
|
|
2889
2889
|
.progress-bar-container {
|
|
2890
2890
|
min-height: 23px;
|
|
2891
2891
|
display: flex;
|
|
@@ -3100,7 +3100,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3100
3100
|
</div>
|
|
3101
3101
|
</div>
|
|
3102
3102
|
</div>
|
|
3103
|
-
`}};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 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 _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=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:_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`
|
|
3103
|
+
`}};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`
|
|
3104
3104
|
${X}
|
|
3105
3105
|
|
|
3106
3106
|
/* Estilos generales del contenedor del calendario (escritorio) */
|
|
@@ -3603,7 +3603,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3603
3603
|
<div class="calendar-container" style="width: ${this.calendarWidth}px;">
|
|
3604
3604
|
${r}
|
|
3605
3605
|
</div>
|
|
3606
|
-
`}};s([L({type:Object}),n("design:type",Object)],De.prototype,"selectedDate",void 0),s([L({type:Object}),n("design:type",Date)],De.prototype,"viewDate",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"isMobile",void 0),s([L({type:Number}),n("design:type",Number)],De.prototype,"calendarWidth",void 0),s([L({type:Object}),n("design:type",Object)],De.prototype,"minDate",void 0),s([L({type:Object}),n("design:type",Object)],De.prototype,"maxDate",void 0),s([L({type:String}),n("design:type",String)],De.prototype,"type",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"lastElement",void 0),s([B(),n("design:type",String)],De.prototype,"currentView",void 0),s([
|
|
3606
|
+
`}};s([L({type:Object}),n("design:type",Object)],De.prototype,"selectedDate",void 0),s([L({type:Object}),n("design:type",Date)],De.prototype,"viewDate",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"isMobile",void 0),s([L({type:Number}),n("design:type",Number)],De.prototype,"calendarWidth",void 0),s([L({type:Object}),n("design:type",Object)],De.prototype,"minDate",void 0),s([L({type:Object}),n("design:type",Object)],De.prototype,"maxDate",void 0),s([L({type:String}),n("design:type",String)],De.prototype,"type",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"lastElement",void 0),s([B(),n("design:type",String)],De.prototype,"currentView",void 0),s([j(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],De.prototype,"initialFocusElement",void 0),De=s([a("calendar-overlay"),n("design:paramtypes",[])],De);let Ee=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`
|
|
3607
3607
|
${Q}
|
|
3608
3608
|
${J}
|
|
3609
3609
|
${K}
|
|
@@ -3792,7 +3792,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3792
3792
|
|
|
3793
3793
|
${this.renderHelper()}
|
|
3794
3794
|
</div>
|
|
3795
|
-
`}};s([L({type:String}),n("design:type",String)],Ee.prototype,"width",void 0),s([L({type:Boolean}),n("design:type",Object)],Ee.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],Ee.prototype,"readonly",void 0),s([L({type:String}),n("design:type",String)],Ee.prototype,"minDate",void 0),s([L({type:String}),n("design:type",String)],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,"eighteenOrOlder",void 0),s([L({type:Number}),n("design:type",Number)],Ee.prototype,"maxLength",void 0),s([B(),n("design:type",Object)],Ee.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],Ee.prototype,"selectedDate",void 0),s([B(),n("design:type",Date)],Ee.prototype,"viewDate",void 0),s([B(),n("design:type",Object)],Ee.prototype,"isMobile",void 0),s([B(),n("design:type",Number)],Ee.prototype,"calendarWidth",void 0),s([B(),n("design:type",Object)],Ee.prototype,"inputValue",void 0),s([
|
|
3795
|
+
`}};s([L({type:String}),n("design:type",String)],Ee.prototype,"width",void 0),s([L({type:Boolean}),n("design:type",Object)],Ee.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],Ee.prototype,"readonly",void 0),s([L({type:String}),n("design:type",String)],Ee.prototype,"minDate",void 0),s([L({type:String}),n("design:type",String)],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,"eighteenOrOlder",void 0),s([L({type:Number}),n("design:type",Number)],Ee.prototype,"maxLength",void 0),s([B(),n("design:type",Object)],Ee.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],Ee.prototype,"selectedDate",void 0),s([B(),n("design:type",Date)],Ee.prototype,"viewDate",void 0),s([B(),n("design:type",Object)],Ee.prototype,"isMobile",void 0),s([B(),n("design:type",Number)],Ee.prototype,"calendarWidth",void 0),s([B(),n("design:type",Object)],Ee.prototype,"inputValue",void 0),s([j(".input-container"),n("design:type",HTMLDivElement)],Ee.prototype,"inputContainer",void 0),s([L({type:Boolean,attribute:"last-element"}),n("design:type",Object)],Ee.prototype,"lastElement",void 0),Ee=s([a("datepicker-component")],Ee);let Ce=class extends ut{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`
|
|
3796
3796
|
${Q}
|
|
3797
3797
|
${J}
|
|
3798
3798
|
${K}
|
|
@@ -4239,10 +4239,11 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4239
4239
|
|
|
4240
4240
|
${this.renderNavButtons()}
|
|
4241
4241
|
</div>
|
|
4242
|
-
`}};s([L({type:Array}),n("design:type",Array)],Oe.prototype,"cards",void 0),s([L({type:String}),n("design:type",String)],Oe.prototype,"cardWidth",void 0),s([L({type:String}),n("design:type",String)],Oe.prototype,"cardHeight",void 0),s([L({type:Number}),n("design:type",Number)],Oe.prototype,"navWidth",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Oe.prototype,"showNavButtons",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Oe.prototype,"isDynamicWidth",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Oe.prototype,"isInfiniteScrollPartial",void 0),s([L({type:Number}),n("design:type",Number)],Oe.prototype,"autoPlayDelayMs",void 0),s([B(),n("design:type",Object)],Oe.prototype,"showPrevButton",void 0),s([B(),n("design:type",Object)],Oe.prototype,"showNextButton",void 0),s([
|
|
4242
|
+
`}};s([L({type:Array}),n("design:type",Array)],Oe.prototype,"cards",void 0),s([L({type:String}),n("design:type",String)],Oe.prototype,"cardWidth",void 0),s([L({type:String}),n("design:type",String)],Oe.prototype,"cardHeight",void 0),s([L({type:Number}),n("design:type",Number)],Oe.prototype,"navWidth",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Oe.prototype,"showNavButtons",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Oe.prototype,"isDynamicWidth",void 0),s([L({type:Boolean}),n("design:type",Boolean)],Oe.prototype,"isInfiniteScrollPartial",void 0),s([L({type:Number}),n("design:type",Number)],Oe.prototype,"autoPlayDelayMs",void 0),s([B(),n("design:type",Object)],Oe.prototype,"showPrevButton",void 0),s([B(),n("design:type",Object)],Oe.prototype,"showNextButton",void 0),s([j(".carousel-wrapper"),n("design:type",HTMLElement)],Oe.prototype,"slider",void 0),s([j("slot"),n("design:type",HTMLSlotElement)],Oe.prototype,"slotElement",void 0),Oe=s([a("carousel-component"),n("design:paramtypes",[])],Oe);let Fe=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`
|
|
4243
4243
|
:host {
|
|
4244
4244
|
display: inline-block;
|
|
4245
4245
|
position: relative;
|
|
4246
|
+
--arrow-left: 15px;
|
|
4246
4247
|
}
|
|
4247
4248
|
|
|
4248
4249
|
.bubble {
|
|
@@ -4304,7 +4305,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4304
4305
|
/* Flecha arriba (el globo está abajo) */
|
|
4305
4306
|
.bubble.position-top::after {
|
|
4306
4307
|
top: calc(var(--bubble-arrow-size) * -1);
|
|
4307
|
-
left:
|
|
4308
|
+
left: var(--arrow-left);
|
|
4308
4309
|
border-width: 0 var(--bubble-arrow-size) var(--bubble-arrow-size) var(--bubble-arrow-size);
|
|
4309
4310
|
border-color: transparent transparent var(--bubble-bg) transparent;
|
|
4310
4311
|
}
|
|
@@ -4312,7 +4313,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4312
4313
|
/* Flecha abajo (el globo está arriba) */
|
|
4313
4314
|
.bubble.position-bottom::after {
|
|
4314
4315
|
bottom: calc(var(--bubble-arrow-size) * -1);
|
|
4315
|
-
left:
|
|
4316
|
+
left: var(--arrow-left);
|
|
4316
4317
|
border-width: var(--bubble-arrow-size) var(--bubble-arrow-size) 0 var(--bubble-arrow-size);
|
|
4317
4318
|
border-color: var(--bubble-bg) transparent transparent transparent;
|
|
4318
4319
|
}
|
|
@@ -4337,7 +4338,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4337
4338
|
max-width: 250px;
|
|
4338
4339
|
word-wrap: break-word;
|
|
4339
4340
|
}
|
|
4340
|
-
`}disconnectedCallback(){super.disconnectedCallback(),this.clearDurationTimer()}updated(t){super.updated(t),t.has("visible")&&(this.visible?this.startDurationTimer():this.clearDurationTimer())}startDurationTimer(){this.clearDurationTimer(),this.duration&&this.duration>0&&(this.hideTimeout=window.setTimeout((()=>this.hide()),this.duration))}clearDurationTimer(){this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=void 0)}show(){this.visible=!0}hide(){this.visible=!1}render(){const t={bubble:!0,visible:this.visible,hidden:!this.visible,[`position-${this.position}`]:!0,[this.variant]:!0},i=["bottom"!==this.position&&this.top?`top: ${this.top}`:"",this.left?`left: ${this.left}`:""
|
|
4341
|
+
`}disconnectedCallback(){super.disconnectedCallback(),this.clearDurationTimer()}updated(t){super.updated(t),t.has("visible")&&(this.visible?this.startDurationTimer():this.clearDurationTimer())}startDurationTimer(){this.clearDurationTimer(),this.duration&&this.duration>0&&(this.hideTimeout=window.setTimeout((()=>this.hide()),this.duration))}clearDurationTimer(){this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=void 0)}show(){this.visible=!0}hide(){this.visible=!1}render(){const t={bubble:!0,visible:this.visible,hidden:!this.visible,[`position-${this.position}`]:!0,[this.variant]:!0},i=["bottom"!==this.position&&this.top?`top: ${this.top}`:"",this.left?`left: ${this.left}`:"",`--arrow-left: ${this.arrowAlign}`,this.width?`--bubble-custom-width: ${this.width}`:"",this.height?`--bubble-custom-height: ${this.height}`:"",this.backgroundColor?`--bubble-background: ${this.backgroundColor}`:"",this.textColor?`--bubble-text-color: ${this.textColor}`:"",this.fontFamily?`--bubble-font-family: ${this.fontFamily}`:""].filter(Boolean).join("; ");return e`
|
|
4341
4342
|
<div class=${r(t)} style=${i}>
|
|
4342
4343
|
${this.icon||"circle"===this.variant?e`
|
|
4343
4344
|
<span class="bubble-icon">
|
|
@@ -4350,5 +4351,5 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
4350
4351
|
<slot></slot>
|
|
4351
4352
|
`:""}
|
|
4352
4353
|
</div>
|
|
4353
|
-
`}};s([L({type:String}),n("design:type",Object)],Fe.prototype,"message",void 0),s([L({type:Number}),n("design:type",Number)],Fe.prototype,"duration",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"position",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"variant",void 0),s([L({type:Boolean}),n("design:type",Object)],Fe.prototype,"visible",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"icon",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"backgroundColor",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"textColor",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"fontFamily",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"width",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"height",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"top",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"left",void 0),s([B(),n("design:type",Object)],Fe.prototype,"isAnimating",void 0),Fe=s([a("randstad-bubble")],Fe);export{U as AccordionList,q as AccordionPanel,
|
|
4354
|
+
`}};s([L({type:String}),n("design:type",Object)],Fe.prototype,"message",void 0),s([L({type:Number}),n("design:type",Number)],Fe.prototype,"duration",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"position",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"variant",void 0),s([L({type:Boolean}),n("design:type",Object)],Fe.prototype,"visible",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"icon",void 0),s([L({type:String}),n("design:type",Object)],Fe.prototype,"arrowAlign",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"backgroundColor",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"textColor",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"fontFamily",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"width",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"height",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"top",void 0),s([L({type:String}),n("design:type",String)],Fe.prototype,"left",void 0),s([B(),n("design:type",Object)],Fe.prototype,"isAnimating",void 0),Fe=s([a("randstad-bubble")],Fe);export{U as AccordionList,q as AccordionPanel,P as BaseControl,De as CalendarOverlay,Oe as Carousel,Y as CarouselCard,G as Checkbox,rt as CustomModal,st as CustomPopup,at as CustomRadio,ht as CustomStepper,Ee as DatePickerComponent,lt as FilterableSelect,et as FormGroup,it as IconComponent,nt as ProgressCircle,Fe as RandstadBubble,H as RandstadButton,tt as RandstadForm,ot as RandstadNotice,pt as TabsBar,Ce as UploadFile,yt as UploadImage,Z as scrollbarStyles};
|
|
4354
4355
|
//# sourceMappingURL=index.js.map
|