@opencitylabs/formio-custom-components 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +593 -586
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.rdp-root{--rdp-accent-color:blue;--rdp-accent-background-color:#f0f0ff;--rdp-day-height:44px;--rdp-day-width:44px;--rdp-day_button-border-radius:100%;--rdp-day_button-border:2px solid transparent;--rdp-day_button-height:42px;--rdp-day_button-width:42px;--rdp-selected-border:2px solid var(--rdp-accent-color);--rdp-disabled-opacity:.5;--rdp-outside-opacity:.75;--rdp-today-color:var(--rdp-accent-color);--rdp-dropdown-gap:.5rem;--rdp-months-gap:2rem;--rdp-nav_button-disabled-opacity:.5;--rdp-nav_button-height:2.25rem;--rdp-nav_button-width:2.25rem;--rdp-nav-height:2.75rem;--rdp-range_middle-background-color:var(--rdp-accent-background-color);--rdp-range_middle-color:inherit;--rdp-range_start-color:white;--rdp-range_start-background:linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%);--rdp-range_start-date-background-color:var(--rdp-accent-color);--rdp-range_end-background:linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%);--rdp-range_end-color:white;--rdp-range_end-date-background-color:var(--rdp-accent-color);--rdp-week_number-border-radius:100%;--rdp-week_number-border:2px solid transparent;--rdp-week_number-height:var(--rdp-day-height);--rdp-week_number-opacity:.75;--rdp-week_number-width:var(--rdp-day-width);--rdp-weeknumber-text-align:center;--rdp-weekday-opacity:.75;--rdp-weekday-padding:.5rem 0rem;--rdp-weekday-text-align:center;--rdp-gradient-direction:90deg;--rdp-animation_duration:.3s;--rdp-animation_timing:cubic-bezier(.4, 0, .2, 1)}.rdp-root[dir=rtl]{--rdp-gradient-direction:-90deg}.rdp-root[data-broadcast-calendar=true]{--rdp-outside-opacity:unset}.rdp-root{box-sizing:border-box;position:relative}.rdp-root *{box-sizing:border-box}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);text-align:center}.rdp-day_button{cursor:pointer;font:inherit;color:inherit;width:var(--rdp-day_button-width);height:var(--rdp-day_button-height);border:var(--rdp-day_button-border);border-radius:var(--rdp-day_button-border-radius);background:0 0;justify-content:center;align-items:center;margin:0;padding:0;display:flex}.rdp-day_button:disabled{cursor:revert}.rdp-caption_label{z-index:1;white-space:nowrap;border:0;align-items:center;display:inline-flex;position:relative}.rdp-dropdown:focus-visible~.rdp-caption_label{outline:5px auto highlight;outline:5px auto -webkit-focus-ring-color}.rdp-button_next,.rdp-button_previous{cursor:pointer;font:inherit;color:inherit;appearance:none;width:var(--rdp-nav_button-width);height:var(--rdp-nav_button-height);background:0 0;border:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex;position:relative}.rdp-button_next:disabled,.rdp-button_next[aria-disabled=true],.rdp-button_previous:disabled,.rdp-button_previous[aria-disabled=true]{cursor:revert;opacity:var(--rdp-nav_button-disabled-opacity)}.rdp-chevron{fill:var(--rdp-accent-color);display:inline-block}.rdp-root[dir=rtl] .rdp-nav .rdp-chevron{transform-origin:50%;transform:rotate(180deg)}.rdp-dropdowns{align-items:center;gap:var(--rdp-dropdown-gap);display:inline-flex;position:relative}.rdp-dropdown{z-index:2;opacity:0;appearance:none;width:100%;cursor:inherit;line-height:inherit;border:none;margin:0;padding:0;position:absolute;inset-block:0;inset-inline-start:0}.rdp-dropdown_root{align-items:center;display:inline-flex;position:relative}.rdp-dropdown_root[data-disabled=true] .rdp-chevron{opacity:var(--rdp-disabled-opacity)}.rdp-month_caption{height:var(--rdp-nav-height);align-content:center;font-size:large;font-weight:700;display:flex}.rdp-root[data-nav-layout=around] .rdp-month,.rdp-root[data-nav-layout=after] .rdp-month{position:relative}.rdp-root[data-nav-layout=around] .rdp-month_caption{justify-content:center;margin-inline-start:var(--rdp-nav_button-width);margin-inline-end:var(--rdp-nav_button-width);position:relative}.rdp-root[data-nav-layout=around] .rdp-button_previous{inset-inline-start:0;height:var(--rdp-nav-height);display:inline-flex;position:absolute;top:0}.rdp-root[data-nav-layout=around] .rdp-button_next{inset-inline-end:0;height:var(--rdp-nav-height);justify-content:center;display:inline-flex;position:absolute;top:0}.rdp-months{gap:var(--rdp-months-gap);flex-wrap:wrap;max-width:fit-content;display:flex;position:relative}.rdp-month_grid{border-collapse:collapse}.rdp-nav{height:var(--rdp-nav-height);align-items:center;display:flex;position:absolute;inset-block-start:0;inset-inline-end:0}.rdp-weekday{opacity:var(--rdp-weekday-opacity);padding:var(--rdp-weekday-padding);text-align:var(--rdp-weekday-text-align);text-transform:var(--rdp-weekday-text-transform);font-size:smaller;font-weight:500}.rdp-week_number{opacity:var(--rdp-week_number-opacity);height:var(--rdp-week_number-height);width:var(--rdp-week_number-width);border:var(--rdp-week_number-border);border-radius:var(--rdp-week_number-border-radius);text-align:var(--rdp-weeknumber-text-align);font-size:small;font-weight:400}.rdp-today:not(.rdp-outside){color:var(--rdp-today-color)}.rdp-selected{font-size:large;font-weight:700}.rdp-selected .rdp-day_button{border:var(--rdp-selected-border)}.rdp-outside{opacity:var(--rdp-outside-opacity)}.rdp-disabled:not(.rdp-selected){opacity:var(--rdp-disabled-opacity)}.rdp-hidden{visibility:hidden;color:var(--rdp-range_start-color)}.rdp-range_start{background:var(--rdp-range_start-background)}.rdp-range_start .rdp-day_button{background-color:var(--rdp-range_start-date-background-color);color:var(--rdp-range_start-color)}.rdp-range_middle{background-color:var(--rdp-range_middle-background-color)}.rdp-range_middle .rdp-day_button{border:unset;border-radius:unset;color:var(--rdp-range_middle-color)}.rdp-range_end{background:var(--rdp-range_end-background);color:var(--rdp-range_end-color)}.rdp-range_end .rdp-day_button{color:var(--rdp-range_start-color);background-color:var(--rdp-range_end-date-background-color)}.rdp-range_start.rdp-range_end{background:revert}.rdp-focusable{cursor:pointer}@keyframes rdp-slide_in_left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes rdp-slide_in_right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes rdp-slide_out_left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes rdp-slide_out_right{0%{transform:translate(0)}to{transform:translate(100%)}}.rdp-weeks_before_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_before_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}@keyframes rdp-fade_in{0%{opacity:0}to{opacity:1}}@keyframes rdp-fade_out{0%{opacity:1}to{opacity:0}}.rdp-caption_after_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_after_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.ec{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ec-h:0;--ec-s:0%;--ec-l-300:91.0%;--ec-l-500:83.5%;--ec-l-600:78.4%;--ec-l-700:71.4%;--ec-bg-fallback-color:#fff;--ec-hs:var(--ec-h), var(--ec-s);--ec-color-300:hsl(var(--ec-hs), var(--ec-l-300));--ec-color-500:hsl(var(--ec-hs), var(--ec-l-500));--ec-color-600:hsl(var(--ec-hs), var(--ec-l-600));--ec-color-700:hsl(var(--ec-hs), var(--ec-l-700));--ec-border-color:var(--ec-color-500);--ec-accent-color:var(--ec-color-600);--ec-button-bg-color:var(--ec-bg-color);--ec-button-border-color:var(--ec-color-600);--ec-button-text-color:var(--ec-text-color);--ec-button-active-bg-color:var(--ec-color-300);--ec-button-active-border-color:var(--ec-color-700);--ec-button-active-text-color:var(--ec-button-text-color);--ec-event-bg-color:#039be5;--ec-event-text-color:#fff;--ec-bg-event-color:var(--ec-color-500);--ec-bg-event-opacity:.3;--ec-list-day-bg-color:var(--ec-bg-color,var(--ec-bg-fallback-color));--ec-today-bg-color:#ffdc2826;--ec-highlight-color:#bce8f14d;--ec-popup-bg-color:var(--ec-bg-color,var(--ec-bg-fallback-color));--ec-now-indicator-color:#ea4335}.ec-dark .ec{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ec-h:215;--ec-s:15%;--ec-l-300:25.5%;--ec-l-500:42.4%;--ec-l-600:49.8%;--ec-l-700:57.3%;--ec-bg-fallback-color:#22272e}@media (prefers-color-scheme:dark){.ec-auto-dark .ec{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ec-h:215;--ec-s:15%;--ec-l-300:25.5%;--ec-l-500:42.4%;--ec-l-600:49.8%;--ec-l-700:57.3%;--ec-bg-fallback-color:#22272e}}.ec-timeline .ec-container{flex:1;min-height:0;display:flex}.ec-timeline .ec-main{flex-direction:column;min-width:0;display:flex;position:relative}.ec-timeline .ec-content{flex-direction:column}.ec-timeline .ec-body{flex:auto;overflow:auto}.ec-timeline .ec-body .ec-content{min-width:max-content;min-height:100%;position:relative}.ec-timeline .ec-body .ec-days{flex-shrink:0}.ec-timeline .ec-body .ec-days:not(:last-child){flex-grow:0}.ec-timeline .ec-header{overflow:hidden}.ec-timeline .ec-header .ec-days{min-width:max-content}.ec-timeline .ec-header .ec-day{flex-direction:column;flex-basis:auto;display:flex}.ec-timeline .ec-header .ec-day:first-child .ec-day-head,.ec-timeline .ec-header .ec-day:first-child .ec-time:first-child,.ec-timeline .ec-day{border:none}.ec-timeline .ec-day-head{border-style:none none none solid}.ec-timeline .ec-times{border-top:1px solid var(--ec-border-color);display:flex}.ec-timeline .ec-time{border-left:1px solid var(--ec-border-color);box-sizing:border-box;text-overflow:ellipsis;min-height:24px;font-size:.95em;overflow:hidden}.ec-timeline .ec-time.ec-minor{visibility:hidden}.ec-timeline .ec-time,.ec-timeline .ec-line{width:72px}.ec-timeline .ec-events{height:100%;margin:0;position:relative}.ec-timeline .ec-event{position:absolute}.ec-timeline .ec-bg-event{z-index:auto;height:100%}.ec-timeline .ec-lines{display:flex}.ec-timeline .ec-line:not(:first-child):after{content:"";border-left:1px solid var(--ec-border-color);pointer-events:none;height:100%;position:absolute}.ec-timeline .ec-line.ec-minor:after{border-left-style:dotted}.ec-timeline .ec-sidebar{border:1px solid var(--ec-border-color);border-right-style:none;padding:0}.ec-timeline .ec-sidebar .ec-sidebar-title{border-bottom:1px solid var(--ec-border-color);box-sizing:content-box;flex-shrink:0}.ec-timeline .ec-sidebar .ec-content{flex:1;overflow:hidden}.ec-timeline .ec-sidebar .ec-resource{flex-shrink:0;padding:0 8px}.ec-timeline .ec-sidebar .ec-resource:not(:last-child){border-bottom:1px solid var(--ec-border-color);flex-grow:0}.ec-timeline .ec-sidebar .ec-resource:last-child{flex-basis:100%!important}.ec-timeline .ec-sidebar .ec-resource span{height:fit-content;padding-top:8px}.ec-time-grid .ec-body .ec-event{position:absolute}.ec-time-grid .ec-body .ec-event-title{position:sticky;top:0}.ec-time-grid .ec-body .ec-resizer{cursor:ns-resize;height:50%;max-height:8px;bottom:0;left:0;right:0}.ec-time-grid .ec-body .ec-resizer.ec-start{top:0;bottom:auto}.ec-time-grid .ec-bg-event{z-index:1;width:100%}.ec-time-grid .ec-time{text-align:right;line-height:24px;position:relative;top:-12px}.ec-time-grid .ec-time.ec-minor{visibility:hidden}.ec-time-grid .ec-header .ec-time,.ec-time-grid .ec-all-day .ec-time{visibility:hidden;height:0;overflow-y:hidden}.ec-time-grid .ec-time,.ec-time-grid .ec-line{height:24px}.ec-time-grid .ec-lines{width:8px}.ec-time-grid .ec-line:not(:first-child):after{content:"";border-bottom:1px solid var(--ec-border-color);pointer-events:none;width:100%;position:absolute}.ec-time-grid .ec-line.ec-minor:after{border-bottom-style:dotted}.ec-time-grid .ec-sidebar-title{visibility:hidden;text-align:right;height:0;overflow-y:hidden}.ec-time-grid .ec-all-day .ec-sidebar-title{visibility:visible;height:auto;padding:8px 0}.ec-day-grid .ec-body{flex:auto}.ec-day-grid .ec-body .ec-day{min-height:5em;position:relative}.ec-day-grid .ec-content{flex-direction:column;height:100%}.ec-day-grid .ec-uniform .ec-content{overflow:hidden}.ec-day-grid .ec-uniform .ec-days{flex:1;min-height:0}.ec-day-grid .ec-uniform .ec-day{min-height:0}.ec-day-grid .ec-day:first-child{border-left:none}.ec-day-grid .ec-day-head{border:none;flex-direction:row-reverse;justify-content:space-between;padding:4px 4px 3px;display:flex}.ec-day-grid .ec-day-foot{padding:2px;font-size:.85em;position:absolute;bottom:0}.ec-day-grid .ec-day-foot a{cursor:pointer}.ec-days,.ec-day,.ec-resource{flex:1 1 0;min-width:0;max-width:100%}.ec{color:var(--ec-text-color);background-color:var(--ec-bg-color);-webkit-tap-highlight-color:transparent;flex-direction:column;display:flex}.ec ::-webkit-scrollbar{background-color:#0000}.ec ::-webkit-scrollbar-thumb{box-shadow:none;background-color:var(--ec-border-color);background-clip:padding-box;border:4px solid #0000;border-radius:8px;min-height:40px}.ec :hover::-webkit-scrollbar-thumb{background-color:var(--ec-accent-color)}.ec-hidden-scroll{visibility:hidden;flex-shrink:0;display:none;overflow-y:scroll}.ec-with-scroll .ec-hidden-scroll{display:block}.ec-toolbar{flex:none;justify-content:space-between;align-items:center;margin-bottom:1em;display:flex}.ec-toolbar>*{margin-bottom:-.5em}.ec-toolbar>*>*{margin-bottom:.5em}.ec-toolbar>*>:not(:last-child){margin-right:.75em}.ec-title{margin:0}.ec-button{background-color:var(--ec-button-bg-color);border:1px solid var(--ec-button-border-color);border-radius:.25rem;padding:.375rem .75rem;font-size:1rem;line-height:1.5}.ec-button:not(:disabled){color:var(--ec-button-text-color);cursor:pointer}.ec-button:not(:disabled):hover,.ec-button.ec-active{background-color:var(--ec-button-active-bg-color);border-color:var(--ec-button-active-border-color);color:var(--ec-button-active-text-color);z-index:1}.ec-expander{width:1.25em;margin-right:.25em}.ec-expander .ec-button{aspect-ratio:1;height:1.25em;padding:0;line-height:normal}.ec-button-group{display:inline-flex}.ec-button-group .ec-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.ec-button-group .ec-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ec-icon{width:1em;display:inline-block}.ec-icon.ec-prev:after,.ec-icon.ec-next:after{content:"";border-top:2px solid;border-right:2px solid;width:.5em;height:.5em;display:inline-block;position:relative}.ec-icon.ec-prev:after{transform:rotate(-135deg)translate(-2px,2px)}.ec-icon.ec-next:after{transform:rotate(45deg)translate(-2px,2px)}.ec-header,.ec-all-day,.ec-body,.ec-days,.ec-day,.ec-day-head{border:1px solid var(--ec-border-color)}.ec-header{flex-shrink:0;display:flex}.ec-header .ec-resource{flex-direction:column}.ec-header .ec-resource .ec-days{border-top-style:solid}.ec-header .ec-days{border-bottom:none}.ec-header .ec-day{text-align:center;text-overflow:ellipsis;min-height:24px;line-height:24px;overflow:hidden}.ec-all-day{border-top:none;flex-shrink:0}.ec-all-day .ec-days{border-bottom:none}.ec-all-day .ec-day{padding-bottom:4px;position:relative}.ec-body{position:relative;overflow:hidden auto}.ec:not(.ec-list) .ec-body{border-top:none}.ec-sidebar{flex-direction:column;flex:none;width:auto;max-width:100%;padding:0 4px 0 8px;display:flex}.ec-content{display:flex}.ec-list .ec-content{flex-direction:column}.ec-resource{display:flex}.ec-days{border-style:none none solid;display:flex}.ec-days:last-child{border-bottom:none}.ec-day-grid .ec-days,.ec-resource .ec-days{flex:1 0 auto}.ec-day{border-style:none none none solid}.ec-day.ec-today{background-color:var(--ec-today-bg-color)}.ec-day.ec-highlight{background-color:var(--ec-highlight-color)}.ec-day.ec-disabled{position:relative}.ec-day.ec-disabled:after{content:"";background-color:var(--ec-bg-event-color);opacity:.3;position:absolute;inset:0}.ec-day.ec-other-month .ec-day-head time{opacity:.3}.ec-list .ec-day{border:none}.ec-list .ec-day-head{background-color:var(--ec-list-day-bg-color);z-index:2;border-style:solid none;margin:-1px 0 0;padding:8px 14px;position:sticky;top:0}.ec-list .ec-day.ec-today .ec-day-head:before{content:"";z-index:-1;background-color:var(--ec-today-bg-color);position:absolute;inset:0}.ec-list .ec-day:first-child .ec-day-head{border-top:none}.ec-list .ec-day-side{float:right}.ec-list .ec-no-events{text-align:center;padding:5em 0}.ec-events{margin:0 6px 0 0}.ec-time-grid .ec-events,.ec-events.ec-preview{position:relative}.ec-day-grid .ec-events,.ec-all-day .ec-events{display:flow-root}.ec-event{color:var(--ec-event-text-color);box-sizing:border-box;box-shadow:0 0 1px 0 var(--ec-border-color);background-color:var(--ec-event-bg-color);z-index:1;border-radius:3px;padding:2px;font-size:.85em;line-height:1.5;display:flex}.ec-day-grid .ec-event,.ec-all-day .ec-event{position:relative}.ec-list .ec-event{color:inherit;background-color:#0000;border-radius:0;flex-direction:row;padding:8px 14px}.ec-event.ec-preview{z-index:1000;-webkit-user-select:none;user-select:none;opacity:.8;width:100%;position:absolute}.ec-event.ec-pointer{color:inherit;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:0;box-shadow:none;display:flex;position:absolute}.ec-event-body{flex-direction:column;width:100%;display:flex}.ec-day-grid .ec-event-body,.ec-all-day .ec-event-body,.ec-timeline .ec-event-body{flex-direction:row}.ec-event-tag{border-radius:2px;width:4px;margin-right:8px}.ec-event-time{white-space:nowrap;flex-shrink:0;max-height:100%;margin:0 0 1px;overflow:hidden}.ec-day-grid .ec-event-time,.ec-timeline .ec-event-time{text-overflow:ellipsis;max-width:100%;margin:0 3px 0 0}.ec-event-title{margin:unset;font-weight:inherit;overflow:hidden}.ec-day-grid .ec-event-title,.ec-all-day .ec-event-title,.ec-timeline .ec-event-title{white-space:nowrap;text-overflow:ellipsis;min-height:1.5em}.ec-list .ec-event-title{font-size:1rem}.ec-draggable{cursor:pointer;-webkit-user-select:none;user-select:none}.ec-ghost{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none}.ec-bg-events{position:relative}.ec-day-grid .ec-bg-events,.ec-all-day .ec-bg-events{position:absolute;inset:0}.ec-bg-event{background-color:var(--ec-bg-event-color);opacity:var(--ec-bg-event-opacity);position:absolute}.ec-day-grid .ec-bg-event,.ec-all-day .ec-bg-event{z-index:auto;height:100%}.ec-time{white-space:nowrap}.ec-popup{z-index:1010;background-color:var(--ec-popup-bg-color);border:1px solid var(--ec-border-color);width:110%;min-width:180px;box-shadow:0 1px 3px 0 hsla(var(--ec-hs), 50%, .15), 0 4px 8px 3px hsla(var(--ec-hs), 50%, .15);border-radius:6px;outline:1px solid #0000;flex-direction:column;padding:8px 10px 14px;display:flex;position:absolute;top:0}.ec-popup .ec-day-head{text-align:left;justify-content:space-between;display:flex}.ec-popup .ec-day-head a{cursor:pointer;font-size:1.5em;line-height:.8}.ec-popup .ec-events{min-height:0;margin:0;overflow:auto}.ec-extra{-webkit-user-select:none;user-select:none;height:100%;margin-left:-6.5px;position:relative;overflow:hidden}.ec-now-indicator{z-index:1005;pointer-events:none;position:absolute}.ec-time-grid .ec-now-indicator{border-top:var(--ec-now-indicator-color) solid 2px;width:100%}.ec-timeline .ec-now-indicator{border-left:var(--ec-now-indicator-color) solid 2px;will-change:transform}.ec-now-indicator:before{background:var(--ec-now-indicator-color);content:"";border-radius:50%;width:12px;height:12px;margin-top:-7px;display:block}.ec-timeline .ec-now-indicator:before{margin-left:-7px}.ec-resizer{-webkit-user-select:none;user-select:none;position:absolute}.ec-day-grid .ec-resizer,.ec-all-day .ec-resizer,.ec-timeline .ec-resizer{cursor:ew-resize;width:50%;max-width:8px;top:0;bottom:0;right:0}.ec-day-grid .ec-resizer.ec-start,.ec-all-day .ec-resizer.ec-start,.ec-timeline .ec-resizer.ec-start{left:0;right:auto}.ec-dragging,.ec-dragging *{cursor:pointer!important}.ec-resizing-y,.ec-resizing-y *{cursor:ns-resize!important}.ec-resizing-x,.ec-resizing-x *{cursor:ew-resize!important}.formio-component-address_map .leaflet-popup.address-map-popup,.leaflet-popup.address-map-popup{text-align:center!important;margin-bottom:20px!important;position:absolute!important}.formio-component-address_map .leaflet-popup.address-map-popup{padding:1px!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-popup.address-map-popup .leaflet-popup-content-wrapper{text-align:left!important;border-radius:12px!important;padding:1px!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content,.leaflet-popup.address-map-popup .leaflet-popup-content{min-height:1px!important;margin:13px 24px 13px 20px!important;font-size:1.08333em!important;line-height:1.3!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content p,.leaflet-popup.address-map-popup .leaflet-popup-content p{margin:1.3em 0!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip-container,.leaflet-popup.address-map-popup .leaflet-popup-tip-container{pointer-events:none!important;width:40px!important;height:20px!important;margin-top:-1px!important;margin-left:-20px!important;position:absolute!important;left:50%!important;overflow:hidden!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-popup.address-map-popup .leaflet-popup-tip{pointer-events:auto!important;width:17px!important;height:17px!important;margin:-10px auto 0!important;padding:1px!important;transform:rotate(45deg)!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-popup.address-map-popup .leaflet-popup-tip{color:#333!important;background:#fff!important;box-shadow:0 3px 14px #0006!important}.formio-component-address_map .leaflet-popup.address-map-popup a.leaflet-popup-close-button,.leaflet-popup.address-map-popup a.leaflet-popup-close-button{text-align:center!important;color:#757575!important;background:0 0!important;border:none!important;width:24px!important;height:24px!important;font:16px/24px Tahoma,Verdana,sans-serif!important;text-decoration:none!important;position:absolute!important;top:0!important;right:24px!important}.formio-component-address_map .leaflet-popup.address-map-popup a.leaflet-popup-close-button:hover,.formio-component-address_map .leaflet-popup.address-map-popup a.leaflet-popup-close-button:focus,.leaflet-popup.address-map-popup a.leaflet-popup-close-button:hover,.leaflet-popup.address-map-popup a.leaflet-popup-close-button:focus{color:#585858!important}.formio-component-address_map .leaflet-popup.address-map-popup.leaflet-popup-scrolled,.leaflet-popup.address-map-popup.leaflet-popup-scrolled{overflow:auto!important}.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper{-ms-zoom:1!important}.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)"!important;width:24px!important;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107)!important;margin:0 auto!important}.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-tip{border:1px solid #999!important}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.rdp-root{--rdp-accent-color:blue;--rdp-accent-background-color:#f0f0ff;--rdp-day-height:44px;--rdp-day-width:44px;--rdp-day_button-border-radius:100%;--rdp-day_button-border:2px solid transparent;--rdp-day_button-height:42px;--rdp-day_button-width:42px;--rdp-selected-border:2px solid var(--rdp-accent-color);--rdp-disabled-opacity:.5;--rdp-outside-opacity:.75;--rdp-today-color:var(--rdp-accent-color);--rdp-dropdown-gap:.5rem;--rdp-months-gap:2rem;--rdp-nav_button-disabled-opacity:.5;--rdp-nav_button-height:2.25rem;--rdp-nav_button-width:2.25rem;--rdp-nav-height:2.75rem;--rdp-range_middle-background-color:var(--rdp-accent-background-color);--rdp-range_middle-color:inherit;--rdp-range_start-color:white;--rdp-range_start-background:linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%);--rdp-range_start-date-background-color:var(--rdp-accent-color);--rdp-range_end-background:linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%);--rdp-range_end-color:white;--rdp-range_end-date-background-color:var(--rdp-accent-color);--rdp-week_number-border-radius:100%;--rdp-week_number-border:2px solid transparent;--rdp-week_number-height:var(--rdp-day-height);--rdp-week_number-opacity:.75;--rdp-week_number-width:var(--rdp-day-width);--rdp-weeknumber-text-align:center;--rdp-weekday-opacity:.75;--rdp-weekday-padding:.5rem 0rem;--rdp-weekday-text-align:center;--rdp-gradient-direction:90deg;--rdp-animation_duration:.3s;--rdp-animation_timing:cubic-bezier(.4, 0, .2, 1)}.rdp-root[dir=rtl]{--rdp-gradient-direction:-90deg}.rdp-root[data-broadcast-calendar=true]{--rdp-outside-opacity:unset}.rdp-root{box-sizing:border-box;position:relative}.rdp-root *{box-sizing:border-box}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);text-align:center}.rdp-day_button{cursor:pointer;font:inherit;color:inherit;width:var(--rdp-day_button-width);height:var(--rdp-day_button-height);border:var(--rdp-day_button-border);border-radius:var(--rdp-day_button-border-radius);background:0 0;justify-content:center;align-items:center;margin:0;padding:0;display:flex}.rdp-day_button:disabled{cursor:revert}.rdp-caption_label{z-index:1;white-space:nowrap;border:0;align-items:center;display:inline-flex;position:relative}.rdp-dropdown:focus-visible~.rdp-caption_label{outline:5px auto highlight;outline:5px auto -webkit-focus-ring-color}.rdp-button_next,.rdp-button_previous{cursor:pointer;font:inherit;color:inherit;appearance:none;width:var(--rdp-nav_button-width);height:var(--rdp-nav_button-height);background:0 0;border:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex;position:relative}.rdp-button_next:disabled,.rdp-button_next[aria-disabled=true],.rdp-button_previous:disabled,.rdp-button_previous[aria-disabled=true]{cursor:revert;opacity:var(--rdp-nav_button-disabled-opacity)}.rdp-chevron{fill:var(--rdp-accent-color);display:inline-block}.rdp-root[dir=rtl] .rdp-nav .rdp-chevron{transform-origin:50%;transform:rotate(180deg)}.rdp-dropdowns{align-items:center;gap:var(--rdp-dropdown-gap);display:inline-flex;position:relative}.rdp-dropdown{z-index:2;opacity:0;appearance:none;width:100%;cursor:inherit;line-height:inherit;border:none;margin:0;padding:0;position:absolute;inset-block:0;inset-inline-start:0}.rdp-dropdown_root{align-items:center;display:inline-flex;position:relative}.rdp-dropdown_root[data-disabled=true] .rdp-chevron{opacity:var(--rdp-disabled-opacity)}.rdp-month_caption{height:var(--rdp-nav-height);align-content:center;font-size:large;font-weight:700;display:flex}.rdp-root[data-nav-layout=around] .rdp-month,.rdp-root[data-nav-layout=after] .rdp-month{position:relative}.rdp-root[data-nav-layout=around] .rdp-month_caption{justify-content:center;margin-inline-start:var(--rdp-nav_button-width);margin-inline-end:var(--rdp-nav_button-width);position:relative}.rdp-root[data-nav-layout=around] .rdp-button_previous{inset-inline-start:0;height:var(--rdp-nav-height);display:inline-flex;position:absolute;top:0}.rdp-root[data-nav-layout=around] .rdp-button_next{inset-inline-end:0;height:var(--rdp-nav-height);justify-content:center;display:inline-flex;position:absolute;top:0}.rdp-months{gap:var(--rdp-months-gap);flex-wrap:wrap;max-width:fit-content;display:flex;position:relative}.rdp-month_grid{border-collapse:collapse}.rdp-nav{height:var(--rdp-nav-height);align-items:center;display:flex;position:absolute;inset-block-start:0;inset-inline-end:0}.rdp-weekday{opacity:var(--rdp-weekday-opacity);padding:var(--rdp-weekday-padding);text-align:var(--rdp-weekday-text-align);text-transform:var(--rdp-weekday-text-transform);font-size:smaller;font-weight:500}.rdp-week_number{opacity:var(--rdp-week_number-opacity);height:var(--rdp-week_number-height);width:var(--rdp-week_number-width);border:var(--rdp-week_number-border);border-radius:var(--rdp-week_number-border-radius);text-align:var(--rdp-weeknumber-text-align);font-size:small;font-weight:400}.rdp-today:not(.rdp-outside){color:var(--rdp-today-color)}.rdp-selected{font-size:large;font-weight:700}.rdp-selected .rdp-day_button{border:var(--rdp-selected-border)}.rdp-outside{opacity:var(--rdp-outside-opacity)}.rdp-disabled:not(.rdp-selected){opacity:var(--rdp-disabled-opacity)}.rdp-hidden{visibility:hidden;color:var(--rdp-range_start-color)}.rdp-range_start{background:var(--rdp-range_start-background)}.rdp-range_start .rdp-day_button{background-color:var(--rdp-range_start-date-background-color);color:var(--rdp-range_start-color)}.rdp-range_middle{background-color:var(--rdp-range_middle-background-color)}.rdp-range_middle .rdp-day_button{border:unset;border-radius:unset;color:var(--rdp-range_middle-color)}.rdp-range_end{background:var(--rdp-range_end-background);color:var(--rdp-range_end-color)}.rdp-range_end .rdp-day_button{color:var(--rdp-range_start-color);background-color:var(--rdp-range_end-date-background-color)}.rdp-range_start.rdp-range_end{background:revert}.rdp-focusable{cursor:pointer}@keyframes rdp-slide_in_left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes rdp-slide_in_right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes rdp-slide_out_left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes rdp-slide_out_right{0%{transform:translate(0)}to{transform:translate(100%)}}.rdp-weeks_before_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_before_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}@keyframes rdp-fade_in{0%{opacity:0}to{opacity:1}}@keyframes rdp-fade_out{0%{opacity:1}to{opacity:0}}.rdp-caption_after_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_after_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.ec{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ec-color-400:oklch(70.8% 0 0);--ec-color-300:oklch(87% 0 0);--ec-color-200:oklch(92.2% 0 0);--ec-color-100:oklch(97% 0 0);--ec-color-50:oklch(98.5% 0 0);--ec-bg-color:#fff;--ec-text-color:currentcolor;--ec-border-color:var(--ec-color-300);--ec-button-bg-color:var(--ec-bg-color);--ec-button-border-color:var(--ec-border-color);--ec-button-text-color:var(--ec-text-color);--ec-button-active-bg-color:var(--ec-color-200);--ec-button-active-border-color:var(--ec-color-400);--ec-button-active-text-color:var(--ec-button-text-color);--ec-today-bg-color:oklch(98.7% .026 102.212);--ec-highlight-color:oklch(98.4% .019 200.873);--ec-event-bg-color:oklch(70.7% .165 254.624);--ec-event-text-color:#fff;--ec-bg-event-color:var(--ec-color-300);--ec-bg-event-opacity:.3;--ec-event-col-gap:.375rem;--ec-now-indicator-color:oklch(63.7% .237 25.331);--ec-popup-bg-color:var(--ec-bg-color)}.ec-dark .ec{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ec-color-400:oklch(43.9% 0 0);--ec-color-300:oklch(37.1% 0 0);--ec-color-200:oklch(26.9% 0 0);--ec-color-100:oklch(20.5% 0 0);--ec-color-50:oklch(14.5% 0 0);--ec-bg-color:var(--ec-color-100);--ec-today-bg-color:oklch(28.6% .066 53.813);--ec-highlight-color:oklch(30.2% .056 229.695);--ec-bg-event-opacity:.5}@media (prefers-color-scheme:dark){.ec-auto-dark .ec{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ec-color-400:oklch(43.9% 0 0);--ec-color-300:oklch(37.1% 0 0);--ec-color-200:oklch(26.9% 0 0);--ec-color-100:oklch(20.5% 0 0);--ec-color-50:oklch(14.5% 0 0);--ec-bg-color:var(--ec-color-100);--ec-today-bg-color:oklch(28.6% .066 53.813);--ec-highlight-color:oklch(30.2% .056 229.695);--ec-bg-event-opacity:.5}}.ec-day{--ec-day-bg-color:var(--ec-bg-color);background-color:var(--ec-day-bg-color);border:1px solid var(--ec-border-color);border-block-start:none;border-inline-start:none}.ec-day.ec-today{--ec-day-bg-color:var(--ec-today-bg-color)}.ec-day.ec-highlight{--ec-day-bg-color:var(--ec-highlight-color)}.ec-time-grid .ec-body .ec-day{background-image:linear-gradient(to top, var(--ec-day-bg-color) 1px, transparent 1px), linear-gradient(to top, var(--ec-border-color) 1px, transparent 1px), linear-gradient(to right, var(--ec-day-bg-color) 1px, transparent 1px), linear-gradient(to top, var(--ec-border-color) 1px, transparent 1px);background-size:100% 100%, 100% calc(var(--ec-slot-height) * var(--ec-slot-label-periodicity)), 2px 100%, 100% var(--ec-slot-height)}.ec-timeline:not(.ec-month-view,.ec-year-view) .ec-body .ec-day{--ec-last-line-color:transparent;--ec-direction:to left}[dir=rtl] :is(.ec-timeline:not(.ec-month-view,.ec-year-view) .ec-body .ec-day){--ec-direction:to right}.ec-timeline:not(.ec-month-view,.ec-year-view) .ec-body .ec-day{background-image:linear-gradient(var(--ec-direction), var(--ec-last-line-color) 1px, transparent 1px), linear-gradient(var(--ec-direction), var(--ec-border-color) 1px, transparent 1px), linear-gradient(var(--ec-day-bg-color) 1px, transparent 1px), linear-gradient(var(--ec-direction), var(--ec-border-color) 1px, transparent 1px);background-size:100% 100%, calc(var(--ec-slot-width) * var(--ec-slot-label-periodicity)) 100%, 100% 2px, var(--ec-slot-width) 100%;border-inline:none}.ec-timeline:not(.ec-month-view,.ec-year-view) .ec-body .ec-day.ec-no-ieb{--ec-last-line-color:var(--ec-day-bg-color)}.ec-day-grid .ec-day{flex-direction:column;justify-content:space-between;min-block-size:5em;display:flex}.ec-day-grid .ec-uniform .ec-day{min-block-size:auto}.ec-list .ec-day{border-inline:none}.ec-list .ec-day:last-child{border:none}.ec-day.ec-no-ieb{border-inline-end:none}.ec-day.ec-no-beb{border-block-end:none}.ec-day-head{flex-direction:row-reverse;justify-content:space-between;display:flex}.ec-day-grid.ec-month-view .ec-day-head{padding:.375rem}.ec-day.ec-other-month .ec-day-head time{opacity:.3}.ec-list .ec-day-head{background-color:var(--ec-day-bg-color);border-block-end:1px solid var(--ec-border-color);flex-direction:unset;z-index:2;margin:0 0 -1px;padding:.5em 1.5em;position:sticky;inset-block-start:0}.ec-day-foot{padding:.18rem;font-size:.85em}.ec-day-foot a{cursor:pointer}.ec-disabled{position:relative}.ec-disabled:after{content:"";background-color:var(--ec-bg-event-color);opacity:var(--ec-bg-event-opacity);position:absolute;inset:0}.ec-toolbar{justify-content:space-between;align-items:center;margin-block-end:1em;display:flex}.ec-toolbar>*{flex-wrap:wrap;gap:.5rem .75rem;display:inline-flex}.ec-title{margin:0}.ec-button{background-color:var(--ec-button-bg-color);border:1px solid var(--ec-button-border-color);border-radius:.25rem;padding:.375rem .75rem;font-size:1rem;line-height:1.5}.ec-button:not(:disabled){color:var(--ec-button-text-color);cursor:pointer}.ec-button:not(:disabled):hover,.ec-button.ec-active{background-color:var(--ec-button-active-bg-color);border-color:var(--ec-button-active-border-color);color:var(--ec-button-active-text-color);z-index:1}.ec-button-group{vertical-align:top;display:inline-flex}.ec-button-group .ec-button:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;margin-inline-start:-1px}.ec-button-group .ec-button:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.ec-icon{inline-size:1em;display:inline-block}.ec-icon.ec-prev:after,.ec-icon.ec-next:after{content:"";border-block-start:2px solid;border-inline-end:2px solid;block-size:.5em;inline-size:.5em;display:inline-block;position:relative}.ec-icon.ec-prev:after{inset-inline-start:3px;rotate:-135deg}[dir=rtl] .ec-icon.ec-prev:after{rotate:135deg}.ec-icon.ec-next:after{inset-inline-start:-3px;rotate:45deg}[dir=rtl] .ec-icon.ec-next:after{rotate:-45deg}.ec-sidebar{z-index:1;background-color:var(--ec-bg-color);border-inline-end:1px solid var(--ec-border-color);text-align:end;position:sticky;inset-inline-start:0;overflow:clip}.ec-header .ec-sidebar{border-block-end:1px solid var(--ec-border-color);padding-block:.375rem}.ec-time-grid .ec-sidebar{padding-inline:.75rem}.ec-time-grid .ec-body .ec-sidebar{--ec-direction:to left}[dir=rtl] :is(.ec-time-grid .ec-body .ec-sidebar){--ec-direction:to right}.ec-time-grid .ec-body .ec-sidebar{background-image:linear-gradient(var(--ec-direction), transparent .375rem, var(--ec-bg-color) .375rem), linear-gradient(to top, var(--ec-bg-color) 1px, transparent 1px), linear-gradient(to top, var(--ec-border-color) 1px, transparent 1px), linear-gradient(to right, var(--ec-bg-color) 1px, transparent 1px), linear-gradient(to top, var(--ec-border-color) 1px, transparent 1px);background-size:100% 100%, 100% 100%, 100% calc(var(--ec-slot-height) * var(--ec-slot-label-periodicity)), 2px 100%, 100% var(--ec-slot-height)}.ec-timeline .ec-body .ec-sidebar{grid-area:1/1/-1/2;grid-template-rows:subgrid;display:grid}.ec-row-head{border-block-end:1px solid var(--ec-border-color);min-block-size:1.5em;padding:.375em .75rem;display:flex}.ec-row-head:last-child{border:none}.ec-expander{inline-size:1.25em;margin-block-start:-1px;margin-inline-end:.25em}.ec-expander .ec-button{aspect-ratio:1;block-size:1.25em;padding:0;line-height:normal}.ec-slot{white-space:nowrap}.ec-time-grid .ec-slot{block-size:calc(var(--ec-slot-height) * var(--ec-slot-label-periodicity));position:relative;inset-block-start:-.5lh}.ec-timeline .ec-slot{grid-column:span var(--ec-slot-label-periodicity);text-overflow:ellipsis;padding:.18rem 0;font-size:.95em;overflow:clip}.ec-slots{grid-auto-flow:column;grid-auto-columns:var(--ec-slot-width);text-align:center;--ec-day-bg-color:var(--ec-bg-color);background-color:var(--ec-day-bg-color);border-block-end:1px solid var(--ec-border-color);display:grid}.ec-slots.ec-today{--ec-day-bg-color:var(--ec-today-bg-color)}.ec-slots.ec-highlight{--ec-day-bg-color:var(--ec-highlight-color)}.ec-slots{--ec-last-line-color:transparent;--ec-direction:to left}[dir=rtl] .ec-slots{--ec-direction:to right}.ec-slots{background-image:linear-gradient(var(--ec-direction), var(--ec-last-line-color) 1px, transparent 1px), linear-gradient(var(--ec-direction), var(--ec-border-color) 1px, transparent 1px);background-size:100% 100%, calc(var(--ec-slot-width) * var(--ec-slot-label-periodicity)) 100%}.ec-slots:last-child{--ec-last-line-color:var(--ec-day-bg-color)}.ec-events{grid-area:1/2/-1/-1;grid-template:subgrid / subgrid;isolation:isolate;pointer-events:none;display:grid}.ec-day-grid .ec-events{grid-column-start:1}.ec-event{color:var(--ec-event-text-color);box-sizing:border-box;box-shadow:0 0 1px 0 var(--ec-border-color);background-color:var(--ec-event-bg-color);z-index:1;pointer-events:all;inline-size:calc(100% - var(--ec-event-col-gap));border-radius:3px;padding:2px;font-size:.85em;line-height:1.5;display:flex;position:relative}.ec-time-grid .ec-event{grid-row:1}.ec-day-grid .ec-event,.ec-all-day .ec-event,.ec-timeline .ec-event{block-size:max-content;margin-block-end:var(--ec-event-col-gap)}.ec-list .ec-event{color:inherit;background-color:var(--ec-day-bg-color);border-radius:0;flex-direction:row;padding:.5em 1.5em}.ec-event.ec-preview{z-index:1000;-webkit-user-select:none;user-select:none;opacity:.8}.ec-event.ec-pointer{color:inherit;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:0;box-shadow:none}.ec-bg-event{background-color:var(--ec-bg-event-color);opacity:var(--ec-bg-event-opacity);grid-row:1;position:relative}.ec-draggable{cursor:pointer;-webkit-user-select:none;user-select:none}.ec-ghost{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none}.ec-event-body{flex-direction:column;inline-size:100%;display:flex}.ec-day-grid .ec-event-body,.ec-all-day .ec-event-body,.ec-timeline .ec-event-body{flex-direction:row}.ec-event-tag{border-radius:2px;inline-size:4px;margin-inline-end:8px}.ec-event-time{white-space:nowrap;flex-shrink:0;max-block-size:100%;margin:0 0 1px;overflow:hidden}.ec-day-grid .ec-event-time,.ec-timeline .ec-event-time{text-overflow:ellipsis;max-inline-size:100%;margin:0 3px 0 0}.ec-event-title{font-weight:inherit;margin:0;overflow:hidden}.ec-time-grid .ec-event-title{position:sticky;inset-block-start:var(--ec-header-height)}.ec-day-grid .ec-event-title,.ec-all-day .ec-event-title,.ec-timeline .ec-event-title{white-space:nowrap;text-overflow:ellipsis;min-block-size:1.5em;position:sticky;inset-inline-start:calc(var(--ec-sidebar-width) + .18em)}.ec-list .ec-event-title{font-size:1rem}.ec-resizer{-webkit-user-select:none;user-select:none;position:absolute}.ec-time-grid .ec-body .ec-resizer{cursor:ns-resize;block-size:50%;max-block-size:8px;inset:auto 0 0}.ec-time-grid .ec-body .ec-resizer.ec-start{inset:0 0 auto}.ec-day-grid .ec-resizer,.ec-all-day .ec-resizer,.ec-timeline .ec-resizer{cursor:ew-resize;inline-size:50%;max-inline-size:8px;inset:0 0 0 auto}:is(.ec-day-grid .ec-resizer,.ec-all-day .ec-resizer,.ec-timeline .ec-resizer).ec-start{inset:0 auto 0 0}.ec-dragging,.ec-dragging *{cursor:pointer!important}.ec-resizing-y,.ec-resizing-y *{cursor:ns-resize!important}.ec-resizing-x,.ec-resizing-x *{cursor:ew-resize!important}.ec-no-events{text-align:center;background-color:var(--ec-bg-color);padding:5em 0}.ec-now-indicator{pointer-events:none;will-change:inset;grid-row:2;position:relative}.ec-time-grid .ec-now-indicator{border-block-start:var(--ec-now-indicator-color) solid 2px;block-size:0;inline-size:100%}.ec-timeline .ec-now-indicator{border-inline-start:var(--ec-now-indicator-color) solid 2px;inline-size:0}.ec-timeline .ec-now-indicator:before{z-index:2;inset-block-start:calc(var(--ec-header-height) - 6.5px)}.ec-now-indicator:before{background:var(--ec-now-indicator-color);content:"";block-size:12px;inline-size:12px;z-index:1;border-radius:50%;margin-block-start:-7px;margin-inline-start:-7px;display:block;position:sticky;inset-inline-start:calc(var(--ec-sidebar-width) - 6.5px)}.ec-popup{box-sizing:border-box;background-color:var(--ec-popup-bg-color);border:1px solid var(--ec-border-color);block-size:max-content;min-block-size:8em;inline-size:125%;min-inline-size:12em;box-shadow:var(--ec-color-300) 0 10px 15px -3px, var(--ec-color-300) 0 4px 6px -4px;border-radius:.25rem;flex-direction:column;padding:.375rem .75rem .75rem;display:flex;position:relative}.ec-popup .ec-day-head{flex-direction:row;padding-inline:0}.ec-popup .ec-day-head a{cursor:pointer;font-size:1.5em;line-height:.8}.ec-popup .ec-events{--ec-event-col-gap:0;pointer-events:auto;display:block;overflow-y:auto}.ec-custom-scrollbars .ec-main::-webkit-scrollbar{background-color:#0000}.ec-custom-scrollbars .ec-main::-webkit-scrollbar-thumb{box-shadow:none;background-color:var(--ec-border-color);background-clip:padding-box;border:4px solid #0000;border-radius:8px}.ec-custom-scrollbars .ec-main::-webkit-scrollbar-thumb:hover{background-color:var(--ec-color-400)}.ec{flex-direction:column;display:flex}.ec-main{border:1px solid var(--ec-border-color);display:grid;overflow:auto}.ec-time-grid .ec-main{grid-template-columns:max-content repeat(var(--ec-grid-cols), var(--ec-col-width));grid-template-rows:repeat(2,max-content)}.ec-day-grid .ec-main{--ec-row-height:auto;grid-template-columns:repeat(var(--ec-grid-cols), minmax(0, 1fr));grid-template-rows:max-content repeat(var(--ec-grid-rows), var(--ec-row-height))}.ec-day-grid .ec-main.ec-uniform{--ec-row-height:minmax(0, 1fr);flex-grow:1;overflow:hidden}.ec-timeline .ec-main{grid-template-columns:max-content repeat(var(--ec-grid-cols), min-content);grid-template-rows:max-content var(--ec-grid-rows);flex-grow:1}.ec-timeline:is(.ec-month-view,.ec-year-view) .ec-main{grid-template-columns:max-content repeat(var(--ec-grid-cols), var(--ec-col-width))}.ec-header{grid-area:1/1/2/-1;grid-template-columns:subgrid;z-index:2;display:grid;position:sticky;inset-block-start:0}.ec-grid{grid-area:1/1/-1/-1;grid-template-columns:subgrid;display:grid}.ec-body .ec-grid{grid-template-rows:subgrid}.ec-time-grid .ec-grid,.ec-timeline .ec-grid{grid-column-start:2}.ec-all-day{grid-area:2/1/auto/-1;grid-template-columns:subgrid;min-block-size:var(--ec-slot-height);display:grid}.ec-col-group{grid-column:span var(--ec-col-group-span)}.ec-col-group,.ec-col-head{text-align:center;background-color:var(--ec-bg-color);border:1px solid var(--ec-border-color);text-overflow:ellipsis;border-block-start:none;border-inline-start:none;padding:.375rem .18em;overflow:clip}:is(.ec-col-group,.ec-col-head).ec-today{background-color:var(--ec-today-bg-color)}:is(.ec-col-group,.ec-col-head).ec-highlight{background-color:var(--ec-highlight-color)}.ec-col-group:nth-last-child(1 of .ec-col-group),.ec-col-head:nth-last-child(1 of .ec-col-head){border-inline-end:none}.ec-col-group>*,.ec-timeline .ec-col-head>*{position:sticky;inset-inline-start:calc(var(--ec-sidebar-width) + .18em)}.ec-body{grid-area:2/1/-1/-1;grid-template:subgrid / subgrid;display:grid}.ec-hidden{visibility:hidden}.formio-component-address_map .leaflet-popup.address-map-popup,.leaflet-popup.address-map-popup{text-align:center!important;margin-bottom:20px!important;position:absolute!important}.formio-component-address_map .leaflet-popup.address-map-popup{padding:1px!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-popup.address-map-popup .leaflet-popup-content-wrapper{text-align:left!important;border-radius:12px!important;padding:1px!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content,.leaflet-popup.address-map-popup .leaflet-popup-content{min-height:1px!important;margin:13px 24px 13px 20px!important;font-size:1.08333em!important;line-height:1.3!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content p,.leaflet-popup.address-map-popup .leaflet-popup-content p{margin:1.3em 0!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip-container,.leaflet-popup.address-map-popup .leaflet-popup-tip-container{pointer-events:none!important;width:40px!important;height:20px!important;margin-top:-1px!important;margin-left:-20px!important;position:absolute!important;left:50%!important;overflow:hidden!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-popup.address-map-popup .leaflet-popup-tip{pointer-events:auto!important;width:17px!important;height:17px!important;margin:-10px auto 0!important;padding:1px!important;transform:rotate(45deg)!important}.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-popup.address-map-popup .leaflet-popup-tip{color:#333!important;background:#fff!important;box-shadow:0 3px 14px #0006!important}.formio-component-address_map .leaflet-popup.address-map-popup a.leaflet-popup-close-button,.leaflet-popup.address-map-popup a.leaflet-popup-close-button{text-align:center!important;color:#757575!important;background:0 0!important;border:none!important;width:24px!important;height:24px!important;font:16px/24px Tahoma,Verdana,sans-serif!important;text-decoration:none!important;position:absolute!important;top:0!important;right:24px!important}.formio-component-address_map .leaflet-popup.address-map-popup a.leaflet-popup-close-button:hover,.formio-component-address_map .leaflet-popup.address-map-popup a.leaflet-popup-close-button:focus,.leaflet-popup.address-map-popup a.leaflet-popup-close-button:hover,.leaflet-popup.address-map-popup a.leaflet-popup-close-button:focus{color:#585858!important}.formio-component-address_map .leaflet-popup.address-map-popup.leaflet-popup-scrolled,.leaflet-popup.address-map-popup.leaflet-popup-scrolled{overflow:auto!important}.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper{-ms-zoom:1!important}.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)"!important;width:24px!important;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107)!important;margin:0 auto!important}.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-oldie .formio-component-address_map .leaflet-popup.address-map-popup .leaflet-popup-tip,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup.address-map-popup .leaflet-popup-tip{border:1px solid #999!important}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { Components as e, Formio as t } from "@formio/js";
|
|
3
3
|
import { createRoot as n } from "react-dom/client";
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -11,40 +11,40 @@ import { Alert as m, Button as h, Col as ee, Container as te, Icon as g, Input a
|
|
|
11
11
|
import S from "sweetalert2";
|
|
12
12
|
import "i18next";
|
|
13
13
|
import C from "dayjs";
|
|
14
|
-
import { TimeGrid as oe, createCalendar as w } from "@event-calendar/core";
|
|
15
|
-
import { useDropzone as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
14
|
+
import { TimeGrid as oe, createCalendar as w, destroyCalendar as T } from "@event-calendar/core";
|
|
15
|
+
import { useDropzone as E } from "react-dropzone";
|
|
16
|
+
import D from "axios";
|
|
17
|
+
import O from "mime";
|
|
18
|
+
import se from "dompurify";
|
|
19
19
|
import { jwtDecode as k } from "jwt-decode";
|
|
20
20
|
import A from "accessible-autocomplete/react";
|
|
21
|
-
import j, { tileLayer as
|
|
22
|
-
import
|
|
21
|
+
import j, { tileLayer as M } from "leaflet";
|
|
22
|
+
import ce, { debounce as le } from "lodash";
|
|
23
23
|
//#region \0rolldown/runtime.js
|
|
24
|
-
var N = Object.create,
|
|
25
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
24
|
+
var N = Object.create, P = Object.defineProperty, F = Object.getOwnPropertyDescriptor, ue = Object.getOwnPropertyNames, de = Object.getPrototypeOf, fe = Object.prototype.hasOwnProperty, I = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), pe = (e, t, n, r) => {
|
|
25
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ue(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !fe.call(e, s) && s !== n && P(e, s, {
|
|
26
26
|
get: ((e) => t[e]).bind(null, s),
|
|
27
|
-
enumerable: !(r =
|
|
27
|
+
enumerable: !(r = F(t, s)) || r.enumerable
|
|
28
28
|
});
|
|
29
29
|
return e;
|
|
30
|
-
},
|
|
30
|
+
}, L = (e, t, n) => (n = e == null ? {} : N(de(e)), pe(t || !e || !e.__esModule ? P(n, "default", {
|
|
31
31
|
value: e,
|
|
32
32
|
enumerable: !0
|
|
33
|
-
}) : n, e)),
|
|
33
|
+
}) : n, e)), me = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
34
34
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
35
35
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
36
|
-
}),
|
|
36
|
+
}), he = t.Components.components.field, ge = (e) => /* @__PURE__ */ i("div", {
|
|
37
37
|
className: "row page-break-before pagebreak-container border border-info p-2 mb-2",
|
|
38
38
|
children: /* @__PURE__ */ i("div", {
|
|
39
39
|
className: "col-12 text-center pagebreak-component",
|
|
40
40
|
children: "Page break"
|
|
41
41
|
})
|
|
42
|
-
}),
|
|
42
|
+
}), _e = class e extends he {
|
|
43
43
|
constructor(e, t, n) {
|
|
44
44
|
super(e, t, n);
|
|
45
45
|
}
|
|
46
46
|
static schema() {
|
|
47
|
-
return
|
|
47
|
+
return he.schema({ type: "pagebreak" });
|
|
48
48
|
}
|
|
49
49
|
static builderInfo = {
|
|
50
50
|
title: "PageBreak",
|
|
@@ -60,7 +60,7 @@ var N = Object.create, le = Object.defineProperty, P = Object.getOwnPropertyDesc
|
|
|
60
60
|
return super.attach(e).then(() => {
|
|
61
61
|
this.loadRefs(this.element, { [`react-${this.id}`]: "single" });
|
|
62
62
|
let e = this.refs[`react-${this.id}`];
|
|
63
|
-
return e ? (this.rootComponent ||= n(e), this.rootComponent.render(/* @__PURE__ */ i(
|
|
63
|
+
return e ? (this.rootComponent ||= n(e), this.rootComponent.render(/* @__PURE__ */ i(ge, {})), this) : this;
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
detach() {
|
|
@@ -79,7 +79,7 @@ var N = Object.create, le = Object.defineProperty, P = Object.getOwnPropertyDesc
|
|
|
79
79
|
n = e.origin + "/" + t[1];
|
|
80
80
|
}
|
|
81
81
|
return n;
|
|
82
|
-
},
|
|
82
|
+
}, z = [
|
|
83
83
|
{
|
|
84
84
|
key: "labelPosition",
|
|
85
85
|
ignore: !0
|
|
@@ -204,15 +204,15 @@ var N = Object.create, le = Object.defineProperty, P = Object.getOwnPropertyDesc
|
|
|
204
204
|
];
|
|
205
205
|
//#endregion
|
|
206
206
|
//#region src/customComponentFormio/DynamicCalendar/DynamicCalendar.form.js
|
|
207
|
-
function
|
|
207
|
+
function ve(...e) {
|
|
208
208
|
return o.baseEditForm([{
|
|
209
209
|
key: "display",
|
|
210
|
-
components:
|
|
210
|
+
components: z
|
|
211
211
|
}], ...e);
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
215
|
-
function
|
|
215
|
+
function ye(e) {
|
|
216
216
|
return (t = {}) => {
|
|
217
217
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
218
218
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -220,7 +220,7 @@ function B(e) {
|
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
223
|
-
function
|
|
223
|
+
function B(e) {
|
|
224
224
|
return (t, n) => {
|
|
225
225
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
226
226
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -236,11 +236,11 @@ function V(e) {
|
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
239
|
-
function
|
|
239
|
+
function V(e) {
|
|
240
240
|
return (t, n = {}) => {
|
|
241
241
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
242
242
|
if (!a) return null;
|
|
243
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
243
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? be(s, (e) => e.test(o)) : H(s, (e) => e.test(o)), l;
|
|
244
244
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
245
245
|
let u = t.slice(o.length);
|
|
246
246
|
return {
|
|
@@ -249,15 +249,15 @@ function H(e) {
|
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function H(e, t) {
|
|
253
253
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function be(e, t) {
|
|
256
256
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
260
|
-
function
|
|
260
|
+
function xe(e) {
|
|
261
261
|
return (t, n = {}) => {
|
|
262
262
|
let r = t.match(e.matchPattern);
|
|
263
263
|
if (!r) return null;
|
|
@@ -274,46 +274,46 @@ function be(e) {
|
|
|
274
274
|
}
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region node_modules/date-fns/constants.js
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
var
|
|
277
|
+
var Se = 365.2425, U = 3600 * 24;
|
|
278
|
+
U * 7, U * Se / 12 * 3;
|
|
279
|
+
var Ce = Symbol.for("constructDateFrom");
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region node_modules/date-fns/constructFrom.js
|
|
282
|
-
function
|
|
283
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
282
|
+
function we(e, t) {
|
|
283
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && Ce in e ? e[Ce](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
284
284
|
}
|
|
285
285
|
//#endregion
|
|
286
286
|
//#region node_modules/date-fns/_lib/normalizeDates.js
|
|
287
|
-
function
|
|
288
|
-
let n =
|
|
287
|
+
function Te(e, ...t) {
|
|
288
|
+
let n = we.bind(null, e || t.find((e) => typeof e == "object"));
|
|
289
289
|
return t.map(n);
|
|
290
290
|
}
|
|
291
291
|
//#endregion
|
|
292
292
|
//#region node_modules/date-fns/_lib/defaultOptions.js
|
|
293
|
-
var
|
|
294
|
-
function
|
|
295
|
-
return
|
|
293
|
+
var Ee = {};
|
|
294
|
+
function De() {
|
|
295
|
+
return Ee;
|
|
296
296
|
}
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region node_modules/date-fns/toDate.js
|
|
299
|
-
function
|
|
300
|
-
return
|
|
299
|
+
function Oe(e, t) {
|
|
300
|
+
return we(t || e, e);
|
|
301
301
|
}
|
|
302
302
|
//#endregion
|
|
303
303
|
//#region node_modules/date-fns/startOfWeek.js
|
|
304
|
-
function
|
|
305
|
-
let n =
|
|
304
|
+
function ke(e, t) {
|
|
305
|
+
let n = De(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = Oe(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
306
306
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
307
307
|
}
|
|
308
308
|
//#endregion
|
|
309
309
|
//#region node_modules/date-fns/isSameWeek.js
|
|
310
|
-
function
|
|
311
|
-
let [r, i] =
|
|
312
|
-
return +
|
|
310
|
+
function Ae(e, t, n) {
|
|
311
|
+
let [r, i] = Te(n?.in, e, t);
|
|
312
|
+
return +ke(r, n) == +ke(i, n);
|
|
313
313
|
}
|
|
314
314
|
//#endregion
|
|
315
315
|
//#region node_modules/date-fns/locale/de/_lib/formatDistance.js
|
|
316
|
-
var
|
|
316
|
+
var je = {
|
|
317
317
|
lessThanXSeconds: {
|
|
318
318
|
standalone: {
|
|
319
319
|
one: "weniger als 1 Sekunde",
|
|
@@ -468,11 +468,11 @@ var Ae = {
|
|
|
468
468
|
other: "fast {{count}} Jahren"
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
},
|
|
472
|
-
let r, i = n?.addSuffix ?
|
|
471
|
+
}, Me = (e, t, n) => {
|
|
472
|
+
let r, i = n?.addSuffix ? je[e].withPreposition : je[e].standalone;
|
|
473
473
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : "vor " + r : r;
|
|
474
|
-
},
|
|
475
|
-
date:
|
|
474
|
+
}, Ne = {
|
|
475
|
+
date: ye({
|
|
476
476
|
formats: {
|
|
477
477
|
full: "EEEE, do MMMM y",
|
|
478
478
|
long: "do MMMM y",
|
|
@@ -481,7 +481,7 @@ var Ae = {
|
|
|
481
481
|
},
|
|
482
482
|
defaultWidth: "full"
|
|
483
483
|
}),
|
|
484
|
-
time:
|
|
484
|
+
time: ye({
|
|
485
485
|
formats: {
|
|
486
486
|
full: "HH:mm:ss zzzz",
|
|
487
487
|
long: "HH:mm:ss z",
|
|
@@ -490,7 +490,7 @@ var Ae = {
|
|
|
490
490
|
},
|
|
491
491
|
defaultWidth: "full"
|
|
492
492
|
}),
|
|
493
|
-
dateTime:
|
|
493
|
+
dateTime: ye({
|
|
494
494
|
formats: {
|
|
495
495
|
full: "{{date}} 'um' {{time}}",
|
|
496
496
|
long: "{{date}} 'um' {{time}}",
|
|
@@ -499,18 +499,18 @@ var Ae = {
|
|
|
499
499
|
},
|
|
500
500
|
defaultWidth: "full"
|
|
501
501
|
})
|
|
502
|
-
},
|
|
502
|
+
}, Pe = {
|
|
503
503
|
lastWeek: "'letzten' eeee 'um' p",
|
|
504
504
|
yesterday: "'gestern um' p",
|
|
505
505
|
today: "'heute um' p",
|
|
506
506
|
tomorrow: "'morgen um' p",
|
|
507
507
|
nextWeek: "eeee 'um' p",
|
|
508
508
|
other: "P"
|
|
509
|
-
},
|
|
509
|
+
}, Fe = (e, t, n, r) => Pe[e], Ie = {
|
|
510
510
|
narrow: ["v.Chr.", "n.Chr."],
|
|
511
511
|
abbreviated: ["v.Chr.", "n.Chr."],
|
|
512
512
|
wide: ["vor Christus", "nach Christus"]
|
|
513
|
-
},
|
|
513
|
+
}, W = {
|
|
514
514
|
narrow: [
|
|
515
515
|
"1",
|
|
516
516
|
"2",
|
|
@@ -529,7 +529,7 @@ var Ae = {
|
|
|
529
529
|
"3. Quartal",
|
|
530
530
|
"4. Quartal"
|
|
531
531
|
]
|
|
532
|
-
},
|
|
532
|
+
}, Le = {
|
|
533
533
|
narrow: [
|
|
534
534
|
"J",
|
|
535
535
|
"F",
|
|
@@ -572,8 +572,8 @@ var Ae = {
|
|
|
572
572
|
"November",
|
|
573
573
|
"Dezember"
|
|
574
574
|
]
|
|
575
|
-
},
|
|
576
|
-
narrow:
|
|
575
|
+
}, Re = {
|
|
576
|
+
narrow: Le.narrow,
|
|
577
577
|
abbreviated: [
|
|
578
578
|
"Jan.",
|
|
579
579
|
"Feb.",
|
|
@@ -588,29 +588,29 @@ var Ae = {
|
|
|
588
588
|
"Nov.",
|
|
589
589
|
"Dez."
|
|
590
590
|
],
|
|
591
|
-
wide:
|
|
592
|
-
},
|
|
591
|
+
wide: Le.wide
|
|
592
|
+
}, ze = {
|
|
593
593
|
code: "de",
|
|
594
|
-
formatDistance:
|
|
595
|
-
formatLong:
|
|
596
|
-
formatRelative:
|
|
594
|
+
formatDistance: Me,
|
|
595
|
+
formatLong: Ne,
|
|
596
|
+
formatRelative: Fe,
|
|
597
597
|
localize: {
|
|
598
598
|
ordinalNumber: (e) => Number(e) + ".",
|
|
599
|
-
era:
|
|
600
|
-
values:
|
|
599
|
+
era: B({
|
|
600
|
+
values: Ie,
|
|
601
601
|
defaultWidth: "wide"
|
|
602
602
|
}),
|
|
603
|
-
quarter:
|
|
604
|
-
values:
|
|
603
|
+
quarter: B({
|
|
604
|
+
values: W,
|
|
605
605
|
defaultWidth: "wide",
|
|
606
606
|
argumentCallback: (e) => e - 1
|
|
607
607
|
}),
|
|
608
|
-
month:
|
|
609
|
-
values:
|
|
610
|
-
formattingValues:
|
|
608
|
+
month: B({
|
|
609
|
+
values: Le,
|
|
610
|
+
formattingValues: Re,
|
|
611
611
|
defaultWidth: "wide"
|
|
612
612
|
}),
|
|
613
|
-
day:
|
|
613
|
+
day: B({
|
|
614
614
|
values: {
|
|
615
615
|
narrow: [
|
|
616
616
|
"S",
|
|
@@ -651,7 +651,7 @@ var Ae = {
|
|
|
651
651
|
},
|
|
652
652
|
defaultWidth: "wide"
|
|
653
653
|
}),
|
|
654
|
-
dayPeriod:
|
|
654
|
+
dayPeriod: B({
|
|
655
655
|
values: {
|
|
656
656
|
narrow: {
|
|
657
657
|
am: "vm.",
|
|
@@ -721,12 +721,12 @@ var Ae = {
|
|
|
721
721
|
})
|
|
722
722
|
},
|
|
723
723
|
match: {
|
|
724
|
-
ordinalNumber:
|
|
724
|
+
ordinalNumber: xe({
|
|
725
725
|
matchPattern: /^(\d+)(\.)?/i,
|
|
726
726
|
parsePattern: /\d+/i,
|
|
727
727
|
valueCallback: (e) => parseInt(e)
|
|
728
728
|
}),
|
|
729
|
-
era:
|
|
729
|
+
era: V({
|
|
730
730
|
matchPatterns: {
|
|
731
731
|
narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
732
732
|
abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
@@ -736,7 +736,7 @@ var Ae = {
|
|
|
736
736
|
parsePatterns: { any: [/^v/i, /^n/i] },
|
|
737
737
|
defaultParseWidth: "any"
|
|
738
738
|
}),
|
|
739
|
-
quarter:
|
|
739
|
+
quarter: V({
|
|
740
740
|
matchPatterns: {
|
|
741
741
|
narrow: /^[1234]/i,
|
|
742
742
|
abbreviated: /^q[1234]/i,
|
|
@@ -752,7 +752,7 @@ var Ae = {
|
|
|
752
752
|
defaultParseWidth: "any",
|
|
753
753
|
valueCallback: (e) => e + 1
|
|
754
754
|
}),
|
|
755
|
-
month:
|
|
755
|
+
month: V({
|
|
756
756
|
matchPatterns: {
|
|
757
757
|
narrow: /^[jfmasond]/i,
|
|
758
758
|
abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,
|
|
@@ -791,7 +791,7 @@ var Ae = {
|
|
|
791
791
|
},
|
|
792
792
|
defaultParseWidth: "any"
|
|
793
793
|
}),
|
|
794
|
-
day:
|
|
794
|
+
day: V({
|
|
795
795
|
matchPatterns: {
|
|
796
796
|
narrow: /^[smdmf]/i,
|
|
797
797
|
short: /^(so|mo|di|mi|do|fr|sa)/i,
|
|
@@ -810,7 +810,7 @@ var Ae = {
|
|
|
810
810
|
] },
|
|
811
811
|
defaultParseWidth: "any"
|
|
812
812
|
}),
|
|
813
|
-
dayPeriod:
|
|
813
|
+
dayPeriod: V({
|
|
814
814
|
matchPatterns: {
|
|
815
815
|
narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
|
|
816
816
|
abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
|
|
@@ -834,7 +834,7 @@ var Ae = {
|
|
|
834
834
|
weekStartsOn: 1,
|
|
835
835
|
firstWeekContainsDate: 4
|
|
836
836
|
}
|
|
837
|
-
},
|
|
837
|
+
}, Be = {
|
|
838
838
|
lessThanXSeconds: {
|
|
839
839
|
one: "less than a second",
|
|
840
840
|
other: "less than {{count}} seconds"
|
|
@@ -896,17 +896,17 @@ var Ae = {
|
|
|
896
896
|
one: "almost 1 year",
|
|
897
897
|
other: "almost {{count}} years"
|
|
898
898
|
}
|
|
899
|
-
},
|
|
900
|
-
let r, i =
|
|
899
|
+
}, G = (e, t, n) => {
|
|
900
|
+
let r, i = Be[e];
|
|
901
901
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
902
|
-
},
|
|
902
|
+
}, Ve = {
|
|
903
903
|
lastWeek: "'last' eeee 'at' p",
|
|
904
904
|
yesterday: "'yesterday at' p",
|
|
905
905
|
today: "'today at' p",
|
|
906
906
|
tomorrow: "'tomorrow at' p",
|
|
907
907
|
nextWeek: "eeee 'at' p",
|
|
908
908
|
other: "P"
|
|
909
|
-
},
|
|
909
|
+
}, K = (e, t, n, r) => Ve[e], He = {
|
|
910
910
|
ordinalNumber: (e, t) => {
|
|
911
911
|
let n = Number(e), r = n % 100;
|
|
912
912
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -916,7 +916,7 @@ var Ae = {
|
|
|
916
916
|
}
|
|
917
917
|
return n + "th";
|
|
918
918
|
},
|
|
919
|
-
era:
|
|
919
|
+
era: B({
|
|
920
920
|
values: {
|
|
921
921
|
narrow: ["B", "A"],
|
|
922
922
|
abbreviated: ["BC", "AD"],
|
|
@@ -924,7 +924,7 @@ var Ae = {
|
|
|
924
924
|
},
|
|
925
925
|
defaultWidth: "wide"
|
|
926
926
|
}),
|
|
927
|
-
quarter:
|
|
927
|
+
quarter: B({
|
|
928
928
|
values: {
|
|
929
929
|
narrow: [
|
|
930
930
|
"1",
|
|
@@ -948,7 +948,7 @@ var Ae = {
|
|
|
948
948
|
defaultWidth: "wide",
|
|
949
949
|
argumentCallback: (e) => e - 1
|
|
950
950
|
}),
|
|
951
|
-
month:
|
|
951
|
+
month: B({
|
|
952
952
|
values: {
|
|
953
953
|
narrow: [
|
|
954
954
|
"J",
|
|
@@ -995,7 +995,7 @@ var Ae = {
|
|
|
995
995
|
},
|
|
996
996
|
defaultWidth: "wide"
|
|
997
997
|
}),
|
|
998
|
-
day:
|
|
998
|
+
day: B({
|
|
999
999
|
values: {
|
|
1000
1000
|
narrow: [
|
|
1001
1001
|
"S",
|
|
@@ -1036,7 +1036,7 @@ var Ae = {
|
|
|
1036
1036
|
},
|
|
1037
1037
|
defaultWidth: "wide"
|
|
1038
1038
|
}),
|
|
1039
|
-
dayPeriod:
|
|
1039
|
+
dayPeriod: B({
|
|
1040
1040
|
values: {
|
|
1041
1041
|
narrow: {
|
|
1042
1042
|
am: "a",
|
|
@@ -1104,13 +1104,13 @@ var Ae = {
|
|
|
1104
1104
|
},
|
|
1105
1105
|
defaultFormattingWidth: "wide"
|
|
1106
1106
|
})
|
|
1107
|
-
},
|
|
1108
|
-
ordinalNumber:
|
|
1107
|
+
}, Ue = {
|
|
1108
|
+
ordinalNumber: xe({
|
|
1109
1109
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
1110
1110
|
parsePattern: /\d+/i,
|
|
1111
1111
|
valueCallback: (e) => parseInt(e, 10)
|
|
1112
1112
|
}),
|
|
1113
|
-
era:
|
|
1113
|
+
era: V({
|
|
1114
1114
|
matchPatterns: {
|
|
1115
1115
|
narrow: /^(b|a)/i,
|
|
1116
1116
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -1120,7 +1120,7 @@ var Ae = {
|
|
|
1120
1120
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
1121
1121
|
defaultParseWidth: "any"
|
|
1122
1122
|
}),
|
|
1123
|
-
quarter:
|
|
1123
|
+
quarter: V({
|
|
1124
1124
|
matchPatterns: {
|
|
1125
1125
|
narrow: /^[1234]/i,
|
|
1126
1126
|
abbreviated: /^q[1234]/i,
|
|
@@ -1136,7 +1136,7 @@ var Ae = {
|
|
|
1136
1136
|
defaultParseWidth: "any",
|
|
1137
1137
|
valueCallback: (e) => e + 1
|
|
1138
1138
|
}),
|
|
1139
|
-
month:
|
|
1139
|
+
month: V({
|
|
1140
1140
|
matchPatterns: {
|
|
1141
1141
|
narrow: /^[jfmasond]/i,
|
|
1142
1142
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -1175,7 +1175,7 @@ var Ae = {
|
|
|
1175
1175
|
},
|
|
1176
1176
|
defaultParseWidth: "any"
|
|
1177
1177
|
}),
|
|
1178
|
-
day:
|
|
1178
|
+
day: V({
|
|
1179
1179
|
matchPatterns: {
|
|
1180
1180
|
narrow: /^[smtwf]/i,
|
|
1181
1181
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -1205,7 +1205,7 @@ var Ae = {
|
|
|
1205
1205
|
},
|
|
1206
1206
|
defaultParseWidth: "any"
|
|
1207
1207
|
}),
|
|
1208
|
-
dayPeriod:
|
|
1208
|
+
dayPeriod: V({
|
|
1209
1209
|
matchPatterns: {
|
|
1210
1210
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1211
1211
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -1223,11 +1223,11 @@ var Ae = {
|
|
|
1223
1223
|
} },
|
|
1224
1224
|
defaultParseWidth: "any"
|
|
1225
1225
|
})
|
|
1226
|
-
},
|
|
1226
|
+
}, We = {
|
|
1227
1227
|
code: "en-GB",
|
|
1228
|
-
formatDistance:
|
|
1228
|
+
formatDistance: G,
|
|
1229
1229
|
formatLong: {
|
|
1230
|
-
date:
|
|
1230
|
+
date: ye({
|
|
1231
1231
|
formats: {
|
|
1232
1232
|
full: "EEEE, d MMMM yyyy",
|
|
1233
1233
|
long: "d MMMM yyyy",
|
|
@@ -1236,7 +1236,7 @@ var Ae = {
|
|
|
1236
1236
|
},
|
|
1237
1237
|
defaultWidth: "full"
|
|
1238
1238
|
}),
|
|
1239
|
-
time:
|
|
1239
|
+
time: ye({
|
|
1240
1240
|
formats: {
|
|
1241
1241
|
full: "HH:mm:ss zzzz",
|
|
1242
1242
|
long: "HH:mm:ss z",
|
|
@@ -1245,7 +1245,7 @@ var Ae = {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
defaultWidth: "full"
|
|
1247
1247
|
}),
|
|
1248
|
-
dateTime:
|
|
1248
|
+
dateTime: ye({
|
|
1249
1249
|
formats: {
|
|
1250
1250
|
full: "{{date}} 'at' {{time}}",
|
|
1251
1251
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -1255,14 +1255,14 @@ var Ae = {
|
|
|
1255
1255
|
defaultWidth: "full"
|
|
1256
1256
|
})
|
|
1257
1257
|
},
|
|
1258
|
-
formatRelative:
|
|
1259
|
-
localize:
|
|
1260
|
-
match:
|
|
1258
|
+
formatRelative: K,
|
|
1259
|
+
localize: He,
|
|
1260
|
+
match: Ue,
|
|
1261
1261
|
options: {
|
|
1262
1262
|
weekStartsOn: 1,
|
|
1263
1263
|
firstWeekContainsDate: 4
|
|
1264
1264
|
}
|
|
1265
|
-
},
|
|
1265
|
+
}, Ge = {
|
|
1266
1266
|
lessThanXSeconds: {
|
|
1267
1267
|
one: "meno di un secondo",
|
|
1268
1268
|
other: "meno di {{count}} secondi"
|
|
@@ -1324,11 +1324,11 @@ var Ae = {
|
|
|
1324
1324
|
one: "quasi un anno",
|
|
1325
1325
|
other: "quasi {{count}} anni"
|
|
1326
1326
|
}
|
|
1327
|
-
},
|
|
1328
|
-
let r, i =
|
|
1327
|
+
}, Ke = (e, t, n) => {
|
|
1328
|
+
let r, i = Ge[e];
|
|
1329
1329
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "tra " + r : r + " fa" : r;
|
|
1330
|
-
},
|
|
1331
|
-
date:
|
|
1330
|
+
}, qe = {
|
|
1331
|
+
date: ye({
|
|
1332
1332
|
formats: {
|
|
1333
1333
|
full: "EEEE d MMMM y",
|
|
1334
1334
|
long: "d MMMM y",
|
|
@@ -1337,7 +1337,7 @@ var Ae = {
|
|
|
1337
1337
|
},
|
|
1338
1338
|
defaultWidth: "full"
|
|
1339
1339
|
}),
|
|
1340
|
-
time:
|
|
1340
|
+
time: ye({
|
|
1341
1341
|
formats: {
|
|
1342
1342
|
full: "HH:mm:ss zzzz",
|
|
1343
1343
|
long: "HH:mm:ss z",
|
|
@@ -1346,7 +1346,7 @@ var Ae = {
|
|
|
1346
1346
|
},
|
|
1347
1347
|
defaultWidth: "full"
|
|
1348
1348
|
}),
|
|
1349
|
-
dateTime:
|
|
1349
|
+
dateTime: ye({
|
|
1350
1350
|
formats: {
|
|
1351
1351
|
full: "{{date}} {{time}}",
|
|
1352
1352
|
long: "{{date}} {{time}}",
|
|
@@ -1355,7 +1355,7 @@ var Ae = {
|
|
|
1355
1355
|
},
|
|
1356
1356
|
defaultWidth: "full"
|
|
1357
1357
|
})
|
|
1358
|
-
},
|
|
1358
|
+
}, q = [
|
|
1359
1359
|
"domenica",
|
|
1360
1360
|
"lunedì",
|
|
1361
1361
|
"martedì",
|
|
@@ -1364,40 +1364,40 @@ var Ae = {
|
|
|
1364
1364
|
"venerdì",
|
|
1365
1365
|
"sabato"
|
|
1366
1366
|
];
|
|
1367
|
-
function
|
|
1367
|
+
function Je(e) {
|
|
1368
1368
|
switch (e) {
|
|
1369
1369
|
case 0: return "'domenica scorsa alle' p";
|
|
1370
|
-
default: return "'" +
|
|
1370
|
+
default: return "'" + q[e] + " scorso alle' p";
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
|
-
function Je(e) {
|
|
1374
|
-
return "'" + qe[e] + " alle' p";
|
|
1375
|
-
}
|
|
1376
1373
|
function Ye(e) {
|
|
1374
|
+
return "'" + q[e] + " alle' p";
|
|
1375
|
+
}
|
|
1376
|
+
function Xe(e) {
|
|
1377
1377
|
switch (e) {
|
|
1378
1378
|
case 0: return "'domenica prossima alle' p";
|
|
1379
|
-
default: return "'" +
|
|
1379
|
+
default: return "'" + q[e] + " prossimo alle' p";
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
|
-
var
|
|
1382
|
+
var Ze = {
|
|
1383
1383
|
lastWeek: (e, t, n) => {
|
|
1384
1384
|
let r = e.getDay();
|
|
1385
|
-
return
|
|
1385
|
+
return Ae(e, t, n) ? Ye(r) : Je(r);
|
|
1386
1386
|
},
|
|
1387
1387
|
yesterday: "'ieri alle' p",
|
|
1388
1388
|
today: "'oggi alle' p",
|
|
1389
1389
|
tomorrow: "'domani alle' p",
|
|
1390
1390
|
nextWeek: (e, t, n) => {
|
|
1391
1391
|
let r = e.getDay();
|
|
1392
|
-
return
|
|
1392
|
+
return Ae(e, t, n) ? Ye(r) : Xe(r);
|
|
1393
1393
|
},
|
|
1394
1394
|
other: "P"
|
|
1395
|
-
},
|
|
1395
|
+
}, Qe = {
|
|
1396
1396
|
code: "it",
|
|
1397
|
-
formatDistance:
|
|
1398
|
-
formatLong:
|
|
1397
|
+
formatDistance: Ke,
|
|
1398
|
+
formatLong: qe,
|
|
1399
1399
|
formatRelative: (e, t, n, r) => {
|
|
1400
|
-
let i =
|
|
1400
|
+
let i = Ze[e];
|
|
1401
1401
|
return typeof i == "function" ? i(t, n, r) : i;
|
|
1402
1402
|
},
|
|
1403
1403
|
localize: {
|
|
@@ -1405,7 +1405,7 @@ var Xe = {
|
|
|
1405
1405
|
let n = Number(e);
|
|
1406
1406
|
return String(n);
|
|
1407
1407
|
},
|
|
1408
|
-
era:
|
|
1408
|
+
era: B({
|
|
1409
1409
|
values: {
|
|
1410
1410
|
narrow: ["aC", "dC"],
|
|
1411
1411
|
abbreviated: ["a.C.", "d.C."],
|
|
@@ -1413,7 +1413,7 @@ var Xe = {
|
|
|
1413
1413
|
},
|
|
1414
1414
|
defaultWidth: "wide"
|
|
1415
1415
|
}),
|
|
1416
|
-
quarter:
|
|
1416
|
+
quarter: B({
|
|
1417
1417
|
values: {
|
|
1418
1418
|
narrow: [
|
|
1419
1419
|
"1",
|
|
@@ -1437,7 +1437,7 @@ var Xe = {
|
|
|
1437
1437
|
defaultWidth: "wide",
|
|
1438
1438
|
argumentCallback: (e) => e - 1
|
|
1439
1439
|
}),
|
|
1440
|
-
month:
|
|
1440
|
+
month: B({
|
|
1441
1441
|
values: {
|
|
1442
1442
|
narrow: [
|
|
1443
1443
|
"G",
|
|
@@ -1484,7 +1484,7 @@ var Xe = {
|
|
|
1484
1484
|
},
|
|
1485
1485
|
defaultWidth: "wide"
|
|
1486
1486
|
}),
|
|
1487
|
-
day:
|
|
1487
|
+
day: B({
|
|
1488
1488
|
values: {
|
|
1489
1489
|
narrow: [
|
|
1490
1490
|
"D",
|
|
@@ -1525,7 +1525,7 @@ var Xe = {
|
|
|
1525
1525
|
},
|
|
1526
1526
|
defaultWidth: "wide"
|
|
1527
1527
|
}),
|
|
1528
|
-
dayPeriod:
|
|
1528
|
+
dayPeriod: B({
|
|
1529
1529
|
values: {
|
|
1530
1530
|
narrow: {
|
|
1531
1531
|
am: "m.",
|
|
@@ -1595,12 +1595,12 @@ var Xe = {
|
|
|
1595
1595
|
})
|
|
1596
1596
|
},
|
|
1597
1597
|
match: {
|
|
1598
|
-
ordinalNumber:
|
|
1598
|
+
ordinalNumber: xe({
|
|
1599
1599
|
matchPattern: /^(\d+)(º)?/i,
|
|
1600
1600
|
parsePattern: /\d+/i,
|
|
1601
1601
|
valueCallback: (e) => parseInt(e, 10)
|
|
1602
1602
|
}),
|
|
1603
|
-
era:
|
|
1603
|
+
era: V({
|
|
1604
1604
|
matchPatterns: {
|
|
1605
1605
|
narrow: /^(aC|dC)/i,
|
|
1606
1606
|
abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,
|
|
@@ -1610,7 +1610,7 @@ var Xe = {
|
|
|
1610
1610
|
parsePatterns: { any: [/^a/i, /^(d|e)/i] },
|
|
1611
1611
|
defaultParseWidth: "any"
|
|
1612
1612
|
}),
|
|
1613
|
-
quarter:
|
|
1613
|
+
quarter: V({
|
|
1614
1614
|
matchPatterns: {
|
|
1615
1615
|
narrow: /^[1234]/i,
|
|
1616
1616
|
abbreviated: /^t[1234]/i,
|
|
@@ -1626,7 +1626,7 @@ var Xe = {
|
|
|
1626
1626
|
defaultParseWidth: "any",
|
|
1627
1627
|
valueCallback: (e) => e + 1
|
|
1628
1628
|
}),
|
|
1629
|
-
month:
|
|
1629
|
+
month: V({
|
|
1630
1630
|
matchPatterns: {
|
|
1631
1631
|
narrow: /^[gfmalsond]/i,
|
|
1632
1632
|
abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,
|
|
@@ -1665,7 +1665,7 @@ var Xe = {
|
|
|
1665
1665
|
},
|
|
1666
1666
|
defaultParseWidth: "any"
|
|
1667
1667
|
}),
|
|
1668
|
-
day:
|
|
1668
|
+
day: V({
|
|
1669
1669
|
matchPatterns: {
|
|
1670
1670
|
narrow: /^[dlmgvs]/i,
|
|
1671
1671
|
short: /^(do|lu|ma|me|gi|ve|sa)/i,
|
|
@@ -1695,7 +1695,7 @@ var Xe = {
|
|
|
1695
1695
|
},
|
|
1696
1696
|
defaultParseWidth: "any"
|
|
1697
1697
|
}),
|
|
1698
|
-
dayPeriod:
|
|
1698
|
+
dayPeriod: V({
|
|
1699
1699
|
matchPatterns: {
|
|
1700
1700
|
narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,
|
|
1701
1701
|
any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i
|
|
@@ -1718,7 +1718,7 @@ var Xe = {
|
|
|
1718
1718
|
weekStartsOn: 1,
|
|
1719
1719
|
firstWeekContainsDate: 4
|
|
1720
1720
|
}
|
|
1721
|
-
},
|
|
1721
|
+
}, $e = /* @__PURE__ */ I(((e, t) => {
|
|
1722
1722
|
(function(n, r) {
|
|
1723
1723
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : n.moment = r();
|
|
1724
1724
|
})(e, (function() {
|
|
@@ -1878,38 +1878,38 @@ var Xe = {
|
|
|
1878
1878
|
var r = "" + Math.abs(e), i = t - r.length;
|
|
1879
1879
|
return (e >= 0 ? n ? "+" : "" : "-") + (10 ** Math.max(0, i)).toString().substr(1) + r;
|
|
1880
1880
|
}
|
|
1881
|
-
var
|
|
1881
|
+
var se = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, k = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, A = {}, j = {};
|
|
1882
1882
|
function M(e, t, n, r) {
|
|
1883
1883
|
var i = r;
|
|
1884
1884
|
typeof r == "string" && (i = function() {
|
|
1885
1885
|
return this[r]();
|
|
1886
|
-
}), e && (
|
|
1886
|
+
}), e && (j[e] = i), t && (j[t[0]] = function() {
|
|
1887
1887
|
return O(i.apply(this, arguments), t[1], t[2]);
|
|
1888
|
-
}), n && (
|
|
1888
|
+
}), n && (j[n] = function() {
|
|
1889
1889
|
return this.localeData().ordinal(i.apply(this, arguments), e);
|
|
1890
1890
|
});
|
|
1891
1891
|
}
|
|
1892
1892
|
function ce(e) {
|
|
1893
1893
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
var t = e.match(
|
|
1897
|
-
for (n = 0, r = t.length; n < r; n++)
|
|
1895
|
+
function le(e) {
|
|
1896
|
+
var t = e.match(se), n, r;
|
|
1897
|
+
for (n = 0, r = t.length; n < r; n++) j[t[n]] ? t[n] = j[t[n]] : t[n] = ce(t[n]);
|
|
1898
1898
|
return function(n) {
|
|
1899
1899
|
var i = "", a;
|
|
1900
1900
|
for (a = 0; a < r; a++) i += S(t[a]) ? t[a].call(n, e) : t[a];
|
|
1901
1901
|
return i;
|
|
1902
1902
|
};
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1905
|
-
return e.isValid() ? (t = P(t, e.localeData()),
|
|
1904
|
+
function N(e, t) {
|
|
1905
|
+
return e.isValid() ? (t = P(t, e.localeData()), A[t] = A[t] || le(t), A[t](e)) : e.localeData().invalidDate();
|
|
1906
1906
|
}
|
|
1907
1907
|
function P(e, t) {
|
|
1908
1908
|
var n = 5;
|
|
1909
1909
|
function r(e) {
|
|
1910
1910
|
return t.longDateFormat(e) || e;
|
|
1911
1911
|
}
|
|
1912
|
-
for (
|
|
1912
|
+
for (k.lastIndex = 0; n >= 0 && k.test(e);) e = e.replace(k, r), k.lastIndex = 0, --n;
|
|
1913
1913
|
return e;
|
|
1914
1914
|
}
|
|
1915
1915
|
var F = {
|
|
@@ -1922,16 +1922,16 @@ var Xe = {
|
|
|
1922
1922
|
};
|
|
1923
1923
|
function ue(e) {
|
|
1924
1924
|
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
|
|
1925
|
-
return t || !n ? t : (this._longDateFormat[e] = n.match(
|
|
1925
|
+
return t || !n ? t : (this._longDateFormat[e] = n.match(se).map(function(e) {
|
|
1926
1926
|
return e === "MMMM" || e === "MM" || e === "DD" || e === "dddd" ? e.slice(1) : e;
|
|
1927
1927
|
}).join(""), this._longDateFormat[e]);
|
|
1928
1928
|
}
|
|
1929
1929
|
var de = "Invalid date";
|
|
1930
|
-
function
|
|
1930
|
+
function fe() {
|
|
1931
1931
|
return this._invalidDate;
|
|
1932
1932
|
}
|
|
1933
|
-
var
|
|
1934
|
-
function
|
|
1933
|
+
var I = "%d", pe = /\d{1,2}/;
|
|
1934
|
+
function L(e) {
|
|
1935
1935
|
return this._ordinal.replace("%d", e);
|
|
1936
1936
|
}
|
|
1937
1937
|
var he = {
|
|
@@ -1956,11 +1956,11 @@ var Xe = {
|
|
|
1956
1956
|
var i = this._relativeTime[n];
|
|
1957
1957
|
return S(i) ? i(e, t, n, r) : i.replace(/%d/i, e);
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1959
|
+
function _e(e, t) {
|
|
1960
1960
|
var n = this._relativeTime[e > 0 ? "future" : "past"];
|
|
1961
1961
|
return S(n) ? n(t) : n.replace(/%s/i, t);
|
|
1962
1962
|
}
|
|
1963
|
-
var
|
|
1963
|
+
var R = {
|
|
1964
1964
|
D: "date",
|
|
1965
1965
|
dates: "date",
|
|
1966
1966
|
date: "date",
|
|
@@ -2011,14 +2011,14 @@ var Xe = {
|
|
|
2011
2011
|
year: "year"
|
|
2012
2012
|
};
|
|
2013
2013
|
function z(e) {
|
|
2014
|
-
return typeof e == "string" ?
|
|
2014
|
+
return typeof e == "string" ? R[e] || R[e.toLowerCase()] : void 0;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function ve(e) {
|
|
2017
2017
|
var t = {}, n, r;
|
|
2018
2018
|
for (r in e) o(e, r) && (n = z(r), n && (t[n] = e[r]));
|
|
2019
2019
|
return t;
|
|
2020
2020
|
}
|
|
2021
|
-
var
|
|
2021
|
+
var ye = {
|
|
2022
2022
|
date: 9,
|
|
2023
2023
|
day: 11,
|
|
2024
2024
|
weekday: 11,
|
|
@@ -2036,17 +2036,17 @@ var Xe = {
|
|
|
2036
2036
|
isoWeek: 5,
|
|
2037
2037
|
year: 1
|
|
2038
2038
|
};
|
|
2039
|
-
function
|
|
2039
|
+
function B(e) {
|
|
2040
2040
|
var t = [], n;
|
|
2041
2041
|
for (n in e) o(e, n) && t.push({
|
|
2042
2042
|
unit: n,
|
|
2043
|
-
priority:
|
|
2043
|
+
priority: ye[n]
|
|
2044
2044
|
});
|
|
2045
2045
|
return t.sort(function(e, t) {
|
|
2046
2046
|
return e.priority - t.priority;
|
|
2047
2047
|
}), t;
|
|
2048
2048
|
}
|
|
2049
|
-
var
|
|
2049
|
+
var V = /\d/, H = /\d\d/, be = /\d{3}/, xe = /\d{4}/, Se = /[+-]?\d{6}/, U = /\d\d?/, Ce = /\d\d\d\d?/, we = /\d\d\d\d\d\d?/, Te = /\d{1,3}/, Ee = /\d{1,4}/, De = /[+-]?\d{1,6}/, Oe = /\d+/, ke = /[+-]?\d+/, Ae = /Z|[+-]\d\d:?\d\d/gi, je = /Z|[+-]\d\d(?::?\d\d)?/gi, Me = /[+-]?\d+(\.\d{1,3})?/, Ne = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Pe = /^[1-9]\d?/, Fe = /^([1-9]\d|\d)/, Ie = {};
|
|
2050
2050
|
function W(e, t, n) {
|
|
2051
2051
|
Ie[e] = S(t) ? t : function(e, r) {
|
|
2052
2052
|
return e && n ? n : t;
|
|
@@ -2098,7 +2098,7 @@ var Xe = {
|
|
|
2098
2098
|
"YYYYYY",
|
|
2099
2099
|
6,
|
|
2100
2100
|
!0
|
|
2101
|
-
], 0, "year"), W("Y", ke), W("YY", U,
|
|
2101
|
+
], 0, "year"), W("Y", ke), W("YY", U, H), W("YYYY", Ee, xe), W("YYYYY", De, Se), W("YYYYYY", De, Se), K(["YYYYY", "YYYYYY"], Ge), K("YYYY", function(e, t) {
|
|
2102
2102
|
t[Ge] = e.length === 2 ? n.parseTwoDigitYear(e) : G(e);
|
|
2103
2103
|
}), K("YY", function(e, t) {
|
|
2104
2104
|
t[Ge] = n.parseTwoDigitYear(e);
|
|
@@ -2165,8 +2165,8 @@ var Xe = {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
function ot(e, t) {
|
|
2167
2167
|
if (typeof e == "object") {
|
|
2168
|
-
e =
|
|
2169
|
-
var n =
|
|
2168
|
+
e = ve(e);
|
|
2169
|
+
var n = B(e), r, i = n.length;
|
|
2170
2170
|
for (r = 0; r < i; r++) this[n[r].unit](e[n[r].unit]);
|
|
2171
2171
|
} else if (e = z(e), S(this[e])) return this[e](t);
|
|
2172
2172
|
return this;
|
|
@@ -2190,7 +2190,7 @@ var Xe = {
|
|
|
2190
2190
|
return this.localeData().monthsShort(this, e);
|
|
2191
2191
|
}), M("MMMM", 0, 0, function(e) {
|
|
2192
2192
|
return this.localeData().months(this, e);
|
|
2193
|
-
}), W("M", U, Pe), W("MM", U,
|
|
2193
|
+
}), W("M", U, Pe), W("MM", U, H), W("MMM", function(e, t) {
|
|
2194
2194
|
return t.monthsShortRegex(e);
|
|
2195
2195
|
}), W("MMMM", function(e, t) {
|
|
2196
2196
|
return t.monthsRegex(e);
|
|
@@ -2276,7 +2276,7 @@ var Xe = {
|
|
|
2276
2276
|
var r = Et(e, t, n), i = Et(e + 1, t, n);
|
|
2277
2277
|
return ($e(e) - r + i) / 7;
|
|
2278
2278
|
}
|
|
2279
|
-
M("w", ["ww", 2], "wo", "week"), M("W", ["WW", 2], "Wo", "isoWeek"), W("w", U, Pe), W("ww", U,
|
|
2279
|
+
M("w", ["ww", 2], "wo", "week"), M("W", ["WW", 2], "Wo", "isoWeek"), W("w", U, Pe), W("ww", U, H), W("W", U, Pe), W("WW", U, H), He([
|
|
2280
2280
|
"w",
|
|
2281
2281
|
"ww",
|
|
2282
2282
|
"W",
|
|
@@ -2419,7 +2419,7 @@ var Xe = {
|
|
|
2419
2419
|
function sn(e, t) {
|
|
2420
2420
|
return t._meridiemParse;
|
|
2421
2421
|
}
|
|
2422
|
-
W("a", sn), W("A", sn), W("H", U, Fe), W("h", U, Pe), W("k", U, Pe), W("HH", U,
|
|
2422
|
+
W("a", sn), W("A", sn), W("H", U, Fe), W("h", U, Pe), W("k", U, Pe), W("HH", U, H), W("hh", U, H), W("kk", U, H), W("hmm", Ce), W("hmmss", we), W("Hmm", Ce), W("Hmmss", we), K(["H", "HH"], q), K(["k", "kk"], function(e, t, n) {
|
|
2423
2423
|
var r = G(e);
|
|
2424
2424
|
t[q] = r === 24 ? 0 : r;
|
|
2425
2425
|
}), K(["a", "A"], function(e, t, n) {
|
|
@@ -2450,7 +2450,7 @@ var Xe = {
|
|
|
2450
2450
|
calendar: E,
|
|
2451
2451
|
longDateFormat: F,
|
|
2452
2452
|
invalidDate: de,
|
|
2453
|
-
ordinal:
|
|
2453
|
+
ordinal: I,
|
|
2454
2454
|
dayOfMonthOrdinalParse: pe,
|
|
2455
2455
|
relativeTime: he,
|
|
2456
2456
|
months: lt,
|
|
@@ -2486,7 +2486,7 @@ var Xe = {
|
|
|
2486
2486
|
function yn(e) {
|
|
2487
2487
|
var n = null, r;
|
|
2488
2488
|
if (Y[e] === void 0 && t !== void 0 && t && t.exports && vn(e)) try {
|
|
2489
|
-
n = mn._abbr, r =
|
|
2489
|
+
n = mn._abbr, r = me, r("./locale/" + e), bn(n);
|
|
2490
2490
|
} catch {
|
|
2491
2491
|
Y[e] = null;
|
|
2492
2492
|
}
|
|
@@ -2710,7 +2710,7 @@ var Xe = {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
e._a = [], h(e).empty = !0;
|
|
2712
2712
|
var t = "" + e._i, r, i, a, o, s, c = t.length, l = 0, u, d;
|
|
2713
|
-
for (a = P(e._f, e._locale).match(
|
|
2713
|
+
for (a = P(e._f, e._locale).match(se) || [], d = a.length, r = 0; r < d; r++) o = a[r], i = (t.match(Le(o, e)) || [])[0], i && (s = t.substr(0, t.indexOf(i)), s.length > 0 && h(e).unusedInput.push(s), t = t.slice(t.indexOf(i) + i.length), l += i.length), j[o] ? (i ? h(e).empty = !1 : h(e).unusedTokens.push(o), Ue(o, i, e)) : e._strict && !i && h(e).unusedTokens.push(o);
|
|
2714
2714
|
h(e).charsLeftOver = c - l, t.length > 0 && h(e).unusedInput.push(t), e._a[q] <= 12 && h(e).bigHour === !0 && e._a[q] > 0 && (h(e).bigHour = void 0), h(e).parsedDateParts = e._a.slice(0), h(e).meridiem = e._meridiem, e._a[q] = qn(e._locale, e._a[q], e._meridiem), u = h(e).era, u !== null && (e._a[Ge] = e._locale.erasConvertYear(u, e._a[Ge])), Wn(e), Tn(e);
|
|
2715
2715
|
}
|
|
2716
2716
|
function qn(e, t, n) {
|
|
@@ -2728,7 +2728,7 @@ var Xe = {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
function Yn(e) {
|
|
2730
2730
|
if (!e._d) {
|
|
2731
|
-
var t =
|
|
2731
|
+
var t = ve(e._i), n = t.day === void 0 ? t.date : t.day;
|
|
2732
2732
|
e._a = d([
|
|
2733
2733
|
t.year,
|
|
2734
2734
|
t.month,
|
|
@@ -2811,7 +2811,7 @@ var Xe = {
|
|
|
2811
2811
|
return Mr(NaN);
|
|
2812
2812
|
}
|
|
2813
2813
|
function ur(e) {
|
|
2814
|
-
var t =
|
|
2814
|
+
var t = ve(e), n = t.year || 0, r = t.quarter || 0, i = t.month || 0, a = t.week || t.isoWeek || 0, o = t.day || 0, s = t.hour || 0, c = t.minute || 0, l = t.second || 0, u = t.millisecond || 0;
|
|
2815
2815
|
this._isValid = sr(t), this._milliseconds = +u + l * 1e3 + c * 6e4 + s * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +i + r * 3 + n * 12, this._data = {}, this._locale = Cn(), this._bubble();
|
|
2816
2816
|
}
|
|
2817
2817
|
function dr(e) {
|
|
@@ -3081,7 +3081,7 @@ var Xe = {
|
|
|
3081
3081
|
function ri(e) {
|
|
3082
3082
|
if (!this.isValid()) return null;
|
|
3083
3083
|
var t = e !== !0, n = t ? this.clone().utc() : this;
|
|
3084
|
-
return n.year() < 0 || n.year() > 9999 ?
|
|
3084
|
+
return n.year() < 0 || n.year() > 9999 ? N(n, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : S(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", N(n, "Z")) : N(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
|
3085
3085
|
}
|
|
3086
3086
|
function ii() {
|
|
3087
3087
|
if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
|
|
@@ -3090,7 +3090,7 @@ var Xe = {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
function ai(e) {
|
|
3092
3092
|
e ||= this.isUtc() ? n.defaultFormatUtc : n.defaultFormat;
|
|
3093
|
-
var t =
|
|
3093
|
+
var t = N(this, e);
|
|
3094
3094
|
return this.localeData().postformat(t);
|
|
3095
3095
|
}
|
|
3096
3096
|
function oi(e, t) {
|
|
@@ -3371,7 +3371,7 @@ var Xe = {
|
|
|
3371
3371
|
function qi(e, t) {
|
|
3372
3372
|
M(0, [e, e.length], 0, t);
|
|
3373
3373
|
}
|
|
3374
|
-
qi("gggg", "weekYear"), qi("ggggg", "weekYear"), qi("GGGG", "isoWeekYear"), qi("GGGGG", "isoWeekYear"), W("G", ke), W("g", ke), W("GG", U,
|
|
3374
|
+
qi("gggg", "weekYear"), qi("ggggg", "weekYear"), qi("GGGG", "isoWeekYear"), qi("GGGGG", "isoWeekYear"), W("G", ke), W("g", ke), W("GG", U, H), W("gg", U, H), W("GGGG", Ee, xe), W("gggg", Ee, xe), W("GGGGG", De, Se), W("ggggg", De, Se), He([
|
|
3375
3375
|
"gggg",
|
|
3376
3376
|
"ggggg",
|
|
3377
3377
|
"GGGG",
|
|
@@ -3409,13 +3409,13 @@ var Xe = {
|
|
|
3409
3409
|
var a = Dt(e, t, n, r, i), o = Tt(a.year, 0, a.dayOfYear);
|
|
3410
3410
|
return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
|
|
3411
3411
|
}
|
|
3412
|
-
M("Q", 0, "Qo", "quarter"), W("Q",
|
|
3412
|
+
M("Q", 0, "Qo", "quarter"), W("Q", V), K("Q", function(e, t) {
|
|
3413
3413
|
t[Ke] = (G(e) - 1) * 3;
|
|
3414
3414
|
});
|
|
3415
3415
|
function na(e) {
|
|
3416
3416
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
3417
3417
|
}
|
|
3418
|
-
M("D", ["DD", 2], "Do", "date"), W("D", U, Pe), W("DD", U,
|
|
3418
|
+
M("D", ["DD", 2], "Do", "date"), W("D", U, Pe), W("DD", U, H), W("Do", function(e, t) {
|
|
3419
3419
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
3420
3420
|
}), K(["D", "DD"], qe), K("Do", function(e, t) {
|
|
3421
3421
|
t[qe] = G(e.match(U)[0]);
|
|
@@ -3428,9 +3428,9 @@ var Xe = {
|
|
|
3428
3428
|
var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
|
|
3429
3429
|
return e == null ? t : this.add(e - t, "d");
|
|
3430
3430
|
}
|
|
3431
|
-
M("m", ["mm", 2], 0, "minute"), W("m", U, Fe), W("mm", U,
|
|
3431
|
+
M("m", ["mm", 2], 0, "minute"), W("m", U, Fe), W("mm", U, H), K(["m", "mm"], Je);
|
|
3432
3432
|
var aa = nt("Minutes", !1);
|
|
3433
|
-
M("s", ["ss", 2], 0, "second"), W("s", U, Fe), W("ss", U,
|
|
3433
|
+
M("s", ["ss", 2], 0, "second"), W("s", U, Fe), W("ss", U, H), K(["s", "ss"], Ye);
|
|
3434
3434
|
var oa = nt("Seconds", !1);
|
|
3435
3435
|
M("S", 0, 0, function() {
|
|
3436
3436
|
return ~~(this.millisecond() / 100);
|
|
@@ -3448,7 +3448,7 @@ var Xe = {
|
|
|
3448
3448
|
return this.millisecond() * 1e5;
|
|
3449
3449
|
}), M(0, ["SSSSSSSSS", 9], 0, function() {
|
|
3450
3450
|
return this.millisecond() * 1e6;
|
|
3451
|
-
}), W("S", Te,
|
|
3451
|
+
}), W("S", Te, V), W("SS", Te, H), W("SSS", Te, be);
|
|
3452
3452
|
var sa, ca;
|
|
3453
3453
|
for (sa = "SSSS"; sa.length <= 9; sa += "S") W(sa, Oe);
|
|
3454
3454
|
function la(e, t) {
|
|
@@ -3476,7 +3476,7 @@ var Xe = {
|
|
|
3476
3476
|
return e;
|
|
3477
3477
|
}
|
|
3478
3478
|
var Q = w.prototype;
|
|
3479
|
-
Q.calendar = D, Q.longDateFormat = ue, Q.invalidDate =
|
|
3479
|
+
Q.calendar = D, Q.longDateFormat = ue, Q.invalidDate = fe, Q.ordinal = L, Q.preparse = ma, Q.postformat = ma, Q.relativeTime = ge, Q.pastFuture = _e, Q.set = C, Q.eras = Mi, Q.erasParse = Ni, Q.erasConvertYear = Pi, Q.erasAbbrRegex = Bi, Q.erasNameRegex = zi, Q.erasNarrowRegex = Vi, Q.months = mt, Q.monthsShort = ht, Q.monthsParse = _t, Q.monthsRegex = St, Q.monthsShortRegex = xt, Q.week = At, Q.firstDayOfYear = Nt, Q.firstDayOfWeek = Mt, Q.weekdays = Gt, Q.weekdaysMin = qt, Q.weekdaysShort = Kt, Q.weekdaysParse = Yt, Q.weekdaysRegex = $t, Q.weekdaysShortRegex = en, Q.weekdaysMinRegex = tn, Q.isPM = cn, Q.meridiem = dn;
|
|
3480
3480
|
function ha(e, t, n, r) {
|
|
3481
3481
|
var i = Cn(), a = p().set(r, t);
|
|
3482
3482
|
return i[n](a, e);
|
|
@@ -3651,9 +3651,9 @@ var Xe = {
|
|
|
3651
3651
|
MONTH: "YYYY-MM"
|
|
3652
3652
|
}, n;
|
|
3653
3653
|
}));
|
|
3654
|
-
})),
|
|
3654
|
+
})), et = /* @__PURE__ */ I(((e, t) => {
|
|
3655
3655
|
(function(n, r) {
|
|
3656
|
-
typeof e == "object" && t !== void 0 && typeof
|
|
3656
|
+
typeof e == "object" && t !== void 0 && typeof me == "function" ? r($e()) : typeof define == "function" && define.amd ? define(["../moment"], r) : r(n.moment);
|
|
3657
3657
|
})(e, (function(e) {
|
|
3658
3658
|
return e.defineLocale("it", {
|
|
3659
3659
|
months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),
|
|
@@ -3716,9 +3716,9 @@ var Xe = {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
});
|
|
3718
3718
|
}));
|
|
3719
|
-
})),
|
|
3719
|
+
})), tt = /* @__PURE__ */ I(((e, t) => {
|
|
3720
3720
|
(function(n, r) {
|
|
3721
|
-
typeof e == "object" && t !== void 0 && typeof
|
|
3721
|
+
typeof e == "object" && t !== void 0 && typeof me == "function" ? r($e()) : typeof define == "function" && define.amd ? define(["../moment"], r) : r(n.moment);
|
|
3722
3722
|
})(e, (function(e) {
|
|
3723
3723
|
return e.defineLocale("en-gb", {
|
|
3724
3724
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -3772,7 +3772,7 @@ var Xe = {
|
|
|
3772
3772
|
}));
|
|
3773
3773
|
(/* @__PURE__ */ I(((e, t) => {
|
|
3774
3774
|
(function(n, r) {
|
|
3775
|
-
typeof e == "object" && t !== void 0 && typeof
|
|
3775
|
+
typeof e == "object" && t !== void 0 && typeof me == "function" ? r($e()) : typeof define == "function" && define.amd ? define(["../moment"], r) : r(n.moment);
|
|
3776
3776
|
})(e, (function(e) {
|
|
3777
3777
|
function t(e, t, n, r) {
|
|
3778
3778
|
var i = {
|
|
@@ -3838,13 +3838,13 @@ var Xe = {
|
|
|
3838
3838
|
}
|
|
3839
3839
|
});
|
|
3840
3840
|
}));
|
|
3841
|
-
})))(),
|
|
3842
|
-
var
|
|
3841
|
+
})))(), tt(), et();
|
|
3842
|
+
var nt = (e) => {
|
|
3843
3843
|
let t = "";
|
|
3844
3844
|
return e.split(":").forEach((e) => {
|
|
3845
3845
|
t += e;
|
|
3846
3846
|
}), parseInt(t);
|
|
3847
|
-
},
|
|
3847
|
+
}, rt = (e) => e.toString().padStart(4, "0").match(/.{1,2}/g).join(":"), it = (e) => {
|
|
3848
3848
|
let t = e.address;
|
|
3849
3849
|
if (e.addresstype === "county" && t.country) return t.county;
|
|
3850
3850
|
if (e.addresstype === "village" && t.village) return t.village;
|
|
@@ -3877,7 +3877,7 @@ var tt = (e) => {
|
|
|
3877
3877
|
t.hasOwnProperty(e) && t[e] && n.push(t[e]);
|
|
3878
3878
|
}), t.road ? n.push(t.road) : t.pedestrian ? n.push(t.pedestrian) : t.suburb ? n.push(t.suburb) : t.square ? n.push(t.square) : (t.neighbourhood && n.push(t.neighbourhood), t.hamlet ? n.push(t.hamlet) : t.isolated_dwelling ? n.push(t.isolated_dwelling) : t.locality ? n.push(t.locality) : t.croft && n.push(t.croft)), t.house_number && n.push(t.house_number), t.postcode && n.push(t.postcode), t.village && n.push(t.village), t.town ? n.push(t.town) : t.city && n.push(t.city), n.join(", ").substr(0, 150);
|
|
3879
3879
|
};
|
|
3880
|
-
function
|
|
3880
|
+
function at(e) {
|
|
3881
3881
|
let t = window.sessionStorage.getItem(e);
|
|
3882
3882
|
if (t !== null) {
|
|
3883
3883
|
let n = JSON.parse(t);
|
|
@@ -3886,7 +3886,7 @@ function it(e) {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
return null;
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function ot(e, t, n) {
|
|
3890
3890
|
let r = n ? /* @__PURE__ */ new Date(n * 1e3) : null;
|
|
3891
3891
|
if (r) {
|
|
3892
3892
|
let n = {
|
|
@@ -3898,7 +3898,7 @@ function at(e, t, n) {
|
|
|
3898
3898
|
}
|
|
3899
3899
|
//#endregion
|
|
3900
3900
|
//#region src/customComponentFormio/DynamicCalendar/DaySelected.jsx
|
|
3901
|
-
function
|
|
3901
|
+
function st({ day: e, slot: t, i18next: n }) {
|
|
3902
3902
|
return /* @__PURE__ */ i("li", {
|
|
3903
3903
|
className: "it-list-item",
|
|
3904
3904
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -3923,13 +3923,13 @@ function ot({ day: e, slot: t, i18next: n }) {
|
|
|
3923
3923
|
}
|
|
3924
3924
|
//#endregion
|
|
3925
3925
|
//#region src/functions/getWidgetModalContainer.js
|
|
3926
|
-
function
|
|
3926
|
+
function J() {
|
|
3927
3927
|
return typeof document > "u" ? void 0 : document.activeElement?.closest?.("[data-formio-widget-scope]") || document.querySelector("[data-formio-widget-scope]") || document.querySelector("widget-formio") || document.body;
|
|
3928
3928
|
}
|
|
3929
3929
|
//#endregion
|
|
3930
3930
|
//#region src/customComponentFormio/DynamicCalendar/DynamicCalendar.jsx
|
|
3931
|
-
var
|
|
3932
|
-
let [c, ee] = u(), [te, ie] = u([]), [b, x] = u([]), [ae, oe] = u(!1), [w, T] = u(null), [E, D] = u(null), [O,
|
|
3931
|
+
var ct = t.Components.components.field, lt = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
3932
|
+
let [c, ee] = u(), [te, ie] = u([]), [b, x] = u([]), [ae, oe] = u(!1), [w, T] = u(null), [E, D] = u(null), [O, se] = u(null), [k, A] = u(null), [j, M] = u({}), [ce, le] = u(null), [N, P] = u(!1), [F, ue] = u([]), [de, fe] = u(!1), I = l(), pe = e.calendarId;
|
|
3933
3933
|
p.locale(o.language), C.locale(o.language);
|
|
3934
3934
|
let L = (e) => {
|
|
3935
3935
|
let t = p(e).format("YYYY-MM-DD");
|
|
@@ -3950,17 +3950,17 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
3950
3950
|
})), me(r.length ? r[0].date : e);
|
|
3951
3951
|
}).catch((e) => console.error(e));
|
|
3952
3952
|
}, me = (e) => {
|
|
3953
|
-
|
|
3953
|
+
A(null), se(null), x([]);
|
|
3954
3954
|
let t = p(e).format("YYYY-MM-DD");
|
|
3955
3955
|
fetch(z(t)).then((e) => e.json()).then((t) => {
|
|
3956
3956
|
let n = t.filter((e) => e.availability == 1);
|
|
3957
|
-
M(n[0]), n.length > 0 ? (x(t), oe(!1),
|
|
3957
|
+
M(n[0]), n.length > 0 ? (x(t), oe(!1), se(p(e).format("L")), ee(p(e, "YYYY-MM-DD").toDate())) : (t.length > 0 && ee(p(t[0].date, "YYYY-MM-DD").toDate()), x([]), we());
|
|
3958
3958
|
});
|
|
3959
3959
|
}, he = () => {
|
|
3960
3960
|
if (pe !== "" && pe != null) if (!t.dataValue) L(/* @__PURE__ */ new Date());
|
|
3961
3961
|
else if (e.multiple && Array.isArray(t.dataValue)) {
|
|
3962
3962
|
if (t.dataValue.length > 0) {
|
|
3963
|
-
|
|
3963
|
+
le(t.dataValue);
|
|
3964
3964
|
let e = [];
|
|
3965
3965
|
t.dataValue.map((t) => {
|
|
3966
3966
|
e.push({
|
|
@@ -3977,7 +3977,7 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
3977
3977
|
ue([{
|
|
3978
3978
|
...t.dataValue,
|
|
3979
3979
|
date: p(t.dataValue.date, "YYYY-MM-DD").format("DD-MM-YYYY")
|
|
3980
|
-
}]),
|
|
3980
|
+
}]), le(e);
|
|
3981
3981
|
} else {
|
|
3982
3982
|
let r = t.dataValue.replace(")", "").replace(" (", " @ ").replace(/\//g, "-").split(" @ "), i = r[2].split("#"), a = {
|
|
3983
3983
|
date: p(r[0], "DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
@@ -4007,7 +4007,7 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4007
4007
|
calendar_id: i[0],
|
|
4008
4008
|
meeting_id: i[1],
|
|
4009
4009
|
opening_hour_id: i.length === 3 ? i[2] : ""
|
|
4010
|
-
}])),
|
|
4010
|
+
}])), le(a);
|
|
4011
4011
|
}
|
|
4012
4012
|
};
|
|
4013
4013
|
s(() => {
|
|
@@ -4034,17 +4034,17 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4034
4034
|
window.location.pathname.split("/");
|
|
4035
4035
|
let o = p(t).format("YYYY-MM-DD"), s = `${R()}/api/calendars/${r}/availabilities/${o}`, c = [];
|
|
4036
4036
|
return n && c.push(`available=${n}`), i && a && c.push(`opening_hours=${a.join()}`), c && (s = `${s}?${c.join("&")}`), s;
|
|
4037
|
-
},
|
|
4037
|
+
}, ve = (e) => {
|
|
4038
4038
|
L(e);
|
|
4039
|
-
},
|
|
4039
|
+
}, ye = (e) => {
|
|
4040
4040
|
setTimeout(() => {
|
|
4041
|
-
P(!
|
|
4041
|
+
P(!N);
|
|
4042
4042
|
}, 1e3), me(e);
|
|
4043
|
-
},
|
|
4044
|
-
|
|
4045
|
-
e && (D(e.target.dataset),
|
|
4043
|
+
}, B = (e) => {
|
|
4044
|
+
A(null), setTimeout(() => {
|
|
4045
|
+
e && (D(e.target.dataset), A(e.target.id));
|
|
4046
4046
|
}, 300);
|
|
4047
|
-
},
|
|
4047
|
+
}, V = (t) => {
|
|
4048
4048
|
T(null);
|
|
4049
4049
|
let n = `${R()}/it/meetings/new-draft`, r = {
|
|
4050
4050
|
date: E?.date ? p(E?.date).format("DD-MM-YYYY") : p(t.target.dataset.date).format("DD-MM-YYYY"),
|
|
@@ -4052,9 +4052,9 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4052
4052
|
calendar: e.calendarId,
|
|
4053
4053
|
opening_hour: E?.opening_hour ? E?.opening_hour : t.target.dataset.opening_hour,
|
|
4054
4054
|
meeting: w ? w.id : "",
|
|
4055
|
-
first_available_date:
|
|
4056
|
-
first_available_start_time:
|
|
4057
|
-
first_available_end_time:
|
|
4055
|
+
first_available_date: j.date,
|
|
4056
|
+
first_available_start_time: j.start_time,
|
|
4057
|
+
first_available_end_time: j.end_time,
|
|
4058
4058
|
first_availability_updated_at: p().format()
|
|
4059
4059
|
};
|
|
4060
4060
|
fetch(n, {
|
|
@@ -4085,8 +4085,8 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4085
4085
|
showConfirmButton: !1
|
|
4086
4086
|
});
|
|
4087
4087
|
});
|
|
4088
|
-
},
|
|
4089
|
-
E && (
|
|
4088
|
+
}, H = () => {
|
|
4089
|
+
E && (V(), P(!N));
|
|
4090
4090
|
}, be = () => /* @__PURE__ */ i("span", { children: o.t("Tempo prenotazione scaduto!") }), xe = ({ minutes: e, seconds: t, completed: n }) => n ? /* @__PURE__ */ i(be, {}) : /* @__PURE__ */ i("div", { children: /* @__PURE__ */ a("div", { children: [" ", /* @__PURE__ */ a("span", { children: [
|
|
4091
4091
|
" ",
|
|
4092
4092
|
/* @__PURE__ */ a("i", { children: [o.t("Per confermare la prenotazione che ti abbiamo riservato procedi con l’invio di questa pratica e con il pagamento (se richiesto) di quanto previsto entro"), ":"] }),
|
|
@@ -4101,10 +4101,10 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4101
4101
|
o.t("secondi")
|
|
4102
4102
|
] })
|
|
4103
4103
|
] })] }) }), Se = (e) => {
|
|
4104
|
-
let t =
|
|
4105
|
-
t < n || t > r || t >
|
|
4104
|
+
let t = nt(e.target.value), n = nt(e.target.min), r = nt(e.target.max);
|
|
4105
|
+
t < n || t > r || t > nt(E.end) ? (S.fire({
|
|
4106
4106
|
title: "",
|
|
4107
|
-
html: `<p>${o.t("l'orario")} <b>${
|
|
4107
|
+
html: `<p>${o.t("l'orario")} <b>${rt(t)}</b> ${o.t("non è valido")}</p>`,
|
|
4108
4108
|
icon: "error",
|
|
4109
4109
|
cancelButtonText: o.t("Chiudi"),
|
|
4110
4110
|
showCancelButton: !0,
|
|
@@ -4114,10 +4114,10 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4114
4114
|
value_start: e.target.value
|
|
4115
4115
|
});
|
|
4116
4116
|
}, U = (e) => {
|
|
4117
|
-
let t =
|
|
4118
|
-
t < n || t > r || t <
|
|
4117
|
+
let t = nt(e.target.value), n = nt(e.target.min), r = nt(e.target.max);
|
|
4118
|
+
t < n || t > r || t < nt(E.start) ? (S.fire({
|
|
4119
4119
|
title: "",
|
|
4120
|
-
html: `<p>${o.t("l'orario")} <b>${
|
|
4120
|
+
html: `<p>${o.t("l'orario")} <b>${rt(t)}</b> ${o.t("non è valido")}</p>`,
|
|
4121
4121
|
icon: "error",
|
|
4122
4122
|
cancelButtonText: o.t("Chiudi"),
|
|
4123
4123
|
showCancelButton: !0,
|
|
@@ -4141,18 +4141,18 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4141
4141
|
}), e.multiple ? n(t) : n(t[0]);
|
|
4142
4142
|
} else n("");
|
|
4143
4143
|
}, we = () => {
|
|
4144
|
-
oe(!0), T(null),
|
|
4144
|
+
oe(!0), T(null), se(null), Ce(null);
|
|
4145
4145
|
}, Te = () => {
|
|
4146
|
-
if (o.language === "it") return
|
|
4147
|
-
if (o.language === "en") return
|
|
4148
|
-
if (o.language === "de") return
|
|
4146
|
+
if (o.language === "it") return Qe;
|
|
4147
|
+
if (o.language === "en") return We;
|
|
4148
|
+
if (o.language === "de") return ze;
|
|
4149
4149
|
};
|
|
4150
4150
|
s(() => {
|
|
4151
4151
|
Ce(F);
|
|
4152
4152
|
}, [F]), s(() => {
|
|
4153
|
-
document.querySelector(".formio-read-only") && de === !1 ? (
|
|
4153
|
+
document.querySelector(".formio-read-only") && de === !1 ? (fe(!0), setTimeout(() => {
|
|
4154
4154
|
he();
|
|
4155
|
-
}, 1e3)) : (
|
|
4155
|
+
}, 1e3)) : (fe(!1), setTimeout(() => {
|
|
4156
4156
|
he();
|
|
4157
4157
|
}, 1e3));
|
|
4158
4158
|
}, []);
|
|
@@ -4162,7 +4162,7 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4162
4162
|
method: "DELETE",
|
|
4163
4163
|
headers: {
|
|
4164
4164
|
"Content-Type": "application/json; charset=utf-8",
|
|
4165
|
-
Authorization: `Bearer ${
|
|
4165
|
+
Authorization: `Bearer ${at("auth-token")}`
|
|
4166
4166
|
},
|
|
4167
4167
|
strictErrors: !0
|
|
4168
4168
|
}).then((t) => {
|
|
@@ -4184,11 +4184,11 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4184
4184
|
className: "it-list-wrapper",
|
|
4185
4185
|
children: /* @__PURE__ */ i("ul", {
|
|
4186
4186
|
className: "it-list",
|
|
4187
|
-
children: Array.isArray(ce) ? ce.map((e) => /* @__PURE__ */ i(
|
|
4187
|
+
children: Array.isArray(ce) ? ce.map((e) => /* @__PURE__ */ i(st, {
|
|
4188
4188
|
day: p(e.date, "DD-MM-YYYY").format("DD/MM/YYYY"),
|
|
4189
4189
|
i18next: o,
|
|
4190
4190
|
slot: e.slot
|
|
4191
|
-
})) : /* @__PURE__ */ i(
|
|
4191
|
+
})) : /* @__PURE__ */ i(st, {
|
|
4192
4192
|
day: p(ce.date, "DD-MM-YYYY").format("DD/MM/YYYY"),
|
|
4193
4193
|
i18next: o,
|
|
4194
4194
|
slot: ce.slot
|
|
@@ -4211,8 +4211,8 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4211
4211
|
selected: c,
|
|
4212
4212
|
locale: Te(),
|
|
4213
4213
|
disabled: te,
|
|
4214
|
-
onMonthChange:
|
|
4215
|
-
onDayClick:
|
|
4214
|
+
onMonthChange: ve,
|
|
4215
|
+
onDayClick: ye
|
|
4216
4216
|
}),
|
|
4217
4217
|
/* @__PURE__ */ i("p", { children: o.t("Seleziona un'altra data nel calendario per aggiungere una nuova prenotazione") })
|
|
4218
4218
|
]
|
|
@@ -4228,8 +4228,8 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4228
4228
|
selected: c,
|
|
4229
4229
|
locale: Te(),
|
|
4230
4230
|
disabled: te,
|
|
4231
|
-
onMonthChange:
|
|
4232
|
-
onDayClick:
|
|
4231
|
+
onMonthChange: ve,
|
|
4232
|
+
onDayClick: ye
|
|
4233
4233
|
}),
|
|
4234
4234
|
/* @__PURE__ */ a("p", { children: [" ", o.t("Seleziona un'altra data nel calendario per aggiungere una nuova prenotazione")] })
|
|
4235
4235
|
]
|
|
@@ -4288,15 +4288,15 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4288
4288
|
})]
|
|
4289
4289
|
})
|
|
4290
4290
|
}), /* @__PURE__ */ a(_, {
|
|
4291
|
-
isOpen:
|
|
4292
|
-
toggle: () => P(!
|
|
4291
|
+
isOpen: N,
|
|
4292
|
+
toggle: () => P(!N),
|
|
4293
4293
|
labelledBy: "daySelected",
|
|
4294
4294
|
size: "lg",
|
|
4295
4295
|
centered: !0,
|
|
4296
|
-
container:
|
|
4296
|
+
container: J(),
|
|
4297
4297
|
children: [
|
|
4298
4298
|
/* @__PURE__ */ i(y, {
|
|
4299
|
-
toggle: () => P(!
|
|
4299
|
+
toggle: () => P(!N),
|
|
4300
4300
|
id: "daySelected",
|
|
4301
4301
|
children: o.t("Seleziona una fascia oraria")
|
|
4302
4302
|
}),
|
|
@@ -4329,9 +4329,9 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4329
4329
|
children: /* @__PURE__ */ i("button", {
|
|
4330
4330
|
type: "button",
|
|
4331
4331
|
id: "slot-last-selection",
|
|
4332
|
-
onClick:
|
|
4332
|
+
onClick: B,
|
|
4333
4333
|
tabIndex: "1",
|
|
4334
|
-
className:
|
|
4334
|
+
className: k === "slot-last-selection" ? "active btn btn-slot p-0" : "btn btn-slot p-0",
|
|
4335
4335
|
"data-date": p(O, "DD/MM/YYYY").format("YYYY-MM-DD"),
|
|
4336
4336
|
"data-slots": F[F.length - 1].slot,
|
|
4337
4337
|
"data-opening_hour": F[F.length - 1].opening_hour_id,
|
|
@@ -4354,9 +4354,9 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4354
4354
|
children: /* @__PURE__ */ a("button", {
|
|
4355
4355
|
type: "button",
|
|
4356
4356
|
id: "slot-" + t,
|
|
4357
|
-
onClick:
|
|
4358
|
-
ref:
|
|
4359
|
-
className:
|
|
4357
|
+
onClick: B,
|
|
4358
|
+
ref: I,
|
|
4359
|
+
className: k === "slot-" + t ? "active btn btn-slot p-0" : "btn btn-slot p-0",
|
|
4360
4360
|
tabIndex: "1",
|
|
4361
4361
|
"data-date": e.date,
|
|
4362
4362
|
"data-start": e.start_time,
|
|
@@ -4390,7 +4390,7 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4390
4390
|
}) : null,
|
|
4391
4391
|
/* @__PURE__ */ i("div", {
|
|
4392
4392
|
className: "col-12",
|
|
4393
|
-
children: E?.value_start &&
|
|
4393
|
+
children: E?.value_start && k ? /* @__PURE__ */ a("div", {
|
|
4394
4394
|
className: "row",
|
|
4395
4395
|
children: [
|
|
4396
4396
|
/* @__PURE__ */ i("div", {
|
|
@@ -4431,13 +4431,13 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4431
4431
|
}) }),
|
|
4432
4432
|
/* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(h, {
|
|
4433
4433
|
color: "primary",
|
|
4434
|
-
onClick: () =>
|
|
4434
|
+
onClick: () => H(),
|
|
4435
4435
|
disabled: !O || !E?.value_start,
|
|
4436
4436
|
children: o.t("Conferma")
|
|
4437
4437
|
}) })
|
|
4438
4438
|
]
|
|
4439
4439
|
})] });
|
|
4440
|
-
},
|
|
4440
|
+
}, ut = class e extends ct {
|
|
4441
4441
|
constructor(e, t, n) {
|
|
4442
4442
|
super(e, t, n);
|
|
4443
4443
|
}
|
|
@@ -4452,14 +4452,14 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4452
4452
|
};
|
|
4453
4453
|
}
|
|
4454
4454
|
static schema() {
|
|
4455
|
-
return
|
|
4455
|
+
return ct.schema({ type: "dynamic_calendar" });
|
|
4456
4456
|
}
|
|
4457
|
-
static editForm =
|
|
4457
|
+
static editForm = ve;
|
|
4458
4458
|
attach(e) {
|
|
4459
4459
|
return super.attach(e).then(() => {
|
|
4460
4460
|
this.loadRefs(this.element, { [`react-${this.id}`]: "single" });
|
|
4461
4461
|
let e = this.refs[`react-${this.id}`];
|
|
4462
|
-
return e ? (this.rootComponent = n(e), this.rootComponent.render(/* @__PURE__ */ i(
|
|
4462
|
+
return e ? (this.rootComponent = n(e), this.rootComponent.render(/* @__PURE__ */ i(lt, {
|
|
4463
4463
|
component: this.component,
|
|
4464
4464
|
value: this.dataValue,
|
|
4465
4465
|
onChange: (e) => this.setValue(e),
|
|
@@ -4502,7 +4502,7 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4502
4502
|
render() {
|
|
4503
4503
|
return super.render(`<div ref="react-${this.id}"></div>`);
|
|
4504
4504
|
}
|
|
4505
|
-
},
|
|
4505
|
+
}, dt = [
|
|
4506
4506
|
{
|
|
4507
4507
|
key: "labelPosition",
|
|
4508
4508
|
ignore: !0
|
|
@@ -4627,15 +4627,15 @@ var J = t.Components.components.field, ct = ({ component: e, current: t, onChang
|
|
|
4627
4627
|
];
|
|
4628
4628
|
//#endregion
|
|
4629
4629
|
//#region src/customComponentFormio/Calendar/Calendar.form.js
|
|
4630
|
-
function
|
|
4630
|
+
function ft(...e) {
|
|
4631
4631
|
return o.baseEditForm([{
|
|
4632
4632
|
key: "display",
|
|
4633
|
-
components:
|
|
4633
|
+
components: dt
|
|
4634
4634
|
}], ...e);
|
|
4635
4635
|
}
|
|
4636
4636
|
//#endregion
|
|
4637
4637
|
//#region src/customComponentFormio/Calendar/DaySelected.jsx
|
|
4638
|
-
function
|
|
4638
|
+
function pt({ day: e, slot: t, i18next: n }) {
|
|
4639
4639
|
return /* @__PURE__ */ i("li", {
|
|
4640
4640
|
className: "it-list-item",
|
|
4641
4641
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -4660,8 +4660,8 @@ function ft({ day: e, slot: t, i18next: n }) {
|
|
|
4660
4660
|
}
|
|
4661
4661
|
//#endregion
|
|
4662
4662
|
//#region src/customComponentFormio/Calendar/Calendar.jsx
|
|
4663
|
-
var
|
|
4664
|
-
let [c, ee] = u(), [te, ne] = u([]), [ie, b] = u([]), [x, ae] = u(!1), [oe, w] = u(null), [T, E] = u(null), [D, O] = u(null), [
|
|
4663
|
+
var mt = t.Components.components.field, ht = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
4664
|
+
let [c, ee] = u(), [te, ne] = u([]), [ie, b] = u([]), [x, ae] = u(!1), [oe, w] = u(null), [T, E] = u(null), [D, O] = u(null), [se, k] = u(null), [A, j] = u({}), [M, ce] = u(null), [le, N] = u(!1), [P, F] = u([]), [ue, de] = u(!1), fe = l(), I = e.calendarId;
|
|
4665
4665
|
p.locale(o.language), C.locale(o.language);
|
|
4666
4666
|
let pe = (e) => {
|
|
4667
4667
|
let t = p(e).format("YYYY-MM-DD");
|
|
@@ -4682,14 +4682,14 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4682
4682
|
})), L(r.length ? r[0].date : e);
|
|
4683
4683
|
}).catch((e) => console.error(e));
|
|
4684
4684
|
}, L = (e) => {
|
|
4685
|
-
|
|
4685
|
+
k(null), O(null), b([]);
|
|
4686
4686
|
let t = p(e).format("YYYY-MM-DD");
|
|
4687
4687
|
fetch(_e(t)).then((e) => e.json()).then((t) => {
|
|
4688
4688
|
let n = t.filter((e) => e.availability == 1);
|
|
4689
|
-
|
|
4689
|
+
j(n[0]), n.length > 0 ? (b(t), ae(!1), O(p(e).format("L")), ee(p(e, "YYYY-MM-DD").toDate())) : (t.length > 0 && ee(p(t[0].date, "YYYY-MM-DD").toDate()), b([]), Se());
|
|
4690
4690
|
});
|
|
4691
4691
|
}, me = () => {
|
|
4692
|
-
if (
|
|
4692
|
+
if (I !== "" && I != null) if (!t.dataValue) pe(/* @__PURE__ */ new Date());
|
|
4693
4693
|
else if (e.multiple && Array.isArray(t.dataValue)) {
|
|
4694
4694
|
if (t.dataValue.length > 0) {
|
|
4695
4695
|
ce(t.dataValue);
|
|
@@ -4768,15 +4768,15 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4768
4768
|
return n && c.push(`available=${n}`), i && a && c.push(`opening_hours=${a.join()}`), c && (s = `${s}?${c.join("&")}`), s;
|
|
4769
4769
|
}, z = (e) => {
|
|
4770
4770
|
pe(e);
|
|
4771
|
-
},
|
|
4771
|
+
}, ve = (e) => {
|
|
4772
4772
|
setTimeout(() => {
|
|
4773
|
-
|
|
4773
|
+
N(!le);
|
|
4774
4774
|
}, 1e3), L(e);
|
|
4775
|
-
},
|
|
4776
|
-
|
|
4777
|
-
e && (E(e.target.dataset),
|
|
4775
|
+
}, ye = (e) => {
|
|
4776
|
+
k(null), setTimeout(() => {
|
|
4777
|
+
e && (E(e.target.dataset), k(e.target.id));
|
|
4778
4778
|
}, 300);
|
|
4779
|
-
},
|
|
4779
|
+
}, B = (t) => {
|
|
4780
4780
|
w(null);
|
|
4781
4781
|
let n = `${R()}/it/meetings/new-draft`, r = {
|
|
4782
4782
|
date: T?.date ? p(T?.date).format("DD-MM-YYYY") : p(t.target.dataset.date).format("DD-MM-YYYY"),
|
|
@@ -4784,9 +4784,9 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4784
4784
|
calendar: e.calendarId,
|
|
4785
4785
|
opening_hour: T?.opening_hour ? T?.opening_hour : t.target.dataset.opening_hour,
|
|
4786
4786
|
meeting: oe ? oe.id : "",
|
|
4787
|
-
first_available_date:
|
|
4788
|
-
first_available_start_time:
|
|
4789
|
-
first_available_end_time:
|
|
4787
|
+
first_available_date: A.date,
|
|
4788
|
+
first_available_start_time: A.start_time,
|
|
4789
|
+
first_available_end_time: A.end_time,
|
|
4790
4790
|
first_availability_updated_at: p().format()
|
|
4791
4791
|
};
|
|
4792
4792
|
fetch(n, {
|
|
@@ -4817,9 +4817,9 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4817
4817
|
showConfirmButton: !1
|
|
4818
4818
|
});
|
|
4819
4819
|
});
|
|
4820
|
-
},
|
|
4821
|
-
T && (
|
|
4822
|
-
},
|
|
4820
|
+
}, V = () => {
|
|
4821
|
+
T && (B(), N(!le));
|
|
4822
|
+
}, H = () => /* @__PURE__ */ i("span", { children: o.t("Tempo prenotazione scaduto!") }), be = ({ minutes: e, seconds: t, completed: n }) => n ? /* @__PURE__ */ i(H, {}) : /* @__PURE__ */ i("div", { children: /* @__PURE__ */ a("div", { children: [" ", /* @__PURE__ */ a("span", { children: [
|
|
4823
4823
|
" ",
|
|
4824
4824
|
/* @__PURE__ */ a("i", { children: [o.t("Per confermare la prenotazione che ti abbiamo riservato procedi con l’invio di questa pratica e con il pagamento (se richiesto) di quanto previsto entro"), ":"] }),
|
|
4825
4825
|
" ",
|
|
@@ -4849,9 +4849,9 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4849
4849
|
}, Se = () => {
|
|
4850
4850
|
ae(!0), w(null), O(null), xe(null);
|
|
4851
4851
|
}, U = () => {
|
|
4852
|
-
if (o.language === "it") return
|
|
4853
|
-
if (o.language === "en") return
|
|
4854
|
-
if (o.language === "de") return
|
|
4852
|
+
if (o.language === "it") return Qe;
|
|
4853
|
+
if (o.language === "en") return We;
|
|
4854
|
+
if (o.language === "de") return ze;
|
|
4855
4855
|
};
|
|
4856
4856
|
s(() => {
|
|
4857
4857
|
xe(P);
|
|
@@ -4868,7 +4868,7 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4868
4868
|
method: "DELETE",
|
|
4869
4869
|
headers: {
|
|
4870
4870
|
"Content-Type": "application/json; charset=utf-8",
|
|
4871
|
-
Authorization: `Bearer ${
|
|
4871
|
+
Authorization: `Bearer ${at("auth-token")}`
|
|
4872
4872
|
},
|
|
4873
4873
|
strictErrors: !0
|
|
4874
4874
|
}).then((t) => {
|
|
@@ -4890,11 +4890,11 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4890
4890
|
className: "it-list-wrapper",
|
|
4891
4891
|
children: /* @__PURE__ */ i("ul", {
|
|
4892
4892
|
className: "it-list",
|
|
4893
|
-
children: Array.isArray(M) ? M.map((e) => /* @__PURE__ */ i(
|
|
4893
|
+
children: Array.isArray(M) ? M.map((e) => /* @__PURE__ */ i(pt, {
|
|
4894
4894
|
day: p(e.date, "DD-MM-YYYY").format("DD/MM/YYYY"),
|
|
4895
4895
|
i18next: o,
|
|
4896
4896
|
slot: e.slot
|
|
4897
|
-
})) : /* @__PURE__ */ i(
|
|
4897
|
+
})) : /* @__PURE__ */ i(pt, {
|
|
4898
4898
|
day: C(M.date).format("DD/MM/YYYY"),
|
|
4899
4899
|
i18next: o,
|
|
4900
4900
|
slot: M.slot
|
|
@@ -4916,7 +4916,7 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4916
4916
|
locale: U(),
|
|
4917
4917
|
disabled: te,
|
|
4918
4918
|
onMonthChange: z,
|
|
4919
|
-
onDayClick:
|
|
4919
|
+
onDayClick: ve
|
|
4920
4920
|
})]
|
|
4921
4921
|
})
|
|
4922
4922
|
}) : P.length === 1 ? null : /* @__PURE__ */ i("div", {
|
|
@@ -4929,7 +4929,7 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4929
4929
|
locale: U(),
|
|
4930
4930
|
disabled: te,
|
|
4931
4931
|
onMonthChange: z,
|
|
4932
|
-
onDayClick:
|
|
4932
|
+
onDayClick: ve
|
|
4933
4933
|
})]
|
|
4934
4934
|
})
|
|
4935
4935
|
}), /* @__PURE__ */ i("div", {
|
|
@@ -4986,15 +4986,15 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
4986
4986
|
})]
|
|
4987
4987
|
})
|
|
4988
4988
|
}), /* @__PURE__ */ a(_, {
|
|
4989
|
-
isOpen:
|
|
4990
|
-
toggle: () =>
|
|
4989
|
+
isOpen: le,
|
|
4990
|
+
toggle: () => N(!le),
|
|
4991
4991
|
labelledBy: "daySelected",
|
|
4992
4992
|
size: "lg",
|
|
4993
4993
|
centered: !0,
|
|
4994
|
-
container:
|
|
4994
|
+
container: J(),
|
|
4995
4995
|
children: [
|
|
4996
4996
|
/* @__PURE__ */ i(y, {
|
|
4997
|
-
toggle: () =>
|
|
4997
|
+
toggle: () => N(!le),
|
|
4998
4998
|
id: "daySelected",
|
|
4999
4999
|
children: o.t("Seleziona una fascia oraria")
|
|
5000
5000
|
}),
|
|
@@ -5023,9 +5023,9 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
5023
5023
|
children: /* @__PURE__ */ i("button", {
|
|
5024
5024
|
type: "button",
|
|
5025
5025
|
id: "slot-last-selection",
|
|
5026
|
-
onClick:
|
|
5026
|
+
onClick: ye,
|
|
5027
5027
|
tabIndex: "1",
|
|
5028
|
-
className:
|
|
5028
|
+
className: se === "slot-last-selection" ? "active btn btn-slot p-0" : "btn btn-slot p-0",
|
|
5029
5029
|
"data-date": p(D, "DD/MM/YYYY").format("YYYY-MM-DD"),
|
|
5030
5030
|
"data-slots": P[P.length - 1].slot,
|
|
5031
5031
|
"data-opening_hour": P[P.length - 1].opening_hour_id,
|
|
@@ -5048,9 +5048,9 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
5048
5048
|
children: /* @__PURE__ */ a("button", {
|
|
5049
5049
|
type: "button",
|
|
5050
5050
|
id: "slot-" + t,
|
|
5051
|
-
onClick:
|
|
5052
|
-
ref:
|
|
5053
|
-
className:
|
|
5051
|
+
onClick: ye,
|
|
5052
|
+
ref: fe,
|
|
5053
|
+
className: se === "slot-" + t ? "active btn btn-slot p-0" : "btn btn-slot p-0",
|
|
5054
5054
|
tabIndex: "1",
|
|
5055
5055
|
"data-date": e.date,
|
|
5056
5056
|
"data-start": e.start_time,
|
|
@@ -5086,13 +5086,13 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
5086
5086
|
}) }),
|
|
5087
5087
|
/* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(h, {
|
|
5088
5088
|
color: "primary",
|
|
5089
|
-
onClick: () =>
|
|
5089
|
+
onClick: () => V(),
|
|
5090
5090
|
disabled: !D || !T?.value_start,
|
|
5091
5091
|
children: o.t("Conferma")
|
|
5092
5092
|
}) })
|
|
5093
5093
|
]
|
|
5094
5094
|
})] });
|
|
5095
|
-
},
|
|
5095
|
+
}, gt = class e extends mt {
|
|
5096
5096
|
constructor(e, t, n) {
|
|
5097
5097
|
super(e, t, n);
|
|
5098
5098
|
}
|
|
@@ -5107,14 +5107,14 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
5107
5107
|
};
|
|
5108
5108
|
}
|
|
5109
5109
|
static schema() {
|
|
5110
|
-
return
|
|
5110
|
+
return mt.schema({ type: "calendar" });
|
|
5111
5111
|
}
|
|
5112
|
-
static editForm =
|
|
5112
|
+
static editForm = ft;
|
|
5113
5113
|
attach(e) {
|
|
5114
5114
|
return super.attach(e).then(() => {
|
|
5115
5115
|
this.loadRefs(this.element, { [`react-${this.id}`]: "single" });
|
|
5116
5116
|
let e = this.refs[`react-${this.id}`];
|
|
5117
|
-
return e ? (this.rootComponent = n(e), this.rootComponent.render(/* @__PURE__ */ i(
|
|
5117
|
+
return e ? (this.rootComponent = n(e), this.rootComponent.render(/* @__PURE__ */ i(ht, {
|
|
5118
5118
|
component: this.component,
|
|
5119
5119
|
value: this.dataValue,
|
|
5120
5120
|
onChange: (e) => this.setValue(e),
|
|
@@ -5157,7 +5157,7 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
5157
5157
|
render() {
|
|
5158
5158
|
return super.render(`<div ref="react-${this.id}"></div>`);
|
|
5159
5159
|
}
|
|
5160
|
-
},
|
|
5160
|
+
}, _t = [
|
|
5161
5161
|
{
|
|
5162
5162
|
key: "labelPosition",
|
|
5163
5163
|
ignore: !0
|
|
@@ -5218,15 +5218,15 @@ var pt = t.Components.components.field, mt = ({ component: e, current: t, onChan
|
|
|
5218
5218
|
];
|
|
5219
5219
|
//#endregion
|
|
5220
5220
|
//#region src/customComponentFormio/CalendarAdvanced/CalendarAdvanced.form.js
|
|
5221
|
-
function
|
|
5221
|
+
function vt(...e) {
|
|
5222
5222
|
return o.baseEditForm([{
|
|
5223
5223
|
key: "display",
|
|
5224
|
-
components:
|
|
5224
|
+
components: _t
|
|
5225
5225
|
}], ...e);
|
|
5226
5226
|
}
|
|
5227
5227
|
//#endregion
|
|
5228
5228
|
//#region src/customComponentFormio/CalendarAdvanced/SlotSelected.jsx
|
|
5229
|
-
function
|
|
5229
|
+
function yt({ day: e, slot: t, i18next: n }) {
|
|
5230
5230
|
return /* @__PURE__ */ i("li", {
|
|
5231
5231
|
className: "it-list-item",
|
|
5232
5232
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -5251,7 +5251,7 @@ function vt({ day: e, slot: t, i18next: n }) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
//#endregion
|
|
5253
5253
|
//#region src/functions/adjustSlotHeight.js
|
|
5254
|
-
function
|
|
5254
|
+
function bt(e, t) {
|
|
5255
5255
|
if (!t || t.length === 0) return;
|
|
5256
5256
|
let n = t.map((e) => {
|
|
5257
5257
|
let t = new Date(e.start);
|
|
@@ -5261,7 +5261,7 @@ function yt(e, t) {
|
|
|
5261
5261
|
}
|
|
5262
5262
|
//#endregion
|
|
5263
5263
|
//#region src/customComponentFormio/CalendarAdvanced/calendarUtility.js
|
|
5264
|
-
var
|
|
5264
|
+
var xt = {
|
|
5265
5265
|
AVAILABILITY: {
|
|
5266
5266
|
key: "availability_data_cache_",
|
|
5267
5267
|
duration: 10
|
|
@@ -5274,30 +5274,30 @@ var bt = {
|
|
|
5274
5274
|
key: "submission_cache_",
|
|
5275
5275
|
duration: 30
|
|
5276
5276
|
}
|
|
5277
|
-
},
|
|
5277
|
+
}, St = (e, t, n) => {
|
|
5278
5278
|
let r = {
|
|
5279
5279
|
data: n,
|
|
5280
5280
|
timestamp: C().toISOString()
|
|
5281
5281
|
};
|
|
5282
5282
|
localStorage.setItem(t, JSON.stringify(r));
|
|
5283
|
-
},
|
|
5283
|
+
}, Ct = (e, t) => {
|
|
5284
5284
|
try {
|
|
5285
5285
|
let n = localStorage.getItem(t);
|
|
5286
5286
|
if (!n) return null;
|
|
5287
5287
|
let r = JSON.parse(n), i = C().diff(C(r.timestamp), "minutes");
|
|
5288
|
-
return i >
|
|
5288
|
+
return i > xt[e].duration ? (localStorage.removeItem(t), console.log(`⏰ Cache scaduto: ${e}`), null) : (console.log(`✅ Cache letto: ${e} (${i} minuti fa)`), r.data);
|
|
5289
5289
|
} catch (t) {
|
|
5290
5290
|
return console.error(`Errore nel leggere il cache (${e}):`, t), null;
|
|
5291
5291
|
}
|
|
5292
|
-
},
|
|
5292
|
+
}, wt = (e, ...t) => xt[e].key + btoa(t), Tt = "calendar_view_state", Et = "calendar_view_date", Dt = (e, t) => {
|
|
5293
5293
|
try {
|
|
5294
|
-
localStorage.setItem(
|
|
5294
|
+
localStorage.setItem(Tt, e), localStorage.setItem(Et, t || (/* @__PURE__ */ new Date()).toISOString());
|
|
5295
5295
|
} catch (e) {
|
|
5296
5296
|
console.error("Errore nel salvare lo stato della view:", e);
|
|
5297
5297
|
}
|
|
5298
|
-
},
|
|
5298
|
+
}, Ot = () => {
|
|
5299
5299
|
try {
|
|
5300
|
-
let e = localStorage.getItem(
|
|
5300
|
+
let e = localStorage.getItem(Tt), t = localStorage.getItem(Et);
|
|
5301
5301
|
return {
|
|
5302
5302
|
viewType: e || "timeGridWeek",
|
|
5303
5303
|
date: t ? new Date(t) : /* @__PURE__ */ new Date()
|
|
@@ -5308,16 +5308,16 @@ var bt = {
|
|
|
5308
5308
|
date: /* @__PURE__ */ new Date()
|
|
5309
5309
|
};
|
|
5310
5310
|
}
|
|
5311
|
-
},
|
|
5311
|
+
}, kt = () => !!localStorage.getItem(Et), At = () => {
|
|
5312
5312
|
try {
|
|
5313
|
-
localStorage.removeItem(
|
|
5313
|
+
localStorage.removeItem(Tt), localStorage.removeItem(Et);
|
|
5314
5314
|
} catch (e) {
|
|
5315
5315
|
console.error("Errore nel pulire lo stato della view:", e);
|
|
5316
5316
|
}
|
|
5317
|
-
},
|
|
5318
|
-
let [c, d] = u(null), [f, m] = u(null), [h, ee] = u([]), [te, g] = u(!1), [ne, _] = u(!1), [re, v] = u(null), [y, ie] = u([]), [b,
|
|
5317
|
+
}, jt = t.Components.components.field, Mt = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
5318
|
+
let [c, d] = u(null), [f, m] = u(null), [h, ee] = u([]), [te, g] = u(!1), [ne, _] = u(!1), [re, v] = u(null), [y, ie] = u([]), [b, E] = u([]), [D, O] = u([]), [se, k] = u(null), [A, j] = u(null), [M, ce] = u(null), le = l(null), N = l(null);
|
|
5319
5319
|
o.language, p.locale(o.language), C.locale(o.language);
|
|
5320
|
-
function
|
|
5320
|
+
function P(e) {
|
|
5321
5321
|
if (!e || e.length === 0) return null;
|
|
5322
5322
|
let t = e.map((e) => ({
|
|
5323
5323
|
start: e.start_time,
|
|
@@ -5328,7 +5328,7 @@ var bt = {
|
|
|
5328
5328
|
latestEndTime: t.reduce((e, t) => t.end > e ? t.end : e, t[0].end)
|
|
5329
5329
|
};
|
|
5330
5330
|
}
|
|
5331
|
-
function
|
|
5331
|
+
function F(e) {
|
|
5332
5332
|
let t = e.map((e) => p(e.date).isoWeekday()), n = [
|
|
5333
5333
|
1,
|
|
5334
5334
|
2,
|
|
@@ -5340,32 +5340,32 @@ var bt = {
|
|
|
5340
5340
|
].filter((e) => !t.includes(e));
|
|
5341
5341
|
n.length > 0 ? N.current.setOption("hiddenDays", n) : N.current.setOption("hiddenDays", []);
|
|
5342
5342
|
}
|
|
5343
|
-
function
|
|
5343
|
+
function ue(e, t, n) {
|
|
5344
5344
|
let r = new URL(e), i = `${r.pathname.split("/").slice(0, 4).join("/")}/${t}/${n}`;
|
|
5345
5345
|
return `${r.origin}${i}${r.search}`;
|
|
5346
5346
|
}
|
|
5347
|
-
function
|
|
5347
|
+
function de(e, t, n) {
|
|
5348
5348
|
let r = new URL(e), i = `${r.pathname.split("/").slice(0, 4).join("/")}`;
|
|
5349
5349
|
return `${r.origin}${i}${r.search}&from_to=${t}&to_date=${n}`;
|
|
5350
5350
|
}
|
|
5351
|
-
function
|
|
5351
|
+
function fe(e, t, n) {
|
|
5352
5352
|
return `${R()}/api/availabilities/${e}/${t}?calendar_ids=${n}&available=true`;
|
|
5353
5353
|
}
|
|
5354
5354
|
let I = (e) => {
|
|
5355
|
-
|
|
5356
|
-
},
|
|
5357
|
-
let r = JSON.parse(e), i =
|
|
5358
|
-
if (t === "manual")
|
|
5355
|
+
O([]), E([]), n({}), e && E((c ?? []).filter((t) => t.date.startsWith(e)));
|
|
5356
|
+
}, pe = async (e, t) => {
|
|
5357
|
+
let r = JSON.parse(e), i = wt("SLOTS", r.date, r.calendar_ids);
|
|
5358
|
+
if (t === "manual") O([]), ce(null), v(null), n({});
|
|
5359
5359
|
else {
|
|
5360
|
-
let e =
|
|
5360
|
+
let e = Ct("SLOTS", i);
|
|
5361
5361
|
if (e) {
|
|
5362
|
-
|
|
5362
|
+
O(e);
|
|
5363
5363
|
return;
|
|
5364
5364
|
}
|
|
5365
5365
|
}
|
|
5366
5366
|
try {
|
|
5367
5367
|
let e = await window.FormioHelper.anonymousCall(`availabilities/${r.date}?calendar_ids=${r.calendar_ids}`), t = Array.isArray(e) ? e : e?.data ?? [];
|
|
5368
|
-
|
|
5368
|
+
St("SLOTS", i, t), O(t);
|
|
5369
5369
|
} catch (e) {
|
|
5370
5370
|
console.error("Errore nel caricamento degli slot:", e), S.fire({
|
|
5371
5371
|
icon: "error",
|
|
@@ -5373,13 +5373,13 @@ var bt = {
|
|
|
5373
5373
|
text: o.t("Errore nel caricamento degli orari")
|
|
5374
5374
|
});
|
|
5375
5375
|
}
|
|
5376
|
-
},
|
|
5376
|
+
}, L = (e) => {
|
|
5377
5377
|
let n = t?.dataValue?.id, r = n ? "PATCH" : "POST", i = n ? `meetings/${n}` : "meetings";
|
|
5378
5378
|
return window.FormioHelper.authenticatedRequest(r, i, e).catch((t) => {
|
|
5379
5379
|
if ((t?.response?.status === 404 || t?.status === 404) && r === "PATCH") return window.FormioHelper.authenticatedRequest("POST", "meetings", e);
|
|
5380
5380
|
throw t;
|
|
5381
5381
|
});
|
|
5382
|
-
},
|
|
5382
|
+
}, me = (e) => {
|
|
5383
5383
|
let r = JSON.parse(e), i = {
|
|
5384
5384
|
status: 6,
|
|
5385
5385
|
calendar: r.calendar_id,
|
|
@@ -5399,7 +5399,7 @@ var bt = {
|
|
|
5399
5399
|
calendar_group_office_id: t?.data?.user_group?.id,
|
|
5400
5400
|
calendar_group_place_id: t?.data?.place?.id
|
|
5401
5401
|
};
|
|
5402
|
-
|
|
5402
|
+
L(i).then((e) => {
|
|
5403
5403
|
v({
|
|
5404
5404
|
day: C(r.date).format("dddd, DD MMMM YYYY"),
|
|
5405
5405
|
startDate: r.start_time,
|
|
@@ -5428,7 +5428,7 @@ var bt = {
|
|
|
5428
5428
|
showConfirmButton: !1
|
|
5429
5429
|
});
|
|
5430
5430
|
});
|
|
5431
|
-
},
|
|
5431
|
+
}, he = (e) => {
|
|
5432
5432
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
5433
5433
|
return e.forEach((e) => {
|
|
5434
5434
|
let r = C(e.date), i = r.format("YYYY-MM");
|
|
@@ -5437,10 +5437,10 @@ var bt = {
|
|
|
5437
5437
|
label: r.format("MMMM YYYY").replace(/^\w/, (e) => e.toUpperCase())
|
|
5438
5438
|
}));
|
|
5439
5439
|
}), n;
|
|
5440
|
-
},
|
|
5441
|
-
let e = t?.root?.data?.place?.merge_availabilities ? t?.root?.data?.place?.merged_availabilities_link : null, r = p().format("YYYY-MM-DD"), i = p().add(1, "month").format("YYYY-MM-DD"), a = t?.root?.data?.place?.calendars[0]?.id || null, s = e ?
|
|
5440
|
+
}, ge = async () => {
|
|
5441
|
+
let e = t?.root?.data?.place?.merge_availabilities ? t?.root?.data?.place?.merged_availabilities_link : null, r = p().format("YYYY-MM-DD"), i = p().add(1, "month").format("YYYY-MM-DD"), a = t?.root?.data?.place?.calendars[0]?.id || null, s = e ? de(e, r, i) : fe(r, i, a), c = wt("AVAILABILITY", s), l = Ct("AVAILABILITY", c);
|
|
5442
5442
|
if (l) {
|
|
5443
|
-
d(l), ie(
|
|
5443
|
+
d(l), ie(he(l));
|
|
5444
5444
|
return;
|
|
5445
5445
|
} else n({});
|
|
5446
5446
|
g(!0);
|
|
@@ -5454,7 +5454,7 @@ var bt = {
|
|
|
5454
5454
|
});
|
|
5455
5455
|
return;
|
|
5456
5456
|
}
|
|
5457
|
-
|
|
5457
|
+
St("AVAILABILITY", c, e), d(e), ie(he(e));
|
|
5458
5458
|
} catch (e) {
|
|
5459
5459
|
g(!1), console.error("Errore nel caricamento disponibilità:", e);
|
|
5460
5460
|
}
|
|
@@ -5464,7 +5464,7 @@ var bt = {
|
|
|
5464
5464
|
let e = t?.dataValue ?? t?.getValue();
|
|
5465
5465
|
if (e?.from_time && e?.to_time && !C().isAfter(e?.draft_expiration)) {
|
|
5466
5466
|
let t = C(e.from_time).format("YYYY-MM");
|
|
5467
|
-
k(t), t &&
|
|
5467
|
+
k(t), t && E && (E(c.filter((e) => e.date.startsWith(t))), j(C(e.from_time).format("YYYY-MM-DD")));
|
|
5468
5468
|
} else e?.draft_expiration && C().isAfter(e?.draft_expiration) && S.fire({
|
|
5469
5469
|
icon: "warning",
|
|
5470
5470
|
title: o.t("warning"),
|
|
@@ -5473,50 +5473,57 @@ var bt = {
|
|
|
5473
5473
|
}
|
|
5474
5474
|
}, [c]), s(() => {
|
|
5475
5475
|
let e = t?.dataValue ?? t?.getValue();
|
|
5476
|
-
if (!y.length ||
|
|
5476
|
+
if (!y.length || se || e?.from_time || e?.to_time) return;
|
|
5477
5477
|
let n = y[0];
|
|
5478
5478
|
n && (k(n.value), I(n.value));
|
|
5479
5479
|
}, [
|
|
5480
5480
|
y,
|
|
5481
|
-
|
|
5481
|
+
se,
|
|
5482
5482
|
t?.dataValue
|
|
5483
5483
|
]), s(() => {
|
|
5484
5484
|
if (A && ne === !1) {
|
|
5485
5485
|
let e = t?.dataValue ?? t?.getValue();
|
|
5486
|
-
|
|
5486
|
+
pe(JSON.stringify({
|
|
5487
5487
|
date: A,
|
|
5488
5488
|
calendar_ids: e.calendar.id
|
|
5489
5489
|
}));
|
|
5490
5490
|
}
|
|
5491
5491
|
}, [A]);
|
|
5492
|
-
let
|
|
5492
|
+
let _e = () => window.innerWidth > 768 ? "timeGridWeek" : "timeGridDay";
|
|
5493
5493
|
s(() => {
|
|
5494
5494
|
let e = () => {
|
|
5495
5495
|
let e = N.current;
|
|
5496
5496
|
if (!e) return;
|
|
5497
|
-
let t =
|
|
5497
|
+
let t = _e();
|
|
5498
5498
|
t !== e.getView().type && e.setOption("view", t);
|
|
5499
5499
|
};
|
|
5500
5500
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
5501
5501
|
}, []), s(() => {
|
|
5502
5502
|
let e = t?.dataValue ?? t?.getValue();
|
|
5503
|
-
|
|
5503
|
+
D?.length && e?.from_time && (ce(C(e.from_time).format("HH:mm") + " - " + C(e.to_time).format("HH:mm")), v({
|
|
5504
5504
|
day: C(e.from_time).format("dddd D MMM YYYY"),
|
|
5505
5505
|
startDate: C(e.from_time).format("HH:mm"),
|
|
5506
5506
|
endDate: C(e.to_time).format("HH:mm")
|
|
5507
5507
|
}));
|
|
5508
|
-
}, [
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5508
|
+
}, [D]);
|
|
5509
|
+
async function z() {
|
|
5510
|
+
try {
|
|
5511
|
+
let e = t?.root?.data?.place?.calendars?.[0]?.id ?? "", n = await window.FormioHelper.anonymousCall(`availabilities/first-available-date?calendar_ids=${e}`);
|
|
5512
|
+
n?.date && Dt(_e(), new Date(n.date));
|
|
5513
|
+
} catch (e) {
|
|
5514
|
+
console.error("Errore nel recuperare la prima disponibilità:", e);
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
let ve = () => {
|
|
5518
|
+
let e = Ot();
|
|
5519
|
+
N.current = w(le.current, [oe], {
|
|
5512
5520
|
events: [],
|
|
5513
5521
|
buttonText: { today: o.t("Oggi") },
|
|
5514
5522
|
allDaySlot: !1,
|
|
5515
5523
|
firstDay: 1,
|
|
5516
5524
|
date: e.date,
|
|
5517
5525
|
slotEventOverlap: !1,
|
|
5518
|
-
view:
|
|
5519
|
-
eventInteractive: !0,
|
|
5526
|
+
view: _e(),
|
|
5520
5527
|
height: "400px",
|
|
5521
5528
|
views: {
|
|
5522
5529
|
timeGridWeek: {
|
|
@@ -5531,7 +5538,7 @@ var bt = {
|
|
|
5531
5538
|
}
|
|
5532
5539
|
},
|
|
5533
5540
|
datesSet: (e) => {
|
|
5534
|
-
|
|
5541
|
+
Dt(e.view.type, e.start);
|
|
5535
5542
|
},
|
|
5536
5543
|
eventClick({ event: e, el: r }) {
|
|
5537
5544
|
document.querySelectorAll(".ec-event").forEach((e) => {
|
|
@@ -5567,7 +5574,7 @@ var bt = {
|
|
|
5567
5574
|
calendar_group_office_id: t?.data?.user_group?.id,
|
|
5568
5575
|
calendar_group_place_id: t?.data?.place?.id
|
|
5569
5576
|
};
|
|
5570
|
-
|
|
5577
|
+
L(u).then((e) => {
|
|
5571
5578
|
let r;
|
|
5572
5579
|
!e || e === "" ? r = {
|
|
5573
5580
|
...u,
|
|
@@ -5596,7 +5603,7 @@ var bt = {
|
|
|
5596
5603
|
});
|
|
5597
5604
|
});
|
|
5598
5605
|
},
|
|
5599
|
-
viewDidMount:
|
|
5606
|
+
viewDidMount: ye,
|
|
5600
5607
|
eventDidMount: (e) => {
|
|
5601
5608
|
let { event: t, el: n } = e, r = t.extendedProps;
|
|
5602
5609
|
n.setAttribute("data-event-id", t.id + "-" + r.date + "-" + r.start_time);
|
|
@@ -5605,7 +5612,7 @@ var bt = {
|
|
|
5605
5612
|
g(e);
|
|
5606
5613
|
}
|
|
5607
5614
|
});
|
|
5608
|
-
},
|
|
5615
|
+
}, ye = (e) => {
|
|
5609
5616
|
t?.root?.data?.place && N.current.setOption("eventSources", [{ events: B }]);
|
|
5610
5617
|
};
|
|
5611
5618
|
async function B(e) {
|
|
@@ -5613,8 +5620,8 @@ var bt = {
|
|
|
5613
5620
|
N.current.setOption("events", []);
|
|
5614
5621
|
let n = p(e.start).format("YYYY-MM-DD"), r = new Date(e.end);
|
|
5615
5622
|
r.setDate(r.getDate() - 1);
|
|
5616
|
-
let i = p(r).format("YYYY-MM-DD"), a = t?.root?.data?.place?.merge_availabilities ? t?.root?.data?.place?.merged_availabilities_link : null, s = a ?
|
|
5617
|
-
if (l ? (u = l, g(!1)) : (u = await window.FormioHelper.fetchAPIUrlLimit(s),
|
|
5623
|
+
let i = p(r).format("YYYY-MM-DD"), a = t?.root?.data?.place?.merge_availabilities ? t?.root?.data?.place?.merged_availabilities_link : null, s = a ? ue(a, n, i) : fe(n, i, null), c = wt("AVAILABILITY", s), l = Ct("AVAILABILITY", c), u;
|
|
5624
|
+
if (l ? (u = l, g(!1)) : (u = await window.FormioHelper.fetchAPIUrlLimit(s), St("AVAILABILITY", c, u)), !u?.length) return S.fire({
|
|
5618
5625
|
icon: "warning",
|
|
5619
5626
|
title: o.t("warning"),
|
|
5620
5627
|
html: o.t("no_meetings")
|
|
@@ -5624,15 +5631,15 @@ var bt = {
|
|
|
5624
5631
|
allDay: !1,
|
|
5625
5632
|
start: `${e.date}T${e.start_time}:00`,
|
|
5626
5633
|
end: `${e.date}T${e.end_time}:00`,
|
|
5627
|
-
title:
|
|
5634
|
+
title: "",
|
|
5628
5635
|
editable: !1,
|
|
5629
5636
|
display: "auto",
|
|
5630
5637
|
color: "#ebeef0",
|
|
5631
5638
|
textColor: "#000",
|
|
5632
5639
|
className: "event-slot",
|
|
5633
5640
|
extendedProps: { ...e }
|
|
5634
|
-
})), f =
|
|
5635
|
-
return N.current.setOption("slotMinTime", f.earliestStartTime), N.current.setOption("slotMaxTime", f.latestEndTime),
|
|
5641
|
+
})), f = P(u);
|
|
5642
|
+
return N.current.setOption("slotMinTime", f.earliestStartTime), N.current.setOption("slotMaxTime", f.latestEndTime), F(u), bt(N.current, d), setTimeout(() => {
|
|
5636
5643
|
V(d);
|
|
5637
5644
|
}, 500), d;
|
|
5638
5645
|
} catch (e) {
|
|
@@ -5644,18 +5651,18 @@ var bt = {
|
|
|
5644
5651
|
async function a() {
|
|
5645
5652
|
try {
|
|
5646
5653
|
if (await window.FormioInstance?.formReady, i) return;
|
|
5647
|
-
if (!
|
|
5654
|
+
if (!le.current) {
|
|
5648
5655
|
console.warn("Elemento calendario non trovato");
|
|
5649
5656
|
return;
|
|
5650
5657
|
}
|
|
5651
5658
|
let r = t?.dataValue ?? t?.getValue();
|
|
5652
|
-
r && r?.draft_expiration && C().isAfter(r.draft_expiration) && (n({}),
|
|
5659
|
+
r && r?.draft_expiration && C().isAfter(r.draft_expiration) && (n({}), At()), t?.data?.service_data?.view_type === "calendar" || e.view === "calendar" ? N?.current || (kt() || await z(), ve()) : t?.data?.service_data?.view_type === "select" || e.view === "select" ? ge() : alert(o.t("Il componente non è configurato per la visualizzazione a calendario"));
|
|
5653
5660
|
} catch (e) {
|
|
5654
5661
|
console.error("Errore durante l'inizializzazione del calendario:", e);
|
|
5655
5662
|
}
|
|
5656
5663
|
}
|
|
5657
5664
|
return r = setTimeout(a, 500), () => {
|
|
5658
|
-
i = !0, r && clearTimeout(r), N.current &&= (
|
|
5665
|
+
i = !0, r && clearTimeout(r), N.current &&= (T(N.current), null);
|
|
5659
5666
|
};
|
|
5660
5667
|
}, [t?.root?.data?.place]);
|
|
5661
5668
|
function V(e) {
|
|
@@ -5674,7 +5681,7 @@ var bt = {
|
|
|
5674
5681
|
}));
|
|
5675
5682
|
}
|
|
5676
5683
|
return s(() => {
|
|
5677
|
-
document.querySelector(".formio-read-only") && ne === !1 ? _(!0) : (t?.data?.service_data?.view_type === "select"
|
|
5684
|
+
document.querySelector(".formio-read-only") && ne === !1 ? _(!0) : (t?.data?.service_data?.view_type === "select" && ge(), _(!1));
|
|
5678
5685
|
}, []), s(() => {
|
|
5679
5686
|
ne && setTimeout(() => {
|
|
5680
5687
|
let e = t?.dataValue ?? t?.getValue();
|
|
@@ -5691,7 +5698,7 @@ var bt = {
|
|
|
5691
5698
|
className: "it-list-wrapper",
|
|
5692
5699
|
children: /* @__PURE__ */ i("ul", {
|
|
5693
5700
|
className: "it-list",
|
|
5694
|
-
children: /* @__PURE__ */ i(
|
|
5701
|
+
children: /* @__PURE__ */ i(yt, {
|
|
5695
5702
|
day: C(f.from_time).format("dddd D MMM YYYY"),
|
|
5696
5703
|
i18next: o,
|
|
5697
5704
|
slot: `${C(f.from_time).format("HH:mm")} - ${C(f.to_time).format("HH:mm")}`
|
|
@@ -5702,7 +5709,7 @@ var bt = {
|
|
|
5702
5709
|
}) : /* @__PURE__ */ a("div", {
|
|
5703
5710
|
className: "",
|
|
5704
5711
|
children: [
|
|
5705
|
-
/* @__PURE__ */ i("div", { ref:
|
|
5712
|
+
/* @__PURE__ */ i("div", { ref: le }),
|
|
5706
5713
|
y.length > 0 ? /* @__PURE__ */ a(r, { children: [
|
|
5707
5714
|
/* @__PURE__ */ a(x, {
|
|
5708
5715
|
label: "Mese",
|
|
@@ -5713,14 +5720,14 @@ var bt = {
|
|
|
5713
5720
|
children: o.t("Scegli un'opzione")
|
|
5714
5721
|
}), y.map((e) => /* @__PURE__ */ i("option", {
|
|
5715
5722
|
value: e.value,
|
|
5716
|
-
selected: e.value ===
|
|
5723
|
+
selected: e.value === se,
|
|
5717
5724
|
children: e.label
|
|
5718
5725
|
}, e.value))]
|
|
5719
5726
|
}),
|
|
5720
5727
|
/* @__PURE__ */ a(x, {
|
|
5721
5728
|
label: "Giorno",
|
|
5722
5729
|
id: "selectDay",
|
|
5723
|
-
onChange: (e) =>
|
|
5730
|
+
onChange: (e) => pe(e, "manual"),
|
|
5724
5731
|
disabled: b.length === 0,
|
|
5725
5732
|
children: [/* @__PURE__ */ i("option", {
|
|
5726
5733
|
value: "",
|
|
@@ -5734,14 +5741,14 @@ var bt = {
|
|
|
5734
5741
|
/* @__PURE__ */ a(x, {
|
|
5735
5742
|
label: "Orario",
|
|
5736
5743
|
id: "selectSlot",
|
|
5737
|
-
onChange:
|
|
5738
|
-
disabled:
|
|
5744
|
+
onChange: me,
|
|
5745
|
+
disabled: D.length === 0,
|
|
5739
5746
|
children: [/* @__PURE__ */ i("option", {
|
|
5740
5747
|
value: "",
|
|
5741
5748
|
children: o.t("Scegli un'opzione")
|
|
5742
|
-
}),
|
|
5749
|
+
}), D.map((e) => /* @__PURE__ */ i("option", {
|
|
5743
5750
|
value: JSON.stringify(e),
|
|
5744
|
-
selected: e.start_time + " - " + e.end_time ===
|
|
5751
|
+
selected: e.start_time + " - " + e.end_time === M,
|
|
5745
5752
|
children: e.start_time + " - " + e.end_time
|
|
5746
5753
|
}, e.start_time + " - " + e.end_time))]
|
|
5747
5754
|
})
|
|
@@ -5785,7 +5792,7 @@ var bt = {
|
|
|
5785
5792
|
}) : null
|
|
5786
5793
|
]
|
|
5787
5794
|
}) });
|
|
5788
|
-
},
|
|
5795
|
+
}, Nt = class e extends jt {
|
|
5789
5796
|
constructor(e, t, n) {
|
|
5790
5797
|
super(e, t, n);
|
|
5791
5798
|
}
|
|
@@ -5800,9 +5807,9 @@ var bt = {
|
|
|
5800
5807
|
};
|
|
5801
5808
|
}
|
|
5802
5809
|
static schema() {
|
|
5803
|
-
return
|
|
5810
|
+
return jt.schema({ type: "calendar-advanced" });
|
|
5804
5811
|
}
|
|
5805
|
-
static editForm =
|
|
5812
|
+
static editForm = vt;
|
|
5806
5813
|
attach(e, t) {
|
|
5807
5814
|
return super.attach(e).then(() => {
|
|
5808
5815
|
this.loadRefs(this.element, { [`react-${this.id}`]: "single" });
|
|
@@ -5813,7 +5820,7 @@ var bt = {
|
|
|
5813
5820
|
className: "h6 mb-0",
|
|
5814
5821
|
children: this.component?.label || "Calendar Advanced"
|
|
5815
5822
|
})
|
|
5816
|
-
})), this) : (this.rootComponent.render(/* @__PURE__ */ i(
|
|
5823
|
+
})), this) : (this.rootComponent.render(/* @__PURE__ */ i(Mt, {
|
|
5817
5824
|
ref: t,
|
|
5818
5825
|
component: this.component,
|
|
5819
5826
|
value: this.dataValue,
|
|
@@ -5838,10 +5845,10 @@ var bt = {
|
|
|
5838
5845
|
render() {
|
|
5839
5846
|
return super.render(`<div ref="react-${this.id}"></div>`);
|
|
5840
5847
|
}
|
|
5841
|
-
},
|
|
5848
|
+
}, Pt = [{
|
|
5842
5849
|
key: "defaultValue",
|
|
5843
5850
|
ignore: !0
|
|
5844
|
-
}],
|
|
5851
|
+
}], Ft = [{
|
|
5845
5852
|
key: "placeholder",
|
|
5846
5853
|
ignore: !0
|
|
5847
5854
|
}, {
|
|
@@ -5855,7 +5862,7 @@ var bt = {
|
|
|
5855
5862
|
"azure",
|
|
5856
5863
|
"googledrive"
|
|
5857
5864
|
]] } }
|
|
5858
|
-
}],
|
|
5865
|
+
}], It = [
|
|
5859
5866
|
{
|
|
5860
5867
|
type: "select",
|
|
5861
5868
|
input: !0,
|
|
@@ -6112,7 +6119,7 @@ var bt = {
|
|
|
6112
6119
|
tooltip: "Numero massimo di file caricabilii, default è 100.",
|
|
6113
6120
|
weight: 40
|
|
6114
6121
|
}
|
|
6115
|
-
],
|
|
6122
|
+
], Lt = [{
|
|
6116
6123
|
key: "unique",
|
|
6117
6124
|
ignore: !0
|
|
6118
6125
|
}, {
|
|
@@ -6121,41 +6128,41 @@ var bt = {
|
|
|
6121
6128
|
}];
|
|
6122
6129
|
//#endregion
|
|
6123
6130
|
//#region src/customComponentFormio/FileSdc/SdcFile.form.js
|
|
6124
|
-
function
|
|
6131
|
+
function Rt(...e) {
|
|
6125
6132
|
return o.baseEditForm([
|
|
6126
6133
|
{
|
|
6127
6134
|
key: "display",
|
|
6128
|
-
components:
|
|
6135
|
+
components: Ft
|
|
6129
6136
|
},
|
|
6130
6137
|
{
|
|
6131
6138
|
key: "data",
|
|
6132
|
-
components:
|
|
6139
|
+
components: Pt
|
|
6133
6140
|
},
|
|
6134
6141
|
{
|
|
6135
6142
|
label: "File",
|
|
6136
6143
|
key: "file",
|
|
6137
6144
|
weight: 5,
|
|
6138
|
-
components:
|
|
6145
|
+
components: It
|
|
6139
6146
|
},
|
|
6140
6147
|
{
|
|
6141
6148
|
key: "validation",
|
|
6142
|
-
components:
|
|
6149
|
+
components: Lt
|
|
6143
6150
|
}
|
|
6144
6151
|
], ...e);
|
|
6145
6152
|
}
|
|
6146
6153
|
//#endregion
|
|
6147
6154
|
//#region node_modules/lodash/isArray.js
|
|
6148
|
-
var
|
|
6155
|
+
var zt = /* @__PURE__ */ I(((e, t) => {
|
|
6149
6156
|
t.exports = Array.isArray;
|
|
6150
|
-
})), Rt = /* @__PURE__ */ I(((e, t) => {
|
|
6151
|
-
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
6152
|
-
})), zt = /* @__PURE__ */ I(((e, t) => {
|
|
6153
|
-
var n = Rt(), r = typeof self == "object" && self && self.Object === Object && self;
|
|
6154
|
-
t.exports = n || r || Function("return this")();
|
|
6155
6157
|
})), Bt = /* @__PURE__ */ I(((e, t) => {
|
|
6156
|
-
t.exports =
|
|
6158
|
+
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
6157
6159
|
})), Vt = /* @__PURE__ */ I(((e, t) => {
|
|
6158
|
-
var n = Bt(), r =
|
|
6160
|
+
var n = Bt(), r = typeof self == "object" && self && self.Object === Object && self;
|
|
6161
|
+
t.exports = n || r || Function("return this")();
|
|
6162
|
+
})), Ht = /* @__PURE__ */ I(((e, t) => {
|
|
6163
|
+
t.exports = Vt().Symbol;
|
|
6164
|
+
})), Ut = /* @__PURE__ */ I(((e, t) => {
|
|
6165
|
+
var n = Ht(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
|
|
6159
6166
|
function s(e) {
|
|
6160
6167
|
var t = i.call(e, o), n = e[o];
|
|
6161
6168
|
try {
|
|
@@ -6166,55 +6173,55 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6166
6173
|
return r && (t ? e[o] = n : delete e[o]), s;
|
|
6167
6174
|
}
|
|
6168
6175
|
t.exports = s;
|
|
6169
|
-
})),
|
|
6176
|
+
})), Wt = /* @__PURE__ */ I(((e, t) => {
|
|
6170
6177
|
var n = Object.prototype.toString;
|
|
6171
6178
|
function r(e) {
|
|
6172
6179
|
return n.call(e);
|
|
6173
6180
|
}
|
|
6174
6181
|
t.exports = r;
|
|
6175
|
-
})),
|
|
6176
|
-
var n =
|
|
6182
|
+
})), Gt = /* @__PURE__ */ I(((e, t) => {
|
|
6183
|
+
var n = Ht(), r = Ut(), i = Wt(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
|
|
6177
6184
|
function c(e) {
|
|
6178
6185
|
return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
|
|
6179
6186
|
}
|
|
6180
6187
|
t.exports = c;
|
|
6181
|
-
})),
|
|
6188
|
+
})), Kt = /* @__PURE__ */ I(((e, t) => {
|
|
6182
6189
|
function n(e) {
|
|
6183
6190
|
return typeof e == "object" && !!e;
|
|
6184
6191
|
}
|
|
6185
6192
|
t.exports = n;
|
|
6186
|
-
})),
|
|
6187
|
-
var n =
|
|
6193
|
+
})), qt = /* @__PURE__ */ I(((e, t) => {
|
|
6194
|
+
var n = Gt(), r = Kt(), i = "[object Symbol]";
|
|
6188
6195
|
function a(e) {
|
|
6189
6196
|
return typeof e == "symbol" || r(e) && n(e) == i;
|
|
6190
6197
|
}
|
|
6191
6198
|
t.exports = a;
|
|
6192
|
-
})),
|
|
6193
|
-
var n =
|
|
6199
|
+
})), Jt = /* @__PURE__ */ I(((e, t) => {
|
|
6200
|
+
var n = zt(), r = qt(), i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a = /^\w*$/;
|
|
6194
6201
|
function o(e, t) {
|
|
6195
6202
|
if (n(e)) return !1;
|
|
6196
6203
|
var o = typeof e;
|
|
6197
6204
|
return o == "number" || o == "symbol" || o == "boolean" || e == null || r(e) ? !0 : a.test(e) || !i.test(e) || t != null && e in Object(t);
|
|
6198
6205
|
}
|
|
6199
6206
|
t.exports = o;
|
|
6200
|
-
})),
|
|
6207
|
+
})), Yt = /* @__PURE__ */ I(((e, t) => {
|
|
6201
6208
|
function n(e) {
|
|
6202
6209
|
var t = typeof e;
|
|
6203
6210
|
return e != null && (t == "object" || t == "function");
|
|
6204
6211
|
}
|
|
6205
6212
|
t.exports = n;
|
|
6206
|
-
})),
|
|
6207
|
-
var n =
|
|
6213
|
+
})), Xt = /* @__PURE__ */ I(((e, t) => {
|
|
6214
|
+
var n = Gt(), r = Yt(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
|
|
6208
6215
|
function c(e) {
|
|
6209
6216
|
if (!r(e)) return !1;
|
|
6210
6217
|
var t = n(e);
|
|
6211
6218
|
return t == a || t == o || t == i || t == s;
|
|
6212
6219
|
}
|
|
6213
6220
|
t.exports = c;
|
|
6214
|
-
})),
|
|
6215
|
-
t.exports =
|
|
6216
|
-
})),
|
|
6217
|
-
var n =
|
|
6221
|
+
})), Zt = /* @__PURE__ */ I(((e, t) => {
|
|
6222
|
+
t.exports = Vt()["__core-js_shared__"];
|
|
6223
|
+
})), Qt = /* @__PURE__ */ I(((e, t) => {
|
|
6224
|
+
var n = Zt(), r = function() {
|
|
6218
6225
|
var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
|
|
6219
6226
|
return e ? "Symbol(src)_1." + e : "";
|
|
6220
6227
|
}();
|
|
@@ -6222,7 +6229,7 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6222
6229
|
return !!r && r in e;
|
|
6223
6230
|
}
|
|
6224
6231
|
t.exports = i;
|
|
6225
|
-
})),
|
|
6232
|
+
})), $t = /* @__PURE__ */ I(((e, t) => {
|
|
6226
6233
|
var n = Function.prototype.toString;
|
|
6227
6234
|
function r(e) {
|
|
6228
6235
|
if (e != null) {
|
|
@@ -6236,40 +6243,40 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6236
6243
|
return "";
|
|
6237
6244
|
}
|
|
6238
6245
|
t.exports = r;
|
|
6239
|
-
})),
|
|
6240
|
-
var n =
|
|
6246
|
+
})), en = /* @__PURE__ */ I(((e, t) => {
|
|
6247
|
+
var n = Xt(), r = Qt(), i = Yt(), a = $t(), o = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, c = Function.prototype, l = Object.prototype, u = c.toString, d = l.hasOwnProperty, f = RegExp("^" + u.call(d).replace(o, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
6241
6248
|
function p(e) {
|
|
6242
6249
|
return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
|
|
6243
6250
|
}
|
|
6244
6251
|
t.exports = p;
|
|
6245
|
-
})),
|
|
6252
|
+
})), tn = /* @__PURE__ */ I(((e, t) => {
|
|
6246
6253
|
function n(e, t) {
|
|
6247
6254
|
return e?.[t];
|
|
6248
6255
|
}
|
|
6249
6256
|
t.exports = n;
|
|
6250
|
-
})),
|
|
6251
|
-
var n =
|
|
6257
|
+
})), nn = /* @__PURE__ */ I(((e, t) => {
|
|
6258
|
+
var n = en(), r = tn();
|
|
6252
6259
|
function i(e, t) {
|
|
6253
6260
|
var i = r(e, t);
|
|
6254
6261
|
return n(i) ? i : void 0;
|
|
6255
6262
|
}
|
|
6256
6263
|
t.exports = i;
|
|
6257
|
-
})),
|
|
6258
|
-
t.exports =
|
|
6259
|
-
})),
|
|
6260
|
-
var n =
|
|
6264
|
+
})), rn = /* @__PURE__ */ I(((e, t) => {
|
|
6265
|
+
t.exports = nn()(Object, "create");
|
|
6266
|
+
})), an = /* @__PURE__ */ I(((e, t) => {
|
|
6267
|
+
var n = rn();
|
|
6261
6268
|
function r() {
|
|
6262
6269
|
this.__data__ = n ? n(null) : {}, this.size = 0;
|
|
6263
6270
|
}
|
|
6264
6271
|
t.exports = r;
|
|
6265
|
-
})),
|
|
6272
|
+
})), on = /* @__PURE__ */ I(((e, t) => {
|
|
6266
6273
|
function n(e) {
|
|
6267
6274
|
var t = this.has(e) && delete this.__data__[e];
|
|
6268
6275
|
return this.size -= t ? 1 : 0, t;
|
|
6269
6276
|
}
|
|
6270
6277
|
t.exports = n;
|
|
6271
|
-
})),
|
|
6272
|
-
var n =
|
|
6278
|
+
})), sn = /* @__PURE__ */ I(((e, t) => {
|
|
6279
|
+
var n = rn(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
|
|
6273
6280
|
function a(e) {
|
|
6274
6281
|
var t = this.__data__;
|
|
6275
6282
|
if (n) {
|
|
@@ -6279,22 +6286,22 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6279
6286
|
return i.call(t, e) ? t[e] : void 0;
|
|
6280
6287
|
}
|
|
6281
6288
|
t.exports = a;
|
|
6282
|
-
})),
|
|
6283
|
-
var n =
|
|
6289
|
+
})), cn = /* @__PURE__ */ I(((e, t) => {
|
|
6290
|
+
var n = rn(), r = Object.prototype.hasOwnProperty;
|
|
6284
6291
|
function i(e) {
|
|
6285
6292
|
var t = this.__data__;
|
|
6286
6293
|
return n ? t[e] !== void 0 : r.call(t, e);
|
|
6287
6294
|
}
|
|
6288
6295
|
t.exports = i;
|
|
6289
|
-
})),
|
|
6290
|
-
var n =
|
|
6296
|
+
})), ln = /* @__PURE__ */ I(((e, t) => {
|
|
6297
|
+
var n = rn(), r = "__lodash_hash_undefined__";
|
|
6291
6298
|
function i(e, t) {
|
|
6292
6299
|
var i = this.__data__;
|
|
6293
6300
|
return this.size += this.has(e) ? 0 : 1, i[e] = n && t === void 0 ? r : t, this;
|
|
6294
6301
|
}
|
|
6295
6302
|
t.exports = i;
|
|
6296
|
-
})),
|
|
6297
|
-
var n =
|
|
6303
|
+
})), un = /* @__PURE__ */ I(((e, t) => {
|
|
6304
|
+
var n = an(), r = on(), i = sn(), a = cn(), o = ln();
|
|
6298
6305
|
function s(e) {
|
|
6299
6306
|
var t = -1, n = e == null ? 0 : e.length;
|
|
6300
6307
|
for (this.clear(); ++t < n;) {
|
|
@@ -6303,52 +6310,52 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6303
6310
|
}
|
|
6304
6311
|
}
|
|
6305
6312
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
6306
|
-
})),
|
|
6313
|
+
})), dn = /* @__PURE__ */ I(((e, t) => {
|
|
6307
6314
|
function n() {
|
|
6308
6315
|
this.__data__ = [], this.size = 0;
|
|
6309
6316
|
}
|
|
6310
6317
|
t.exports = n;
|
|
6311
|
-
})),
|
|
6318
|
+
})), fn = /* @__PURE__ */ I(((e, t) => {
|
|
6312
6319
|
function n(e, t) {
|
|
6313
6320
|
return e === t || e !== e && t !== t;
|
|
6314
6321
|
}
|
|
6315
6322
|
t.exports = n;
|
|
6316
|
-
})),
|
|
6317
|
-
var n =
|
|
6323
|
+
})), Y = /* @__PURE__ */ I(((e, t) => {
|
|
6324
|
+
var n = fn();
|
|
6318
6325
|
function r(e, t) {
|
|
6319
6326
|
for (var r = e.length; r--;) if (n(e[r][0], t)) return r;
|
|
6320
6327
|
return -1;
|
|
6321
6328
|
}
|
|
6322
6329
|
t.exports = r;
|
|
6323
|
-
})),
|
|
6324
|
-
var n =
|
|
6330
|
+
})), pn = /* @__PURE__ */ I(((e, t) => {
|
|
6331
|
+
var n = Y(), r = Array.prototype.splice;
|
|
6325
6332
|
function i(e) {
|
|
6326
6333
|
var t = this.__data__, i = n(t, e);
|
|
6327
6334
|
return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
|
|
6328
6335
|
}
|
|
6329
6336
|
t.exports = i;
|
|
6330
|
-
})),
|
|
6331
|
-
var n =
|
|
6337
|
+
})), mn = /* @__PURE__ */ I(((e, t) => {
|
|
6338
|
+
var n = Y();
|
|
6332
6339
|
function r(e) {
|
|
6333
6340
|
var t = this.__data__, r = n(t, e);
|
|
6334
6341
|
return r < 0 ? void 0 : t[r][1];
|
|
6335
6342
|
}
|
|
6336
6343
|
t.exports = r;
|
|
6337
|
-
})),
|
|
6338
|
-
var n =
|
|
6344
|
+
})), hn = /* @__PURE__ */ I(((e, t) => {
|
|
6345
|
+
var n = Y();
|
|
6339
6346
|
function r(e) {
|
|
6340
6347
|
return n(this.__data__, e) > -1;
|
|
6341
6348
|
}
|
|
6342
6349
|
t.exports = r;
|
|
6343
|
-
})),
|
|
6344
|
-
var n =
|
|
6350
|
+
})), gn = /* @__PURE__ */ I(((e, t) => {
|
|
6351
|
+
var n = Y();
|
|
6345
6352
|
function r(e, t) {
|
|
6346
6353
|
var r = this.__data__, i = n(r, e);
|
|
6347
6354
|
return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
|
|
6348
6355
|
}
|
|
6349
6356
|
t.exports = r;
|
|
6350
|
-
})),
|
|
6351
|
-
var n =
|
|
6357
|
+
})), _n = /* @__PURE__ */ I(((e, t) => {
|
|
6358
|
+
var n = dn(), r = pn(), i = mn(), a = hn(), o = gn();
|
|
6352
6359
|
function s(e) {
|
|
6353
6360
|
var t = -1, n = e == null ? 0 : e.length;
|
|
6354
6361
|
for (this.clear(); ++t < n;) {
|
|
@@ -6357,10 +6364,10 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6357
6364
|
}
|
|
6358
6365
|
}
|
|
6359
6366
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
6360
|
-
})),
|
|
6361
|
-
t.exports =
|
|
6362
|
-
})),
|
|
6363
|
-
var n =
|
|
6367
|
+
})), vn = /* @__PURE__ */ I(((e, t) => {
|
|
6368
|
+
t.exports = nn()(Vt(), "Map");
|
|
6369
|
+
})), yn = /* @__PURE__ */ I(((e, t) => {
|
|
6370
|
+
var n = un(), r = _n(), i = vn();
|
|
6364
6371
|
function a() {
|
|
6365
6372
|
this.size = 0, this.__data__ = {
|
|
6366
6373
|
hash: new n(),
|
|
@@ -6369,47 +6376,47 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6369
6376
|
};
|
|
6370
6377
|
}
|
|
6371
6378
|
t.exports = a;
|
|
6372
|
-
})),
|
|
6379
|
+
})), bn = /* @__PURE__ */ I(((e, t) => {
|
|
6373
6380
|
function n(e) {
|
|
6374
6381
|
var t = typeof e;
|
|
6375
6382
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
6376
6383
|
}
|
|
6377
6384
|
t.exports = n;
|
|
6378
|
-
})),
|
|
6379
|
-
var n =
|
|
6385
|
+
})), xn = /* @__PURE__ */ I(((e, t) => {
|
|
6386
|
+
var n = bn();
|
|
6380
6387
|
function r(e, t) {
|
|
6381
6388
|
var r = e.__data__;
|
|
6382
6389
|
return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
6383
6390
|
}
|
|
6384
6391
|
t.exports = r;
|
|
6385
|
-
})),
|
|
6386
|
-
var n =
|
|
6392
|
+
})), Sn = /* @__PURE__ */ I(((e, t) => {
|
|
6393
|
+
var n = xn();
|
|
6387
6394
|
function r(e) {
|
|
6388
6395
|
var t = n(this, e).delete(e);
|
|
6389
6396
|
return this.size -= t ? 1 : 0, t;
|
|
6390
6397
|
}
|
|
6391
6398
|
t.exports = r;
|
|
6392
|
-
})),
|
|
6393
|
-
var n =
|
|
6399
|
+
})), Cn = /* @__PURE__ */ I(((e, t) => {
|
|
6400
|
+
var n = xn();
|
|
6394
6401
|
function r(e) {
|
|
6395
6402
|
return n(this, e).get(e);
|
|
6396
6403
|
}
|
|
6397
6404
|
t.exports = r;
|
|
6398
|
-
})),
|
|
6399
|
-
var n =
|
|
6405
|
+
})), wn = /* @__PURE__ */ I(((e, t) => {
|
|
6406
|
+
var n = xn();
|
|
6400
6407
|
function r(e) {
|
|
6401
6408
|
return n(this, e).has(e);
|
|
6402
6409
|
}
|
|
6403
6410
|
t.exports = r;
|
|
6404
|
-
})),
|
|
6405
|
-
var n =
|
|
6411
|
+
})), Tn = /* @__PURE__ */ I(((e, t) => {
|
|
6412
|
+
var n = xn();
|
|
6406
6413
|
function r(e, t) {
|
|
6407
6414
|
var r = n(this, e), i = r.size;
|
|
6408
6415
|
return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
|
|
6409
6416
|
}
|
|
6410
6417
|
t.exports = r;
|
|
6411
|
-
})),
|
|
6412
|
-
var n =
|
|
6418
|
+
})), En = /* @__PURE__ */ I(((e, t) => {
|
|
6419
|
+
var n = yn(), r = Sn(), i = Cn(), a = wn(), o = Tn();
|
|
6413
6420
|
function s(e) {
|
|
6414
6421
|
var t = -1, n = e == null ? 0 : e.length;
|
|
6415
6422
|
for (this.clear(); ++t < n;) {
|
|
@@ -6418,8 +6425,8 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6418
6425
|
}
|
|
6419
6426
|
}
|
|
6420
6427
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
6421
|
-
})),
|
|
6422
|
-
var n =
|
|
6428
|
+
})), Dn = /* @__PURE__ */ I(((e, t) => {
|
|
6429
|
+
var n = En(), r = "Expected a function";
|
|
6423
6430
|
function i(e, t) {
|
|
6424
6431
|
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(r);
|
|
6425
6432
|
var a = function() {
|
|
@@ -6431,8 +6438,8 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6431
6438
|
return a.cache = new (i.Cache || n)(), a;
|
|
6432
6439
|
}
|
|
6433
6440
|
i.Cache = n, t.exports = i;
|
|
6434
|
-
})),
|
|
6435
|
-
var n =
|
|
6441
|
+
})), On = /* @__PURE__ */ I(((e, t) => {
|
|
6442
|
+
var n = Dn(), r = 500;
|
|
6436
6443
|
function i(e) {
|
|
6437
6444
|
var t = n(e, function(e) {
|
|
6438
6445
|
return i.size === r && i.clear(), e;
|
|
@@ -6440,22 +6447,22 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6440
6447
|
return t;
|
|
6441
6448
|
}
|
|
6442
6449
|
t.exports = i;
|
|
6443
|
-
})),
|
|
6444
|
-
var n =
|
|
6450
|
+
})), kn = /* @__PURE__ */ I(((e, t) => {
|
|
6451
|
+
var n = On(), r = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, i = /\\(\\)?/g;
|
|
6445
6452
|
t.exports = n(function(e) {
|
|
6446
6453
|
var t = [];
|
|
6447
6454
|
return e.charCodeAt(0) === 46 && t.push(""), e.replace(r, function(e, n, r, a) {
|
|
6448
6455
|
t.push(r ? a.replace(i, "$1") : n || e);
|
|
6449
6456
|
}), t;
|
|
6450
6457
|
});
|
|
6451
|
-
})),
|
|
6458
|
+
})), An = /* @__PURE__ */ I(((e, t) => {
|
|
6452
6459
|
function n(e, t) {
|
|
6453
6460
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
6454
6461
|
return i;
|
|
6455
6462
|
}
|
|
6456
6463
|
t.exports = n;
|
|
6457
|
-
})),
|
|
6458
|
-
var n =
|
|
6464
|
+
})), jn = /* @__PURE__ */ I(((e, t) => {
|
|
6465
|
+
var n = Ht(), r = An(), i = zt(), a = qt(), o = Infinity, s = n ? n.prototype : void 0, c = s ? s.toString : void 0;
|
|
6459
6466
|
function l(e) {
|
|
6460
6467
|
if (typeof e == "string") return e;
|
|
6461
6468
|
if (i(e)) return r(e, l) + "";
|
|
@@ -6464,51 +6471,51 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6464
6471
|
return t == "0" && 1 / e == -o ? "-0" : t;
|
|
6465
6472
|
}
|
|
6466
6473
|
t.exports = l;
|
|
6467
|
-
})),
|
|
6468
|
-
var n =
|
|
6474
|
+
})), Mn = /* @__PURE__ */ I(((e, t) => {
|
|
6475
|
+
var n = jn();
|
|
6469
6476
|
function r(e) {
|
|
6470
6477
|
return e == null ? "" : n(e);
|
|
6471
6478
|
}
|
|
6472
6479
|
t.exports = r;
|
|
6473
|
-
})),
|
|
6474
|
-
var n =
|
|
6480
|
+
})), Nn = /* @__PURE__ */ I(((e, t) => {
|
|
6481
|
+
var n = zt(), r = Jt(), i = kn(), a = Mn();
|
|
6475
6482
|
function o(e, t) {
|
|
6476
6483
|
return n(e) ? e : r(e, t) ? [e] : i(a(e));
|
|
6477
6484
|
}
|
|
6478
6485
|
t.exports = o;
|
|
6479
|
-
})),
|
|
6480
|
-
var n =
|
|
6486
|
+
})), Pn = /* @__PURE__ */ I(((e, t) => {
|
|
6487
|
+
var n = qt(), r = Infinity;
|
|
6481
6488
|
function i(e) {
|
|
6482
6489
|
if (typeof e == "string" || n(e)) return e;
|
|
6483
6490
|
var t = e + "";
|
|
6484
6491
|
return t == "0" && 1 / e == -r ? "-0" : t;
|
|
6485
6492
|
}
|
|
6486
6493
|
t.exports = i;
|
|
6487
|
-
})),
|
|
6488
|
-
var n =
|
|
6494
|
+
})), Fn = /* @__PURE__ */ I(((e, t) => {
|
|
6495
|
+
var n = Nn(), r = Pn();
|
|
6489
6496
|
function i(e, t) {
|
|
6490
6497
|
t = n(t, e);
|
|
6491
6498
|
for (var i = 0, a = t.length; e != null && i < a;) e = e[r(t[i++])];
|
|
6492
6499
|
return i && i == a ? e : void 0;
|
|
6493
6500
|
}
|
|
6494
6501
|
t.exports = i;
|
|
6495
|
-
})),
|
|
6496
|
-
var n =
|
|
6502
|
+
})), In = /* @__PURE__ */ I(((e, t) => {
|
|
6503
|
+
var n = Fn();
|
|
6497
6504
|
function r(e, t, r) {
|
|
6498
6505
|
var i = e == null ? void 0 : n(e, t);
|
|
6499
6506
|
return i === void 0 ? r : i;
|
|
6500
6507
|
}
|
|
6501
6508
|
t.exports = r;
|
|
6502
|
-
})),
|
|
6503
|
-
var n =
|
|
6509
|
+
})), Ln = /* @__PURE__ */ I(((e, t) => {
|
|
6510
|
+
var n = nn();
|
|
6504
6511
|
t.exports = function() {
|
|
6505
6512
|
try {
|
|
6506
6513
|
var e = n(Object, "defineProperty");
|
|
6507
6514
|
return e({}, "", {}), e;
|
|
6508
6515
|
} catch {}
|
|
6509
6516
|
}();
|
|
6510
|
-
})),
|
|
6511
|
-
var n =
|
|
6517
|
+
})), Rn = /* @__PURE__ */ I(((e, t) => {
|
|
6518
|
+
var n = Ln();
|
|
6512
6519
|
function r(e, t, r) {
|
|
6513
6520
|
t == "__proto__" && n ? n(e, t, {
|
|
6514
6521
|
configurable: !0,
|
|
@@ -6518,22 +6525,22 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6518
6525
|
}) : e[t] = r;
|
|
6519
6526
|
}
|
|
6520
6527
|
t.exports = r;
|
|
6521
|
-
})),
|
|
6522
|
-
var n =
|
|
6528
|
+
})), zn = /* @__PURE__ */ I(((e, t) => {
|
|
6529
|
+
var n = Rn(), r = fn(), i = Object.prototype.hasOwnProperty;
|
|
6523
6530
|
function a(e, t, a) {
|
|
6524
6531
|
var o = e[t];
|
|
6525
6532
|
(!(i.call(e, t) && r(o, a)) || a === void 0 && !(t in e)) && n(e, t, a);
|
|
6526
6533
|
}
|
|
6527
6534
|
t.exports = a;
|
|
6528
|
-
})),
|
|
6535
|
+
})), Bn = /* @__PURE__ */ I(((e, t) => {
|
|
6529
6536
|
var n = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
|
|
6530
6537
|
function i(e, t) {
|
|
6531
6538
|
var i = typeof e;
|
|
6532
6539
|
return t ??= n, !!t && (i == "number" || i != "symbol" && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
6533
6540
|
}
|
|
6534
6541
|
t.exports = i;
|
|
6535
|
-
})),
|
|
6536
|
-
var n =
|
|
6542
|
+
})), Vn = /* @__PURE__ */ I(((e, t) => {
|
|
6543
|
+
var n = zn(), r = Nn(), i = Bn(), a = Yt(), o = Pn();
|
|
6537
6544
|
function s(e, t, s, c) {
|
|
6538
6545
|
if (!a(e)) return e;
|
|
6539
6546
|
t = r(t, e);
|
|
@@ -6549,15 +6556,15 @@ var Lt = /* @__PURE__ */ I(((e, t) => {
|
|
|
6549
6556
|
return e;
|
|
6550
6557
|
}
|
|
6551
6558
|
t.exports = s;
|
|
6552
|
-
})),
|
|
6553
|
-
var n =
|
|
6559
|
+
})), Hn = /* @__PURE__ */ L((/* @__PURE__ */ I(((e, t) => {
|
|
6560
|
+
var n = Vn();
|
|
6554
6561
|
function r(e, t, r) {
|
|
6555
6562
|
return e == null ? e : n(e, t, r);
|
|
6556
6563
|
}
|
|
6557
6564
|
t.exports = r;
|
|
6558
|
-
})))(), 1),
|
|
6565
|
+
})))(), 1), Un = /* @__PURE__ */ L(In(), 1);
|
|
6559
6566
|
document.documentElement.lang.toString();
|
|
6560
|
-
var
|
|
6567
|
+
var Wn = class {
|
|
6561
6568
|
constructor() {
|
|
6562
6569
|
this.token = null, this.basePath = null, this.init();
|
|
6563
6570
|
}
|
|
@@ -6566,7 +6573,7 @@ var Hn = class {
|
|
|
6566
6573
|
}
|
|
6567
6574
|
async getSessionAuthToken() {
|
|
6568
6575
|
let e = this;
|
|
6569
|
-
await
|
|
6576
|
+
await D.get(e.basePath + "/api/session-auth").then((t) => {
|
|
6570
6577
|
e.token = t.data.token;
|
|
6571
6578
|
}).catch((e) => {
|
|
6572
6579
|
S.fire("'error_message_detail", "'auth_error'", "error");
|
|
@@ -6575,12 +6582,12 @@ var Hn = class {
|
|
|
6575
6582
|
getSessionAuthTokenPromise() {
|
|
6576
6583
|
let e = this;
|
|
6577
6584
|
return new Promise(async (t, n) => {
|
|
6578
|
-
|
|
6585
|
+
at("auth-token") ? t({ token: at("auth-token") }) : await D.get(e.basePath + "/api/session-auth?with-cookie=true", {
|
|
6579
6586
|
withCredentials: !0,
|
|
6580
6587
|
headers: { "Content-Type": "application/json; charset=utf-8" }
|
|
6581
6588
|
}).then((e) => {
|
|
6582
6589
|
let t = k(e.data.token);
|
|
6583
|
-
t.exp &&
|
|
6590
|
+
t.exp && ot("auth-token", e.data.token, t.exp);
|
|
6584
6591
|
}).catch((e) => {
|
|
6585
6592
|
console.log(e);
|
|
6586
6593
|
});
|
|
@@ -6594,10 +6601,10 @@ var Hn = class {
|
|
|
6594
6601
|
this.token = t.token, e(this.token);
|
|
6595
6602
|
});
|
|
6596
6603
|
}
|
|
6597
|
-
},
|
|
6598
|
-
document.querySelector("widget-formio") !== null && (
|
|
6599
|
-
var
|
|
6600
|
-
let [c, l] = u([]), [d, f] = u(/* @__PURE__ */ new Map()), [p, m] = u(!1), ee = new
|
|
6604
|
+
}, Gn = t.Components.components.file, Kn = null;
|
|
6605
|
+
document.querySelector("widget-formio") !== null && (Kn = document.querySelector("widget-formio").getAttribute("signature-check-ws-url"));
|
|
6606
|
+
var qn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
6607
|
+
let [c, l] = u([]), [d, f] = u(/* @__PURE__ */ new Map()), [p, m] = u(!1), ee = new Wn();
|
|
6601
6608
|
s(() => {
|
|
6602
6609
|
ee.getSessionAuthTokenPromise();
|
|
6603
6610
|
}, []);
|
|
@@ -6611,13 +6618,13 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6611
6618
|
});
|
|
6612
6619
|
};
|
|
6613
6620
|
function ne(t) {
|
|
6614
|
-
return t.size > (
|
|
6621
|
+
return t.size > (T(e.fileMaxSize) || T("1GB")) ? {
|
|
6615
6622
|
code: "size-files",
|
|
6616
6623
|
message: `${o.t("I file non possono superare le dimensioni di")} ${e.fileMaxSize ? e.fileMaxSize : "1GB"}`
|
|
6617
6624
|
} : c.length >= (e.maxFiles ? parseInt(e.maxFiles) : e.multiple ? 100 : 1) ? {
|
|
6618
6625
|
code: "too-many-files",
|
|
6619
6626
|
message: `${o.t("Puoi caricare massimo ")} ${e.maxFiles || 100} ${o.t("file")}`
|
|
6620
|
-
} : t.size <
|
|
6627
|
+
} : t.size < T(e.fileMinSize) ? {
|
|
6621
6628
|
code: "file-too-small",
|
|
6622
6629
|
message: `${o.t("I file devono avare una dimensione superiore a ")} ${e.fileMinSize}`
|
|
6623
6630
|
} : null;
|
|
@@ -6625,7 +6632,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6625
6632
|
function _() {
|
|
6626
6633
|
if (e.filePattern) {
|
|
6627
6634
|
let t = e.filePattern.split(",").map((e) => e.trim()).filter(Boolean).reduce((e, t) => {
|
|
6628
|
-
let n = t.startsWith(".") ? t : `.${t}`, r =
|
|
6635
|
+
let n = t.startsWith(".") ? t : `.${t}`, r = O.getType(n);
|
|
6629
6636
|
return r ? (e[r] || (e[r] = []), e[r].push(n), e) : e;
|
|
6630
6637
|
}, {});
|
|
6631
6638
|
return Object.keys(t).length ? t : void 0;
|
|
@@ -6634,7 +6641,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6634
6641
|
let re = (e) => {
|
|
6635
6642
|
let t = {};
|
|
6636
6643
|
return t.originalName = e.originalName ? e.originalName : e.name, t.name = e.name, t.url = e.url, t.data = e.data, t.signature_validation = e.signature_validation, t.mime_type = e.mime_type, t.storage = "url", t.size = e.size, t;
|
|
6637
|
-
}, { getRootProps: v, getInputProps: y, fileRejections: b, isDragActive: x, open: ae } =
|
|
6644
|
+
}, { getRootProps: v, getInputProps: y, fileRejections: b, isDragActive: x, open: ae } = E({
|
|
6638
6645
|
onDrop: (e) => {
|
|
6639
6646
|
e.map((e) => {
|
|
6640
6647
|
w(e).then((e) => {});
|
|
@@ -6649,7 +6656,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6649
6656
|
method: "DELETE",
|
|
6650
6657
|
headers: {
|
|
6651
6658
|
"Content-Type": "application/json; charset=utf-8",
|
|
6652
|
-
Authorization: `Bearer ${
|
|
6659
|
+
Authorization: `Bearer ${at("auth-token")}`
|
|
6653
6660
|
},
|
|
6654
6661
|
strictErrors: !0
|
|
6655
6662
|
}).then(() => {
|
|
@@ -6688,13 +6695,13 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6688
6695
|
protocol_required: e.protocol_required,
|
|
6689
6696
|
size: r.size
|
|
6690
6697
|
};
|
|
6691
|
-
return await
|
|
6698
|
+
return await D.post(a, s, {
|
|
6692
6699
|
maxContentLength: Infinity,
|
|
6693
6700
|
maxBodyLength: Infinity
|
|
6694
6701
|
}).then(async (a) => (i = a.data.id, r.url = R() + "/it/allegati/" + i, r.storage = "url", r.mime_type = r.type, r.protocol_required = e.protocol_required, r.data = {
|
|
6695
6702
|
...a.data,
|
|
6696
6703
|
baseUrl: R() + "/it/allegati/" + i
|
|
6697
|
-
}, te(i, r), await
|
|
6704
|
+
}, te(i, r), await D.put(a.data.uri, r, {
|
|
6698
6705
|
onUploadProgress: (e) => {
|
|
6699
6706
|
let t = Math.round(e.loaded * 100 / e.total);
|
|
6700
6707
|
f((e) => {
|
|
@@ -6707,7 +6714,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6707
6714
|
headers: { "Content-Type": "multipart/form-data" }
|
|
6708
6715
|
}).then(async (a) => {
|
|
6709
6716
|
let s = a.headers.etag.replace(/\\|"/gi, "") || null;
|
|
6710
|
-
return await
|
|
6717
|
+
return await D.put(R() + "/it/upload/" + i, {
|
|
6711
6718
|
file_hash: s,
|
|
6712
6719
|
check_signature: e.check_signature
|
|
6713
6720
|
}).then(async (a) => {
|
|
@@ -6719,7 +6726,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6719
6726
|
if (l((e) => {
|
|
6720
6727
|
let t = [...e, re(r)];
|
|
6721
6728
|
return s = t.length - 1, n(t), t;
|
|
6722
|
-
}), e.check_signature && a.data.url &&
|
|
6729
|
+
}), e.check_signature && a.data.url && Kn) return await D.post(Kn, {
|
|
6723
6730
|
url: a.data.url,
|
|
6724
6731
|
content: null
|
|
6725
6732
|
}, { headers: { "Content-Type": "application/json" } }).then((e) => {
|
|
@@ -6770,7 +6777,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6770
6777
|
});
|
|
6771
6778
|
});
|
|
6772
6779
|
}
|
|
6773
|
-
function
|
|
6780
|
+
function T(e) {
|
|
6774
6781
|
if (typeof e == "string") {
|
|
6775
6782
|
if (e.search(/kb/i) === e.length - 2) return parseFloat(e.substring(0, e.length - 2) * 1024);
|
|
6776
6783
|
if (e.search(/mb/i) === e.length - 2) return parseFloat(e.substring(0, e.length - 2) * 1024 * 1024);
|
|
@@ -6781,7 +6788,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6781
6788
|
}
|
|
6782
6789
|
return e;
|
|
6783
6790
|
}
|
|
6784
|
-
function
|
|
6791
|
+
function k(e, t = 2) {
|
|
6785
6792
|
if (!+e) return "0 Bytes";
|
|
6786
6793
|
let n = 1024, r = t < 0 ? 0 : t, i = [
|
|
6787
6794
|
"Bytes",
|
|
@@ -6818,7 +6825,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6818
6825
|
e.name,
|
|
6819
6826
|
/* @__PURE__ */ i("span", {
|
|
6820
6827
|
className: "upload-file-weight",
|
|
6821
|
-
children:
|
|
6828
|
+
children: k(e.size)
|
|
6822
6829
|
})
|
|
6823
6830
|
] })]
|
|
6824
6831
|
}, e.size + t)), c.length < 1 && /* @__PURE__ */ a("li", {
|
|
@@ -6885,7 +6892,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6885
6892
|
})]
|
|
6886
6893
|
})]
|
|
6887
6894
|
}),
|
|
6888
|
-
/* @__PURE__ */ i("div", { dangerouslySetInnerHTML: { __html:
|
|
6895
|
+
/* @__PURE__ */ i("div", { dangerouslySetInnerHTML: { __html: se.sanitize(e.description || "") } }),
|
|
6889
6896
|
/* @__PURE__ */ a("ul", {
|
|
6890
6897
|
className: "upload-file-list my-0",
|
|
6891
6898
|
children: [c.map((e, t) => /* @__PURE__ */ a("li", {
|
|
@@ -6906,7 +6913,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6906
6913
|
e.name,
|
|
6907
6914
|
/* @__PURE__ */ i("span", {
|
|
6908
6915
|
className: "upload-file-weight",
|
|
6909
|
-
children:
|
|
6916
|
+
children: k(e.size)
|
|
6910
6917
|
})
|
|
6911
6918
|
] }),
|
|
6912
6919
|
/* @__PURE__ */ i(h, {
|
|
@@ -6939,7 +6946,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6939
6946
|
t.name,
|
|
6940
6947
|
/* @__PURE__ */ i("span", {
|
|
6941
6948
|
className: "upload-file-weight",
|
|
6942
|
-
children:
|
|
6949
|
+
children: k(t.size)
|
|
6943
6950
|
})
|
|
6944
6951
|
] }),
|
|
6945
6952
|
/* @__PURE__ */ i(ie, { value: Number(t?.progress) || 0 })
|
|
@@ -6970,7 +6977,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6970
6977
|
t.name,
|
|
6971
6978
|
/* @__PURE__ */ i("span", {
|
|
6972
6979
|
className: "upload-file-weight",
|
|
6973
|
-
children:
|
|
6980
|
+
children: k(t.size)
|
|
6974
6981
|
})
|
|
6975
6982
|
]
|
|
6976
6983
|
})]
|
|
@@ -6994,7 +7001,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6994
7001
|
})
|
|
6995
7002
|
})
|
|
6996
7003
|
] }) });
|
|
6997
|
-
},
|
|
7004
|
+
}, Jn = class e extends Gn {
|
|
6998
7005
|
constructor(e, t, n) {
|
|
6999
7006
|
super({
|
|
7000
7007
|
...e,
|
|
@@ -7018,16 +7025,16 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
7018
7025
|
if (super.init(), this.component?.multiple && !Array.isArray(this.getCurrentValue())) {
|
|
7019
7026
|
this.dataValue = [];
|
|
7020
7027
|
let e = this.path || this.component?.key;
|
|
7021
|
-
e && this.rootValue && (0,
|
|
7028
|
+
e && this.rootValue && (0, Hn.default)(this.rootValue, e, []);
|
|
7022
7029
|
}
|
|
7023
7030
|
}
|
|
7024
7031
|
static schema() {
|
|
7025
|
-
return
|
|
7032
|
+
return Gn.schema({
|
|
7026
7033
|
type: "sdcfile",
|
|
7027
7034
|
modelType: "array"
|
|
7028
7035
|
});
|
|
7029
7036
|
}
|
|
7030
|
-
static editForm =
|
|
7037
|
+
static editForm = Rt;
|
|
7031
7038
|
getI18next() {
|
|
7032
7039
|
return this.i18next && typeof this.i18next.t == "function" ? this.i18next : {
|
|
7033
7040
|
language: this.options?.language || document?.documentElement?.lang || "it",
|
|
@@ -7055,7 +7062,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
7055
7062
|
}));
|
|
7056
7063
|
return;
|
|
7057
7064
|
}
|
|
7058
|
-
this.rootComponent.render(/* @__PURE__ */ i(
|
|
7065
|
+
this.rootComponent.render(/* @__PURE__ */ i(qn, {
|
|
7059
7066
|
component: this.component,
|
|
7060
7067
|
current: this,
|
|
7061
7068
|
i18next: this.getI18next(),
|
|
@@ -7074,16 +7081,16 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
7074
7081
|
updateValueFromReact(e, t = { modified: !0 }) {
|
|
7075
7082
|
let n = this.normalizeValue(e, t), r = this.updateValue(n, t), i = this.path || this.component?.key;
|
|
7076
7083
|
if (i && this.rootValue) {
|
|
7077
|
-
let e = (0,
|
|
7078
|
-
this.isEqual(e, n) || (0,
|
|
7084
|
+
let e = (0, Un.default)(this.rootValue, i);
|
|
7085
|
+
this.isEqual(e, n) || (0, Hn.default)(this.rootValue, i, n);
|
|
7079
7086
|
}
|
|
7080
7087
|
return r;
|
|
7081
7088
|
}
|
|
7082
7089
|
setValue(e, t = {}) {
|
|
7083
7090
|
let n = this.normalizeValue(e, t), r = super.setValue(n, t), i = this.path || this.component?.key;
|
|
7084
7091
|
if (i && this.rootValue) {
|
|
7085
|
-
let e = (0,
|
|
7086
|
-
this.isEqual(e, n) || (0,
|
|
7092
|
+
let e = (0, Un.default)(this.rootValue, i);
|
|
7093
|
+
this.isEqual(e, n) || (0, Hn.default)(this.rootValue, i, n);
|
|
7087
7094
|
}
|
|
7088
7095
|
return r;
|
|
7089
7096
|
}
|
|
@@ -7101,7 +7108,7 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
7101
7108
|
return this.getCurrentValue();
|
|
7102
7109
|
}
|
|
7103
7110
|
getCurrentValue() {
|
|
7104
|
-
let e = super.getValue(), t = this.path || this.component?.key, n = t && this.rootValue ? (0,
|
|
7111
|
+
let e = super.getValue(), t = this.path || this.component?.key, n = t && this.rootValue ? (0, Un.default)(this.rootValue, t) : void 0;
|
|
7105
7112
|
return this.component?.multiple ? Array.isArray(e) && e.length > 0 ? e : Array.isArray(n) ? n : [] : e ?? n ?? null;
|
|
7106
7113
|
}
|
|
7107
7114
|
isEmpty(e = this.validationValue) {
|
|
@@ -7113,9 +7120,9 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
7113
7120
|
}
|
|
7114
7121
|
render() {
|
|
7115
7122
|
let e = `<div ref="react-${this.id}"></div>`;
|
|
7116
|
-
return Object.getPrototypeOf(Object.getPrototypeOf(
|
|
7123
|
+
return Object.getPrototypeOf(Object.getPrototypeOf(Gn.prototype)).render.call(this, e);
|
|
7117
7124
|
}
|
|
7118
|
-
},
|
|
7125
|
+
}, Yn = [
|
|
7119
7126
|
{
|
|
7120
7127
|
key: "labelPosition",
|
|
7121
7128
|
ignore: !0
|
|
@@ -7155,15 +7162,15 @@ var Gn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
7155
7162
|
];
|
|
7156
7163
|
//#endregion
|
|
7157
7164
|
//#region src/customComponentFormio/AddressMap/AddressMap.form.js
|
|
7158
|
-
function
|
|
7165
|
+
function Xn(...e) {
|
|
7159
7166
|
return o.baseEditForm([{
|
|
7160
7167
|
key: "display",
|
|
7161
|
-
components:
|
|
7168
|
+
components: Yn
|
|
7162
7169
|
}], ...e);
|
|
7163
7170
|
}
|
|
7164
7171
|
//#endregion
|
|
7165
7172
|
//#region src/components/AccessibleAutocomplete.jsx
|
|
7166
|
-
var
|
|
7173
|
+
var Zn = A?.default ?? A, Qn = ({ value: e, defaultValue: t = "", onConfirm: n, source: r, disabled: o, onClear: c, tClearInput: u = () => "Clear input", ...d }) => {
|
|
7167
7174
|
let f = l(null), p = (e) => {
|
|
7168
7175
|
setTimeout(() => {
|
|
7169
7176
|
f.current && (f.current.elementReferences[-1].value = e);
|
|
@@ -7186,7 +7193,7 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7186
7193
|
position: "relative",
|
|
7187
7194
|
width: "100%"
|
|
7188
7195
|
},
|
|
7189
|
-
children: [/* @__PURE__ */ i(
|
|
7196
|
+
children: [/* @__PURE__ */ i(Zn, {
|
|
7190
7197
|
ref: f,
|
|
7191
7198
|
...d,
|
|
7192
7199
|
defaultValue: t,
|
|
@@ -7212,8 +7219,8 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7212
7219
|
})
|
|
7213
7220
|
})]
|
|
7214
7221
|
});
|
|
7215
|
-
},
|
|
7216
|
-
let a = l(null), o = null, [c, d] = u([]), f =
|
|
7222
|
+
}, $n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==", X = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=", er = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", tr = ({ position: e, areasLayer: t, bounds: n, onMarkedMoved: r }) => {
|
|
7223
|
+
let a = l(null), o = null, [c, d] = u([]), f = M("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>" }), p = [41.9, 12.5], m = () => {
|
|
7217
7224
|
let i = j.map(a.current, {
|
|
7218
7225
|
keyboard: !1,
|
|
7219
7226
|
minZoom: 6,
|
|
@@ -7224,9 +7231,9 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7224
7231
|
});
|
|
7225
7232
|
let s = e ? [`${e.lat}`, `${e.lon}`] : n ? n.getCenter() : p;
|
|
7226
7233
|
if (delete j.Icon.Default.prototype._getIconUrl, j.Icon.Default.mergeOptions({
|
|
7227
|
-
iconRetinaUrl:
|
|
7228
|
-
iconUrl:
|
|
7229
|
-
shadowUrl:
|
|
7234
|
+
iconRetinaUrl: $n,
|
|
7235
|
+
iconUrl: X,
|
|
7236
|
+
shadowUrl: er
|
|
7230
7237
|
}), o = j.marker(s, { draggable: !0 }).addTo(i), o.on("moveend", function(e) {
|
|
7231
7238
|
r(e.target.getLatLng(), o);
|
|
7232
7239
|
}), i.on("click", function(e) {
|
|
@@ -7256,8 +7263,8 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7256
7263
|
"aria-hidden": !0
|
|
7257
7264
|
})
|
|
7258
7265
|
});
|
|
7259
|
-
},
|
|
7260
|
-
let [c, d] = u(null), [f, p] = u([]), [m, ee] = u(), [te, ne] = u(), [b, x] = u(!1), [ae, C] = u(), [oe, w] = u(!1), [T, E] = u(), [D, O] = u(), [
|
|
7266
|
+
}, nr = t.Components.components.field, rr = ({ component: e, value: t, current: n, onChange: r, i18next: o }) => {
|
|
7267
|
+
let [c, d] = u(null), [f, p] = u([]), [m, ee] = u(), [te, ne] = u(), [b, x] = u(!1), [ae, C] = u(), [oe, w] = u(!1), [T, E] = u(), [D, O] = u(), [se, k] = u(!1), [A, M] = u(""), [N, P] = u(""), [F, ue] = u(!1), [de, fe] = u(!1), I = new URLSearchParams(window.location.search).get("area"), { geographic_areas_id: pe } = window.OC_SERVICE_DETAILS, L = l(), me = o.language, he = j.latLngBounds(), ge = I || (pe && pe.length > 0 ? pe : void 0), _e = (e, t) => {
|
|
7261
7268
|
L.current = e;
|
|
7262
7269
|
let n = `https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&countrycodes=it&viewbox=${m}&bounded=1&addressdetails=1&limit=14&format=jsonv2&accept-language=${me}`, r = [], i = [];
|
|
7263
7270
|
w(!0), fetch(n).then((e) => e.json()).then((n) => {
|
|
@@ -7265,14 +7272,14 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7265
7272
|
w(!0);
|
|
7266
7273
|
let e = n.map((e, t) => {
|
|
7267
7274
|
let { lat: n, lon: r } = e, i = `${R()}/api/geographic-areas/contains?lat=${n}&lon=${r}&geographic_areas_ids=${ae.join(",")}`;
|
|
7268
|
-
return fetch(i).then((e) => e.json()).then((t) => t.result ? (e.label =
|
|
7275
|
+
return fetch(i).then((e) => e.json()).then((t) => t.result ? (e.label = it(e), e) : null);
|
|
7269
7276
|
});
|
|
7270
7277
|
return Promise.all(e);
|
|
7271
7278
|
} else L.current === e && (t([]), w(!1));
|
|
7272
7279
|
}).then((n) => {
|
|
7273
7280
|
n = n ? n.filter((e) => e !== null) : [], n.length > 0 ? (n.forEach((e, t) => {
|
|
7274
|
-
n[t].label =
|
|
7275
|
-
}), n =
|
|
7281
|
+
n[t].label = it(e);
|
|
7282
|
+
}), n = ce.uniqWith(n, (e, t) => e.label === t.label), n.forEach((e, t) => {
|
|
7276
7283
|
i.push(e.label), r.push(e);
|
|
7277
7284
|
}), L.current === e && (t(i), p(r), w(!1))) : L.current === e && (t([]), w(!1));
|
|
7278
7285
|
}).catch((e) => {
|
|
@@ -7280,17 +7287,17 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7280
7287
|
});
|
|
7281
7288
|
}, z = (e, t) => {
|
|
7282
7289
|
_e(e, t);
|
|
7283
|
-
},
|
|
7290
|
+
}, ve = (e, t) => {
|
|
7284
7291
|
let { lat: n, lng: r } = e, i = `https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=${n}&lon=${r}&accept-language=${me}`;
|
|
7285
7292
|
fetch(i).then((e) => e.json()).then((e) => {
|
|
7286
|
-
if (e && e.display_name) if (e.label =
|
|
7293
|
+
if (e && e.display_name) if (e.label = it(e), e.lat = n, e.lon = r, t) t.bindPopup(`${e.label}`, { className: "address-map-popup" }).openPopup(), O(e);
|
|
7287
7294
|
else {
|
|
7288
7295
|
O(e);
|
|
7289
7296
|
return;
|
|
7290
7297
|
}
|
|
7291
7298
|
}).catch((e) => console.error("Error with reverse geocoding:", e));
|
|
7292
7299
|
};
|
|
7293
|
-
function
|
|
7300
|
+
function ye() {
|
|
7294
7301
|
navigator.geolocation.getCurrentPosition((e) => {
|
|
7295
7302
|
let t = e.coords.latitude, n = e.coords.longitude;
|
|
7296
7303
|
if ((ae || []).length > 0) {
|
|
@@ -7299,18 +7306,18 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7299
7306
|
e.result ? (d({
|
|
7300
7307
|
lat: t,
|
|
7301
7308
|
lon: n
|
|
7302
|
-
}),
|
|
7309
|
+
}), ve({
|
|
7303
7310
|
lat: t,
|
|
7304
7311
|
lng: n
|
|
7305
|
-
}),
|
|
7312
|
+
}), fe(!de)) : fe(!de);
|
|
7306
7313
|
});
|
|
7307
7314
|
} else d({
|
|
7308
7315
|
lat: t,
|
|
7309
7316
|
lon: n
|
|
7310
|
-
}),
|
|
7317
|
+
}), ve({
|
|
7311
7318
|
lat: t,
|
|
7312
7319
|
lng: n
|
|
7313
|
-
}),
|
|
7320
|
+
}), fe(!de);
|
|
7314
7321
|
}, (e) => {
|
|
7315
7322
|
e?.code === 1 ? (ue(!F), P(o.t("error_message_code_1"))) : e?.code === 2 ? (ue(!F), P(o.t("error_message_code_2"))) : e?.code === 3 ? (ue(!F), P(o.t("error_message_code_3"))) : (ue(!F), P(o.t("error_message_generic")));
|
|
7316
7323
|
});
|
|
@@ -7318,17 +7325,17 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7318
7325
|
s(() => {
|
|
7319
7326
|
t && d(t), n.valuePosition && d(n.valuePosition);
|
|
7320
7327
|
}, [t, n]);
|
|
7321
|
-
let
|
|
7328
|
+
let B = () => {
|
|
7322
7329
|
t && d(t), n.valuePosition && d(n.valuePosition);
|
|
7323
7330
|
};
|
|
7324
7331
|
s(() => {
|
|
7325
7332
|
window?.Formio?.formioReady.then(() => {
|
|
7326
7333
|
setTimeout(() => {
|
|
7327
|
-
|
|
7334
|
+
B(), V();
|
|
7328
7335
|
}, 1);
|
|
7329
7336
|
});
|
|
7330
7337
|
}, []);
|
|
7331
|
-
let
|
|
7338
|
+
let V = () => {
|
|
7332
7339
|
let e = `${R()}/api/geographic-areas`, t = [], n = [], r = [];
|
|
7333
7340
|
fetch(e).then((e) => e.json()).then((e) => {
|
|
7334
7341
|
if (Array.isArray(e) && e.length > 0) {
|
|
@@ -7360,13 +7367,13 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7360
7367
|
}).catch((e) => {
|
|
7361
7368
|
console.error("Error with reverse geocoding:", e);
|
|
7362
7369
|
});
|
|
7363
|
-
},
|
|
7364
|
-
|
|
7370
|
+
}, H = () => {
|
|
7371
|
+
M(c?.label ? c.label : "");
|
|
7365
7372
|
};
|
|
7366
7373
|
s(() => {
|
|
7367
|
-
|
|
7374
|
+
H(), r(c);
|
|
7368
7375
|
}, [c]), s(() => {
|
|
7369
|
-
document.querySelector(".formio-read-only") &&
|
|
7376
|
+
document.querySelector(".formio-read-only") && se === !1 ? k(!0) : k(!1);
|
|
7370
7377
|
}, []);
|
|
7371
7378
|
let be = () => {
|
|
7372
7379
|
if (D) {
|
|
@@ -7379,7 +7386,7 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7379
7386
|
cancelButtonText: o.t("Chiudi"),
|
|
7380
7387
|
showCancelButton: !0,
|
|
7381
7388
|
showConfirmButton: !1
|
|
7382
|
-
}) : e.result === !0 && (
|
|
7389
|
+
}) : e.result === !0 && (fe(!de), d(D)) : (x(!1), console.log("No geographic-areas/contains ."));
|
|
7383
7390
|
}).catch((e) => {
|
|
7384
7391
|
console.error("Error with geographic-areas/contains:", e), S.fire({
|
|
7385
7392
|
title: "",
|
|
@@ -7401,26 +7408,26 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7401
7408
|
isOpen: de,
|
|
7402
7409
|
size: "lg",
|
|
7403
7410
|
scrollable: !0,
|
|
7404
|
-
toggle: () =>
|
|
7411
|
+
toggle: () => fe(!de),
|
|
7405
7412
|
labelledBy: "maps-evo",
|
|
7406
|
-
container:
|
|
7413
|
+
container: J(),
|
|
7407
7414
|
children: [
|
|
7408
7415
|
/* @__PURE__ */ i(y, {
|
|
7409
|
-
toggle: () =>
|
|
7416
|
+
toggle: () => fe(!de),
|
|
7410
7417
|
id: "maps-evo",
|
|
7411
7418
|
children: o.t("Individua il luogo sulla mappa")
|
|
7412
7419
|
}),
|
|
7413
|
-
/* @__PURE__ */ a(re, { children: [/* @__PURE__ */ i("p", { children: /* @__PURE__ */ i("small", { children: o.t("Trascina l’icona nel punto preciso in cui si verifica l’evento che vuoi segnalare e fai click su Salva indirizzo") }) }), /* @__PURE__ */ i(
|
|
7420
|
+
/* @__PURE__ */ a(re, { children: [/* @__PURE__ */ i("p", { children: /* @__PURE__ */ i("small", { children: o.t("Trascina l’icona nel punto preciso in cui si verifica l’evento che vuoi segnalare e fai click su Salva indirizzo") }) }), /* @__PURE__ */ i(tr, {
|
|
7414
7421
|
position: c,
|
|
7415
7422
|
areasLayer: te,
|
|
7416
7423
|
bounds: T,
|
|
7417
7424
|
onMarkedMoved: (e, t) => {
|
|
7418
|
-
|
|
7425
|
+
ve(e, t);
|
|
7419
7426
|
}
|
|
7420
7427
|
})] }),
|
|
7421
7428
|
/* @__PURE__ */ a(v, { children: [/* @__PURE__ */ i(h, {
|
|
7422
7429
|
color: "secondary",
|
|
7423
|
-
onClick: () =>
|
|
7430
|
+
onClick: () => fe(!de),
|
|
7424
7431
|
children: o.t("Chiudi")
|
|
7425
7432
|
}), /* @__PURE__ */ i(h, {
|
|
7426
7433
|
color: "primary",
|
|
@@ -7437,14 +7444,14 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7437
7444
|
toggle: () => ue(!F),
|
|
7438
7445
|
withIcon: !0,
|
|
7439
7446
|
labelledBy: "error-modal-message",
|
|
7440
|
-
container:
|
|
7447
|
+
container: J(),
|
|
7441
7448
|
children: [
|
|
7442
7449
|
/* @__PURE__ */ i(y, {
|
|
7443
7450
|
icon: "it-info-circle",
|
|
7444
7451
|
id: "error-modal-message",
|
|
7445
7452
|
children: o.t("warning")
|
|
7446
7453
|
}),
|
|
7447
|
-
/* @__PURE__ */ i(re, { children: /* @__PURE__ */ i("p", { children:
|
|
7454
|
+
/* @__PURE__ */ i(re, { children: /* @__PURE__ */ i("p", { children: N }) }),
|
|
7448
7455
|
/* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(h, {
|
|
7449
7456
|
color: "primary",
|
|
7450
7457
|
onClick: () => ue(!F),
|
|
@@ -7454,10 +7461,10 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7454
7461
|
}) }),
|
|
7455
7462
|
/* @__PURE__ */ a("div", {
|
|
7456
7463
|
className: "position-relative",
|
|
7457
|
-
children: [/* @__PURE__ */ i(
|
|
7464
|
+
children: [/* @__PURE__ */ i(Qn, {
|
|
7458
7465
|
id: `${e.id}-${e.key}`,
|
|
7459
7466
|
inputClasses: "form-control",
|
|
7460
|
-
source:
|
|
7467
|
+
source: le(z, 520),
|
|
7461
7468
|
onConfirm: (e) => {
|
|
7462
7469
|
w(!1), L.current = "", e && (e === "" && d(null), d(f.find((t) => t.label === e)));
|
|
7463
7470
|
},
|
|
@@ -7466,11 +7473,11 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7466
7473
|
},
|
|
7467
7474
|
dropdownArrow: () => null,
|
|
7468
7475
|
minLength: 3,
|
|
7469
|
-
disabled:
|
|
7476
|
+
disabled: se,
|
|
7470
7477
|
confirmOnBlur: !0,
|
|
7471
7478
|
showNoOptionsFound: !oe,
|
|
7472
7479
|
defaultValue: c?.label,
|
|
7473
|
-
value:
|
|
7480
|
+
value: A,
|
|
7474
7481
|
tNoResults: () => o.t("Nessun risultato trovato, prova a inserire l'indirizzo completo"),
|
|
7475
7482
|
tClearInput: () => o.t("Clear input")
|
|
7476
7483
|
}), oe && /* @__PURE__ */ i("div", {
|
|
@@ -7485,11 +7492,11 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7485
7492
|
})
|
|
7486
7493
|
})]
|
|
7487
7494
|
}),
|
|
7488
|
-
!
|
|
7495
|
+
!se && /* @__PURE__ */ a(h, {
|
|
7489
7496
|
type: "button",
|
|
7490
7497
|
value: o.t("Individua con precisione sulla mappa"),
|
|
7491
7498
|
onClick: () => {
|
|
7492
|
-
/Mobi|Android/i.test(navigator.userAgent) ?
|
|
7499
|
+
/Mobi|Android/i.test(navigator.userAgent) ? ye() : (fe(!0), O(!1));
|
|
7493
7500
|
},
|
|
7494
7501
|
icon: !0,
|
|
7495
7502
|
className: "px-0 primary-color",
|
|
@@ -7501,7 +7508,7 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7501
7508
|
})
|
|
7502
7509
|
]
|
|
7503
7510
|
}) });
|
|
7504
|
-
},
|
|
7511
|
+
}, ir = class e extends nr {
|
|
7505
7512
|
constructor(e, t, n) {
|
|
7506
7513
|
super(e, t, n);
|
|
7507
7514
|
}
|
|
@@ -7516,14 +7523,14 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7516
7523
|
};
|
|
7517
7524
|
}
|
|
7518
7525
|
static schema() {
|
|
7519
|
-
return
|
|
7526
|
+
return nr.schema({ type: "address_map" });
|
|
7520
7527
|
}
|
|
7521
|
-
static editForm =
|
|
7528
|
+
static editForm = Xn;
|
|
7522
7529
|
attach(e) {
|
|
7523
7530
|
return super.attach(e).then(() => {
|
|
7524
7531
|
this.loadRefs(this.element, { [`react-${this.id}`]: "single" });
|
|
7525
7532
|
let e = this.refs[`react-${this.id}`];
|
|
7526
|
-
return e ? (this.rootComponent = n(e), this.rootComponent.render(/* @__PURE__ */ i(
|
|
7533
|
+
return e ? (this.rootComponent = n(e), this.rootComponent.render(/* @__PURE__ */ i(rr, {
|
|
7527
7534
|
component: this.component,
|
|
7528
7535
|
value: this.dataValue,
|
|
7529
7536
|
onChange: (e) => this.setValue(e),
|
|
@@ -7547,7 +7554,7 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7547
7554
|
render() {
|
|
7548
7555
|
return super.render(`<div ref="react-${this.id}"></div>`);
|
|
7549
7556
|
}
|
|
7550
|
-
},
|
|
7557
|
+
}, ar = [
|
|
7551
7558
|
{
|
|
7552
7559
|
key: "labelPosition",
|
|
7553
7560
|
ignore: !0
|
|
@@ -7591,15 +7598,15 @@ var Yn = A?.default ?? A, Xn = ({ value: e, defaultValue: t = "", onConfirm: n,
|
|
|
7591
7598
|
];
|
|
7592
7599
|
//#endregion
|
|
7593
7600
|
//#region src/customComponentFormio/ListServices/ListServices.form.js
|
|
7594
|
-
function
|
|
7601
|
+
function or(...e) {
|
|
7595
7602
|
return o.baseEditForm([{
|
|
7596
7603
|
key: "display",
|
|
7597
|
-
components:
|
|
7604
|
+
components: ar
|
|
7598
7605
|
}], ...e);
|
|
7599
7606
|
}
|
|
7600
7607
|
//#endregion
|
|
7601
7608
|
//#region src/customComponentFormio/ListServices/ListServices.jsx
|
|
7602
|
-
var
|
|
7609
|
+
var sr = t.Components.components.field, cr = ({ component: e, current: t, onChange: n, i18next: r }) => {
|
|
7603
7610
|
let o = "list-services", d = "selected-category", [f, p] = u([]), [m, h] = u([]), [g, _] = u(null), [re, v] = u(null), [y, ie] = u(""), [x, ae] = u(!1), [S, C] = u(!1), oe = l(!1), w = l(), T = c(() => g && (m.find((e) => e.name === g) || f.find((e) => e.name === g)) || null, [
|
|
7604
7611
|
g,
|
|
7605
7612
|
m,
|
|
@@ -7630,7 +7637,7 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7630
7637
|
}, [g]), s(() => {
|
|
7631
7638
|
oe.current || (oe.current = !0, D());
|
|
7632
7639
|
}, []);
|
|
7633
|
-
let
|
|
7640
|
+
let O = (e) => {
|
|
7634
7641
|
let t = (e = "") => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = (e = "") => e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, " ").trim(), r = (e = "") => e.replace(/<[^>]*>/g, " "), i = (e, n) => RegExp(`\\b${t(n)}`, "i").test(e), a = (e, t) => {
|
|
7635
7642
|
let a = n(e.name), o = n((e.categories ?? []).join(" ")), s = n(r(e.abstract ?? ""));
|
|
7636
7643
|
if (!t.every((e) => i(a, e) || i(o, e) || i(s, e))) return -1;
|
|
@@ -7655,7 +7662,7 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7655
7662
|
} : null;
|
|
7656
7663
|
}).filter(Boolean);
|
|
7657
7664
|
h(l), _(l.some((e) => e.name === g) ? g : l[0]?.name ?? null);
|
|
7658
|
-
},
|
|
7665
|
+
}, k = (e) => {
|
|
7659
7666
|
v(e);
|
|
7660
7667
|
let r = f.find((t) => t.services.some((t) => t.id === e.id));
|
|
7661
7668
|
r && _(r.name), n({
|
|
@@ -7667,8 +7674,8 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7667
7674
|
offices: e.offices,
|
|
7668
7675
|
abstract: e.abstract,
|
|
7669
7676
|
view_type: e.view_type
|
|
7670
|
-
}), t.data.user_group = null,
|
|
7671
|
-
},
|
|
7677
|
+
}), t.data.user_group = null, At();
|
|
7678
|
+
}, A = (e) => {
|
|
7672
7679
|
_(e.name), v(null), ie(""), h(f), n({});
|
|
7673
7680
|
};
|
|
7674
7681
|
return s(() => {
|
|
@@ -7721,8 +7728,8 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7721
7728
|
label: r.t("Cerca"),
|
|
7722
7729
|
type: "text",
|
|
7723
7730
|
value: y,
|
|
7724
|
-
onChange:
|
|
7725
|
-
onInput:
|
|
7731
|
+
onChange: O,
|
|
7732
|
+
onInput: O,
|
|
7726
7733
|
infoText: r.t("Cerca per categoria, servizio o descrizione")
|
|
7727
7734
|
})
|
|
7728
7735
|
}) })
|
|
@@ -7741,7 +7748,7 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7741
7748
|
}), m.length > 0 && m.map((e) => {
|
|
7742
7749
|
let t = g === e.name;
|
|
7743
7750
|
return /* @__PURE__ */ a("button", {
|
|
7744
|
-
onClick: () =>
|
|
7751
|
+
onClick: () => A(e),
|
|
7745
7752
|
className: `category-item w-100 text-start p-3 mb-2 border-0 rounded ${t ? "category-active bg-primary text-white" : "bg-light text-dark"}`,
|
|
7746
7753
|
children: [/* @__PURE__ */ i("span", {
|
|
7747
7754
|
className: "fw-500 d-block",
|
|
@@ -7771,9 +7778,9 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7771
7778
|
}) : null, E.length > 0 ? /* @__PURE__ */ i("div", {
|
|
7772
7779
|
className: "services-list",
|
|
7773
7780
|
children: E.map((e) => {
|
|
7774
|
-
let t = re?.id === e.id, n =
|
|
7781
|
+
let t = re?.id === e.id, n = se.sanitize(e?.abstract);
|
|
7775
7782
|
return /* @__PURE__ */ i("button", {
|
|
7776
|
-
onClick: () =>
|
|
7783
|
+
onClick: () => k(e),
|
|
7777
7784
|
className: `service-card mb-4 p-4 rounded border cursor-pointer transition text-start w-100 ${t ? "border-primary border-2 bg-light" : "border-light border-1 bg-white"}`,
|
|
7778
7785
|
style: { cursor: "pointer" },
|
|
7779
7786
|
tabIndex: "0",
|
|
@@ -7840,7 +7847,7 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7840
7847
|
})
|
|
7841
7848
|
}) : null
|
|
7842
7849
|
});
|
|
7843
|
-
},
|
|
7850
|
+
}, lr = class e extends sr {
|
|
7844
7851
|
constructor(e, t, n) {
|
|
7845
7852
|
super(e, t, n);
|
|
7846
7853
|
}
|
|
@@ -7855,9 +7862,9 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7855
7862
|
};
|
|
7856
7863
|
}
|
|
7857
7864
|
static schema() {
|
|
7858
|
-
return
|
|
7865
|
+
return sr.schema({ type: "list-services" });
|
|
7859
7866
|
}
|
|
7860
|
-
static editForm =
|
|
7867
|
+
static editForm = or;
|
|
7861
7868
|
attach(e, t) {
|
|
7862
7869
|
return super.attach(e).then(() => {
|
|
7863
7870
|
this.loadRefs(this.element, { [`react-${this.id}`]: "single" });
|
|
@@ -7868,7 +7875,7 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7868
7875
|
className: "h6 mb-0",
|
|
7869
7876
|
children: this.component?.label || "Lista Servizi"
|
|
7870
7877
|
})
|
|
7871
|
-
})), this) : (this.rootComponent.render(/* @__PURE__ */ i(
|
|
7878
|
+
})), this) : (this.rootComponent.render(/* @__PURE__ */ i(cr, {
|
|
7872
7879
|
ref: t,
|
|
7873
7880
|
component: this.component,
|
|
7874
7881
|
onChange: (e) => this.setValue(e),
|
|
@@ -7892,30 +7899,30 @@ var ar = t.Components.components.field, or = ({ component: e, current: t, onChan
|
|
|
7892
7899
|
render() {
|
|
7893
7900
|
return super.render(`<div ref="react-${this.id}"></div>`);
|
|
7894
7901
|
}
|
|
7895
|
-
},
|
|
7902
|
+
}, ur = e.components.select, dr = class extends ur {
|
|
7896
7903
|
attach(e) {
|
|
7897
7904
|
let t = super.attach(e);
|
|
7898
7905
|
return (Array.isArray(this.refs.autocompleteInput) ? this.refs.autocompleteInput : [this.refs.autocompleteInput]).forEach((e) => {
|
|
7899
7906
|
e?.parentNode && e.parentNode.removeChild(e);
|
|
7900
7907
|
}), t;
|
|
7901
7908
|
}
|
|
7902
|
-
},
|
|
7903
|
-
pagebreak:
|
|
7904
|
-
dynamic_calendar:
|
|
7905
|
-
calendar:
|
|
7906
|
-
"calendar-advanced":
|
|
7907
|
-
sdcfile:
|
|
7908
|
-
address_map:
|
|
7909
|
-
"list-services":
|
|
7910
|
-
select:
|
|
7909
|
+
}, fr = {
|
|
7910
|
+
pagebreak: _e,
|
|
7911
|
+
dynamic_calendar: ut,
|
|
7912
|
+
calendar: gt,
|
|
7913
|
+
"calendar-advanced": Nt,
|
|
7914
|
+
sdcfile: Jn,
|
|
7915
|
+
address_map: ir,
|
|
7916
|
+
"list-services": lr,
|
|
7917
|
+
select: dr
|
|
7911
7918
|
};
|
|
7912
|
-
function
|
|
7919
|
+
function pr(e) {
|
|
7913
7920
|
if (!e || typeof e.addComponent != "function") throw Error("registerFormioComponents requires Formio Components with addComponent(name, component)");
|
|
7914
|
-
return Object.entries(
|
|
7921
|
+
return Object.entries(fr).forEach(([t, n]) => {
|
|
7915
7922
|
e.addComponent(t, n);
|
|
7916
|
-
}),
|
|
7923
|
+
}), fr;
|
|
7917
7924
|
}
|
|
7918
7925
|
//#endregion
|
|
7919
|
-
export {
|
|
7926
|
+
export { gt as Calendar, Nt as CalendarAdvanced, ir as FormioAddressMap, ut as FormioDynamicCalendar, lr as FormioListServices, _e as FormioPageBreak, Jn as SdcFile, dr as Select, fr as formioCustomComponents, pr as registerFormioComponents };
|
|
7920
7927
|
|
|
7921
7928
|
//# sourceMappingURL=index.js.map
|