@randstad-uca/design-system 1.0.108 → 1.0.109

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.
@@ -26,7 +26,7 @@ export declare class CalendarOverlay extends LitElement {
26
26
  */
27
27
  private currentView;
28
28
  private initialFocusElement;
29
- static styles: (import("lit").CSSResult | CSSStyleSheet)[];
29
+ static styles: import("lit").CSSResult[];
30
30
  /**
31
31
  * Ciclo de vida: se llama después de la primera actualización del componente.
32
32
 
@@ -14,7 +14,7 @@ export declare class RandstadForm extends BaseControl {
14
14
  maxLength?: number;
15
15
  heightTextArea?: string;
16
16
  maxHeightTextArea?: string;
17
- static styles: (import("lit").CSSResult | CSSStyleSheet)[];
17
+ static styles: import("lit").CSSResult[];
18
18
  private togglePassword;
19
19
  private handleInput;
20
20
  private handleClear;
@@ -23,7 +23,7 @@ export declare class CustomModal extends LitElement {
23
23
  private scrollable;
24
24
  private hasDropdownOpen;
25
25
  private hasCalendarOpen;
26
- static styles: (import("lit").CSSResult | CSSStyleSheet)[];
26
+ static styles: import("lit").CSSResult[];
27
27
  private closeModal;
28
28
  connectedCallback(): void;
29
29
  disconnectedCallback(): void;
@@ -10,7 +10,8 @@ export declare class FilterableSelect extends BaseControl {
10
10
  value: string | object;
11
11
  defaultValue: string;
12
12
  options: SelectOption[];
13
- filterable: boolean;
13
+ filterable: boolean | undefined;
14
+ private get _effectiveFilterable();
14
15
  maxLength?: number;
15
16
  textLabelFilterNotResult: string;
16
17
  textLabelMobileSearch: string;
@@ -29,7 +30,7 @@ export declare class FilterableSelect extends BaseControl {
29
30
  lastElement: boolean;
30
31
  mobileInputRef: HTMLInputElement;
31
32
  private debounceTimeout;
32
- static styles: (import("lit").CSSResult | CSSStyleSheet)[];
33
+ static styles: import("lit").CSSResult[];
33
34
  /**
34
35
  * Función auxiliar para aplicar/limpiar los estilos de bloqueo.
35
36
  */
@@ -46,7 +47,9 @@ export declare class FilterableSelect extends BaseControl {
46
47
  */
47
48
  private normalizeText;
48
49
  private sortOptions;
50
+ private _computeFilteredOptions;
49
51
  filterAndSortOptions(): void;
52
+ private _sortedOptionsCopy;
50
53
  private handleOptionHover;
51
54
  update(changedProperties: Map<string, any>): void;
52
55
  protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
@@ -36,7 +36,7 @@ export declare class RandstadSocialMediaInput extends BaseControl {
36
36
  private _showFormatError;
37
37
  private _onChangeFn;
38
38
  private _onTouchedFn;
39
- static styles: (import("lit").CSSResult | CSSStyleSheet)[];
39
+ static styles: import("lit").CSSResult[];
40
40
  /**
41
41
  * Prefijo fijo según la plataforma
42
42
  */
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ const a=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)}
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- const M={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:C},_=(t=M,e,i)=>{const{kind:o,metadata:r}=i;let s=globalThis.litPropertyMetadata.get(r);if(void 0===s&&globalThis.litPropertyMetadata.set(r,s=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function T(t){return(e,i)=>"object"==typeof i?_(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
23
+ const _={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:C},M=(t=_,e,i)=>{const{kind:o,metadata:r}=i;let s=globalThis.litPropertyMetadata.get(r);if(void 0===s&&globalThis.litPropertyMetadata.set(r,s=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function T(t){return(e,i)=>"object"==typeof i?M(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
@@ -1007,25 +1007,25 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1007
1007
  color: var(--ui-negative, #E00F0F);
1008
1008
  margin-top: 4px;
1009
1009
  }
1010
- `,J=new CSSStyleSheet;J.replaceSync(o`
1011
- ::-webkit-scrollbar {
1012
- width: 8px;
1013
- height: 8px;
1014
- }
1010
+ `,J=o`
1011
+ ::-webkit-scrollbar {
1012
+ width: 8px;
1013
+ height: 8px;
1014
+ }
1015
1015
 
1016
- ::-webkit-scrollbar-track {
1017
- background: #E8E8E8;
1018
- }
1016
+ ::-webkit-scrollbar-track {
1017
+ background: #E8E8E8;
1018
+ }
1019
1019
 
1020
- ::-webkit-scrollbar-thumb {
1021
- background-color: #7A7A7A;
1022
- border-radius: 100px;
1023
- }
1020
+ ::-webkit-scrollbar-thumb {
1021
+ background-color: #7A7A7A;
1022
+ border-radius: 100px;
1023
+ }
1024
1024
 
1025
- ::-webkit-scrollbar-button {
1026
- display: none;
1027
- }
1028
- `.cssText);const tt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let et=class extends R{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[J,o`
1025
+ ::-webkit-scrollbar-button {
1026
+ display: none;
1027
+ }
1028
+ `,tt=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let et=class extends R{constructor(){super(...arguments),this.keydown=void 0,this.size="md",this.icon=null,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=[J,o`
1029
1029
  ${Q}
1030
1030
  ${Z}
1031
1031
  ${K}
@@ -1309,7 +1309,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1309
1309
  svg {
1310
1310
  width: var( --icon-size, 24px );
1311
1311
  height: var( --icon-size, 24px );
1312
- fill: var( --icon-color, #2175D9 );
1312
+ fill: var( --icon-color, currentColor );
1313
1313
  }
1314
1314
 
1315
1315
  .custom-icon {
@@ -2009,7 +2009,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2009
2009
  ${j};
2010
2010
  text-align: center;
2011
2011
  vertical-align: middle;
2012
- fill: var(--randstad-dark-blue-40);
2012
+ fill: var(--secondary-color-40);
2013
2013
  text-anchor: middle;
2014
2014
  dominant-baseline: middle;
2015
2015
  }
@@ -2198,7 +2198,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2198
2198
 
2199
2199
  <span> ${o} </span>
2200
2200
  </label>
2201
- `}};s([T({type:String}),n("design:type",Object)],ct.prototype,"name",void 0),s([T({type:Boolean}),n("design:type",Object)],ct.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],ct.prototype,"disabled",void 0),s([T({type:Boolean}),n("design:type",Object)],ct.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],ct.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],ct.prototype,"value",void 0),ct=s([a("custom-radio")],ct);const ht=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let pt=class extends R{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.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}static{this.styles=[J,o`
2201
+ `}};s([T({type:String}),n("design:type",Object)],ct.prototype,"name",void 0),s([T({type:Boolean}),n("design:type",Object)],ct.prototype,"checked",void 0),s([T({type:Boolean}),n("design:type",Object)],ct.prototype,"disabled",void 0),s([T({type:Boolean}),n("design:type",Object)],ct.prototype,"error",void 0),s([T({type:String}),n("design:type",Object)],ct.prototype,"label",void 0),s([T({type:String}),n("design:type",Object)],ct.prototype,"value",void 0),ct=s([a("custom-radio")],ct);const ht=/[\p{Extended_Pictographic}\u{FE0F}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}\u{200D}]/gu;let pt=class extends R{constructor(){super(...arguments),this.value="",this.defaultValue="",this.options=[],this.textLabelFilterNotResult="",this.textLabelMobileSearch="",this.isRenderClearButton=!1,this.sortable=!0,this.isMobile=!1,this.highlightedIndex=-1,this._isCleared=!1,this.originalHtmlOverflow="",this.originalHtmlPaddingRight="",this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.showNoResults=!1,this.lastElement=!1,this.debounceTimeout=null,this.getOptionLabel=t=>"string"==typeof t?t:t.label,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this)}get _effectiveFilterable(){const t=this.getAttribute("filterable");return null!==t?"false"!==t:void 0!==this.filterable?this.filterable:this.options.length>5}static{this.styles=[J,o`
2202
2202
  ${Q}
2203
2203
  ${Z}
2204
2204
  ${K}
@@ -2337,10 +2337,10 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2337
2337
  color: var( --filter-text-color, var( --secondary-color-40 ) );
2338
2338
  }
2339
2339
 
2340
- .filter-input :-webkit-autofill,
2341
- .filter-input :-webkit-autofill:hover,
2342
- .filter-input :-webkit-autofill:focus,
2343
- .filter-input :-webkit-autofill:active {
2340
+ .filter-input:-webkit-autofill,
2341
+ .filter-input:-webkit-autofill:hover,
2342
+ .filter-input:-webkit-autofill:focus,
2343
+ .filter-input:-webkit-autofill:active {
2344
2344
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
2345
2345
  -webkit-text-fill-color: var(--secondary-color);
2346
2346
  transition: background-color 5000s ease-in-out 0s;
@@ -2579,7 +2579,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2579
2579
  background-color: white !important;
2580
2580
  pointer-events: none;
2581
2581
  color: rgba( 64, 71, 103, 1 );
2582
- text-align: middle;
2582
+ text-align: center;
2583
2583
  border-bottom: none !important;
2584
2584
  }
2585
2585
 
@@ -2592,7 +2592,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2592
2592
  background-color: transparent;
2593
2593
  }
2594
2594
  }
2595
- `]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}normalizeText(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),s=this.getOptionLabel(e),n=this.normalizeText(r),a=this.normalizeText(s);if(i&&i.length>0){const t=this.normalizeText(i),e=n.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=s.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(s,"es",{usage:"sort",sensitivity:"accent"}):p-u}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=this.normalizeText(t);let i=this.options.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)}));this.sortable?this.filteredOptions=i.sort(((e,i)=>this.sortOptions(e,i,t))):this.filteredOptions=i,this.highlightedIndex=this.filteredOptions.length>0?0:-1,this.showNoResults=0===this.filteredOptions.length}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if(t.has("options")){if(this.sortable){const t=[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0)));this.options=t}this.filterAndSortOptions();if(this.options.length<=5)this.filterable=!1;else{const t=this.getAttribute("filterable");this.filterable=null===t||"false"!==t}}if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}willUpdate(t){t.has("filterValue")&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this)),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.notifyOverlayOpened(),this.filteredOptions=[...this.options],this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this.filterable)return;this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(ht,"").length,s=i.replace(ht,"");let n=this.maxLength?s.slice(0,this.maxLength):s;if(n.startsWith(" ")&&(n=n.trimStart()),e.value=n,this.filterValue=n,e.setSelectionRange(r,r),this.notifyOverlayOpened(),this.isOpen=!0,""===n)this.value="",this._isCleared=!0,this.filteredOptions=[...this.options],this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}));else{const t=this.normalizeText(n);this.filteredOptions=this.options.filter((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(i).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,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(ht,"").length,s=i.replace(ht,"");let n=this.maxLength?s.slice(0,this.maxLength):s;n.startsWith(" ")&&(n=n.trimStart()),e.value=n,this.mobileFilterValue=n,e.setSelectionRange(r,r);const a=this.normalizeText(n);""===n?(this.value="",this._isCleared=!0,this.filteredOptions=[...this.options],this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):(this.filteredOptions=this.options.filter((t=>{const e="string"==typeof t?t:t.label;return this.normalizeText(e).includes(a)})),this.showNoResults=0===this.filteredOptions.length),this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{n.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:n},bubbles:!0,composed:!0})):0===n.length&&(this.filteredOptions=[...this.options])}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=[...this.options],this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.notifyOverlayOpened(),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()}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=[...this.options]))}preventInvalidStart(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart&&1===t.key.length){if(!/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t.key))return t.preventDefault(),!0}return!1}handlePaste(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart){const i=e.selectionStart,o=e.selectionEnd;if(null===i||null===o)return;t.preventDefault();let r=(t.clipboardData?.getData("text")||"").replace(ht,"").replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/,"");r.startsWith(" ")&&(r=r.trimStart()),r&&(e.setRangeText(r,i,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}}handleKeyDown(t){if(this.preventInvalidStart(t))return;const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this.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.notifyOverlayOpened(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||!this.filterable&&" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this.filterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this.filterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this.filterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this.filterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}validateAndCleanOnBlur(){if(!this.filterable)return;const t=this.normalizeText((this.filterValue||"").trim());if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=[...this.options],void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(String(i))===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=[...this.options],this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2595
+ `]}manageScrollElement(t,e){e?t.classList.add("modal-open-no-scroll"):t.classList.remove("modal-open-no-scroll")}toggleDynamicScrollLock(t){const e=document.documentElement;if(t){this.originalHtmlOverflow=e.style.overflow,this.originalHtmlPaddingRight=e.style.paddingRight,e.style.overflow="hidden",this.manageScrollElement(e,!0);if(e.scrollHeight>e.clientHeight){const t=window.innerWidth-e.clientWidth;e.style.paddingRight=`${t}px`}}else e.style.overflow=this.originalHtmlOverflow,e.style.paddingRight=this.originalHtmlPaddingRight,this.manageScrollElement(e,!1)}normalizeText(t){return t?t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}sortOptions(t,e,i){const o=t=>"string"==typeof t?t:"string"==typeof t.value?t.value:"",r=this.getOptionLabel(t),s=this.getOptionLabel(e),n=this.normalizeText(r),a=this.normalizeText(s);if(i&&i.length>0){const t=this.normalizeText(i),e=n.startsWith(t),o=a.startsWith(t);if(e&&!o)return-1;if(!e&&o)return 1}const l=o(t),d=o(e);if("+54"===l)return-1;if("+54"===d)return 1;if("+54"===l&&"+54"===d)return 0;const c=r.match(/^\d+(\.\d+)?/),h=s.match(/^\d+(\.\d+)?/),p=c?Number(c[0]):NaN,u=h?Number(h[0]):NaN;return isNaN(p)||isNaN(u)?r.localeCompare(s,"es",{usage:"sort",sensitivity:"accent"}):p-u}_computeFilteredOptions(t){if(!this._effectiveFilterable||!t||0===t.length){const t=this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options];return this.highlightedIndex=-1,this.showNoResults=!1,t}const e=this.normalizeText(t);let i=this.options.filter((t=>{const i=this.getOptionLabel(t);return this.normalizeText(i).includes(e)}));return this.sortable&&(i=i.sort(((e,i)=>this.sortOptions(e,i,t)))),this.highlightedIndex=i.length>0?0:-1,this.showNoResults=0===i.length,i}filterAndSortOptions(){this.filteredOptions=this._computeFilteredOptions(this.filterValue)}_sortedOptionsCopy(){return this.sortable?[...this.options].sort(((t,e)=>this.sortOptions(t,e,void 0))):[...this.options]}handleOptionHover(t){this.highlightedIndex!==t&&(this.highlightedIndex=t)}update(t){if((t.has("defaultValue")||t.has("options")||t.has("value")&&this.value)&&!this._isCleared){const t=this.value||this.defaultValue,e=this.options.find((e=>"string"==typeof e?e===t:e.value===t));e?(this.filterValue="string"==typeof e?e:e.label,this.value="string"==typeof e?e:e.value):((this.isOpen||this.filterValue)&&(this.isOpen||""!==this.value)||(this.filterValue=""),this.value="")}this._isCleared&&""===this.value&&(this._isCleared=!1),super.update(t)}willUpdate(t){(t.has("filterValue")||t.has("options"))&&this.filterAndSortOptions()}updated(t){super.updated(t),t.has("isOpen")&&this.isMobile&&this.toggleDynamicScrollLock(this.isOpen);const e=!1===t.get("isOpen");this.isMobile&&this.isOpen&&t.has("isOpen")&&e&&this.updateComplete.then((()=>{const t=this.mobileInputRef;t&&window.setTimeout((()=>{t.focus(),t.setSelectionRange(t.value.length,t.value.length)}),0)}))}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this)),window.addEventListener("overlay-opened",this.handleGlobalOverlayOpen)}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),window.removeEventListener("overlay-opened",this.handleGlobalOverlayOpen),this.debounceTimeout&&(clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.isMobile&&this.toggleDynamicScrollLock(!1),super.disconnectedCallback()}notifyOverlayOpened(){window.dispatchEvent(new CustomEvent("overlay-opened",{detail:this}))}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.disabled||(this.isOpen||(this.notifyOverlayOpened(),this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.isMobile&&(this.mobileFilterValue="")),this.isOpen=!this.isOpen,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:this.isOpen},bubbles:!0,composed:!0})),this.requestUpdate())}handleInput(t){if(!this._effectiveFilterable)return;this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(ht,"").length,s=i.replace(ht,"");let n=this.maxLength?s.slice(0,this.maxLength):s;n.startsWith(" ")&&(n=n.trimStart()),e.value=n,this.filterValue=n,e.setSelectionRange(r,r),this.notifyOverlayOpened(),this.isOpen=!0,""===n&&(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){this._isCleared=!1;const e=t.target,i=e.value,o=e.selectionStart||0,r=i.slice(0,o).replace(ht,"").length,s=i.replace(ht,"");let n=this.maxLength?s.slice(0,this.maxLength):s;n.startsWith(" ")&&(n=n.trimStart()),e.value=n,this.mobileFilterValue=n,e.setSelectionRange(r,r),""===n?(this.value="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.filteredOptions=this._computeFilteredOptions(n),this.requestUpdate(),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{n.length>2?this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:n},bubbles:!0,composed:!0})):0===n.length&&(this.filteredOptions=this._sortedOptionsCopy())}),300)}handleSelect(t){this._isCleared=!1,this.highlightedIndex=-1;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.value=e,this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.mobileFilterValue=this.filterValue,this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1,this.requestUpdate()}handleIconClick(){if(this.disabled)return;this.highlightedIndex=-1;const t=this.isRenderClearButton,e="string"==typeof this.value&&""!==this.value,i="object"==typeof this.value&&null!==this.value&&Object.keys(this.value).length>0;t&&(e||i)?(this._isCleared=!0,this.filterValue="",this.value="",this.filteredOptions=this._sortedOptionsCopy(),this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}))):(this.notifyOverlayOpened(),this.isOpen=!this.isOpen,this.isOpen?(this.mobileFilterValue="",this.showNoResults=!1,this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!0},bubbles:!0,composed:!0})),this.updateComplete.then((()=>{if(this.isMobile)return;const t=this.shadowRoot?.querySelector(".filter-input");t?.focus()}))):(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})))),this.requestUpdate()}handleClickOutside(t){const e=t.target;e instanceof Node&&(!this.contains(e)&&this.isOpen&&(this.isOpen=!1,this.validateAndCleanOnBlur(),this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()),this.isMobile&&(this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy()))}preventInvalidStart(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart&&1===t.key.length){if(!/[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]/.test(t.key))return t.preventDefault(),!0}return!1}handlePaste(t){const e=t.target;if(e&&"INPUT"===e.tagName&&0===e.selectionStart){const i=e.selectionStart,o=e.selectionEnd;if(null===i||null===o)return;t.preventDefault();let r=(t.clipboardData?.getData("text")||"").replace(ht,"").replace(/^[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ0-9]+/,"");r.startsWith(" ")&&(r=r.trimStart()),r&&(e.setRangeText(r,i,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}}handleKeyDown(t){if(this.preventInvalidStart(t))return;const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input");if("Backspace"===e&&this._effectiveFilterable){const t=i?.value||"",e=i&&i.selectionStart!==i.selectionEnd,o=1===t.length&&!e,r=0===t.length;(o||r)&&(this.value="",this.filterValue="",this._isCleared=!0,this.filteredOptions=this._sortedOptionsCopy(),this.isOpen=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate())}const o=this.filteredOptions.filter((t=>!("object"==typeof t&&t.disabled)));if(!this.isOpen&&("Enter"===e||" "===e)){t.preventDefault(),this.notifyOverlayOpened(),this.isOpen=!0;const e=this.filteredOptions.findIndex((t=>!("object"==typeof t&&t.disabled)));return this.highlightedIndex=-1!==e?e:-1,void this.requestUpdate()}if(this.isOpen){if("ArrowDown"===e){t.preventDefault();let e=this.highlightedIndex+1;for(;e<this.filteredOptions.length;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e++}if(e>=this.filteredOptions.length){const t=this.filteredOptions.length-1;this.highlightedIndex=o.length>0?t:-1}this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("ArrowUp"===e){t.preventDefault();let e=this.highlightedIndex-1;for(;e>=0;){const t=this.filteredOptions[e];if("object"!=typeof t||!t.disabled){this.highlightedIndex=e;break}e--}e<0&&(this.highlightedIndex=-1),this.requestUpdate(),this.updateComplete.then((()=>this.scrollHighlightedIntoView()))}else if("Enter"===e||!this._effectiveFilterable&&" "===e){this.highlightedIndex>=0&&t.preventDefault();const e=this.filteredOptions[this.highlightedIndex];if(this.highlightedIndex>=0&&e&&("object"!=typeof e||!e.disabled)){this.handleSelect(e);const t=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");return t?t.focus():i?.focus(),void(this.highlightedIndex=-1)}}else if("Escape"===e){t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0}));const e=this.shadowRoot?.querySelector(".filter-input"),i=this.shadowRoot?.querySelector(".filter-fake");e?e.focus():i?.focus()}else"Tab"===e?(this.isOpen=!1,this.highlightedIndex=-1,this.lastElement&&!this.isMobile&&this.dispatchEvent(new CustomEvent("dropdown-toggle",{detail:{open:!1},bubbles:!0,composed:!0})),this.requestUpdate()):!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);if(("ArrowLeft"===e||"ArrowRight"===e)&&this._effectiveFilterable)return}if("ArrowRight"!==e)this.isOpen&&!this.isMobile&&this._effectiveFilterable&&1===e.length&&(this.highlightedIndex=-1);else{const e=!i||i.selectionStart===i.value.length;if(!this._effectiveFilterable||e){t.preventDefault();const e=this.shadowRoot?.querySelector(".icon-button");e?.focus()}}}handleButtonKeyDown(t){const{key:e}=t,i=this.shadowRoot?.querySelector(".filter-input"),o=this.shadowRoot?.querySelector(".filter-fake"),r=i||o;return"ArrowLeft"===e?(t.preventDefault(),r?.focus(),void(r instanceof HTMLInputElement&&(r.selectionStart=r.selectionEnd=r.value.length))):"Enter"===e||" "===e?(t.preventDefault(),this._effectiveFilterable&&this.filterValue?(this.handleIconClick(),r?.focus()):(this.isOpen=!this.isOpen,this.isOpen&&(this.highlightedIndex=-1,r?.focus())),void this.requestUpdate()):void("Tab"===e&&this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.requestUpdate()))}handleBlur(){window.setTimeout((()=>{this.validateAndCleanOnBlur(),this.requestUpdate()}),200)}scrollHighlightedIntoView(){if(this.isMobile||this.highlightedIndex<0)return;const t=this.shadowRoot?.querySelector(".options-list");if(!t)return;const e=t.querySelector("li.highlighted");e&&e.scrollIntoView({block:"nearest"})}renderOptionIcon(t){return t&&"string"==typeof t?e`<span class="icon-list" .innerHTML="${t}"></span>`:i}validateAndCleanOnBlur(){if(!this._effectiveFilterable)return;const t=this.normalizeText((this.filterValue||"").trim());if(!t)return""!==this.value&&(this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),void(this.showNoResults=!1);const e=this.options.find((e=>{const i="string"==typeof e?e:e.label;return this.normalizeText(String(i))===t}));if(e){const t="string"==typeof e?e:e.value,i="string"==typeof e?e:e.label;this.value!==t&&(this.value=t,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:t},bubbles:!0,composed:!0}))),this.filterValue=i,this.showNoResults=!1}else this.value="",this._isCleared=!0,this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.filterValue="",this.filteredOptions=this._sortedOptionsCopy(),this.showNoResults=!1}render(){const t=this.isMobile,o=` --filter-text-color: ${this.value?"var( --secondary-color )":"var( --secondary-color-40 )"}; `,r=e`
2596
2596
  <randstad-icon
2597
2597
  name="${this.isOpen&&this.filteredOptions.length>0?"arrow_up":"arrow_down"}"
2598
2598
  size="24px"
@@ -2633,7 +2633,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2633
2633
  @blur="${this.handleBlur}"
2634
2634
  placeholder="${this.filterValue?"":p}"
2635
2635
  ?disabled="${this.disabled}"
2636
- ?readonly="${!this.filterable}"
2636
+ ?readonly="${!this._effectiveFilterable}"
2637
2637
  maxlength="${this.maxLength??""}"
2638
2638
  tabindex="0"
2639
2639
  role="combobox"
@@ -2695,7 +2695,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2695
2695
  <div class="mobile-backdrop" @click="${()=>{this.isOpen=!1}}">
2696
2696
  <div class="mobile-modal" @click="${t=>t.stopPropagation()}">
2697
2697
  <div class="modal-input-container">
2698
- ${this.options.length>5?e`
2698
+ ${this._effectiveFilterable?e`
2699
2699
  <input
2700
2700
  class="filter-input"
2701
2701
  .value="${this.mobileFilterValue||""}"
@@ -2710,7 +2710,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
2710
2710
  ${this.mobileFilterValue.length>0&&0===this.filteredOptions.length?e`<randstad-icon name="warning" size="24px" class="no-results-icon"></randstad-icon>`:i}
2711
2711
  `:i}
2712
2712
 
2713
- <button class="modal-close-button" @click="${()=>{this.isOpen=!1,this.mobileFilterValue="",this.filteredOptions=[...this.options]}}">
2713
+ <button class="modal-close-button" @click="${()=>{this.isOpen=!1,this.mobileFilterValue="",this.filteredOptions=this._sortedOptionsCopy()}}">
2714
2714
  <randstad-icon name="close" size="24px"></randstad-icon>
2715
2715
  </button>
2716
2716
  </div>
@@ -3339,7 +3339,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3339
3339
  </div>
3340
3340
  </div>
3341
3341
  </div>
3342
- `}};s([T({type:Array}),n("design:type",Array)],xt.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],xt.prototype,"maxFiles",void 0),s([T({type:Number}),n("design:type",Object)],xt.prototype,"maxFileSize",void 0),s([T({type:Boolean}),n("design:type",Object)],xt.prototype,"isShowInfoSize",void 0),s([T({type:Boolean}),n("design:type",Object)],xt.prototype,"isChangeStyleError",void 0),s([B(),n("design:type",Object)],xt.prototype,"isDragging",void 0),s([B(),n("design:type",Array)],xt.prototype,"imageUrls",void 0),s([B(),n("design:type",Boolean)],xt.prototype,"isMaxFilesReached",void 0),xt=s([a("upload-image")],xt);const kt=6048e5,$t=Symbol.for("constructDateFrom");function St(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&$t in t?t[$t](e):t instanceof Date?new t.constructor(e):new Date(e)}function Et(t,e){return St(e||t,t)}function Dt(t,e,i){const o=Et(t,i?.in);if(isNaN(e))return St(t,NaN);if(!e)return o;const r=o.getDate(),s=St(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let Ct={};function Ot(){return Ct}function Ft(t,e){const i=Ot(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Et(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function Mt(t,e){return Ft(t,{...e,weekStartsOn:1})}function _t(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=St(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=Mt(r),n=St(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=Mt(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Tt(t){const e=Et(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Bt(t,...e){const i=St.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Lt(t,e){const i=Et(t,e?.in);return i.setHours(0,0,0,0),i}function Rt(t,e,i){return Dt(t,12*e,i)}function jt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Et(t)));var e}function Pt(t,e){const i=Et(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const At={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function zt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const It={date:zt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:zt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Wt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Vt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var qt;const Ut={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=At[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:It,formatRelative:(t,e,i,o)=>Nt[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Wt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Wt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Wt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Wt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Wt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(qt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(qt.matchPattern);if(!i)return null;const o=i[0],r=t.match(qt.parsePattern);if(!r)return null;let s=qt.valueCallback?qt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Vt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Vt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:Vt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Vt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Vt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ht(t,e){const i=Et(t,e?.in),o=function(t,e){const[i,o]=Bt(0,t,e),r=Lt(i),s=Lt(o),n=+r-Tt(r),a=+s-Tt(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=Et(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Yt(t,e){const i=Et(t,e?.in),o=+Mt(i)-+function(t,e){const i=_t(t,e),o=St(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Mt(o)}(i);return Math.round(o/kt)+1}function Gt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=Ot(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=St(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=Ft(n,e),l=St(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=Ft(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Kt(t,e){const i=Et(t,e?.in),o=+Ft(i,e)-+function(t,e){const i=Ot(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Gt(t,e),s=St(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),Ft(s,e)}(i,e);return Math.round(o/kt)+1}function Xt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Qt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Xt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Xt(i+1,2)},d:(t,e)=>Xt(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Xt(t.getHours()%12||12,e.length),H:(t,e)=>Xt(t.getHours(),e.length),m:(t,e)=>Xt(t.getMinutes(),e.length),s:(t,e)=>Xt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Xt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Zt="midnight",Jt="noon",te="morning",ee="afternoon",ie="evening",oe="night",re={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Qt.y(t,e)},Y:function(t,e,i,o){const r=Gt(t,o),s=r>0?r:1-r;if("YY"===e){return Xt(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Xt(s,e.length)},R:function(t,e){return Xt(_t(t),e.length)},u:function(t,e){return Xt(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Xt(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Xt(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Qt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Xt(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Kt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Xt(r,e.length)},I:function(t,e,i){const o=Yt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Xt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Qt.d(t,e)},D:function(t,e,i){const o=Ht(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Xt(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Xt(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Xt(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Xt(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Jt:0===o?Zt:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?ie:o>=12?ee:o>=4?te:oe,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Qt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Qt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Qt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Qt.s(t,e)},S:function(t,e){return Qt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ne(o);case"XXXX":case"XX":return ae(o);default:return ae(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ne(o);case"xxxx":case"xx":return ae(o);default:return ae(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+se(o,":");default:return"GMT"+ae(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+se(o,":");default:return"GMT"+ae(o,":")}},t:function(t,e,i){return Xt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Xt(+t,e.length)}};function se(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Xt(s,2)}function ne(t,e){if(t%60==0){return(t>0?"-":"+")+Xt(Math.abs(t)/60,2)}return ae(t,e)}function ae(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Xt(Math.trunc(o/60),2)+e+Xt(o%60,2)}const le=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},de=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ce={p:de,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return le(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",le(o,e)).replace("{{time}}",de(r,e))}},he=/^D+$/,pe=/^Y+$/,ue=["D","DD","YY","YYYY"];const ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,be=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,me=/^'([^]*?)'?$/,ye=/''/g,ve=/[a-zA-Z]/;function fe(t,e,i){const o=Ot(),r=o.locale??Ut,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=Et(t,i?.in);if(!jt(a))throw new RangeError("Invalid time value");let l=e.match(be).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,ce[e])(t,r.formatLong)}return t})).join("").match(ge).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:we(t)};if(re[e])return{isToken:!0,value:t};if(e.match(ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return pe.test(t)}(o)||function(t){return he.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),ue.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,re[o[0]])(a,o,r.localize,d)})).join("")}function we(t){const e=t.match(me);return e?e[1].replace(ye,"'"):t}function xe(t,e){return Et(t,e?.in).getDate()}function ke(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=St(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function $e(t,e){return+Et(t)>+Et(e)}function Se(t,e){return+Et(t)<+Et(e)}function Ee(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function De(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()}function Ce(t,e){return function(t,e){const[i,o]=Bt(0,t,e);return+Lt(i)===+Lt(o)}(St(t,t),function(t){return St(t,Date.now())}(t))}function Oe(t,e,i){const o=Et(t,i?.in);return o.setDate(e),o}let Fe=class extends t{static{this.styles=[J,o`
3342
+ `}};s([T({type:Array}),n("design:type",Array)],xt.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],xt.prototype,"maxFiles",void 0),s([T({type:Number}),n("design:type",Object)],xt.prototype,"maxFileSize",void 0),s([T({type:Boolean}),n("design:type",Object)],xt.prototype,"isShowInfoSize",void 0),s([T({type:Boolean}),n("design:type",Object)],xt.prototype,"isChangeStyleError",void 0),s([B(),n("design:type",Object)],xt.prototype,"isDragging",void 0),s([B(),n("design:type",Array)],xt.prototype,"imageUrls",void 0),s([B(),n("design:type",Boolean)],xt.prototype,"isMaxFilesReached",void 0),xt=s([a("upload-image")],xt);const kt=6048e5,$t=Symbol.for("constructDateFrom");function St(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&$t in t?t[$t](e):t instanceof Date?new t.constructor(e):new Date(e)}function Et(t,e){return St(e||t,t)}function Dt(t,e,i){const o=Et(t,i?.in);if(isNaN(e))return St(t,NaN);if(!e)return o;const r=o.getDate(),s=St(t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return r>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}let Ct={};function Ot(){return Ct}function Ft(t,e){const i=Ot(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=Et(t,e?.in),s=r.getDay(),n=(s<o?7:0)+s-o;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}function _t(t,e){return Ft(t,{...e,weekStartsOn:1})}function Mt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=St(i,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const s=_t(r),n=St(i,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const a=_t(n);return i.getTime()>=s.getTime()?o+1:i.getTime()>=a.getTime()?o:o-1}function Tt(t){const e=Et(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function Bt(t,...e){const i=St.bind(null,e.find((t=>"object"==typeof t)));return e.map(i)}function Lt(t,e){const i=Et(t,e?.in);return i.setHours(0,0,0,0),i}function Rt(t,e,i){return Dt(t,12*e,i)}function jt(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Et(t)));var e}function Pt(t,e){const i=Et(t,e?.in);return i.setDate(1),i.setHours(0,0,0,0),i}const At={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function zt(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const It={date:zt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:zt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Nt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Wt(t){return(e,i)=>{let o;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=i?.width?String(i.width):e;o=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=i?.width?String(i.width):t.defaultWidth;o=t.values[r]||t.values[e]}return o[t.argumentCallback?t.argumentCallback(e):e]}}function Vt(t){return(e,i={})=>{const o=i.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const n=s[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,(t=>t.test(n))):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,(t=>t.test(n)));let d;d=t.valueCallback?t.valueCallback(l):l,d=i.valueCallback?i.valueCallback(d):d;return{value:d,rest:e.slice(n.length)}}}var qt;const Ut={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=At[t];return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:It,formatRelative:(t,e,i,o)=>Nt[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),o=i%100;if(o>20||o<10)switch(o%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Wt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Wt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:Wt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Wt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Wt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(qt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(qt.matchPattern);if(!i)return null;const o=i[0],r=t.match(qt.parsePattern);if(!r)return null;let s=qt.valueCallback?qt.valueCallback(r[0]):r[0];return s=e.valueCallback?e.valueCallback(s):s,{value:s,rest:t.slice(o.length)}}),era:Vt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Vt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:Vt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Vt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Vt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ht(t,e){const i=Et(t,e?.in),o=function(t,e){const[i,o]=Bt(0,t,e),r=Lt(i),s=Lt(o),n=+r-Tt(r),a=+s-Tt(s);return Math.round((n-a)/864e5)}(i,function(t,e){const i=Et(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i));return o+1}function Yt(t,e){const i=Et(t,e?.in),o=+_t(i)-+function(t,e){const i=Mt(t,e),o=St(t,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),_t(o)}(i);return Math.round(o/kt)+1}function Gt(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=Ot(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=St(e?.in||t,0);n.setFullYear(o+1,0,s),n.setHours(0,0,0,0);const a=Ft(n,e),l=St(e?.in||t,0);l.setFullYear(o,0,s),l.setHours(0,0,0,0);const d=Ft(l,e);return+i>=+a?o+1:+i>=+d?o:o-1}function Kt(t,e){const i=Et(t,e?.in),o=+Ft(i,e)-+function(t,e){const i=Ot(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=Gt(t,e),s=St(e?.in||t,0);return s.setFullYear(r,0,o),s.setHours(0,0,0,0),Ft(s,e)}(i,e);return Math.round(o/kt)+1}function Xt(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const Qt={y(t,e){const i=t.getFullYear(),o=i>0?i:1-i;return Xt("yy"===e?o%100:o,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):Xt(i+1,2)},d:(t,e)=>Xt(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>Xt(t.getHours()%12||12,e.length),H:(t,e)=>Xt(t.getHours(),e.length),m:(t,e)=>Xt(t.getMinutes(),e.length),s:(t,e)=>Xt(t.getSeconds(),e.length),S(t,e){const i=e.length,o=t.getMilliseconds();return Xt(Math.trunc(o*Math.pow(10,i-3)),e.length)}},Zt="midnight",Jt="noon",te="morning",ee="afternoon",ie="evening",oe="night",re={G:function(t,e,i){const o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"});case"GGGGG":return i.era(o,{width:"narrow"});default:return i.era(o,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),o=e>0?e:1-e;return i.ordinalNumber(o,{unit:"year"})}return Qt.y(t,e)},Y:function(t,e,i,o){const r=Gt(t,o),s=r>0?r:1-r;if("YY"===e){return Xt(s%100,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Xt(s,e.length)},R:function(t,e){return Xt(Mt(t),e.length)},u:function(t,e){return Xt(t.getFullYear(),e.length)},Q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return Xt(o,2);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});default:return i.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,i){const o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return Xt(o,2);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});default:return i.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,i){const o=t.getMonth();switch(e){case"M":case"MM":return Qt.M(t,e);case"Mo":return i.ordinalNumber(o+1,{unit:"month"});case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});default:return i.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,i){const o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return Xt(o+1,2);case"Lo":return i.ordinalNumber(o+1,{unit:"month"});case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});default:return i.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,i,o){const r=Kt(t,o);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):Xt(r,e.length)},I:function(t,e,i){const o=Yt(t);return"Io"===e?i.ordinalNumber(o,{unit:"week"}):Xt(o,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):Qt.d(t,e)},D:function(t,e,i){const o=Ht(t);return"Do"===e?i.ordinalNumber(o,{unit:"dayOfYear"}):Xt(o,e.length)},E:function(t,e,i){const o=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Xt(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,o){const r=t.getDay(),s=(r-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Xt(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const o=t.getDay(),r=0===o?7:o;switch(e){case"i":return String(r);case"ii":return Xt(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,i){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,i){const o=t.getHours();let r;switch(r=12===o?Jt:0===o?Zt:o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const o=t.getHours();let r;switch(r=o>=17?ie:o>=12?ee:o>=4?te:oe,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return Qt.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):Qt.H(t,e)},K:function(t,e,i){const o=t.getHours()%12;return"Ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},k:function(t,e,i){let o=t.getHours();return 0===o&&(o=24),"ko"===e?i.ordinalNumber(o,{unit:"hour"}):Xt(o,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Qt.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Qt.s(t,e)},S:function(t,e){return Qt.S(t,e)},X:function(t,e,i){const o=t.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ne(o);case"XXXX":case"XX":return ae(o);default:return ae(o,":")}},x:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"x":return ne(o);case"xxxx":case"xx":return ae(o);default:return ae(o,":")}},O:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+se(o,":");default:return"GMT"+ae(o,":")}},z:function(t,e,i){const o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+se(o,":");default:return"GMT"+ae(o,":")}},t:function(t,e,i){return Xt(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return Xt(+t,e.length)}};function se(t,e=""){const i=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),s=o%60;return 0===s?i+String(r):i+String(r)+e+Xt(s,2)}function ne(t,e){if(t%60==0){return(t>0?"-":"+")+Xt(Math.abs(t)/60,2)}return ae(t,e)}function ae(t,e=""){const i=t>0?"-":"+",o=Math.abs(t);return i+Xt(Math.trunc(o/60),2)+e+Xt(o%60,2)}const le=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},de=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ce={p:de,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return le(t,e);let s;switch(o){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",le(o,e)).replace("{{time}}",de(r,e))}},he=/^D+$/,pe=/^Y+$/,ue=["D","DD","YY","YYYY"];const ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,be=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,me=/^'([^]*?)'?$/,ye=/''/g,ve=/[a-zA-Z]/;function fe(t,e,i){const o=Ot(),r=o.locale??Ut,s=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=Et(t,i?.in);if(!jt(a))throw new RangeError("Invalid time value");let l=e.match(be).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,ce[e])(t,r.formatLong)}return t})).join("").match(ge).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:we(t)};if(re[e])return{isToken:!0,value:t};if(e.match(ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));const d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map((i=>{if(!i.isToken)return i.value;const o=i.value;(function(t){return pe.test(t)}(o)||function(t){return he.test(t)}(o))&&function(t,e,i){const o=function(t,e,i){const o="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(o),ue.includes(t))throw new RangeError(o)}(o,e,String(t));return(0,re[o[0]])(a,o,r.localize,d)})).join("")}function we(t){const e=t.match(me);return e?e[1].replace(ye,"'"):t}function xe(t,e){return Et(t,e?.in).getDate()}function ke(t,e){const i=Et(t,e?.in),o=i.getFullYear(),r=i.getMonth(),s=St(i,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function $e(t,e){return+Et(t)>+Et(e)}function Se(t,e){return+Et(t)<+Et(e)}function Ee(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function De(t,e,i){const[o,r]=Bt(0,t,e);return o.getFullYear()===r.getFullYear()}function Ce(t,e){return function(t,e){const[i,o]=Bt(0,t,e);return+Lt(i)===+Lt(o)}(St(t,t),function(t){return St(t,Date.now())}(t))}function Oe(t,e,i){const o=Et(t,i?.in);return o.setDate(e),o}let Fe=class extends t{static{this.styles=[J,o`
3343
3343
  ${X}
3344
3344
 
3345
3345
  /* Estilos generales del contenedor del calendario (escritorio) */
@@ -3842,7 +3842,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3842
3842
  <div class="calendar-container" style="width: ${this.calendarWidth}px;">
3843
3843
  ${r}
3844
3844
  </div>
3845
- `}};s([T({type:Object}),n("design:type",Object)],Fe.prototype,"selectedDate",void 0),s([T({type:Object}),n("design:type",Date)],Fe.prototype,"viewDate",void 0),s([T({type:Boolean}),n("design:type",Object)],Fe.prototype,"isMobile",void 0),s([T({type:Number}),n("design:type",Number)],Fe.prototype,"calendarWidth",void 0),s([T({type:Object}),n("design:type",Object)],Fe.prototype,"minDate",void 0),s([T({type:Object}),n("design:type",Object)],Fe.prototype,"maxDate",void 0),s([T({type:String}),n("design:type",String)],Fe.prototype,"type",void 0),s([T({type:Boolean}),n("design:type",Object)],Fe.prototype,"lastElement",void 0),s([B(),n("design:type",String)],Fe.prototype,"currentView",void 0),s([L(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],Fe.prototype,"initialFocusElement",void 0),Fe=s([a("calendar-overlay"),n("design:paramtypes",[])],Fe);let Me=class extends R{constructor(){super(...arguments),this.isRenderClearButton=!0,this.readonly=!1,this.type="date",this.eighteenOrOlder=!1,this.maxLength=10,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.lastElement=!1,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this._emitDropdownToggle(!1))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen&&(this._emitToggle(!1),this._emitDropdownToggle(!1)),this.isOpen=!1)}}static{this.styles=o`
3845
+ `}};s([T({type:Object}),n("design:type",Object)],Fe.prototype,"selectedDate",void 0),s([T({type:Object}),n("design:type",Date)],Fe.prototype,"viewDate",void 0),s([T({type:Boolean}),n("design:type",Object)],Fe.prototype,"isMobile",void 0),s([T({type:Number}),n("design:type",Number)],Fe.prototype,"calendarWidth",void 0),s([T({type:Object}),n("design:type",Object)],Fe.prototype,"minDate",void 0),s([T({type:Object}),n("design:type",Object)],Fe.prototype,"maxDate",void 0),s([T({type:String}),n("design:type",String)],Fe.prototype,"type",void 0),s([T({type:Boolean}),n("design:type",Object)],Fe.prototype,"lastElement",void 0),s([B(),n("design:type",String)],Fe.prototype,"currentView",void 0),s([L(".day.selected, .day.today:not(.selected)"),n("design:type",HTMLButtonElement)],Fe.prototype,"initialFocusElement",void 0),Fe=s([a("calendar-overlay"),n("design:paramtypes",[])],Fe);let _e=class extends R{constructor(){super(...arguments),this.isRenderClearButton=!0,this.readonly=!1,this.type="date",this.eighteenOrOlder=!1,this.maxLength=10,this.isOpen=!1,this.selectedDate=null,this.viewDate=new Date,this.isMobile=!1,this.calendarWidth=0,this.inputValue=null,this.lastElement=!1,this.handleGlobalOverlayOpen=t=>{t.detail!==this&&this.isOpen&&(this.isOpen=!1,this._emitDropdownToggle(!1))},this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.handleClickOutside=t=>{t.composedPath().includes(this)||(this.isOpen&&(this._emitToggle(!1),this._emitDropdownToggle(!1)),this.isOpen=!1)}}static{this.styles=o`
3846
3846
  ${Q}
3847
3847
  ${Z}
3848
3848
  ${K}
@@ -4046,7 +4046,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4046
4046
 
4047
4047
  ${this.renderHelper()}
4048
4048
  </div>
4049
- `}};s([T({type:String}),n("design:type",String)],Me.prototype,"width",void 0),s([T({type:Boolean}),n("design:type",Object)],Me.prototype,"isRenderClearButton",void 0),s([T({type:Boolean}),n("design:type",Object)],Me.prototype,"readonly",void 0),s([T({type:String}),n("design:type",String)],Me.prototype,"minDate",void 0),s([T({type:String}),n("design:type",String)],Me.prototype,"maxDate",void 0),s([T({type:String}),n("design:type",String)],Me.prototype,"type",void 0),s([T({type:Boolean}),n("design:type",Object)],Me.prototype,"eighteenOrOlder",void 0),s([T({type:Number}),n("design:type",Number)],Me.prototype,"maxLength",void 0),s([B(),n("design:type",Object)],Me.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],Me.prototype,"selectedDate",void 0),s([B(),n("design:type",Date)],Me.prototype,"viewDate",void 0),s([B(),n("design:type",Object)],Me.prototype,"isMobile",void 0),s([B(),n("design:type",Number)],Me.prototype,"calendarWidth",void 0),s([B(),n("design:type",Object)],Me.prototype,"inputValue",void 0),s([L(".input-container"),n("design:type",HTMLDivElement)],Me.prototype,"inputContainer",void 0),s([T({type:Boolean,attribute:"last-element"}),n("design:type",Object)],Me.prototype,"lastElement",void 0),Me=s([a("datepicker-component")],Me);let _e=class extends yt{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`
4049
+ `}};s([T({type:String}),n("design:type",String)],_e.prototype,"width",void 0),s([T({type:Boolean}),n("design:type",Object)],_e.prototype,"isRenderClearButton",void 0),s([T({type:Boolean}),n("design:type",Object)],_e.prototype,"readonly",void 0),s([T({type:String}),n("design:type",String)],_e.prototype,"minDate",void 0),s([T({type:String}),n("design:type",String)],_e.prototype,"maxDate",void 0),s([T({type:String}),n("design:type",String)],_e.prototype,"type",void 0),s([T({type:Boolean}),n("design:type",Object)],_e.prototype,"eighteenOrOlder",void 0),s([T({type:Number}),n("design:type",Number)],_e.prototype,"maxLength",void 0),s([B(),n("design:type",Object)],_e.prototype,"isOpen",void 0),s([B(),n("design:type",Object)],_e.prototype,"selectedDate",void 0),s([B(),n("design:type",Date)],_e.prototype,"viewDate",void 0),s([B(),n("design:type",Object)],_e.prototype,"isMobile",void 0),s([B(),n("design:type",Number)],_e.prototype,"calendarWidth",void 0),s([B(),n("design:type",Object)],_e.prototype,"inputValue",void 0),s([L(".input-container"),n("design:type",HTMLDivElement)],_e.prototype,"inputContainer",void 0),s([T({type:Boolean,attribute:"last-element"}),n("design:type",Object)],_e.prototype,"lastElement",void 0),_e=s([a("datepicker-component")],_e);let Me=class extends yt{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`
4050
4050
  ${Q}
4051
4051
  ${Z}
4052
4052
  ${K}
@@ -4173,7 +4173,7 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4173
4173
  </custom-popup>
4174
4174
  `:i}
4175
4175
  </div>
4176
- `}};s([T({type:String}),n("design:type",String)],_e.prototype,"width",void 0),s([T({type:Number}),n("design:type",Object)],_e.prototype,"maxFiles",void 0),s([T({type:Array}),n("design:type",Array)],_e.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],_e.prototype,"maxFileSize",void 0),s([T({type:String}),n("design:type",Object)],_e.prototype,"buttonText",void 0),s([T({type:Boolean}),n("design:type",Object)],_e.prototype,"showDeleteConfirmation",void 0),s([T({type:Boolean}),n("design:type",Object)],_e.prototype,"showInternalError",void 0),s([B(),n("design:type",Boolean)],_e.prototype,"isRemovePopupOpen",void 0),s([B(),n("design:type",Number)],_e.prototype,"fileIndexToRemove",void 0),s([B(),n("design:type",String)],_e.prototype,"fileNameToRemove",void 0),_e=s([a("upload-file")],_e);let Te=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
4176
+ `}};s([T({type:String}),n("design:type",String)],Me.prototype,"width",void 0),s([T({type:Number}),n("design:type",Object)],Me.prototype,"maxFiles",void 0),s([T({type:Array}),n("design:type",Array)],Me.prototype,"acceptedFileTypes",void 0),s([T({type:Number}),n("design:type",Object)],Me.prototype,"maxFileSize",void 0),s([T({type:String}),n("design:type",Object)],Me.prototype,"buttonText",void 0),s([T({type:Boolean}),n("design:type",Object)],Me.prototype,"showDeleteConfirmation",void 0),s([T({type:Boolean}),n("design:type",Object)],Me.prototype,"showInternalError",void 0),s([B(),n("design:type",Boolean)],Me.prototype,"isRemovePopupOpen",void 0),s([B(),n("design:type",Number)],Me.prototype,"fileIndexToRemove",void 0),s([B(),n("design:type",String)],Me.prototype,"fileNameToRemove",void 0),Me=s([a("upload-file")],Me);let Te=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
4177
4177
  :host {
4178
4178
  display: block;
4179
4179
  width: 100%;
@@ -4925,5 +4925,5 @@ function L(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
4925
4925
 
4926
4926
  ${o.map(((t,e)=>s(t,e+2)))}
4927
4927
  </nav>
4928
- `}};s([T({type:Array}),n("design:type",Array)],Re.prototype,"items",void 0),s([T({type:String}),n("design:type",Object)],Re.prototype,"centerIcon",void 0),s([T({type:String}),n("design:type",Object)],Re.prototype,"centerLabel",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Re.prototype,"hidden",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Re.prototype,"desktop",void 0),s([T({type:Number}),n("design:type",Object)],Re.prototype,"selectedIndex",void 0),Re=s([a("randstad-navbar"),n("design:paramtypes",[])],Re);export{U as AccordionList,q as AccordionPanel,R as BaseControl,Fe as CalendarOverlay,Te as Carousel,Y as CarouselCard,G as Checkbox,at as CustomModal,lt as CustomPopup,ct as CustomRadio,bt as CustomStepper,Me as DatePickerComponent,pt as FilterableSelect,it as FormGroup,ot as IconComponent,Le as MfaModal,dt as ProgressCircle,Be as RandstadBubble,H as RandstadButton,et as RandstadForm,Re as RandstadNavbar,nt as RandstadNotice,st as RandstadSocialMediaInput,mt as TabsBar,_e as UploadFile,xt as UploadImage,J as scrollbarStyles};
4928
+ `}};s([T({type:Array}),n("design:type",Array)],Re.prototype,"items",void 0),s([T({type:String}),n("design:type",Object)],Re.prototype,"centerIcon",void 0),s([T({type:String}),n("design:type",Object)],Re.prototype,"centerLabel",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Re.prototype,"hidden",void 0),s([T({type:Boolean,reflect:!0}),n("design:type",Object)],Re.prototype,"desktop",void 0),s([T({type:Number}),n("design:type",Object)],Re.prototype,"selectedIndex",void 0),Re=s([a("randstad-navbar"),n("design:paramtypes",[])],Re);export{U as AccordionList,q as AccordionPanel,R as BaseControl,Fe as CalendarOverlay,Te as Carousel,Y as CarouselCard,G as Checkbox,at as CustomModal,lt as CustomPopup,ct as CustomRadio,bt as CustomStepper,_e as DatePickerComponent,pt as FilterableSelect,it as FormGroup,ot as IconComponent,Le as MfaModal,dt as ProgressCircle,Be as RandstadBubble,H as RandstadButton,et as RandstadForm,Re as RandstadNavbar,nt as RandstadNotice,st as RandstadSocialMediaInput,mt as TabsBar,Me as UploadFile,xt as UploadImage,J as scrollbarStyles};
4929
4929
  //# sourceMappingURL=index.js.map