@arche-mc2/vue-ui-lib 1.3.0 → 1.3.1

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.
@@ -21,4 +21,4 @@
21
21
  `,"2) content: () => element.cloneNode(true)"].join(" "))}var o=i.reduce(function(c,d){var u=d&&S9(d,n);return u&&c.push(u),c},[]);return ke(a)?o[0]:o}Be.defaultProps=I1,Be.setDefaultProps=E9,Be.currentInput=Q1,Object.assign({},ei,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Be.setDefaultProps({render:Ni});const M9=l.defineComponent({__name:"CalendarBase",props:{events:{},initialView:{},btnToday:{type:Boolean},btnViewOption:{type:Boolean}},emits:["onSelectDate","onClickEvent","onChangeView"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>{switch(t.initialView){case"day":return"timeGridDay";case"week":return"timeGridWeek";case"month":return"dayGridMonth";default:return"dayGridMonth"}}),s=l.computed(()=>t.btnToday?"today":""),r=l.computed(()=>t.btnViewOption?"dayGridMonth,timeGridWeek,timeGridDay":""),o=h=>{n("onSelectDate",{start:h.startStr,end:h.endStr})},c=h=>{n("onClickEvent",{id:h.event.id,title:h.event.title,start:h.event.start?.toISOString()||"",end:h.event.end?.toISOString()||""})},d=h=>{n("onChangeView",{start:h.startStr,end:h.endStr})},u=l.computed(()=>({plugins:[F5,rc,Wc],initialView:i.value,locale:Qc,selectable:!0,select:o,eventClick:c,expandRows:!1,datesSet:d,allDaySlot:!1,titleFormat:{month:"long",day:"numeric",year:"numeric"},views:{month:{dayHeaderFormat:{weekday:"long"}},week:{dayHeaderFormat:{weekday:"long",day:"numeric",month:"short"}},day:{dayHeaderFormat:{weekday:"long"}}},eventDidMount:function(h){Be(h.el,{content:`
22
22
  <div class="tippy-title">${h.event.title}</div>
23
23
  <p class="tippy-description">${h.event.extendedProps.description||""}</p>
24
- `,allowHTML:!0,placement:"top",theme:"light-border"})},headerToolbar:{left:s.value,center:"prev title next",right:r.value},buttonText:{prev:"< Précédent",next:"Suivant >"},events:t.events}));return(h,m)=>(l.openBlock(),l.createBlock(l.unref(o5),{options:u.value},null,8,["options"]))}}),k9=["disabled"],x9=["innerHTML"],B0=l.defineComponent({__name:"CheckboxBase",props:l.mergeModels({label:{},icon:{},iconStyle:{},theme:{},indeterminate:{type:Boolean},disabled:{type:Boolean},className:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const e=a,t=l.useModel(a,"modelValue"),n=l.ref(e.indeterminate?"minus":"check"),i=s=>{s.target instanceof HTMLElement&&(s.target.className==="no-click"||s.target.parentNode instanceof HTMLElement&&s.target.parentNode.className.includes("no-click"))&&s.preventDefault()};return l.watch(()=>e.indeterminate,s=>{n.value=s?"minus":"check"}),(s,r)=>(l.openBlock(),l.createElementBlock("label",{style:l.normalizeStyle(a.theme),class:l.normalizeClass(["amc2-checkbox-container",a.className,{disabled:a.disabled}]),onClick:i},[l.withDirectives(l.createElementVNode("input",{type:"checkbox",disabled:a.disabled,"onUpdate:modelValue":r[0]||(r[0]=o=>t.value=o)},null,8,k9),[[l.vModelCheckbox,t.value]]),l.createVNode(U,l.mergeProps({class:"amc2-checkmark",iconName:n.value},a.iconStyle),null,16,["iconName"]),a.icon?(l.openBlock(),l.createBlock(U,l.mergeProps({key:0,iconName:a.icon},a.iconStyle,{class:"no-click"}),null,16,["iconName"])):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:a.label,class:"no-click"},null,8,x9)):l.createCommentVNode("",!0)],6))}}),B9=/^[+-]?\d+(?:[.,]\d+)?$/,v3=a=>{if(!c1(a))return;if(typeof a=="number")return a;const e=a.trim();return B9.test(e)?Number(e.replace(",",".")):void 0},Hi=a=>{const e=v3(a);if(!(e===void 0||e<0||e>100))return Math.round(e)},Oi=a=>{if(typeof a!="string")return;const e=a.trim().toLowerCase();return e==="success"||e==="warning"||e==="error"?e:void 0},D9={class:"score-badge__value"},V9={class:"score-badge__sr"},I9=75,R9=50,Fi=l.defineComponent({name:"ScoreBadge",__name:"ScoreBadge",props:{score:{},level:{},labels:{}},setup(a){const e=a,t={context:"de compatibilité",success:"score élevé",warning:"score moyen",error:"score faible"},n=r=>r>=I9?"success":r>=R9?"warning":"error",i=l.computed(()=>{const r=Hi(e.score);if(r!==void 0)return{value:r,level:Oi(e.level)??n(r)}}),s=l.computed(()=>{if(!i.value)return"";const r=e.labels?.context,o=typeof r=="string"?r.trim():t.context,c=e.labels?.[i.value.level],d=typeof c=="string"&&c.trim()!==""?c.trim():t[i.value.level];return`${o?` ${o}`:""}, ${d}.`});return(r,o)=>i.value?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["score-badge",`score-badge--${i.value.level}`])},[l.createElementVNode("span",D9,l.toDisplayString(i.value.value)+"%",1),l.createElementVNode("span",V9,l.toDisplayString(s.value),1)],2)):l.createCommentVNode("",!0)}}),ji=(a,e)=>typeof a=="number"?String(Math.round(e*100)/100):String(a).trim(),Ui=a=>{if(!c1(a.label))return;const e=v3(a.value),t=v3(a.max),n=Oi(a.level);if(e===void 0||t===void 0||n===void 0||e<0||t<0)return;const i=t>0?e/t:0;return{label:String(a.label).trim(),valueText:ji(a.value,e),maxText:ji(a.max,t),level:n,percent:Math.min(i,1)*100}},T9={class:"criterion-row__top"},L9={class:"criterion-row__label"},N9={class:"criterion-row__score"},H9={class:"criterion-row__sr"},O9={class:"criterion-row__track","aria-hidden":"true"},_i=l.defineComponent({name:"CriterionRow",__name:"CriterionRow",props:{label:{},value:{},max:{},level:{},labels:{}},setup(a){const e=a,t={success:"bon",warning:"à surveiller",error:"insuffisant"},n=l.computed(()=>Ui(e)),i=l.computed(()=>{if(!n.value)return"";const s=e.labels?.[n.value.level];return typeof s=="string"&&s.trim()!==""?s.trim():t[n.value.level]});return(s,r)=>n.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["criterion-row",`criterion-row--${n.value.level}`])},[l.createElementVNode("div",T9,[r[0]||(r[0]=l.createElementVNode("span",{class:"criterion-row__dot","aria-hidden":"true"},null,-1)),l.createElementVNode("p",L9,l.toDisplayString(n.value.label),1),l.createElementVNode("p",N9,[l.createTextVNode(l.toDisplayString(n.value.valueText)+"/"+l.toDisplayString(n.value.maxText),1),l.createElementVNode("span",H9,", "+l.toDisplayString(i.value)+".",1)])]),l.createElementVNode("div",O9,[l.createElementVNode("div",{class:"criterion-row__fill",style:l.normalizeStyle({width:`${n.value.percent}%`})},null,4)])],2)):l.createCommentVNode("",!0)}}),F9={key:0,class:"compatibility-popup",role:"tooltip"},j9={class:"compatibility-popup__header"},U9={class:"compatibility-popup__title"},_9={key:0,class:"compatibility-popup__divider","aria-hidden":"true"},K9="Score de compatibilité",P9=l.defineComponent({name:"CompatibilityPopup",__name:"CompatibilityPopup",props:{score:{},level:{},criteria:{},title:{},scoreLabels:{},criterionLabels:{}},setup(a){const e=a,t=l.computed(()=>typeof e.title=="string"&&e.title.trim()!==""?e.title.trim():K9),n=l.computed(()=>{const r=typeof e.scoreLabels=="object"&&e.scoreLabels!==null?e.scoreLabels:{};return{...r,context:typeof r.context=="string"?r.context:""}}),i=l.computed(()=>Hi(e.score)!==void 0),s=l.computed(()=>Array.isArray(e.criteria)?e.criteria.filter(r=>typeof r=="object"&&r!==null&&Ui(r)!==void 0):[]);return(r,o)=>i.value||s.value.length>0?(l.openBlock(),l.createElementBlock("div",F9,[l.createElementVNode("div",j9,[l.createVNode(Fi,{score:a.score,level:a.level,labels:n.value},null,8,["score","level","labels"]),l.createElementVNode("p",U9,l.toDisplayString(t.value),1)]),s.value.length>0?(l.openBlock(),l.createElementBlock("div",_9)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,(c,d)=>(l.openBlock(),l.createBlock(_i,{key:d,label:c.label,value:c.value,max:c.max,level:c.level,labels:a.criterionLabels},null,8,["label","value","max","level","labels"]))),128))])):l.createCommentVNode("",!0)}}),W9=l.defineComponent({inheritAttrs:!1,__name:"OptionalWrapperComponent",props:{is:{},wrap:{type:Boolean}},setup(a){return(e,t)=>a.is&&a.wrap!==!1?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.is),l.normalizeProps(l.mergeProps({key:0},e.$attrs)),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16)):l.renderSlot(e.$slots,"default",{key:1})}});function De(a){return l.getCurrentScope()?(l.onScopeDispose(a),!0):!1}const T2=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Q9=a=>a!=null,Y9=Object.prototype.toString,Ki=a=>Y9.call(a)==="[object Object]",T3=()=>{},L2=q9();function q9(){var a,e;return T2&&((a=window?.navigator)==null?void 0:a.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function G9(...a){if(a.length!==1)return l.toRef(...a);const e=a[0];return typeof e=="function"?l.readonly(l.customRef(()=>({get:e,set:T3}))):l.ref(e)}function L3(a){return Array.isArray(a)?a:[a]}function J9(a){return l.getCurrentInstance()}function Z9(a,e=!0,t){J9()?l.onMounted(a,t):e?a():l.nextTick(a)}function Pi(a,e,t){return l.watch(a,e,{...t,immediate:!0})}const N2=T2?window:void 0;function ie(a){var e;const t=l.toValue(a);return(e=t?.$el)!=null?e:t}function Wi(...a){const e=[],t=()=>{e.forEach(o=>o()),e.length=0},n=(o,c,d,u)=>(o.addEventListener(c,d,u),()=>o.removeEventListener(c,d,u)),i=l.computed(()=>{const o=L3(l.toValue(a[0])).filter(c=>c!=null);return o.every(c=>typeof c!="string")?o:void 0}),s=Pi(()=>{var o,c;return[(c=(o=i.value)==null?void 0:o.map(d=>ie(d)))!=null?c:[N2].filter(d=>d!=null),L3(l.toValue(i.value?a[1]:a[0])),L3(l.unref(i.value?a[2]:a[1])),l.toValue(i.value?a[3]:a[2])]},([o,c,d,u])=>{if(t(),!o?.length||!c?.length||!d?.length)return;const h=Ki(u)?{...u}:u;e.push(...o.flatMap(m=>c.flatMap(f=>d.map(y=>n(m,f,y,h)))))},{flush:"post"}),r=()=>{s(),t()};return De(t),r}function X9(){const a=l.shallowRef(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{a.value=!0},e),a}function Qi(a){const e=X9();return l.computed(()=>(e.value,!!a()))}function $9(a,e,t={}){const{window:n=N2,...i}=t;let s;const r=Qi(()=>n&&"MutationObserver"in n),o=()=>{s&&(s.disconnect(),s=void 0)},c=l.computed(()=>{const m=l.toValue(a),f=L3(m).map(ie).filter(Q9);return new Set(f)}),d=l.watch(c,m=>{o(),r.value&&m.size&&(s=new MutationObserver(e),m.forEach(f=>s.observe(f,i)))},{immediate:!0,flush:"post"}),u=()=>s?.takeRecords(),h=()=>{d(),o()};return De(h),{isSupported:r,stop:h,takeRecords:u}}function ed(a,e,t={}){const{window:n=N2,...i}=t;let s;const r=Qi(()=>n&&"ResizeObserver"in n),o=()=>{s&&(s.disconnect(),s=void 0)},c=l.computed(()=>{const h=l.toValue(a);return Array.isArray(h)?h.map(m=>ie(m)):[ie(h)]}),d=l.watch(c,h=>{if(o(),r.value&&n){s=new ResizeObserver(e);for(const m of h)m&&s.observe(m,i)}},{immediate:!0,flush:"post"}),u=()=>{o(),d()};return De(u),{isSupported:r,stop:u}}function Yi(a,e={}){const{reset:t=!0,windowResize:n=!0,windowScroll:i=!0,immediate:s=!0,updateTiming:r="sync"}=e,o=l.shallowRef(0),c=l.shallowRef(0),d=l.shallowRef(0),u=l.shallowRef(0),h=l.shallowRef(0),m=l.shallowRef(0),f=l.shallowRef(0),y=l.shallowRef(0);function g(){const A=ie(a);if(!A){t&&(o.value=0,c.value=0,d.value=0,u.value=0,h.value=0,m.value=0,f.value=0,y.value=0);return}const b=A.getBoundingClientRect();o.value=b.height,c.value=b.bottom,d.value=b.left,u.value=b.right,h.value=b.top,m.value=b.width,f.value=b.x,y.value=b.y}function v(){r==="sync"?g():r==="next-frame"&&requestAnimationFrame(()=>g())}return ed(a,v),l.watch(()=>ie(a),A=>!A&&v()),$9(a,v,{attributeFilter:["style","class"]}),i&&Wi("scroll",v,{capture:!0,passive:!0}),n&&Wi("resize",v,{passive:!0}),Z9(()=>{s&&v()}),{height:o,bottom:c,left:d,right:u,top:h,width:m,x:f,y,update:v}}const qi=T2?window:void 0;function Ve(a){var e;const t=l.toValue(a);return(e=t?.$el)!=null?e:t}function D0(...a){const e=[],t=()=>{e.forEach(o=>o()),e.length=0},n=(o,c,d,u)=>(o.addEventListener(c,d,u),()=>o.removeEventListener(c,d,u)),i=l.computed(()=>{const o=L3(l.toValue(a[0])).filter(c=>c!=null);return o.every(c=>typeof c!="string")?o:void 0}),s=Pi(()=>{var o,c;return[(c=(o=i.value)==null?void 0:o.map(d=>Ve(d)))!=null?c:[qi].filter(d=>d!=null),L3(l.toValue(i.value?a[1]:a[0])),L3(l.unref(i.value?a[2]:a[1])),l.toValue(i.value?a[3]:a[2])]},([o,c,d,u])=>{if(t(),!o?.length||!c?.length||!d?.length)return;const h=Ki(u)?{...u}:u;e.push(...o.flatMap(m=>c.flatMap(f=>d.map(y=>n(m,f,y,h)))))},{flush:"post"}),r=()=>{s(),t()};return De(t),r}let Gi=!1;function Ji(a,e,t={}){const{window:n=qi,ignore:i=[],capture:s=!0,detectIframe:r=!1,controls:o=!1}=t;if(!n)return o?{stop:T3,cancel:T3,trigger:T3}:T3;if(L2&&!Gi){Gi=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(A=>A.addEventListener("click",T3,v)),n.document.documentElement.addEventListener("click",T3,v)}let c=!0;const d=v=>l.toValue(i).some(A=>{if(typeof A=="string")return Array.from(n.document.querySelectorAll(A)).some(b=>b===v.target||v.composedPath().includes(b));{const b=Ve(A);return b&&(v.target===b||v.composedPath().includes(b))}});function u(v){const A=l.toValue(v);return A&&A.$.subTree.shapeFlag===16}function h(v,A){const b=l.toValue(v),w=b.$.subTree&&b.$.subTree.children;return w==null||!Array.isArray(w)?!1:w.some(p=>p.el===A.target||A.composedPath().includes(p.el))}const m=v=>{const A=Ve(a);if(v.target!=null&&!(!(A instanceof Element)&&u(a)&&h(a,v))&&!(!A||A===v.target||v.composedPath().includes(A))){if("detail"in v&&v.detail===0&&(c=!d(v)),!c){c=!0;return}e(v)}};let f=!1;const y=[D0(n,"click",v=>{f||(f=!0,setTimeout(()=>{f=!1},0),m(v))},{passive:!0,capture:s}),D0(n,"pointerdown",v=>{const A=Ve(a);c=!d(v)&&!!(A&&!v.composedPath().includes(A))},{passive:!0}),r&&D0(n,"blur",v=>{setTimeout(()=>{var A;const b=Ve(a);((A=n.document.activeElement)==null?void 0:A.tagName)==="IFRAME"&&!b?.contains(n.document.activeElement)&&e(v)},0)},{passive:!0})].filter(Boolean),g=()=>y.forEach(v=>v());return o?{stop:g,cancel:()=>{c=!1},trigger:v=>{c=!0,m(v),c=!1}}:g}const H2=new WeakMap,td={mounted(a,e){const t=!e.modifiers.bubble;let n;if(typeof e.value=="function")n=Ji(a,e.value,{capture:t});else{const[i,s]=e.value;n=Ji(a,i,Object.assign({capture:t},s))}H2.set(a,n)},unmounted(a){const e=H2.get(a);e&&typeof e=="function"?e():e?.stop(),H2.delete(a)}};function O2(a){return typeof Window<"u"&&a instanceof Window?a.document.documentElement:typeof Document<"u"&&a instanceof Document?a.documentElement:a}function Zi(a){const e=window.getComputedStyle(a);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&a.clientWidth<a.scrollWidth||e.overflowY==="auto"&&a.clientHeight<a.scrollHeight)return!0;{const t=a.parentNode;return!t||t.tagName==="BODY"?!1:Zi(t)}}function ad(a){const e=a||window.event,t=e.target;return Zi(t)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const F2=new WeakMap;function nd(a,e=!1){const t=l.shallowRef(e);let n=null,i="";l.watch(G9(a),o=>{const c=O2(l.toValue(o));if(c){const d=c;if(F2.get(d)||F2.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(i=d.style.overflow),d.style.overflow==="hidden")return t.value=!0;if(t.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const o=O2(l.toValue(a));!o||t.value||(L2&&(n=D0(o,"touchmove",c=>{ad(c)},{passive:!1})),o.style.overflow="hidden",t.value=!0)},r=()=>{const o=O2(l.toValue(a));!o||!t.value||(L2&&n?.(),o.style.overflow=i,F2.delete(o),t.value=!1)};return De(r),l.computed({get(){return t.value},set(o){o?s():r()}})}function id(){let a=!1;const e=l.shallowRef(!1);return(t,n)=>{if(e.value=n.value,a)return;a=!0;const i=nd(t,n.value);l.watch(e,s=>i.value=s)}}id();const ld={class:"flyout-menu-container"},sd={key:0,class:"flyout-menu-item-wrapper"},rd=["onClick"],i3=2,N3=8,j2=l.defineComponent({__name:"FlyoutMenu",props:{items:{},displayEl:{},position:{},autoClose:{type:Boolean,default:!0}},emits:["close"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(!1),s=l.useTemplateRef("contentWrapper"),r=l.useTemplateRef("menuContainer"),o=l.ref({}),c=()=>{i.value&&(i.value=!1,n("close"))},d=[c,{ignore:[r]}],u=()=>{if(i.value){c();return}o.value={position:"fixed",top:"0px",left:"0px",visibility:"hidden"},i.value=!0,l.nextTick(h)},h=()=>{const g=r.value,v=s.value;if(!g||!v)return;const A=g.getBoundingClientRect(),b=window.innerWidth,w=window.innerHeight;if(b===0||w===0)return;v.style.maxHeight="";const p=v.getBoundingClientRect(),D=t.position||"bottom";let S,V;switch(D){case"top":S=A.top-i3-p.height,V=A.left+A.width/2-p.width/2;break;case"right":S=A.top,V=A.right+i3;break;case"left":S=A.top,V=A.left-i3-p.width;break;case"bottom-left":S=A.bottom+i3,V=A.right-p.width;break;default:S=A.bottom+i3,V=A.left+A.width/2-p.width/2}const I=w-A.bottom-i3,P=A.top-i3;(D==="bottom"||D==="bottom-left")&&p.height>I&&P>I&&(S=A.top-i3-p.height),D==="top"&&p.height>P&&I>P&&(S=A.bottom+i3);const R={position:"fixed",minWidth:`${Math.round(A.width)}px`},N=Math.max(w-2*N3,0);let G=p.height;G>N&&(R.maxHeight=`${N}px`,R.overflowY="auto",G=N),S=Math.min(Math.max(S,N3),Math.max(w-G-N3,N3)),V=Math.min(Math.max(V,N3),Math.max(b-p.width-N3,N3)),R.top=`${Math.round(S)}px`,R.left=`${Math.round(V)}px`,o.value=R},m=g=>{const v=s.value;v&&g.target instanceof Node&&v.contains(g.target)||c()},f=()=>h();l.watch(i,g=>{g?(window.addEventListener("scroll",m,!0),window.addEventListener("resize",f)):(window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",f))}),l.onBeforeUnmount(()=>{window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",f)});const y=l.computed(()=>`flyout-${t.position||"bottom"}`);return(g,v)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",ld,[l.createElementVNode("div",{ref:"menuContainer",onClick:u},[l.renderSlot(g.$slots,"default")],512),i.value?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,ref:"contentWrapper",class:l.normalizeClass(["flyout-menu-list",y.value]),style:l.normalizeStyle(o.value)},[a.items?(l.openBlock(),l.createElementBlock("div",sd,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.items,(A,b)=>(l.openBlock(),l.createElementBlock("div",{key:b,onClick:()=>{A.onClick?.(),a.autoClose&&c()},class:"flyout-menu-item"},l.toDisplayString(A.label),9,rd))),128))])):g.$slots.content?l.renderSlot(g.$slots,"content",{key:1}):l.createCommentVNode("",!0)],6)),[[l.unref(td),d]]):l.createCommentVNode("",!0)])]))}}),od=["aria-label","disabled","checked"],U2=l.defineComponent({__name:"ToggleBase",props:{label:{},icon:{},theme:{},disabled:{type:Boolean},modelValue:{type:Boolean},ariaLabel:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>({...t.theme??{}})),s=r=>{const o=r.target;n("update:modelValue",o.checked)};return(r,o)=>(l.openBlock(),l.createElementBlock("label",{style:l.normalizeStyle(i.value),class:"amc2-toggle-container"},[l.createElementVNode("input",{type:"checkbox",role:"switch","aria-label":a.ariaLabel||void 0,disabled:a.disabled,checked:a.modelValue,onChange:s},null,40,od),o[0]||(o[0]=l.createElementVNode("span",{class:"amc2-toggle-slider"},null,-1)),a.icon?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.icon},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(a.label),1)],4))}}),Xi=l.defineComponent({__name:"TagBase",props:{label:{},backgroundColor:{}},setup(a){return(e,t)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps(e.$attrs,{class:["base-tag",`tag-background-color-${a.backgroundColor}`]}),l.toDisplayString(a.label),17))}}),cd={class:"tooltip-content"},H3=l.defineComponent({__name:"TooltipBase",props:{position:{default:"bottom"},className:{},style:{},removeDelay:{}},setup(a){const e=a,t=l.ref(!1),n=l.ref({}),i=l.ref(null),s=l.ref(null),r=l.ref(!1);let o=null;const c=l.useSlots(),d=l.computed(()=>{const f=c.content?.();return f&&f?.length>0&&f[0].children.length>0?"visible":"hidden"}),u=async()=>{r.value=!0,t.value=!0,await l.nextTick(),m()},h=()=>{if(r.value=!1,!e.removeDelay){t.value=!1;return}o&&clearTimeout(o),o=setTimeout(()=>{r.value||(t.value=!1)},e.removeDelay)},m=()=>{const f=i.value,y=s.value;if(!f||!y)return;const g=f.getBoundingClientRect(),v=y.getBoundingClientRect(),A=window.pageXOffset||document.documentElement.scrollLeft,b=window.pageYOffset||document.documentElement.scrollTop,w={},p=8;switch(e.position){case"top":w.top=`${g.top+b-v.height-p}px`,w.left=`${g.left+A+g.width/2-v.width/2}px`;break;case"bottom":w.top=`${g.bottom+b+p}px`,w.left=`${g.left+A+g.width/2-v.width/2}px`;break;case"left":w.top=`${g.top+b+g.height/2-v.height/2}px`,w.left=`${g.left+A-v.width-p}px`;break;case"right":w.top=`${g.top+b+g.height/2-v.height/2}px`,w.left=`${g.right+A+p}px`;break}n.value={...w,position:"absolute",zIndex:"9999",visibility:d.value,...e.style}};return(f,y)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"tooltip-container",onMouseenter:u,onMouseleave:h},[l.createElementVNode("div",{ref_key:"triggerRef",ref:i,class:"tooltip-container-slot"},[l.renderSlot(f.$slots,"default")],512)],32),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[t.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["tooltip-content-arrow",a.className,a.position]),style:l.normalizeStyle(n.value),ref_key:"tooltipRef",ref:s,onMouseenter:y[0]||(y[0]=g=>r.value=!0),onMouseleave:h},[l.createElementVNode("div",cd,[l.renderSlot(f.$slots,"content")]),l.createElementVNode("div",{class:l.normalizeClass(["tooltip-arrow",a.position])},null,2)],38)):l.createCommentVNode("",!0)]))],64))}});function g3(a){return typeof a=="string"||a instanceof String}function $i(a){var e;return typeof a=="object"&&a!=null&&(a==null||(e=a.constructor)==null?void 0:e.name)==="Object"}function el(a,e){return Array.isArray(e)?el(a,(t,n)=>e.includes(n)):Object.entries(a).reduce((t,n)=>{let[i,s]=n;return e(s,i)&&(t[i]=s),t},{})}const j={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function dd(a){switch(a){case j.LEFT:return j.FORCE_LEFT;case j.RIGHT:return j.FORCE_RIGHT;default:return a}}function _2(a){return a.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function V0(a,e){if(e===a)return!0;const t=Array.isArray(e),n=Array.isArray(a);let i;if(t&&n){if(e.length!=a.length)return!1;for(i=0;i<e.length;i++)if(!V0(e[i],a[i]))return!1;return!0}if(t!=n)return!1;if(e&&a&&typeof e=="object"&&typeof a=="object"){const s=e instanceof Date,r=a instanceof Date;if(s&&r)return e.getTime()==a.getTime();if(s!=r)return!1;const o=e instanceof RegExp,c=a instanceof RegExp;if(o&&c)return e.toString()==a.toString();if(o!=c)return!1;const d=Object.keys(e);for(i=0;i<d.length;i++)if(!Object.prototype.hasOwnProperty.call(a,d[i]))return!1;for(i=0;i<d.length;i++)if(!V0(a[d[i]],e[d[i]]))return!1;return!0}else if(e&&a&&typeof e=="function"&&typeof a=="function")return e.toString()===a.toString();return!1}class ud{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?j.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?j.RIGHT:j.LEFT}}function Q(a,e){return new Q.InputMask(a,e)}function tl(a){if(a==null)throw new Error("mask property should be defined");return a instanceof RegExp?Q.MaskedRegExp:g3(a)?Q.MaskedPattern:a===Date?Q.MaskedDate:a===Number?Q.MaskedNumber:Array.isArray(a)||a===Array?Q.MaskedDynamic:Q.Masked&&a.prototype instanceof Q.Masked?a:Q.Masked&&a instanceof Q.Masked?a.constructor:a instanceof Function?Q.MaskedFunction:(console.warn("Mask not found for mask",a),Q.Masked)}function Ie(a){if(!a)throw new Error("Options in not defined");if(Q.Masked){if(a.prototype instanceof Q.Masked)return{mask:a};const{mask:e=void 0,...t}=a instanceof Q.Masked?{mask:a}:$i(a)&&a.mask instanceof Q.Masked?a:{};if(e){const n=e.mask;return{...el(e,(i,s)=>!s.startsWith("_")),mask:e.constructor,_mask:n,...t}}}return $i(a)?{...a}:{mask:a}}function l3(a){if(Q.Masked&&a instanceof Q.Masked)return a;const e=Ie(a),t=tl(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}Q.createMask=l3;class K2{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}Q.MaskElement=K2;const al=90,hd=89;class I0 extends K2{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,n;return(e=(t=(n=this.input).getRootNode)==null?void 0:t.call(n))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===al&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===hd&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===al&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}Q.HTMLMaskElement=I0;class fd extends I0{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}Q.HTMLMaskElement=I0;class nl extends I0{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}Q.HTMLContenteditableMaskElement=nl;class R0{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>R0.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}R0.MAX_LENGTH=100;class md{constructor(e,t){this.el=e instanceof K2?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new nl(e):new fd(e),this.masked=l3(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new R0,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof Q.Masked)&&this.masked.constructor===tl(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof Q.Masked?e:l3({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const n=this._listeners[e];n&&n.forEach(i=>i(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,n=this.masked.value,i=this.masked.rawInputValue,s=this.displayValue,r=this.unmaskedValue!==t||this.value!==n||this._rawInputValue!==i;this._unmaskedValue=t,this._value=n,this._rawInputValue=i,this.el.value!==s&&(this.el.value=s),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),r&&this._fireChangeEvents(),!this._historyChanging&&(r||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...n}=e,i=!this.maskEquals(t),s=this.masked.optionsIsChanged(n);i&&(this.mask=t),s&&this.masked.updateOptions(n),(i||s)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,j.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new ud({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,s=n===this.masked.rawInputValue?t.removeDirection:j.NONE;let r=this.masked.nearestInputPos(t.startChangePos+i,s);s!==j.NONE&&(r=this.masked.nearestInputPos(r,j.NONE)),this.updateControl(r),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}Q.InputMask=md;class Y{static normalize(e){return Array.isArray(e)?e:[e,new Y]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}Q.ChangeDetails=Y;class Y1{constructor(e,t,n){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class v1{constructor(e){this._value="",this._update({...v1.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new Y1(this.extractInput(e,t),e)}appendTail(e){return g3(e)&&(e=new Y1(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new Y({inserted:e,rawInserted:e})):new Y}_appendChar(e,t,n){t===void 0&&(t={});const i=this.state;let s;if([e,s]=this.doPrepareChar(e,t),e&&(s=s.aggregate(this._appendCharRaw(e,t)),!s.rawInserted&&this.autofix==="pad")){const r=this.state;this.state=i;let o=this.pad(t);const c=this._appendCharRaw(e,t);o=o.aggregate(c),c.rawInserted||o.equals(s)?s=o:this.state=r}if(s.inserted){let r,o=this.doValidate(t)!==!1;if(o&&n!=null){const c=this.state;if(this.overwrite===!0){r=n.state;for(let u=0;u<s.rawInserted.length;++u)n.unshift(this.displayValue.length-s.tailShift)}let d=this.appendTail(n);if(o=d.rawInserted.length===n.toString().length,!(o&&d.inserted)&&this.overwrite==="shift"){this.state=c,r=n.state;for(let u=0;u<s.rawInserted.length;++u)n.shift();d=this.appendTail(n),o=d.rawInserted.length===n.toString().length}o&&d.inserted&&(this.state=c)}o||(s=new Y,this.state=i,n&&r&&(n.state=r))}return s}_appendPlaceholder(){return new Y}_appendEager(){return new Y}append(e,t,n){if(!g3(e))throw new Error("value should be string");const i=g3(n)?new Y1(String(n)):n;t!=null&&t.tail&&(t._beforeTailState=this.state);let s;[e,s]=this.doPrepare(e,t);for(let r=0;r<e.length;++r){const o=this._appendChar(e[r],t,i);if(!o.rawInserted&&!this.doSkipInvalid(e[r],t,i))break;s.aggregate(o)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&s.aggregate(this._appendEager()),i!=null&&(s.tailShift+=this.appendTail(i).tailShift),s}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new Y}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==n&&n.indexOf(this.value)===0&&(this.append(n.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),Y.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),Y.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,n,i,s){n===void 0&&(n=""),i===void 0&&(i=j.NONE),s===void 0&&(s={input:!0});const r=e+t,o=this.extractTail(r),c=this.eager===!0||this.eager==="remove";let d;c&&(i=dd(i),d=this.extractInput(0,r,{raw:!0}));let u=e;const h=new Y;if(i!==j.NONE&&(u=this.nearestInputPos(e,t>1&&e!==0&&!c?j.NONE:i),h.tailShift=u-e),h.aggregate(this.remove(u)),c&&i!==j.NONE&&d===this.rawInputValue)if(i===j.FORCE_LEFT){let m;for(;d===this.rawInputValue&&(m=this.displayValue.length);)h.aggregate(new Y({tailShift:-1})).aggregate(this.remove(m-1))}else i===j.FORCE_RIGHT&&o.unshift();return h.aggregate(this.append(n,s,o))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!V0(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||v1.EMPTY_VALUES.includes(e)&&v1.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new Y}}v1.DEFAULTS={skipInvalid:!0},v1.EMPTY_VALUES=[void 0,null,""],Q.Masked=v1;class O3{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=g3(e)?new Y1(String(e)):e;const t=this.chunks[this.chunks.length-1],n=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof Y1)n?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof O3){if(e.stop==null){let i;for(;e.chunks.length&&e.chunks[0].stop==null;)i=e.chunks.shift(),i.from+=e.from,this.extend(i)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof Q.MaskedPattern))return new Y1(this.toString()).appendTo(e);const t=new Y;for(let n=0;n<this.chunks.length;++n){const i=this.chunks[n],s=e._mapPosToBlock(e.displayValue.length),r=i.stop;let o;if(r!=null&&(!s||s.index<=r)&&((i instanceof O3||e._stops.indexOf(r)>=0)&&t.aggregate(e._appendPlaceholder(r)),o=i instanceof O3&&e._blocks[r]),o){const c=o.appendTail(i);t.aggregate(c);const d=i.toString().slice(c.rawInserted.length);d&&t.aggregate(e.append(d,{tail:!0}))}else t.aggregate(e.append(i.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...n}=e;Object.assign(this,n),this.chunks=t.map(i=>{const s="chunks"in i?new O3:new Y1;return s.state=i,s})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],s=i.unshift(t);if(i.toString()){if(!s)break;++n}else this.chunks.splice(n,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class pd{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,j.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,j.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,j.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,j.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,j.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,j.NONE),!0})}}class il{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new Y}nearestInputPos(e,t){t===void 0&&(t=j.NONE);const n=0,i=this._value.length;switch(t){case j.LEFT:case j.FORCE_LEFT:return n;case j.NONE:case j.RIGHT:case j.FORCE_RIGHT:default:return i}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new Y;const n=this.eager===!0||this.eager==="append",s=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&!t.tail,r=new Y({inserted:this.char,rawInserted:s?this.char:""});return this._value=this.char,this._isRawInput=s&&(t.raw||t.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new Y;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new Y1("")}appendTail(e){return g3(e)&&(e=new Y1(String(e))),e.appendTo(this)}append(e,t,n){const i=this._appendChar(e[0],t);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class T0{constructor(e){const{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:r,eager:o,...c}=e;this.masked=l3(c),Object.assign(this,{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:r,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new Y}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new Y;const n=this.masked.state;let i=this.masked._appendChar(e,this.currentMaskFlags(t));return i.inserted&&this.doValidate(t)===!1&&(i=new Y,this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new Y:(this.isFilled=!0,new Y({inserted:this.placeholderChar}))}_appendEager(){return new Y}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){t===void 0&&(t=j.NONE);const n=0,i=this.value.length,s=Math.min(Math.max(e,n),i);switch(t){case j.LEFT:case j.FORCE_LEFT:return this.isComplete?s:n;case j.RIGHT:case j.FORCE_RIGHT:return this.isComplete?s:i;case j.NONE:default:return s}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||e?._beforeTailState}}pad(e){return new Y}}T0.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class vd extends v1{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=n=>n.search(t)>=0),super._update(e)}}Q.MaskedRegExp=vd;class g1 extends v1{constructor(e){super({...g1.DEFAULTS,...e,definitions:Object.assign({},T0.DEFAULT_DEFINITIONS,e?.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let n=!1,i=!1;for(let s=0;s<t.length;++s){if(this.blocks){const d=t.slice(s),u=Object.keys(this.blocks).filter(m=>d.indexOf(m)===0);u.sort((m,f)=>f.length-m.length);const h=u[0];if(h){const{expose:m,repeat:f,...y}=Ie(this.blocks[h]),g={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...y,repeat:f,parent:this},v=f!=null?new Q.RepeatBlock(g):l3(g);v&&(this._blocks.push(v),m&&(this.exposeBlock=v),this._maskedBlocks[h]||(this._maskedBlocks[h]=[]),this._maskedBlocks[h].push(this._blocks.length-1)),s+=h.length-1;continue}}let r=t[s],o=r in e;if(r===g1.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(r==="{"||r==="}"){n=!n;continue}if(r==="["||r==="]"){i=!i;continue}if(r===g1.ESCAPE_CHAR){if(++s,r=t[s],!r)break;o=!1}const c=o?new T0({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Ie(e[r]),parent:this}):new il({char:r,eager:this.eager,isUnmasking:n});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...n}=e;this._blocks.forEach((i,s)=>i.state=t[s]),super.state=n}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new Y;let n=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(n==null)return t;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const s=this._blocks[i]._appendEager();if(!s.inserted)break;t.aggregate(s)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const n=this._mapPosToBlock(this.displayValue.length),i=new Y;if(!n)return i;for(let r=n.index,o;o=this._blocks[r];++r){var s;const c=o._appendChar(e,{...t,_beforeTailState:(s=t._beforeTailState)==null||(s=s._blocks)==null?void 0:s[r]});if(i.aggregate(c),c.consumed)break}return i}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=new O3;return e===t||this._forEachBlocksInRange(e,t,(i,s,r,o)=>{const c=i.extractTail(r,o);c.stop=this._findStopBefore(s),c.from=this._blockStartPos(s),c instanceof O3&&(c.blockIndex=s),n.extend(c)}),n}extractInput(e,t,n){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),n===void 0&&(n={}),e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(s,r,o,c)=>{i+=s.extractInput(o,c,n)}),i}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=e)t=i;else break}return t}_appendPlaceholder(e){const t=new Y;if(this.lazy&&e==null)return t;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;const i=n.index,s=e??this._blocks.length;return this._blocks.slice(i,s).forEach(r=>{if(!r.lazy||e!=null){var o;t.aggregate(r._appendPlaceholder((o=r._blocks)==null?void 0:o.length))}}),t}_mapPosToBlock(e){let t="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],s=t.length;if(t+=i.displayValue,e<=t.length)return{index:n,offset:e-s}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,n)=>t+=n.displayValue.length,0)}_forEachBlocksInRange(e,t,n){t===void 0&&(t=this.displayValue.length);const i=this._mapPosToBlock(e);if(i){const s=this._mapPosToBlock(t),r=s&&i.index===s.index,o=i.offset,c=s&&r?s.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,o,c),s&&!r){for(let d=i.index+1;d<s.index;++d)n(this._blocks[d],d,0,this._blocks[d].displayValue.length);n(this._blocks[s.index],s.index,0,s.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(i,s,r,o)=>{n.aggregate(i.remove(r,o))}),n}nearestInputPos(e,t){if(t===void 0&&(t=j.NONE),!this._blocks.length)return 0;const n=new pd(this,e);if(t===j.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(t===j.LEFT||t===j.FORCE_LEFT){if(t===j.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===j.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e||(n.popState(),n.ok&&n.pos<=e))return n.pos;n.popState()}return n.ok?n.pos:t===j.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return t===j.RIGHT||t===j.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===j.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(e,j.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=0;return this._forEachBlocksInRange(e,t,(i,s,r,o)=>{n+=i.totalInputPositions(r,o)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(n=>this._blocks[n]):[]}pad(e){const t=new Y;return this._forEachBlocksInRange(0,this.displayValue.length,n=>t.aggregate(n.pad(e))),t}}g1.DEFAULTS={...v1.DEFAULTS,lazy:!0,placeholderChar:"_"},g1.STOP_CHAR="`",g1.ESCAPE_CHAR="\\",g1.InputDefinition=T0,g1.FixedDefinition=il,Q.MaskedPattern=g1;class L0 extends g1{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:s=this.autofix,...r}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,i),this.autofix=s;const o=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let d=0;for(;d<c.length&&c[d]===o[d];)++d;r.mask=c.slice(0,d).replace(/0/g,"\\0")+"0".repeat(this.maxLength-d),super._update(r)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",n="";const[,i,s]=e.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(t="0".repeat(i.length)+s,n="9".repeat(i.length)+s),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepareChar(e,t){t===void 0&&(t={});let n;return[e,n]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const n=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),[s,r]=this.boundaries(this.value+e);return Number(r)<this.from?super._appendCharRaw(n[this.value.length],t):Number(s)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(i[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[i,s]=this.boundaries(t);return this.from<=Number(s)&&Number(i)<=this.to&&super.doValidate(e)}pad(e){const t=new Y;if(this.value.length===this.maxLength)return t;const n=this.value,i=this.maxLength-this.value.length;if(i){this.reset();for(let s=0;s<i;++s)t.aggregate(super._appendCharRaw("0",e));n.split("").forEach(s=>this._appendCharRaw(s))}return t}}Q.MaskedRange=L0;const gd="d{.}`m{.}`Y";class s3 extends g1{static extractPatternOptions(e){const{mask:t,pattern:n,...i}=e;return{...i,mask:g3(t)?t:n}}constructor(e){super(s3.extractPatternOptions({...s3.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:n,blocks:i,...s}={...s3.DEFAULTS,...e},r=Object.assign({},s3.GET_DEFAULT_BLOCKS());e.min&&(r.Y.from=e.min.getFullYear()),e.max&&(r.Y.to=e.max.getFullYear()),e.min&&e.max&&r.Y.from===r.Y.to&&(r.m.from=e.min.getMonth()+1,r.m.to=e.max.getMonth()+1,r.m.from===r.m.to&&(r.d.from=e.min.getDate(),r.d.to=e.max.getDate())),Object.assign(r,this.blocks,i),super._update({...s,mask:g3(t)?t:n,blocks:r})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(s3.extractPatternOptions(e))}}s3.GET_DEFAULT_BLOCKS=()=>({d:{mask:L0,from:1,to:31,maxLength:2},m:{mask:L0,from:1,to:12,maxLength:2},Y:{mask:L0,from:1900,to:9999}}),s3.DEFAULTS={...g1.DEFAULTS,mask:Date,pattern:gd,format:(a,e)=>{if(!a)return"";const t=String(a.getDate()).padStart(2,"0"),n=String(a.getMonth()+1).padStart(2,"0"),i=a.getFullYear();return[t,n,i].join(".")},parse:(a,e)=>{const[t,n,i]=a.split(".").map(Number);return new Date(i,n-1,t)}},Q.MaskedDate=s3;class N0 extends v1{constructor(e){super({...N0.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:n,...i}=Ie(t),s=l3({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=s),s}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(e,t,n){e===void 0&&(e=""),t===void 0&&(t={}),n===void 0&&(n="");const i=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,s=this.rawInputValue,r=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:s,o=s.slice(r.length),c=this.currentMask,d=new Y,u=c?.state;return this.currentMask=this.doDispatch(e,{...t},n),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),r&&(this.currentMask.append(r,{raw:!0}),d.tailShift=this.currentMask.value.length-i.length),o&&(d.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)):u&&(this.currentMask.state=u)),d}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new Y;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((n=e._beforeTailState)==null?void 0:n.currentMask)||e._beforeTailState}}doDispatch(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=""),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[n,i]=super.doPrepare(e,t);if(this.currentMask){let s;[n,s]=super.doPrepare(n,this.currentMaskFlags(t)),i=i.aggregate(s)}return[n,i]}doPrepareChar(e,t){t===void 0&&(t={});let[n,i]=super.doPrepareChar(e,t);if(this.currentMask){let s;[n,s]=super.doPrepareChar(n,this.currentMaskFlags(t)),i=i.aggregate(s)}return[n,i]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const n=new Y;return this.currentMask&&n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:i,...s}=e;t&&this.compiledMasks.forEach((r,o)=>r.state=t[o]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=s}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,n)=>{if(!e[n])return;const{mask:i,...s}=e[n];return V0(t,s)&&t.maskEquals(i)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}}N0.DEFAULTS={...v1.DEFAULTS,dispatch:(a,e,t,n)=>{if(!e.compiledMasks.length)return;const i=e.rawInputValue,s=e.compiledMasks.map((r,o)=>{const c=e.currentMask===r,d=c?r.displayValue.length:r.nearestInputPos(r.displayValue.length,j.FORCE_LEFT);return r.rawInputValue!==i?(r.reset(),r.append(i,{raw:!0})):c||r.remove(d),r.append(a,e.currentMaskFlags(t)),r.appendTail(n),{index:o,weight:r.rawInputValue.length,totalInputPositions:r.totalInputPositions(0,Math.max(d,r.nearestInputPos(r.displayValue.length,j.FORCE_LEFT)))}});return s.sort((r,o)=>o.weight-r.weight||o.totalInputPositions-r.totalInputPositions),e.compiledMasks[s[0].index]}},Q.MaskedDynamic=N0;class H0 extends g1{constructor(e){super({...H0.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...n}=e;if(t){const i=t.map(o=>o.length),s=Math.min(...i),r=Math.max(...i)-s;n.mask="*".repeat(s),r&&(n.mask+="["+"*".repeat(r)+"]"),this.enum=t}super._update(n)}_appendCharRaw(e,t){t===void 0&&(t={});const n=Math.min(this.nearestInputPos(0,j.FORCE_RIGHT),this.value.length),i=this.enum.filter(s=>this.matchValue(s,this.unmaskedValue+e,n));if(i.length){i.length===1&&this._forEachBlocksInRange(0,this.value.length,(r,o)=>{const c=i[0][o];o>=this.value.length||c===r.value||(r.reset(),r._appendChar(c,t))});const s=super._appendCharRaw(i[0][this.value.length],t);return i.length===1&&i[0].slice(this.unmaskedValue.length).split("").forEach(r=>s.aggregate(super._appendCharRaw(r))),s}return new Y({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new Y1("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new Y;const n=Math.min(super.nearestInputPos(0,j.FORCE_RIGHT),this.value.length);let i;for(i=e;i>=0&&!(this.enum.filter(o=>this.matchValue(o,this.value.slice(n,i),n)).length>1);--i);const s=super.remove(i,t);return s.tailShift+=i-e,s}get isComplete(){return this.enum.indexOf(this.value)>=0}}H0.DEFAULTS={...g1.DEFAULTS,matchValue:(a,e,t)=>a.indexOf(e,t)===t},Q.MaskedEnum=H0;class yd extends v1{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}Q.MaskedFunction=yd;var ll;class R1 extends v1{constructor(e){super({...R1.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",n=(this.scale?"("+_2(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(_2).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(_2(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(e,t){t===void 0&&(t=!1);let n=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e,t){t===void 0&&(t={});const n=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const s=this._value;this._value+=e;const r=this.number;let o=!isNaN(r),c=!1;if(o){let m;this.min!=null&&this.min<0&&this.number<this.min&&(m=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(m=this.max),m!=null&&(this.autofix?(this._value=this.format(m,this).replace(R1.UNMASKED_RADIX,this.radix),c||(c=s===this._value&&!t.tail)):o=!1),o&&(o=!!this._value.match(this._numberRegExp))}let d;o?d=new Y({inserted:this._value.slice(s.length),rawInserted:c?"":e,skip:c}):(this._value=s,d=new Y),this._value=this._insertThousandsSeparators(this._value);const u=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,h=this._separatorsCountFromSlice(u);return d.tailShift+=(h-i)*this.thousandsSeparator.length,d}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n>=0&&(e=n);const i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),i=this.value.slice(t),s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const r=this._separatorsCountFromSlice(n);return new Y({tailShift:(r-s)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case j.NONE:case j.LEFT:case j.FORCE_LEFT:{const n=this._findSeparatorAround(e-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===j.FORCE_LEFT)return n}break}case j.RIGHT:case j.FORCE_RIGHT:{const n=this._findSeparatorAround(e);if(n>=0)return n+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(n,i,s,r)=>i+r),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,n){t===void 0&&(t={});const i=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===R1.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,R1.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(R1.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||R1.EMPTY_VALUES.includes(e)&&R1.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}ll=R1,R1.UNMASKED_RADIX=".",R1.EMPTY_VALUES=[...v1.EMPTY_VALUES,0],R1.DEFAULTS={...v1.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[ll.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:a=>a.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},Q.MaskedNumber=R1;const P2={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function sl(a,e,t){e===void 0&&(e=P2.MASKED),t===void 0&&(t=P2.MASKED);const n=l3(a);return i=>n.runIsolated(s=>(s[e]=i,s[t]))}function Ad(a,e,t,n){return sl(e,t,n)(a)}Q.PIPE_TYPE=P2,Q.createPipe=sl,Q.pipe=Ad;class bd extends g1{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,n,i;const{repeat:s,...r}=Ie(e);this._blockOpts=Object.assign({},this._blockOpts,r);const o=l3(this._blockOpts);this.repeat=(t=(n=s??o.repeat)!=null?n:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((i=this._blocks)==null?void 0:i.length)||0,this.repeatFrom)),blocks:{m:o},eager:o.eager,overwrite:o.overwrite,skipInvalid:o.skipInvalid,lazy:o.lazy,placeholderChar:o.placeholderChar,displayChar:o.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(l3(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const n=new Y;for(let c=(i=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?i:Math.max(this._blocks.length-1,0),d,u;d=(r=this._blocks[c])!=null?r:u=!u&&this._allocateBlock(c);++c){var i,s,r,o;const h=d._appendChar(e,{...t,_beforeTailState:(o=t._beforeTailState)==null||(o=o._blocks)==null?void 0:o[c]});if(h.skip&&u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(h),h.consumed)break}return n}_trimEmptyTail(e,t){var n,i;e===void 0&&(e=0);const s=Math.max(((n=this._mapPosToBlock(e))==null?void 0:n.index)||0,this.repeatFrom,0);let r;t!=null&&(r=(i=this._mapPosToBlock(t))==null?void 0:i.index),r==null&&(r=this._blocks.length-1);let o=0;for(let c=r;s<=c&&!this._blocks[c].unmaskedValue;--c,++o);o&&(this._blocks.splice(r-o+1,o),this.mask=this.mask.slice(o))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}Q.RepeatBlock=bd;try{globalThis.IMask=Q}catch{}function O0(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var F0={exports:{}},Ed=F0.exports,rl;function ol(){return rl||(rl=1,(function(a,e){(function(t,n){a.exports=n()})(Ed,(function(){var t=1e3,n=6e4,i=36e5,s="millisecond",r="second",o="minute",c="hour",d="day",u="week",h="month",m="quarter",f="year",y="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var x=["th","st","nd","rd"],B=L%100;return"["+L+(x[(B-20)%10]||x[B]||x[0])+"]"}},w=function(L,x,B){var C=String(L);return!C||C.length>=x?L:""+Array(x+1-C.length).join(B)+L},p={s:w,z:function(L){var x=-L.utcOffset(),B=Math.abs(x),C=Math.floor(B/60),k=B%60;return(x<=0?"+":"-")+w(C,2,"0")+":"+w(k,2,"0")},m:function L(x,B){if(x.date()<B.date())return-L(B,x);var C=12*(B.year()-x.year())+(B.month()-x.month()),k=x.clone().add(C,h),T=B-k<0,F=x.clone().add(C+(T?-1:1),h);return+(-(C+(B-k)/(T?k-F:F-k))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:f,w:u,d,D:y,h:c,m:o,s:r,ms:s,Q:m}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},D="en",S={};S[D]=b;var V="$isDayjsObject",I=function(L){return L instanceof G||!(!L||!L[V])},P=function L(x,B,C){var k;if(!x)return D;if(typeof x=="string"){var T=x.toLowerCase();S[T]&&(k=T),B&&(S[T]=B,k=T);var F=x.split("-");if(!k&&F.length>1)return L(F[0])}else{var q=x.name;S[q]=x,k=q}return!C&&k&&(D=k),k||!C&&D},R=function(L,x){if(I(L))return L.clone();var B=typeof x=="object"?x:{};return B.date=L,B.args=arguments,new G(B)},N=p;N.l=P,N.i=I,N.w=function(L,x){return R(L,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var G=(function(){function L(B){this.$L=P(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[V]=!0}var x=L.prototype;return x.parse=function(B){this.$d=(function(C){var k=C.date,T=C.utc;if(k===null)return new Date(NaN);if(N.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var F=k.match(v);if(F){var q=F[2]-1||0,X=(F[7]||"0").substring(0,3);return T?new Date(Date.UTC(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)):new Date(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)}}return new Date(k)})(B),this.init()},x.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},x.$utils=function(){return N},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(B,C){var k=R(B);return this.startOf(C)<=k&&k<=this.endOf(C)},x.isAfter=function(B,C){return R(B)<this.startOf(C)},x.isBefore=function(B,C){return this.endOf(C)<R(B)},x.$g=function(B,C,k){return N.u(B)?this[C]:this.set(k,B)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(B,C){var k=this,T=!!N.u(C)||C,F=N.p(B),q=function(k1,u1){var E1=N.w(k.$u?Date.UTC(k.$y,u1,k1):new Date(k.$y,u1,k1),k);return T?E1:E1.endOf(d)},X=function(k1,u1){return N.w(k.toDate()[k1].apply(k.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(u1)),k)},l1=this.$W,s1=this.$M,o1=this.$D,y1="set"+(this.$u?"UTC":"");switch(F){case f:return T?q(1,0):q(31,11);case h:return T?q(1,s1):q(0,s1+1);case u:var M1=this.$locale().weekStart||0,b1=(l1<M1?l1+7:l1)-M1;return q(T?o1-b1:o1+(6-b1),s1);case d:case y:return X(y1+"Hours",0);case c:return X(y1+"Minutes",1);case o:return X(y1+"Seconds",2);case r:return X(y1+"Milliseconds",3);default:return this.clone()}},x.endOf=function(B){return this.startOf(B,!1)},x.$set=function(B,C){var k,T=N.p(B),F="set"+(this.$u?"UTC":""),q=(k={},k[d]=F+"Date",k[y]=F+"Date",k[h]=F+"Month",k[f]=F+"FullYear",k[c]=F+"Hours",k[o]=F+"Minutes",k[r]=F+"Seconds",k[s]=F+"Milliseconds",k)[T],X=T===d?this.$D+(C-this.$W):C;if(T===h||T===f){var l1=this.clone().set(y,1);l1.$d[q](X),l1.init(),this.$d=l1.set(y,Math.min(this.$D,l1.daysInMonth())).$d}else q&&this.$d[q](X);return this.init(),this},x.set=function(B,C){return this.clone().$set(B,C)},x.get=function(B){return this[N.p(B)]()},x.add=function(B,C){var k,T=this;B=Number(B);var F=N.p(C),q=function(s1){var o1=R(T);return N.w(o1.date(o1.date()+Math.round(s1*B)),T)};if(F===h)return this.set(h,this.$M+B);if(F===f)return this.set(f,this.$y+B);if(F===d)return q(1);if(F===u)return q(7);var X=(k={},k[o]=n,k[c]=i,k[r]=t,k)[F]||1,l1=this.$d.getTime()+B*X;return N.w(l1,this)},x.subtract=function(B,C){return this.add(-1*B,C)},x.format=function(B){var C=this,k=this.$locale();if(!this.isValid())return k.invalidDate||g;var T=B||"YYYY-MM-DDTHH:mm:ssZ",F=N.z(this),q=this.$H,X=this.$m,l1=this.$M,s1=k.weekdays,o1=k.months,y1=k.meridiem,M1=function(u1,E1,q1,G1){return u1&&(u1[E1]||u1(C,T))||q1[E1].slice(0,G1)},b1=function(u1){return N.s(q%12||12,u1,"0")},k1=y1||function(u1,E1,q1){var G1=u1<12?"AM":"PM";return q1?G1.toLowerCase():G1};return T.replace(A,(function(u1,E1){return E1||(function(q1){switch(q1){case"YY":return String(C.$y).slice(-2);case"YYYY":return N.s(C.$y,4,"0");case"M":return l1+1;case"MM":return N.s(l1+1,2,"0");case"MMM":return M1(k.monthsShort,l1,o1,3);case"MMMM":return M1(o1,l1);case"D":return C.$D;case"DD":return N.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return M1(k.weekdaysMin,C.$W,s1,2);case"ddd":return M1(k.weekdaysShort,C.$W,s1,3);case"dddd":return s1[C.$W];case"H":return String(q);case"HH":return N.s(q,2,"0");case"h":return b1(1);case"hh":return b1(2);case"a":return k1(q,X,!0);case"A":return k1(q,X,!1);case"m":return String(X);case"mm":return N.s(X,2,"0");case"s":return String(C.$s);case"ss":return N.s(C.$s,2,"0");case"SSS":return N.s(C.$ms,3,"0");case"Z":return F}return null})(u1)||F.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(B,C,k){var T,F=this,q=N.p(C),X=R(B),l1=(X.utcOffset()-this.utcOffset())*n,s1=this-X,o1=function(){return N.m(F,X)};switch(q){case f:T=o1()/12;break;case h:T=o1();break;case m:T=o1()/3;break;case u:T=(s1-l1)/6048e5;break;case d:T=(s1-l1)/864e5;break;case c:T=s1/i;break;case o:T=s1/n;break;case r:T=s1/t;break;default:T=s1}return k?T:N.a(T)},x.daysInMonth=function(){return this.endOf(h).$D},x.$locale=function(){return S[this.$L]},x.locale=function(B,C){if(!B)return this.$L;var k=this.clone(),T=P(B,C,!0);return T&&(k.$L=T),k},x.clone=function(){return N.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},L})(),$=G.prototype;return R.prototype=$,[["$ms",s],["$s",r],["$m",o],["$H",c],["$W",d],["$M",h],["$y",f],["$D",y]].forEach((function(L){$[L[1]]=function(x){return this.$g(x,L[0],L[1])}})),R.extend=function(L,x){return L.$i||(L(x,G,R),L.$i=!0),R},R.locale=P,R.isDayjs=I,R.unix=function(L){return R(1e3*L)},R.en=S[D],R.Ls=S,R.p={},R}))})(F0)),F0.exports}var wd=ol();const t1=O0(wd);var j0={exports:{}},Cd=j0.exports,cl;function zd(){return cl||(cl=1,(function(a,e){(function(t,n){a.exports=n(ol())})(Cd,(function(t){function n(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var i=n(t),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(r){return""+r+(r===1?"er":"")}};return i.default.locale(s,null,!0),s}))})(j0)),j0.exports}zd();var U0={exports:{}},Sd=U0.exports,dl;function Md(){return dl||(dl=1,(function(a,e){(function(t,n){a.exports=n()})(Sd,(function(){return function(t,n){n.prototype.weekday=function(i){var s=this.$locale().weekStart||0,r=this.$W,o=(r<s?r+7:r)-s;return this.$utils().u(i)?o:this.subtract(o,"day").add(i,"day")}}}))})(U0)),U0.exports}var kd=Md();const xd=O0(kd);var _0={exports:{}},Bd=_0.exports,ul;function Dd(){return ul||(ul=1,(function(a,e){(function(t,n){a.exports=n()})(Bd,(function(){return function(t,n,i){n.prototype.isBetween=function(s,r,o,c){var d=i(s),u=i(r),h=(c=c||"()")[0]==="(",m=c[1]===")";return(h?this.isAfter(d,o):!this.isBefore(d,o))&&(m?this.isBefore(u,o):!this.isAfter(u,o))||(h?this.isBefore(d,o):!this.isAfter(d,o))&&(m?this.isAfter(u,o):!this.isBefore(u,o))}}}))})(_0)),_0.exports}var Vd=Dd();const Id=O0(Vd);var K0={exports:{}},Rd=K0.exports,hl;function Td(){return hl||(hl=1,(function(a,e){(function(t,n){a.exports=n()})(Rd,(function(){var t="week",n="year";return function(i,s,r){var o=s.prototype;o.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=r(this).startOf(n).add(1,n).date(d),h=r(this).endOf(t);if(u.isBefore(h))return 1}var m=r(this).startOf(n).date(d).startOf(t).subtract(1,"millisecond"),f=this.diff(m,t,!0);return f<0?r(this).startOf("week").week():Math.ceil(f)},o.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(K0)),K0.exports}var Ld=Td();const Nd=O0(Ld);t1.locale("fr"),t1.extend(xd),t1.extend(Id),t1.extend(Nd);const Hd=(a=new Date)=>t1(a).startOf("month").format("d"),Od=(a=new Date)=>t1(a).daysInMonth(),Fd=(a,e,{noDay:t=!1}={})=>t?t1(a).isSame(e,"month")&&t1(a).isSame(e,"year"):t1(a).isSame(e,"day")&&t1(a).isSame(e,"month")&&t1(a).isSame(e,"year"),W2=({date:a=new Date,key:e="month",number:t=1})=>t1(a).add(t,e).toDate(),jd=(a=new Date,{skipWE:e=!1,monthFormat:t="MMMM",dayFormat:n="dd"}={})=>{const i=t1(a),s=i.weekday(0),r=[],o=6-(e?2:0);for(let c=0;c<=o;c++){const d=i.format("D"),u=t1(s).add(c,"days").format("D");r.push({number:parseInt(u),month:t1(s).add(c,"days").format(t),day:t1(s).add(c,"days").format(n),isCurrent:d===u})}return r},Ud=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],_d=a=>t1(a).format("YYYY");var h1=(a=>(a[a.Day=0]="Day",a[a.Month=1]="Month",a[a.Year=2]="Year",a))(h1||{});const Kd={class:"datepicker-navigation-container"},Pd={class:"datepicker-navigation"},Wd=l.defineComponent({__name:"DatePickerNavigation",props:{navigationDate:{},navType:{}},emits:["updateNavDate","updateNavType"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(t.navigationDate),s=l.computed(()=>t1(t.navigationDate).format("MMMM")),r=l.computed(()=>t1(t.navigationDate).format("YYYY")),o=l.computed(()=>{const u=Number(r.value);return`${u-8} - ${u+7}`}),c=l.computed(()=>[h1.Day,h1.Month].includes(t.navType)),d=l.computed(()=>u=>{const h=m=>u==="left"?-m:m;switch(t.navType){case h1.Day:i.value=W2({date:t.navigationDate,key:"month",number:h(1)});break;case h1.Month:i.value=W2({date:t.navigationDate,key:"year",number:h(1)});break;case h1.Year:i.value=W2({date:t.navigationDate,key:"year",number:h(16)});break}});return l.watch(i,()=>n("updateNavDate",i.value)),(u,h)=>(l.openBlock(),l.createElementBlock("div",Kd,[l.createElementVNode("div",Pd,[l.createElementVNode("button",{type:"button",class:"datepicker-navigation-arrows datepicker-navigation-button",onClick:h[0]||(h[0]=m=>d.value("left"))},[...h[4]||(h[4]=[l.createElementVNode("span",null,"‹",-1)])]),c.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month",onClick:h[1]||(h[1]=m=>u.$emit("updateNavType",l.unref(h1).Month))},[l.createElementVNode("span",null,l.toDisplayString(s.value),1)])):l.createCommentVNode("",!0),l.createElementVNode("button",{type:"button",class:l.normalizeClass(["datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month",{"datepicker-navigation-button__inactive":a.navType===l.unref(h1).Year}]),onClick:h[2]||(h[2]=m=>u.$emit("updateNavType",l.unref(h1).Year))},[l.createElementVNode("span",null,l.toDisplayString(a.navType===l.unref(h1).Year?o.value:r.value),1)],2),l.createElementVNode("button",{type:"button",class:"datepicker-navigation-arrows datepicker-navigation-button",onClick:h[3]||(h[3]=m=>d.value("right"))},[...h[5]||(h[5]=[l.createElementVNode("span",null,"›",-1)])])])]))}}),Qd={role:"grid",class:"datepicker-calendar"},Yd={key:0},qd={"aria-label":"weekday",class:"calendar-weekday"},Gd=["onClick"],Jd={class:"calendar-cell-content calendar-day-cell-content"},Zd=["onClick"],Xd={class:"calendar-cell-content calendar-month-cell-content"},$d=["onClick"],eu={class:"calendar-cell-content calendar-year-cell-content"},tu=l.defineComponent({__name:"DatePickerCalendar",props:{selectedDate:{},navigationDate:{},navType:{},min:{},max:{}},emits:["updateNavDate","updateSelectedDate","updateNavType"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(t.navigationDate),s=jd(void 0,{dayFormat:"ddd"}).map(({day:v})=>v),r=v=>t.min===void 0||v.isAfter(t1(t.min).startOf("day")),o=v=>t.max===void 0||v.isBefore(t1(t.max).endOf("day")),c=v=>r(v)&&o(v),d=v=>{i.value=v},u=l.computed(()=>{const v=[];let A=parseInt(Hd(t.navigationDate));A===0&&(A=7);const b=t1(t.navigationDate).add(-1,"month").daysInMonth();for(let w=1;w<A;w++){const p=t1(t.navigationDate).add(-1,"month").date(b-w+1),D=c(p);v.push({class:{"calendar-day-cell":!0,"calendar-day-cell-invisible":!0,"calendar-cell__disabled":!D},value:p.date(),onClick:()=>D&&d(p.toDate())})}return v.reverse(),v}),h=l.computed(()=>{const v=[];for(let A=1;A<=Od(t.navigationDate);A++){const b=t1(t.navigationDate).date(A),w=t.selectedDate!==void 0&&Fd(t.selectedDate,b.toDate()),p=c(t1(t.navigationDate).date(A));v.push({class:{"calendar-cell__disabled":!p,"calendar-cell__selected":w,"calendar-day-cell-current-month":!0},value:A,onClick:()=>!w&&p&&d(b.toDate())})}return v}),m=l.computed(()=>[...u.value,...h.value]),f=l.computed(()=>{const v=[];let A=[];m.value.forEach((w,p)=>{if(p===0||p%7!==0)A.push(w);else{const D=A.slice();v.push(D),A=[],A.push(w)}if(p===m.value.length-1){const D=A.slice();v.push(D)}});let b=0;for(let w=0;w<6;w++){const p=v[w]?[...v[w]]:[];if(p.length<7)for(let D=0;D<7;D++){if(p[D])continue;b++;const V=t1(t.navigationDate).add(1,"month").date(b),I=c(V);p.push({class:{"calendar-day-cell":!0,"calendar-day-cell-invisible":!0,"calendar-cell__disabled":!I},value:V.date(),onClick:()=>I&&d(V.toDate())})}v[w]=p}return v}),y=l.computed(()=>[...Array(4).keys()].map(b=>{const w=b*3;return Ud.slice(w,w+3).map((D,S)=>{const V=t1(t.navigationDate).month(w+S);return{value:D,onClick:()=>d(V.toDate())}})})),g=l.computed(()=>{const w=Number(_d(t.navigationDate))-8,p=[];for(let D=w;D<w+16;D++)p.push(D);return[...Array(4).keys()].map(D=>{const S=D*4;return p.slice(S,S+4).map(I=>{const P=t1(t.navigationDate).year(I).toDate();return{value:I,onClick:()=>d(P)}})})});return l.watch(i,()=>{t.navType===h1.Day?n("updateSelectedDate",i.value):t.navType===h1.Month?(n("updateNavDate",i.value),n("updateNavType",h1.Day)):t.navType===h1.Year&&(n("updateNavDate",i.value),n("updateNavType",h1.Month))}),(v,A)=>(l.openBlock(),l.createElementBlock("table",Qd,[a.navType===l.unref(h1).Day?(l.openBlock(),l.createElementBlock("thead",Yd,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),b=>(l.openBlock(),l.createElementBlock("th",qd,[l.createElementVNode("span",null,l.toDisplayString(b),1)]))),256))])])):l.createCommentVNode("",!0),l.createElementVNode("tbody",null,[a.navType===l.unref(h1).Day?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(f.value,b=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(b,w=>(l.openBlock(),l.createElementBlock("td",{class:l.normalizeClass(["calendar-cell calendar-day-cell",w.class]),onClick:p=>w.onClick()},[l.createElementVNode("span",Jd,l.toDisplayString(w.value),1)],10,Gd))),256))]))),256)):a.navType===l.unref(h1).Month?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(y.value,b=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(b,w=>(l.openBlock(),l.createElementBlock("td",{class:"calendar-cell calendar-month-cell",onClick:p=>w.onClick()},[l.createElementVNode("span",Xd,l.toDisplayString(w.value),1)],8,Zd))),256))]))),256)):a.navType===l.unref(h1).Year?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList(g.value,b=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(b,w=>(l.openBlock(),l.createElementBlock("td",{class:"calendar-cell calendar-year-cell",onClick:p=>w.onClick()},[l.createElementVNode("span",eu,l.toDisplayString(w.value),1)],8,$d))),256))]))),256)):l.createCommentVNode("",!0)])]))}}),au={class:"datepicker-container",role:"dialog","aria-label":"calendar"},nu={class:"datepicker-wrapper"},iu={class:"datepicker-body"},fl=l.defineComponent({__name:"DatePicker",props:{modelValue:{},min:{},max:{},onDateChange:{type:Function}},emits:["update:modelValue"],setup(a,{emit:e}){const t=e,n=l.ref(),i=l.ref(n.value??new Date),s=l.ref(h1.Day),r=d=>{i.value=d},o=d=>{n.value=d},c=d=>{s.value=d};return l.watch(n,()=>{r(n.value??new Date),n.value&&t("update:modelValue",n.value)}),(d,u)=>(l.openBlock(),l.createElementBlock("div",au,[l.createElementVNode("div",nu,[l.createVNode(Wd,{navigationDate:i.value,navType:s.value,onUpdateNavDate:r,onUpdateNavType:c},null,8,["navigationDate","navType"]),l.createElementVNode("div",iu,[l.createVNode(tu,{selectedDate:n.value,navigationDate:i.value,navType:s.value,min:a.min,max:a.max,onUpdateSelectedDate:o,onUpdateNavDate:r,onUpdateNavType:c},null,8,["selectedDate","navigationDate","navType","min","max"])])])]))}}),lu={class:"amc2-input-wrapper"},su={key:1,class:"input-require"},ru=["type","value","disabled","placeholder"],ou=["type","disabled","placeholder"],cu={key:2,class:"amc2-input-icons date"},du={key:3,class:"amc2-select-dropdown amc2-input-suggestions"},uu={class:"amc2-list-wrapper"},hu={class:"amc2-list"},fu=["onMousedown"],mu=["for"],pu={key:0,class:"amc2-input-error"},Q2=l.defineComponent({__name:"InputBase",props:{label:{},modelValue:{},type:{},iconName:{},clearable:{type:Boolean},passwordControl:{type:Boolean},disabled:{type:Boolean},error:{type:Boolean},errorMessage:{},required:{type:Boolean},placeholder:{},suggestions:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=l.ref(!1),i={text:"Texte",number:"Nombre",password:"Mot de passe",email:"Email",search:"Rechercher...",time:"Temps",tel:"Numéro de téléphone",url:"Url",date:"Date"},s=e,r=l.ref(t.modelValue??""),o=l.ref(r.value!==""),c=l.ref(!1),d=l.ref(!1),u=l.ref(null),h=l.ref({}),m=l.ref([]),f=l.ref(!1),y=l.ref(null);let g=null;const v=l.computed(()=>t.type==="password"?n.value?"text":"password":t.type==="date"?"text":t.type??"text"),A=l.computed(()=>n.value?"eye-off":"eye"),b=l.computed(()=>t.clearable===!0&&t.modelValue!==""&&!t.disabled),w=l.computed(()=>t.passwordControl&&t.type==="password"&&t.modelValue!==""),p=l.computed(()=>t.label&&t.modelValue===""?"absolute":"relative"),D=()=>{if(!t.suggestions)return;const C=String(r.value).toLowerCase();m.value=t.suggestions.filter(k=>k.label.toLowerCase().includes(C))},S=C=>{r.value=C.label,f.value=!1,s("update:modelValue",C.label)};l.watch(()=>t.modelValue,C=>{const k=C??"";r.value!==k&&(r.value=k,t.type==="date"&&g&&(g.value=String(k)))}),l.watch(d,C=>{C&&l.nextTick(()=>{V()})});const V=()=>{if(!u.value)return;const C=u.value.getBoundingClientRect();h.value={position:"absolute",top:`${C.bottom+window.scrollY}px`,left:`${C.left+window.scrollX}px`,zIndex:"2000"}},I=C=>{const k=C.target;t.type==="date"&&g?(s("update:modelValue",g.value),r.value=g.value):(s("update:modelValue",k.value),r.value=k.value),t.suggestions&&(D(),f.value=!0)},P=C=>{const k=C.toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric"});d.value=!1,s("update:modelValue",k),g&&(g.value=k)},R=()=>{o.value=!0,t.type==="date"&&g&&(d.value=!0,g.updateOptions({lazy:!1})),f.value=!0},N=()=>{setTimeout(()=>{const C=document.activeElement;if(!(document.querySelector(".datepicker-popup")?.contains(C)??!1)&&(d.value=!1,o.value=r.value!=="",t.type==="date"&&g)){const T=g.value;g.unmaskedValue!==""&&(T.length!==10||!G(T))?c.value=!0:(c.value=!1,g.unmaskedValue===""?s("update:modelValue",""):s("update:modelValue",T)),g.updateOptions({lazy:!0})}},200),f.value=!1},G=C=>{if(C==="")return!0;const[k,T,F]=C.split("/").map(Number),q=new Date(F,T-1,k);return!isNaN(q.getTime())&&q.getFullYear()===F&&q.getMonth()===T-1&&q.getDate()===k},$=()=>{t.type==="date"&&(c.value=!1,o.value=!1,g?.updateOptions({lazy:!0})),s("update:modelValue","")},L=l.computed(()=>t.label!==void 0&&t.placeholder===void 0&&t.iconName===void 0&&(t.modelValue===""||t.modelValue===void 0)),x=()=>{n.value=!n.value},B=()=>t.placeholder?t.placeholder:t.label?"":i[t.type??"text"]??"Saisissez une valeur";return l.onMounted(()=>{t.type==="date"&&y.value&&(g=Q(y.value,{mask:"00/00/0000",lazy:!0,overwrite:!0,autofix:!1}),t.modelValue&&(g.value=String(t.modelValue)))}),l.onBeforeUnmount(()=>{g?.destroy()}),(C,k)=>(l.openBlock(),l.createElementBlock("div",lu,[l.createElementVNode("div",{class:l.normalizeClass({"amc2-input-container":!0,disabled:t.disabled,error:!t.disabled&&(t.error||c.value),search:t.type==="search"})},[a.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:l.normalizeClass(["label-input",[{solo:L.value&&!o.value},{active:o.value}]])},l.toDisplayString(a.label),3)):l.createCommentVNode("",!0),a.required?(l.openBlock(),l.createElementBlock("div",su,"Requis")):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["amc2-input-line",{active:o.value},{noLabel:!a.label}])},[a.iconName&&v.value==="search"&&!a.label?(l.openBlock(),l.createBlock(U,{key:0,iconName:a.iconName,class:"amc2-input-icon"},null,8,["iconName"])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"dateInputWrapper",ref:u,class:l.normalizeClass(["input-content",p.value])},[a.type!=="date"?(l.openBlock(),l.createElementBlock("input",{key:0,ref_key:"inputRef",ref:y,type:v.value,value:r.value,disabled:a.disabled,placeholder:B(),autocomplete:"off",onInput:I,onFocus:R,onBlur:N},null,40,ru)):(l.openBlock(),l.createElementBlock("input",{key:1,ref_key:"inputRef",ref:y,type:v.value,disabled:a.disabled,placeholder:B(),autocomplete:"off",onInput:I,onFocus:R,onBlur:N},null,40,ou)),l.createElementVNode("div",{class:l.normalizeClass(["input-icon-container",{visible:o.value&&(b.value||w.value||a.type==="date"||a.iconName&&a.label)}])},[b.value?(l.openBlock(),l.createBlock(U,{key:0,iconName:"close",class:"amc2-input-icon input-clear",onClick:$})):l.createCommentVNode("",!0),w.value?(l.openBlock(),l.createBlock(U,{key:1,iconName:A.value,class:"amc2-input-icon password-control",onClick:k[0]||(k[0]=T=>x())},null,8,["iconName"])):l.createCommentVNode("",!0),a.type==="date"?(l.openBlock(),l.createElementBlock("div",cu,[l.createVNode(U,{"icon-name":"close",class:"amc2-input-icon input-clear",onClick:$}),l.createVNode(U,{class:l.normalizeClass(["amc2-input-icon",c.value?"alert-circle":"calendar"]),iconName:c.value?"alert-circle":"calendar",onClick:R},null,8,["class","iconName"])])):l.createCommentVNode("",!0)],2),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[d.value?(l.openBlock(),l.createBlock(fl,{key:0,class:"datepicker-popup",style:l.normalizeStyle(h.value),"onUpdate:modelValue":P},null,8,["style"])):l.createCommentVNode("",!0)]))],2)],2),a.iconName&&(v.value!=="search"||v.value==="search"&&a.label)?(l.openBlock(),l.createBlock(U,{key:2,iconName:a.iconName,class:"amc2-input-icon-permanent"},null,8,["iconName"])):l.createCommentVNode("",!0),v.value==="text"&&f.value&&m.value.length?(l.openBlock(),l.createElementBlock("div",du,[l.createElementVNode("div",uu,[l.createElementVNode("ul",hu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,(T,F)=>(l.openBlock(),l.createElementBlock("li",{key:F,onMousedown:l.withModifiers(q=>S(T),["prevent"])},[l.createElementVNode("label",{for:T.value,class:"amc2-list-item"},[l.createElementVNode("span",null,l.toDisplayString(T.label),1)],8,mu)],40,fu))),128))])])])):l.createCommentVNode("",!0)],2),t.error&&t.errorMessage?(l.openBlock(),l.createElementBlock("div",pu,l.toDisplayString(t.errorMessage),1)):l.createCommentVNode("",!0)]))}}),vu={key:0,class:"datagrid-thead-cell datagrid-cell datagrid-checkbox-col",style:{"align-self":"center"}},gu={class:"datagrid-cell-wrapper"},yu={class:"datagrid-cell-label"},Au={key:0,class:"datagrid-filter-order"},bu=["onClick"],Eu=["onClick"],wu={key:1,class:"datagrid-thead-cell datagrid-cell"},Cu={ref:"settingsCol",class:"datagrid-cell-wrapper"},zu={class:"datagrid-settings-header"},Su={class:"col-selection-container"},Mu={class:"col-selection-options"},ku={class:"col-selection-option-text"},xu={key:0,class:"datagrid-tbody-cell datagrid-cell datagrid-checkbox-col"},Bu=["title"],Du={class:"datagrid-action-menu-container"},Vu={class:"datagrid-loader"},ml=1500,Iu=24,Ru=l.defineComponent({__name:"DataGrid",props:{headers:{},items:{},selection:{type:Boolean,default:!1},hasMore:{type:Boolean},allCheckState:{default:()=>({isChecked:!1,partially:!1})},displaySettingsHeader:{type:Boolean,default:!0},displaySettings:{type:Boolean,default:!0},modalFilter:{},dataSort:{}},emits:["loadMore","updateCheckItem","updateCheckAll"],setup(a,{expose:e,emit:t}){const n=a,i=t,s=l.ref(),r=l.ref(),o={height:"17",width:"17"},c=l.useTemplateRef("displayContainer"),d=l.useTemplateRef("settingsCol"),u=l.ref(""),{right:h,update:m}=Yi(s),{right:f,update:y}=Yi(d),g=l.computed(()=>n.headers.filter(x=>x.visibility.isShown)),v=l.computed(()=>n.headers.filter(x=>{const B=at(x.label),C=at(u.value);return B.toLowerCase().includes(C.toLowerCase())})),A=l.computed(()=>{let x=g.value.length+(n.selection?2:1);return(n.displaySettings||n.displaySettingsHeader)&&x++,{gridColumn:`1 / ${x}`}}),b=x=>{let B=Array.isArray(x)?x:(()=>{try{return JSON.parse(x)}catch{return[]}})();if(Array.isArray(B)){const C=B.join(", ");return C.length>=40?C.substring(0,40)+"...":C}return x},w=(x,B)=>{if(B==="ASC")switch(x){case"string":return"Trié de A à Z (ordre alphabétique)";case"number":return"Trié du plus petit au plus grand";case"date":return"Trié du plus ancien au plus récent"}if(B==="DESC")switch(x){case"string":return"Trié de Z à A (ordre alphabétique inversé)";case"number":return"Trié du plus grand au plus petit";case"date":return"Trié du plus récent au plus ancien"}return"Aucun tri"},p=x=>({...x.minChars&&{minWidth:`calc(${x.minChars}ch + ${Iu}px)`},...x.style}),D=(x,B)=>{const C=x[B.key];if(C!=null){if(Array.isArray(C))return C.join(", ");if(typeof C!="object")return String(C)}},S=x=>{i("updateCheckItem",x.id,x.isSelected)},V=x=>{i("updateCheckAll",x.target.checked)},I=l.computed(()=>{const x=f.value-h.value,B=x<=0;return{isFullyVisible:B,...!B&&{offsetRight:x+10}}}),P=new IntersectionObserver(x=>{x[0].isIntersecting&&i("loadMore")},{threshold:0}),R=()=>{r.value&&P.observe(r.value)},N=()=>c.value?.scrollTo(0,0),G=async()=>{await l.nextTick(),s.value&&s.value.scrollTo({left:s.value.scrollWidth-s.value.clientWidth,behavior:"instant"})},$=()=>{if(!r.value||!s.value)return;const x=r.value?.getBoundingClientRect(),B=s.value?.getBoundingClientRect();return x.top<=B.top+B.height+ml},L=()=>l.nextTick(()=>{$()&&i("loadMore")});return l.watch(()=>n.hasMore,R,{flush:"post"}),l.watch(()=>n.items,()=>l.nextTick(()=>{L(),m(),y()})),l.onMounted(()=>{R(),i("loadMore")}),l.onUnmounted(()=>P.disconnect()),e({resetScroll:N,checkLoadMore:L}),(x,B)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"datagridRef",ref:s,class:"datagrid-container"},[l.createElementVNode("div",{class:l.normalizeClass(["datagrid-table",{"datagrid-table__with-selection":a.selection}])},[l.createElementVNode("div",{class:"datagrid-thead",style:l.normalizeStyle(A.value)},[a.selection?(l.openBlock(),l.createElementBlock("div",vu,[a.selection&&a.headers.length?(l.openBlock(),l.createBlock(B0,{key:"checkAll",theme:{"--amc2-checkbox-color":l.unref(Nl)},iconStyle:o,indeterminate:a.allCheckState.partially,modelValue:a.allCheckState.isChecked,"onUpdate:modelValue":B[0]||(B[0]=C=>a.allCheckState.isChecked=C),onChange:V},null,8,["theme","indeterminate","modelValue"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.value,C=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["datagrid-thead-cell datagrid-cell",{"datagrid-cell__fixed":C.fixedWidth}]),style:l.normalizeStyle(p(C))},[l.createElementVNode("div",gu,[l.createElementVNode("span",yu,l.toDisplayString(C.label),1),C.sortable&&a.modalFilter?(l.openBlock(),l.createElementBlock("div",Au,[l.createElementVNode("span",{class:"datagrid-cell-filter",onClick:k=>a.modalFilter(C)},[l.createVNode(U,{iconName:"filter",height:"18",width:"18"}),C.filtered?(l.openBlock(),l.createBlock(Xi,{key:0,backgroundColor:"secondary"})):l.createCommentVNode("",!0)],8,bu),l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(w(C.dataType,C.sortOrder)),1)]),default:l.withCtx(()=>[C.sortable&&a.dataSort?(l.openBlock(),l.createElementBlock("span",{key:0,class:"datagrid-cell-sortOrder",onClick:k=>a.dataSort(C)},[l.createVNode(U,{iconName:"arrow-up",class:l.normalizeClass(["sort-order-arrow","up",C.sortOrder==="ASC"&&"active"])},null,8,["class"]),l.createVNode(U,{iconName:"arrow-down",class:l.normalizeClass(["sort-order-arrow","down",C.sortOrder==="DESC"&&"active"])},null,8,["class"])],8,Eu)):l.createCommentVNode("",!0)]),_:2},1024)])):l.createCommentVNode("",!0)])],6))),256)),a.displaySettingsHeader?(l.openBlock(),l.createElementBlock("div",wu,[l.createElementVNode("div",Cu,[l.createVNode(j2,{position:"bottom-left",class:"datagrid-settings-menu-container",onClose:B[2]||(B[2]=C=>u.value="")},{content:l.withCtx(()=>[l.createElementVNode("div",Su,[l.createVNode(Q2,{id:"datagrid-col-selection-input",class:"col-selection-input",type:"search",iconName:"search",clearable:"",modelValue:u.value,"onUpdate:modelValue":B[1]||(B[1]=C=>u.value=C)},null,8,["modelValue"]),l.createElementVNode("div",Mu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.value,C=>(l.openBlock(),l.createElementBlock("div",{key:C.key,class:"col-selection-option"},[l.createElementVNode("div",ku,l.toDisplayString(l.unref($2)(C.label)),1),l.createVNode(U2,{disabled:C.visibility?.isDisabled,modelValue:C.visibility.isShown,"onUpdate:modelValue":k=>C.visibility.isShown=k,onChange:()=>{C.visibility.update(C.visibility.isShown),G()}},null,8,["disabled","modelValue","onUpdate:modelValue","onChange"])]))),128))])])]),default:l.withCtx(()=>[l.createElementVNode("div",zu,[l.createVNode(U,{iconName:"settings",height:"18",width:"18"}),l.createVNode(U,{iconName:"chevron-down",height:"24",width:"24"})])]),_:1})],512)])):l.createCommentVNode("",!0)],4),l.createElementVNode("div",{ref:"displayContainer",class:"datagrid-tbody",style:l.normalizeStyle(A.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.items,C=>(l.openBlock(),l.createElementBlock("div",{key:C.id,class:l.normalizeClass(["datagrid-tbody-row",{"datagrid-tbody-row__selected":C.isSelected}]),style:l.normalizeStyle(A.value)},[a.selection?(l.openBlock(),l.createElementBlock("div",xu,[(l.openBlock(),l.createBlock(B0,{key:C.id,iconStyle:o,modelValue:C.isSelected,"onUpdate:modelValue":k=>C.isSelected=k,onChange:()=>S(C)},null,8,["modelValue","onUpdate:modelValue","onChange"]))])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.value,k=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["datagrid-tbody-cell datagrid-cell",{"datagrid-cell__fixed":k.fixedWidth,"datagrid-cell__component":!!C[k.key]?.render}]),title:D(C,k)},[l.createVNode(W9,{is:"a",class:"datagrid-link",wrap:!!C[`onClick_${k.key}`],onClick:C[`onClick_${k.key}`]},{default:l.withCtx(()=>[C[k.key]?.render?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(C[k.key].render),{key:0})):k.dataType==="array"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(b(C[k.key])),1)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createTextVNode(l.toDisplayString(C[k.key]),1)],64))]),_:2},1032,["wrap","onClick"])],10,Bu))),256)),a.displaySettings?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["datagrid-tbody-cell datagrid-cell datagrid-cell__settings",{"datagrid-cell__not-fully-visible":!I.value.isFullyVisible}]),style:l.normalizeStyle({right:I.value.isFullyVisible?0:`${I.value.offsetRight}px`})},[l.createVNode(j2,{position:"bottom-left","display-el":c.value,items:C.actions},{default:l.withCtx(()=>[l.createElementVNode("div",Du,[l.createVNode(U,{iconName:"more-vertical"})])]),_:1},8,["display-el","items"])],6)):l.createCommentVNode("",!0)],6))),128)),a.hasMore?(l.openBlock(),l.createElementBlock("div",{key:0,class:"datagrid-loadTrigger-container",style:l.normalizeStyle(A.value)},[l.createElementVNode("div",{ref_key:"loadTrigger",ref:r,class:"datagrid-loadTrigger",style:l.normalizeStyle({height:`${ml}px`})},null,4),l.createElementVNode("div",Vu,[l.createVNode(Fe)])],4)):l.createCommentVNode("",!0)],4)],2)],512))}}),Tu=["aria-label"],Lu={class:"day-navigator__date"},Nu={class:"day-navigator__date-label","aria-live":"polite"},Hu=l.defineComponent({name:"DayNavigator",__name:"DayNavigator",props:{date:{},disabledPrevious:{type:Boolean,default:!1},disabledNext:{type:Boolean,default:!1},label:{default:"Navigation par jour"}},emits:["previous","next"],setup(a,{emit:e}){const t=a,n=e,i=y=>y===!0||y==="true",s=l.computed(()=>i(t.disabledPrevious)),r=l.computed(()=>i(t.disabledNext)),o=/^\d{4}-\d{2}-\d{2}/,c=l.computed(()=>{const{date:y}=t;if(y instanceof Date||typeof y=="string"&&o.test(y)){const g=t1(y);return g.isValid()?g.locale("fr"):void 0}}),d=["Mercredi 1er septembre 2026","Dimanche 1er septembre 2026"],u=l.computed(()=>{if(!c.value)return"";const y=c.value.date()===1?"1er":String(c.value.date());return $2(`${c.value.format("dddd")} ${y} ${c.value.format("MMMM YYYY")}`)}),h=l.ref(),m=l.ref(),f=(y,g,v)=>{const A=g.value?.$el;!y||!A||document.activeElement!==A||l.nextTick(()=>{const b=v.value?.$el;b&&!b.disabled&&b.focus()})};return l.watch(r,y=>f(y,m,h)),l.watch(s,y=>f(y,h,m)),(y,g)=>(l.openBlock(),l.createElementBlock("div",{class:"day-navigator",role:"group","aria-label":a.label},[l.createVNode(A3,{ref_key:"previousButton",ref:h,class:"day-navigator__button day-navigator__button--previous",type:"secondary",disabled:s.value,onClick:g[0]||(g[0]=v=>n("previous"))},{default:l.withCtx(()=>[l.createVNode(U,{iconName:"chevron-left",color:s.value?l.unref(et):l.unref(j1),width:"16",height:"16","aria-hidden":"true"},null,8,["color"]),g[2]||(g[2]=l.createTextVNode(" Préc.",-1)),g[3]||(g[3]=l.createElementVNode("span",{class:"day-navigator__sr-only"}," (jour précédent)",-1))]),_:1},8,["disabled"]),l.createElementVNode("span",Lu,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(d,v=>l.createElementVNode("span",{key:v,class:"day-navigator__date-sizer","aria-hidden":"true"},l.toDisplayString(v),1)),64)),l.createElementVNode("span",Nu,l.toDisplayString(u.value),1)]),l.createVNode(A3,{ref_key:"nextButton",ref:m,class:"day-navigator__button day-navigator__button--next",type:"secondary",disabled:r.value,onClick:g[1]||(g[1]=v=>n("next"))},{default:l.withCtx(()=>[g[4]||(g[4]=l.createTextVNode(" Suiv.",-1)),g[5]||(g[5]=l.createElementVNode("span",{class:"day-navigator__sr-only"}," (jour suivant)",-1)),l.createVNode(U,{iconName:"chevron-right",color:r.value?l.unref(et):l.unref(j1),width:"16",height:"16","aria-hidden":"true"},null,8,["color"])]),_:1},8,["disabled"])],8,Tu))}}),Ou={class:"amc2-list-wrapper"},Fu={class:"amc2-list-item"},ju={key:1,class:"list-with-search-empty-space"},Uu={key:2,class:"amc2-list-search"},_u=["aria-multiselectable"],Ku={key:0,class:"amc2-list-empty"},Pu={class:"amc2-list-item"},Wu=["aria-selected","onClick","onKeydown"],pl=l.defineComponent({__name:"ListWithSearch",props:{stickyHeader:{type:Boolean,default:!0},searchable:{type:Boolean},itemSize:{},searchPlaceholder:{default:"Rechercher"},emptyMessage:{default:"Aucune valeur"},labelSelectAll:{default:"Tout sélectionner"},modelValue:{},options:{},disabled:{type:Boolean},multiple:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(""),s=l.computed({get:()=>t.modelValue,set:h=>n("update:modelValue",h)}),r=h=>s.value.some(m=>m.value===h),o=l.computed(()=>{const h=i.value.toLowerCase();return t.options.filter(m=>m.label.toString().toLowerCase().includes(h))}),c=l.computed({get:()=>o.value.length>0&&o.value.every(h=>s.value.some(m=>m.value===h.value)),set:()=>{if(t.multiple)if(c.value)s.value=s.value.filter(h=>!o.value.some(m=>m.value===h.value));else{const h=o.value.filter(m=>!s.value.some(f=>f.value===m.value));s.value=[...s.value,...h]}}}),d=(h,m)=>{const f=h.currentTarget,y=Array.from(f.closest(".amc2-list")?.querySelectorAll(".amc2-list-item[tabindex]")??[]);y[y.indexOf(f)+m]?.focus()},u=h=>{if(t.multiple){const m=s.value.some(f=>f.value===h.value);s.value=m?s.value.filter(f=>f.value!==h.value):[...s.value,h]}else s.value=[h]};return(h,m)=>(l.openBlock(),l.createElementBlock("div",Ou,[a.multiple||a.searchable?(l.openBlock(),l.createElementBlock("div",{key:0,ref:"headerRef",class:l.normalizeClass(["amc2-list-header",{"amc2-list-header-sticky":a.stickyHeader}])},[l.createElementVNode("div",Fu,[a.multiple&&i.value.length>=3?(l.openBlock(),l.createBlock(H3,{key:0,position:"right"},{content:l.withCtx(()=>[...m[4]||(m[4]=[l.createTextVNode("Sélectionnez tout",-1)])]),default:l.withCtx(()=>[l.createVNode(B0,{modelValue:c.value,"onUpdate:modelValue":m[0]||(m[0]=f=>c.value=f)},null,8,["modelValue"])]),_:1})):(l.openBlock(),l.createElementBlock("div",ju)),a.searchable?(l.openBlock(),l.createElementBlock("div",Uu,[l.createVNode(Q2,{ref:"searchRef",autofocus:"",class:"amc2-list-search-input",placeholder:"Rechercher",type:"search",iconName:"search",modelValue:i.value,"onUpdate:modelValue":m[1]||(m[1]=f=>i.value=f)},null,8,["modelValue"])])):l.createCommentVNode("",!0)])],2)):l.createCommentVNode("",!0),l.createElementVNode("ul",{class:l.normalizeClass(["amc2-list",[a.itemSize?`amc2-list-${a.itemSize}`:""]]),role:"listbox","aria-multiselectable":a.multiple||void 0},[o.value.length===0?(l.openBlock(),l.createElementBlock("li",Ku,[l.createElementVNode("span",Pu,l.toDisplayString(a.emptyMessage),1)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,f=>(l.openBlock(),l.createElementBlock("li",{key:f.value+"-"+f.label,class:l.normalizeClass({"amc2-list-item-selected":r(f.value)})},[l.createElementVNode("label",{class:"amc2-list-item",tabindex:"0",role:"option","aria-selected":r(f.value),onClick:y=>u(f),onKeydown:[l.withKeys(l.withModifiers(y=>u(f),["prevent"]),["enter"]),l.withKeys(l.withModifiers(y=>u(f),["prevent"]),["space"]),m[2]||(m[2]=l.withKeys(l.withModifiers(y=>d(y,1),["prevent"]),["down"])),m[3]||(m[3]=l.withKeys(l.withModifiers(y=>d(y,-1),["prevent"]),["up"]))]},[l.createElementVNode("span",{class:l.normalizeClass({selected:r(f.value)})},l.toDisplayString(f.label),3)],40,Wu)],2))),128))],10,_u)]))}}),Qu={class:"amc2-selection-overflow"},vl=l.defineComponent({__name:"SelectionItem",props:{disabled:{type:Boolean},clearable:{type:Boolean,default:!0},modelValue:{}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>t.modelValue!==null);function s(){n("update:modelValue",null),n("clear")}return(r,o)=>i.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["amc2-selection",{"amc2-selection-disabled":t.disabled}])},[l.createElementVNode("span",Qu,[l.renderSlot(r.$slots,"default")]),!t.disabled&&a.clearable?(l.openBlock(),l.createBlock(U,{key:0,iconName:"x",class:"amc2-selection-close",onClick:l.withModifiers(s,["stop"])})):l.createCommentVNode("",!0)],2)):l.createCommentVNode("",!0)}}),Yu={key:0,class:"amc2-selection-group-placeholder"},qu={class:"amc2-select-item"},Gu={class:"amc2-selection-group-hidden-items"},Ju={className:"amc2-selection"},Zu={class:"amc2-selection-group-hidden-items-wrapper"},Xu={class:"amc2-select-item"},gl=l.defineComponent({__name:"SelectionGroup",props:{placeholder:{},singleLine:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},expandable:{type:Boolean},tooltipStyle:{},modelValue:{},tooltipPosition:{}},emits:["update:modelValue","clearAll","clear"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(null),s=l.ref(null),r=l.ref(t.modelValue.length),o=l.computed(()=>t.modelValue.slice(0,r.value)),c=l.computed(()=>t.modelValue.slice(r.value)),d=l.computed(()=>!t.disabled&&t.clearable&&t.modelValue.length>0);function u(f){const y=[...t.modelValue],g=y[f];y.splice(f,1),n("update:modelValue",y),n("clear",g)}const h=f=>{if(d.value){const y=[...t.modelValue];n("update:modelValue",[]),n("clearAll",y)}f.stopPropagation(),f.preventDefault()};function m(){l.nextTick(()=>{if(!i.value||!s.value)return;const f=i.value.clientWidth,y=s.value.children;let g=0,v=1;const A=40;Array.from(y).forEach(b=>{if(b instanceof HTMLElement){const w=b.offsetWidth;g+w+A<=f&&(g+=w,v++)}}),r.value=v})}return l.watch(()=>t.modelValue,()=>m(),{deep:!0,immediate:!0}),l.onMounted(()=>{window.addEventListener("resize",m),m()}),l.onUnmounted(()=>{window.removeEventListener("resize",m)}),(f,y)=>(l.openBlock(),l.createElementBlock("div",{class:"amc2-selection-group",ref_key:"selectionRef",ref:i},[l.createElementVNode("div",{class:"amc2-selection-group-items",ref_key:"itemsRef",ref:s},[a.modelValue.length===0?(l.openBlock(),l.createElementBlock("span",Yu,l.toDisplayString(t.placeholder),1)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(o.value,(g,v)=>(l.openBlock(),l.createBlock(vl,{key:v,disabled:t.disabled,onClear:A=>u(v),clearable:a.clearable,modelValue:g},{default:l.withCtx(()=>[l.createElementVNode("div",qu,l.toDisplayString(g.label),1)]),_:2},1032,["disabled","onClear","clearable","modelValue"]))),128))],512),l.createElementVNode("div",Gu,[c.value.length>0?(l.openBlock(),l.createBlock(H3,{key:0,style:l.normalizeStyle(a.tooltipStyle),className:"tooltip-display-component",position:a.tooltipPosition,removeDelay:100},{content:l.withCtx(()=>[l.createElementVNode("div",Zu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,(g,v)=>(l.openBlock(),l.createBlock(vl,{key:v,disabled:t.disabled,onClear:A=>u(v),clearable:a.modelValue.length>1,modelValue:g},{default:l.withCtx(()=>[l.createElementVNode("div",Xu,l.toDisplayString(g.label),1)]),_:2},1032,["disabled","onClear","clearable","modelValue"]))),128))])]),default:l.withCtx(()=>[l.createElementVNode("span",Ju,"+"+l.toDisplayString(c.value.length),1)]),_:1},8,["style","position"])):l.createCommentVNode("",!0)]),d.value?(l.openBlock(),l.createBlock(U,{key:0,iconName:"x",onClick:h,class:"amc2-selection-group-clear"})):l.createCommentVNode("",!0)],512))}}),$u=["tabindex","aria-label","aria-expanded","aria-disabled"],eh={key:0,class:"amc2-select-oneitem"},yl=l.defineComponent({__name:"SelectBase",props:{options:{},multiple:{type:Boolean},searchable:{type:Boolean},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},modelValue:{},label:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>!!t.label),s=l.ref(!1),r=l.computed(()=>s.value||t.modelValue.length>0),o=l.computed({get:()=>t.modelValue,set:w=>{if(n("update:modelValue",w),!t.multiple&&w.length===1){const p=u.value?.contains(document.activeElement);s.value=!1,p&&l.nextTick(()=>d.value?.focus())}}}),c=l.ref(null),d=l.ref(null),u=l.ref(null),h=l.ref({}),m=l.ref("down"),f=()=>{if(!c.value)return;const w=c.value.getBoundingClientRect(),p=u.value?.getBoundingClientRect(),D=window.innerHeight-w.bottom,S=w.top,V=p?.height||300;D<V&&S>D?(m.value="up",h.value={position:"absolute",top:`${w.top-V+window.scrollY}px`,left:`${w.left+window.scrollX}px`,width:`${w.width}px`,zIndex:"9999"}):(m.value="down",h.value={position:"absolute",top:`${w.bottom+window.scrollY}px`,left:`${w.left+window.scrollX}px`,width:`${w.width}px`,zIndex:"9999"})},y=()=>{t.disabled||(s.value=!s.value,s.value&&l.nextTick(()=>{f()}))},g=()=>{t.disabled||(s.value=!0,l.nextTick(()=>{f(),u.value?.querySelector("input, .amc2-list-item[tabindex]")?.focus()}))},v=w=>{s.value&&(w.preventDefault(),s.value=!1,d.value?.focus())},A=w=>{w.target===d.value&&(w.key==="Escape"?v(w):["Enter"," ","ArrowDown"].includes(w.key)&&(w.preventDefault(),g()))},b=w=>{const p=w.target;c.value&&!c.value.contains(p)&&u.value&&!u.value.contains(p)&&(s.value=!1)};return l.onMounted(()=>{document.addEventListener("mousedown",b),window.addEventListener("scroll",f,!0),window.addEventListener("resize",f)}),l.onBeforeUnmount(()=>{document.removeEventListener("mousedown",b),window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}),(w,p)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"selectRef",ref:c,class:l.normalizeClass(["amc2-select",{"amc2-select-disabled":a.disabled}])},[l.createElementVNode("div",{ref_key:"triggerRef",ref:d,class:"amc2-select-display",role:"combobox",tabindex:a.disabled?-1:0,"aria-label":i.value?a.label:a.placeholder||void 0,"aria-haspopup":"listbox","aria-expanded":s.value,"aria-disabled":a.disabled||void 0,onClick:y,onKeydown:A},[l.createElementVNode("div",{class:l.normalizeClass(["amc2-select-display-content",{withLabel:i.value}])},[o.value.length===1?(l.openBlock(),l.createElementBlock("span",eh,l.toDisplayString(o.value[0].label),1)):(l.openBlock(),l.createBlock(gl,{key:1,clearable:a.clearable,disabled:a.disabled,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=D=>o.value=D)},null,8,["clearable","disabled","modelValue"])),l.createElementVNode("div",{class:l.normalizeClass(["amc2-select-label-container",{active:r.value,withLabel:i.value}])},[i.value?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["amc2-select-label",{active:r.value}])},l.toDisplayString(a.label),3)):l.createCommentVNode("",!0),!o.value.length&&a.placeholder?(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass(["amc2-select-placeholder",{active:r.value}])},l.toDisplayString(a.placeholder),3)):l.createCommentVNode("",!0)],2)],2),a.disabled?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(U,{key:0,iconName:"chevron-down",class:l.normalizeClass(["amc2-select-icon",{opened:s.value}])},null,8,["class"]))],40,$u),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:u,class:"amc2-select-dropdown",style:l.normalizeStyle(h.value),onKeydown:l.withKeys(v,["esc"])},[l.createVNode(pl,{ref:"listRef",options:a.options,multiple:a.multiple,searchable:a.searchable,modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=D=>o.value=D)},null,8,["options","multiple","searchable","modelValue"])],36)):l.createCommentVNode("",!0)]))],2))}});let th=0;const Re=a=>`${a}-${++th}`,Y2={secteursClient:{label:"Secteur(s) client",multiple:!0},secteursIntervenant:{label:"Secteur(s) intervenant",multiple:!0},gestionnaire:{label:"Gestionnaire",multiple:!1},prestation:{label:"Prestation",multiple:!1},intervenant:{label:"Intervenant",multiple:!1},client:{label:"Client",multiple:!1}},Al={interventionsAnnulees:{label:"Interventions annulées"},trajets:{label:"Trajets"}},le=Object.keys(Y2),Te=Object.keys(Al),ah={...Object.fromEntries(le.map(a=>[a,Y2[a].label])),...Object.fromEntries(Te.map(a=>[a,Al[a].label])),placeholder:"Sélectionner…",close:"Fermer les filtres",reset:"Réinitialiser",submit:"Appliquer"},q2=()=>({...Object.fromEntries(le.map(a=>[a,[]])),...Object.fromEntries(Te.map(a=>[a,!1]))}),nh=a=>typeof a=="object"&&a!==null&&c1(a.label),bl=a=>Array.isArray(a)?a.filter(nh):[],ih=a=>{const e=typeof a=="object"&&a!==null?a:{};return Object.fromEntries(le.map(t=>[t,bl(e[t])]))},El=a=>{const e=typeof a=="object"&&a!==null?a:{},t=q2();for(const n of le)t[n]=bl(e[n]);for(const n of Te)t[n]=e6(e[n]);return t},lh=a=>{const e=El(a);return le.filter(t=>e[t].length>0).length+Te.filter(t=>e[t]).length},sh=["aria-labelledby"],rh={class:"filter-panel__header"},oh=["id"],ch=["aria-label"],dh={class:"filter-panel__body"},uh=["onClick"],hh=["onClick"],fh={class:"filter-panel__footer"},mh='.amc2-select-dropdown, .tooltip-content-arrow, .datepicker-popup, [role="dialog"], [aria-modal="true"]',ph=l.defineComponent({name:"FilterPanel",__name:"FilterPanel",props:{modelValue:{},options:{},title:{},labels:{},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue","reset","close"],setup(a,{emit:e}){const t=a,n=e,i=Re("filter-panel-title"),s=l.computed(()=>m1(t.title,"Filtres")),r=l.computed(()=>{const b=typeof t.labels=="object"&&t.labels!==null?t.labels:{};return Object.fromEntries(Object.entries(ah).map(([w,p])=>[w,m1(b[w],p)]))}),o=l.computed(()=>El(t.modelValue)),c=l.computed(()=>ih(t.options)),d=(b,w)=>{const p=typeof t.modelValue=="object"&&t.modelValue!==null?t.modelValue:{};n("update:modelValue",{...p,...o.value,[b]:w})},u=()=>{n("update:modelValue",q2()),n("reset")},h=l.ref(null),m=b=>h.value?.contains(b)===!0||b.closest(mh)!==null,f=b=>{const w=b.target;t.closeOnOutsideClick&&(!(w instanceof Element)||!w.isConnected||m(w)||n("close"))},y=b=>{if(b.key!=="Escape"||b.defaultPrevented)return;const w=document.activeElement;w&&w!==document.body&&!m(w)||n("close")};let g=null;const v=b=>{g=b&&"$el"in b?b.$el:b},A=()=>{const b=g?.querySelector(".amc2-select-display");b&&b.tabIndex>=0&&b.focus({preventScroll:!0})};return l.onMounted(()=>{document.addEventListener("pointerdown",f,!0),document.addEventListener("keydown",y),l.nextTick(A)}),l.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",f,!0),document.removeEventListener("keydown",y)}),(b,w)=>(l.openBlock(),l.createElementBlock("aside",{ref_key:"rootRef",ref:h,class:"filter-panel",role:"complementary","aria-labelledby":l.unref(i)},[l.createElementVNode("div",rh,[l.createElementVNode("h2",{id:l.unref(i),class:"filter-panel__title"},l.toDisplayString(s.value),9,oh),l.createElementVNode("button",{type:"button",class:"filter-panel__close","aria-label":r.value.close,onClick:w[0]||(w[0]=p=>n("close"))},[l.createVNode(U,{iconName:"x",color:l.unref(j1),width:"24",height:"24","aria-hidden":"true"},null,8,["color"])],8,ch)]),l.createElementVNode("div",dh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(le),(p,D)=>(l.openBlock(),l.createBlock(yl,{key:p,ref_for:!0,ref:D===0?v:void 0,label:r.value[p],placeholder:r.value.placeholder,multiple:l.unref(Y2)[p].multiple,options:c.value[p],"model-value":o.value[p],"onUpdate:modelValue":S=>d(p,S)},null,8,["label","placeholder","multiple","options","model-value","onUpdate:modelValue"]))),128)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(Te),p=>(l.openBlock(),l.createElementBlock("div",{key:p,class:"filter-panel__toggle-field",onClick:l.withModifiers(D=>d(p,!o.value[p]),["self"])},[l.createElementVNode("span",{class:"filter-panel__toggle-label","aria-hidden":"true",onClick:D=>d(p,!o.value[p])},l.toDisplayString(r.value[p]),9,hh),l.createVNode(U2,{"model-value":o.value[p],"aria-label":r.value[p],"onUpdate:modelValue":D=>d(p,D)},null,8,["model-value","aria-label","onUpdate:modelValue"])],8,uh))),128))]),l.createElementVNode("div",fh,[l.createVNode(A3,{type:"secondary",iconName:"reset",onClick:l.withModifiers(u,["prevent"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value.reset),1)]),_:1}),l.createVNode(A3,{type:"primary",onClick:w[1]||(w[1]=l.withModifiers(p=>n("close"),["prevent"]))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value.submit),1)]),_:1})])],8,sh))}}),wl={depart:"departure",retour:"return"},vh=["departure","return"],Cl=a=>{if(typeof a!="string")return;const e=at(a.trim().toLowerCase()),t=Object.prototype.hasOwnProperty.call(wl,e)?wl[e]:e;return vh.includes(t)?t:void 0},gh={key:0,class:"home-step"},yh={class:"home-step__label"},Ah={class:"home-step__place"},bh={class:"home-step__direction"},zl=l.defineComponent({name:"HomeStep",__name:"HomeStep",props:{direction:{},labels:{}},setup(a){const e=a,t={place:"Domicile",departure:"Départ",return:"Retour"},n=l.computed(()=>m1(e.labels?.place,t.place)),i=l.computed(()=>{const s=Cl(e.direction);return s?m1(e.labels?.[s],t[s]):void 0});return(s,r)=>i.value?(l.openBlock(),l.createElementBlock("div",gh,[l.createVNode(U,{"icon-name":"home",color:l.unref(J1),"class-icon":"home-step__icon","aria-hidden":"true"},null,8,["color"]),l.createElementVNode("p",yh,[l.createElementVNode("span",Ah,l.toDisplayString(n.value)+" - ",1),l.createElementVNode("span",bh,l.toDisplayString(i.value),1)])])):l.createCommentVNode("",!0)}}),Eh=["aria-pressed"],wh={class:"intervention-card__header intervention-card__header--centered"},Ch={class:"intervention-card__duration"},zh={class:"intervention-card__time-section intervention-card__time-section--centered"},Sh={class:"intervention-card__header"},Mh={key:0,class:"intervention-card__sr-only"},kh=["title"],xh={class:"intervention-card__activity-section"},Bh=["title"],Dh={class:"intervention-card__time-section"},Vh={class:"intervention-card__time"},Sl=l.defineComponent({name:"InterventionCard",__name:"InterventionCard",props:{activity:{default:"jardinage"},state:{default:"default"},selected:{type:Boolean,default:void 0},clientName:{default:""},activityLabel:{default:""},time:{default:""},status:{},duration:{default:""},hasTransmission:{type:Boolean,default:!1},hasRepetition:{type:Boolean,default:!1},hasAttention:{type:Boolean,default:!1}},setup(a){const e=a,t={jardinage:{label:"Jardinage",modifier:"jardinage"},bricolage:{label:"Bricolage",modifier:"bricolage"},menage:{label:"Ménage",modifier:"menage"},aideADomicile:{label:"Aide à domicile",modifier:"aide-a-domicile"},gardeEnfants:{label:"Garde d'enfants",modifier:"garde-enfants"},trajet:{label:"Trajet",modifier:"trajet"},replace:{label:"",modifier:"replace"}},n=l.computed(()=>Object.prototype.hasOwnProperty.call(t,e.activity)?t[e.activity]:void 0),i=l.computed(()=>e.activityLabel||n.value?.label||""),s=l.computed(()=>e.activity==="trajet"),r=l.computed(()=>e.activity==="replace"),o=y=>y===!0||y==="true",c=l.computed(()=>o(e.hasTransmission)),d=l.computed(()=>o(e.hasRepetition)),u=l.computed(()=>o(e.hasAttention)),h=l.computed(()=>o(e.selected)||r.value&&e.state==="selected"),m=l.computed(()=>e.selected!==void 0?h.value:h.value?!0:void 0),f=l.computed(()=>[n.value&&`intervention-card--${n.value.modifier}`,r.value&&`intervention-card--${e.state}`,r.value&&h.value&&e.state!=="selected"&&"intervention-card--selected"]);return(y,g)=>(l.openBlock(),l.createElementBlock("button",{type:"button",class:l.normalizeClass(["intervention-card",f.value]),"aria-pressed":m.value},[s.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("span",wh,[l.createElementVNode("span",Ch,l.toDisplayString(a.duration),1)]),l.createElementVNode("span",zh,[l.createVNode(U,{"icon-name":"itinerary",width:"12",height:"12",color:l.unref(J1),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[0]||(g[0]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"Trajet",-1))])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("span",Sh,[r.value?(l.openBlock(),l.createElementBlock("span",Mh," Créneau à attribuer ")):l.createCommentVNode("",!0),r.value&&u.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(U,{"icon-name":"alert-triangle",width:"16",height:"16",color:l.unref(Fl),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[1]||(g[1]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"RDV urgent",-1))],64)):l.createCommentVNode("",!0),l.createElementVNode("span",{class:"intervention-card__client",title:a.clientName},l.toDisplayString(a.clientName),9,kh),!r.value&&c.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createVNode(U,{"icon-name":"phone",width:"12",height:"12",color:l.unref(J1),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[2]||(g[2]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"Télétransmission effectuée",-1))],64)):l.createCommentVNode("",!0),!r.value&&d.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:3},[l.createVNode(U,{"icon-name":"repeat",width:"12",height:"12",color:l.unref(J1),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[3]||(g[3]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"RDV récurrent",-1))],64)):l.createCommentVNode("",!0)]),l.createElementVNode("span",xh,[g[4]||(g[4]=l.createElementVNode("span",{class:"intervention-card__dot","aria-hidden":"true"},null,-1)),l.createElementVNode("span",{class:"intervention-card__activity",title:i.value},l.toDisplayString(i.value),9,Bh)]),l.createElementVNode("span",Dh,[l.createElementVNode("span",Vh,l.toDisplayString(a.time),1),!r.value&&a.status?(l.openBlock(),l.createBlock(nt,{key:0,status:a.status,class:"intervention-card__status"},null,8,["status"])):l.createCommentVNode("",!0)])],64))],10,Eh))}}),Ih={class:"modal"},Rh={class:"header-title"},Th={class:"modal-content"},Lh=l.defineComponent({__name:"ModalBase",props:{visible:{type:Boolean},additionnal:{type:Boolean},title:{}},setup(a){return(e,t)=>a.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-container",{"additional-modal":a.additionnal??!1}])},[t[1]||(t[1]=l.createElementVNode("div",{class:"modal-background"},null,-1)),l.createElementVNode("dialog",Ih,[l.createElementVNode("header",null,[l.createElementVNode("div",Rh,l.toDisplayString(a.title),1),l.createVNode(U,{"icon-name":"x",onClick:t[0]||(t[0]=n=>e.$emit("close"))})]),l.createElementVNode("div",Th,[l.renderSlot(e.$slots,"default")])])],2)):l.createCommentVNode("",!0)}}),Nh=["disabled","checked"],Hh={key:1},Oh=l.defineComponent({__name:"RadioBase",props:{label:{},icon:{},theme:{},disabled:{type:Boolean},modelValue:{},value:{},className:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>({...t.theme})),s=()=>{t.disabled||n("update:modelValue",t.value)};return(r,o)=>(l.openBlock(),l.createElementBlock("label",{style:l.normalizeStyle(i.value),class:l.normalizeClass(["amc2-radio-container",a.className]),onClick:s},[l.createElementVNode("input",{type:"radio",disabled:a.disabled,checked:a.modelValue===a.value},null,8,Nh),o[0]||(o[0]=l.createElementVNode("span",{class:"amc2-radio"},null,-1)),a.icon?(l.openBlock(),l.createBlock(U,{key:0,iconName:a.icon},null,8,["iconName"])):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createElementBlock("span",Hh,l.toDisplayString(a.label),1)):l.createCommentVNode("",!0)],6))}}),Fh=["for"],jh={class:"slider-base__track"},Uh=["id","min","max","step","value","disabled","aria-valuetext"],_h={class:"slider-base__value","aria-hidden":"true"},Ml=l.defineComponent({name:"SliderBase",__name:"SliderBase",props:{modelValue:{},label:{},min:{default:0},max:{default:100},step:{default:1},unitLabel:{},unitSpokenLabel:{},locale:{},disabled:{type:Boolean},emptyLabel:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=(b,w)=>typeof b=="string"?b.trim():w,s=l.computed(()=>i(t.unitLabel,"pts")),r=l.computed(()=>i(t.unitSpokenLabel,typeof t.unitLabel=="string"?s.value:"points")),o=Re("slider-base"),c=l.computed(()=>{const b=v3(t.min),w=v3(t.max),p=v3(t.step);if(b===void 0||w===void 0||p===void 0||w<=b||p<=0)return;const D=Number((b+Math.floor((w-b)/p)*p).toFixed(6));return{min:b,max:w,step:p,top:D}}),d=b=>{const w=c.value,p=Math.min(Math.max(b,w.min),w.max),D=Number((Math.round((p-w.min)/w.step)*w.step+w.min).toFixed(6));return Math.min(D,w.top)},u=l.computed(()=>{if(!c.value)return;const b=v3(t.modelValue);return b===void 0?null:d(b)}),h=l.ref(null);l.watch(u,b=>h.value=b??null,{immediate:!0});const m=l.computed(()=>{try{return new Intl.NumberFormat(t.locale||"fr-FR",{maximumFractionDigits:6})}catch{return new Intl.NumberFormat("fr-FR",{maximumFractionDigits:6})}}),f=(b,w)=>w?`${b} ${w}`:b,y=l.computed(()=>h.value===null?"—":f(m.value.format(h.value),s.value)),g=l.computed(()=>h.value===null?m1(t.emptyLabel,"non défini"):f(m.value.format(h.value),r.value)),v=l.computed(()=>{const b=c.value;if(!b||!c1(t.label))return;const w=h.value;return{...b,label:String(t.label).trim(),defined:w!==null,fill:w===null?0:(w-b.min)/(b.max-b.min)*100}}),A=b=>{h.value=Number(b.target.value),n("update:modelValue",h.value)};return(b,w)=>v.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["slider-base",{"slider-base--disabled":a.disabled,"slider-base--empty":!v.value.defined}]),style:l.normalizeStyle({"--slider-base-fill":`${v.value.fill}%`})},[l.createElementVNode("label",{for:l.unref(o),class:"slider-base__label"},l.toDisplayString(v.value.label),9,Fh),l.createElementVNode("div",jh,[l.createElementVNode("input",{id:l.unref(o),class:"slider-base__input",type:"range",min:v.value.min,max:v.value.max,step:v.value.step,value:h.value??v.value.min,disabled:a.disabled,"aria-valuetext":g.value,onInput:A},null,40,Uh)]),l.createElementVNode("span",_h,l.toDisplayString(y.value),1)],6)):l.createCommentVNode("",!0)}}),Kh=["aria-labelledby"],Ph={class:"scoring-panel__container"},Wh={class:"scoring-panel__header"},Qh={class:"scoring-panel__header-text"},Yh=["id"],qh={class:"scoring-panel__subtitle"},Gh=["aria-label"],Jh={class:"scoring-panel__values"},Zh={class:"scoring-panel__footer"},kl=0,xl=50,Xh=l.defineComponent({name:"ScoringPanel",__name:"ScoringPanel",props:{title:{},subtitle:{},modelValue:{},resetLabel:{},submitLabel:{},closeLabel:{},unitLabel:{},unitSpokenLabel:{}},emits:["update:modelValue","close","reset","apply"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>m1(t.title,"Paramétrage du scoring")),s=l.computed(()=>m1(t.subtitle,"Ajustez l’importance du scoring")),r=l.computed(()=>m1(t.resetLabel,"Rétablir par défauts")),o=l.computed(()=>m1(t.submitLabel,"Appliquer")),c=l.computed(()=>m1(t.closeLabel,"Fermer")),d=l.computed(()=>m1(t.unitLabel,"pts")),u=l.computed(()=>m1(t.unitSpokenLabel,"points")),h=Re("scoring-panel-title"),m=b=>{if(!Array.isArray(b))return[];const w=new Set;return b.flatMap((p,D)=>{if(typeof p!="object"||p===null)return[];const{key:S,label:V,value:I}=p;if(!c1(V))return[];const P=v3(I);if(P===void 0||P<kl||P>xl)return[];const R=c1(S)?`k:${String(S).trim()}`:void 0,N=R&&!w.has(R)?R:`i:${D}`;return w.add(N),[{index:D,key:N,label:String(V).trim(),value:P,touched:!1}]})},f=l.ref([]),y=()=>{f.value=m(t.modelValue)};l.watch(()=>t.modelValue,y,{immediate:!0,deep:!0});const g=()=>{if(!Array.isArray(t.modelValue))return[];const b=new Map(f.value.filter(w=>w.touched).map(w=>[w.index,w.value]));return t.modelValue.map((w,p)=>b.has(p)?{...w,value:b.get(p)}:w)},v=(b,w)=>{b.value=w,b.touched=!0,n("update:modelValue",g())},A=async()=>{n("reset"),await l.nextTick(),y()};return(b,w)=>(l.openBlock(),l.createElementBlock("section",{class:"scoring-panel","aria-labelledby":l.unref(h)},[l.createElementVNode("div",Ph,[l.createElementVNode("header",Wh,[l.createElementVNode("div",Qh,[l.createElementVNode("h2",{id:l.unref(h),class:"scoring-panel__title"},l.toDisplayString(i.value),9,Yh),l.createElementVNode("p",qh,l.toDisplayString(s.value),1)]),l.createElementVNode("button",{type:"button",class:"scoring-panel__close","aria-label":c.value,onClick:w[0]||(w[0]=p=>n("close"))},[l.createVNode(U,{iconName:"x",width:"24",height:"24",color:l.unref(j1),"aria-hidden":"true"},null,8,["color"])],8,Gh)]),l.createElementVNode("div",Jh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,p=>(l.openBlock(),l.createBlock(Ml,{key:p.key,class:"scoring-panel__criterion",label:p.label,"model-value":p.value,min:kl,max:xl,"unit-label":d.value,"unit-spoken-label":u.value,"onUpdate:modelValue":D=>v(p,D)},null,8,["label","model-value","unit-label","unit-spoken-label","onUpdate:modelValue"]))),128))])]),l.createElementVNode("footer",Zh,[l.createVNode(A3,{type:"secondary",iconName:"reset",onClick:l.withModifiers(A,["prevent"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value),1)]),_:1}),l.createVNode(A3,{type:"primary",onClick:w[1]||(w[1]=l.withModifiers(p=>n("apply",g()),["prevent"]))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.value),1)]),_:1})])],8,Kh))}}),$h={class:"slot-container"},ef=["disabled"],tf={class:"slot-container"},af=["disabled"],nf={class:"slot-container"},lf=["disabled"],sf=l.defineComponent({__name:"SegmentedButton",props:{iconLeft:{default:"arrow-down-a-z"},labelLeft:{default:"Croissant"},toolTipLabelLeft:{default:"Croissant : Affiche les éléments dans l'ordre alphabétique (de A à Z)"},iconCenter:{},labelCenter:{default:"Aucun tri"},toolTipLabelCenter:{default:"Aucun tri : Affiche les éléments dans l'ordre d'origine, sans tri appliqué"},iconRight:{default:"arrow-down-z-a"},labelRight:{default:"Décroissant"},toolTipLabelRight:{default:"Décroissant : Affiche les éléments dans l'ordre inverse (de Z à A)"},disabled:{type:Boolean},modelValue:{default:"center"},theme:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=r=>{t.disabled||n("update:modelValue",r)},s=l.computed(()=>({"--on-color":t.theme?.["amc2-segmented-button-on-color"],"--on-hover-color":t.theme?.["amc2-segmented-button-on-hover-color"],"--off-color":t.theme?.["amc2-segmented-button-off-color"],"--off-hover-color":t.theme?.["amc2-segmented-button-off-hover-color"],"--on-disabled-color":t.theme?.["amc2-segmented-button-on-disabled-color"],"--off-disabled-color":t.theme?.["amc2-segmented-button-off-disabled-color"]}));return(r,o)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(s.value),class:l.normalizeClass(["amc2-segment-btn-container",{disabled:a.disabled}])},[l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.toolTipLabelLeft),1)]),default:l.withCtx(()=>[l.createElementVNode("div",$h,[l.createElementVNode("div",{class:l.normalizeClass(["amc2-segment-btn left",{active:a.modelValue==="left"}]),onClick:o[0]||(o[0]=c=>i("left")),disabled:a.disabled},[a.iconLeft?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconLeft,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelLeft),1)],10,ef)])]),_:1}),l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.toolTipLabelCenter),1)]),default:l.withCtx(()=>[l.createElementVNode("div",tf,[l.createElementVNode("div",{class:l.normalizeClass(["amc2-segment-btn center",{active:a.modelValue==="center"}]),onClick:o[1]||(o[1]=c=>i("center")),disabled:a.disabled},[a.iconCenter?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconCenter,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelCenter),1)],10,af)])]),_:1}),l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.toolTipLabelRight),1)]),default:l.withCtx(()=>[l.createElementVNode("div",nf,[l.createElementVNode("div",{class:l.normalizeClass(["amc2-segment-btn right",{active:a.modelValue==="right"}]),onClick:o[2]||(o[2]=c=>i("right")),disabled:a.disabled},[a.iconRight?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconRight,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelRight),1)],10,lf)])]),_:1})],6))}}),rf={class:"side-menu"},of=["onClick"],cf={class:"side-menu-item-label"},df={class:"side-menu-chevron-container"},uf={key:0,class:"side-menu-submenu"},hf=["onClick"],ff=l.defineComponent({__name:"SideMenu",props:{items:{},idSelected:{}},setup(a){const e=a,t=l.ref(new Set),n=l.ref(e.idSelected??void 0),i=o=>{if(!o.children){s(o);return}t.value.has(o.label)?t.value.delete(o.label):(Array.from(t.value).filter(d=>{const u=e.items.find(h=>h.label===d);return u?.children?!u.children.some(h=>h.id===n.value):!0}).forEach(d=>{t.value.delete(d)}),t.value.add(o.label))},s=o=>{n.value=o.id,o.action?.()},r=o=>t.value.has(o.label);return l.onMounted(()=>{if(e.idSelected){const o=e.items.find(c=>c.children?.some(d=>d.id===e.idSelected));o&&t.value.add(o.label)}}),(o,c)=>(l.openBlock(),l.createElementBlock("nav",rf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.items,d=>(l.openBlock(),l.createElementBlock("li",{key:d.id,class:l.normalizeClass({"side-menu-item":!0,selected:d.id===n.value})},[l.createElementVNode("div",{class:"side-menu-item-line",onClick:u=>i(d)},[d.icon?(l.openBlock(),l.createBlock(U,{key:0,iconName:d.icon,height:"22",width:"22"},null,8,["iconName"])):l.createCommentVNode("",!0),l.createElementVNode("span",cf,l.toDisplayString(d.label),1),l.createElementVNode("div",df,[d.children&&!r(d)?(l.openBlock(),l.createBlock(U,{key:0,iconName:"chevron-down"})):l.createCommentVNode("",!0),d.children&&r(d)?(l.openBlock(),l.createBlock(U,{key:1,iconName:"chevron-up"})):l.createCommentVNode("",!0)])],8,of),l.createVNode(l.Transition,{name:"submenu",appear:""},{default:l.withCtx(()=>[d.children&&r(d)?(l.openBlock(),l.createElementBlock("div",uf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.children,u=>(l.openBlock(),l.createElementBlock("li",{key:u.id,class:l.normalizeClass({"side-menu-submenu-item":!0,selected:u.id===n.value}),onClick:h=>s(u)},[u.icon?(l.openBlock(),l.createBlock(U,{key:0,iconName:u.icon,height:"20",width:"20",color:l.unref(tt)},null,8,["iconName","color"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(u.label),1)],10,hf))),128))])):l.createCommentVNode("",!0)]),_:2},1024)],2))),128))]))}}),mf={key:0,class:"stat-card"},pf={key:0,class:"stat-card__label"},vf={key:1,class:"stat-card__value"},gf={key:2,class:"stat-card__range"},Bl=l.defineComponent({name:"StatCard",__name:"StatCard",props:{label:{},value:{},range:{}},setup(a){const e=a,t=l.computed(()=>c1(e.label)),n=l.computed(()=>c1(e.value)),i=l.computed(()=>c1(e.range)),s=l.computed(()=>t.value||n.value||i.value);return(r,o)=>s.value?(l.openBlock(),l.createElementBlock("div",mf,[t.value?(l.openBlock(),l.createElementBlock("p",pf,l.toDisplayString(a.label),1)):l.createCommentVNode("",!0),n.value?(l.openBlock(),l.createElementBlock("p",vf,l.toDisplayString(a.value),1)):l.createCommentVNode("",!0),i.value?(l.openBlock(),l.createElementBlock("p",gf,l.toDisplayString(a.range),1)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}}),yf={class:"tabbar-container"},Af={class:"tabbar-menu"},bf=["onClick"],Ef=l.defineComponent({__name:"TabBar",props:{listItems:{},listType:{}},emits:["change"],setup(a,{emit:e}){const t=a,n=e;return l.watchEffect(()=>{t.listItems.includes(t.listType)||console.warn(`La valeur de "listType" (${t.listType}) n'est pas présente dans "listItems".`)}),(i,s)=>(l.openBlock(),l.createElementBlock("div",yf,[l.createElementVNode("menu",Af,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.listItems,r=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["tabbar-menu-item",{active:r===a.listType}]),onClick:o=>n("change",r)},l.toDisplayString(r),11,bf))),256))])]))}}),Dl=l.defineComponent({__name:"HistoryBadge",props:{type:{}},setup(a){const e={modification:"Modification",creation:"Création",suppression:"Suppression"};return(t,n)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps(t.$attrs,{class:["history-badge",`history-badge--${a.type}`]}),l.toDisplayString(e[a.type]),17))}}),wf=l.defineComponent({__name:"HistoryFilter",props:{type:{},active:{type:Boolean}},emits:["click"],setup(a){const e={all:"Tout",modification:"Modification",creation:"Création",suppression:"Suppression"};return(t,n)=>(l.openBlock(),l.createElementBlock("button",l.mergeProps(t.$attrs,{class:["history-filter",a.active?`history-filter--${a.type}`:"history-filter--inactive"],onClick:n[0]||(n[0]=i=>t.$emit("click"))}),l.toDisplayString(e[a.type]),17))}}),Cf={key:0,class:"diff-value__pill diff-value__pill--new"},zf={class:"diff-value__pill diff-value__pill--old"},Sf={class:"diff-value__pill diff-value__pill--new"},Mf={class:"diff-value__pill diff-value__pill--deleted"},Vl=l.defineComponent({name:"DiffValue",inheritAttrs:!1,__name:"DiffValue",props:{kind:{default:"modification"},oldValue:{default:""},newValue:{default:""}},setup(a){const e=a,t=l.computed(()=>e.kind==="modification"&&e.oldValue===""),n=l.computed(()=>e.kind==="modification"&&!t.value&&e.newValue==="");return(i,s)=>(l.openBlock(),l.createElementBlock("span",l.mergeProps(i.$attrs,{class:"diff-value"}),[a.kind==="creation"||t.value?(l.openBlock(),l.createElementBlock("span",Cf,l.toDisplayString(a.newValue),1)):a.kind==="modification"&&!n.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("del",zf,l.toDisplayString(a.oldValue),1),l.createVNode(U,{"icon-name":"arrow-right",width:"16",height:"16",color:l.unref(J1),"class-icon":"diff-value__arrow","aria-hidden":"true"},null,8,["color"]),l.createElementVNode("span",Sf,l.toDisplayString(a.newValue),1)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createElementVNode("del",Mf,l.toDisplayString(a.oldValue),1),l.createVNode(U,{"icon-name":"arrow-right",width:"16",height:"16",color:l.unref(J1),"class-icon":"diff-value__arrow","aria-hidden":"true"},null,8,["color"]),s[0]||(s[0]=l.createElementVNode("span",{class:"diff-value__removed-label"},"Supprimé",-1))],64))],16))}}),kf=["aria-expanded","aria-label"],xf={class:"history-item__header"},Bf={class:"history-item__badge-col"},Df={class:"history-item__timestamp"},Vf={class:"history-item__date"},If={key:0,class:"history-item__author"},Rf={class:"history-item__author-name"},Tf={key:0,class:"history-item__details",role:"region"},Lf={class:"history-item__label"},Nf=l.defineComponent({name:"HistoryItem",inheritAttrs:!1,__name:"HistoryItem",props:{type:{default:"modification"},open:{type:Boolean,default:!1},date:{default:""},author:{default:""},initials:{default:"?"},fields:{default:()=>[]}},emits:["update:open","toggle"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(t.open);l.watch(()=>t.open,d=>{i.value=d});const s={modification:"Modification",creation:"Création",suppression:"Suppression"},r=l.computed(()=>{const d=U3(t.initials);return U3(t.author)!==""||d!==""&&d!=="?"}),o=l.computed(()=>{const d=[s[t.type]];return t.author&&d.push(`par ${t.author}`),t.date&&d.push(`le ${t.date}`),d.join(" ")}),c=()=>{i.value=!i.value,n("update:open",i.value),n("toggle",i.value)};return(d,u)=>(l.openBlock(),l.createElementBlock("button",l.mergeProps(d.$attrs,{class:["history-item",`history-item--${a.type}`],type:"button","aria-expanded":i.value,"aria-label":o.value,onClick:c}),[l.createElementVNode("span",xf,[l.createElementVNode("span",Bf,[l.createVNode(Dl,{type:a.type},null,8,["type"])]),l.createElementVNode("span",Df,[l.createVNode(U,{"icon-name":"history",width:"16",height:"16",color:l.unref(J1),"class-icon":"history-item__timestamp-icon","aria-hidden":"true"},null,8,["color"]),l.createElementVNode("span",Vf,l.toDisplayString(a.date),1)]),r.value?(l.openBlock(),l.createElementBlock("span",If,[l.createVNode(it,{initials:a.initials,size:"sm",color:"primary","aria-hidden":"true"},null,8,["initials"]),l.createElementVNode("span",Rf,l.toDisplayString(a.author),1)])):l.createCommentVNode("",!0),l.createVNode(U,{"icon-name":"chevron-down",width:"24",height:"24",color:l.unref(j1),"class-icon":"history-item__chevron","aria-hidden":"true"},null,8,["color"])]),i.value&&a.fields.length?(l.openBlock(),l.createElementBlock("span",Tf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.fields,(h,m)=>(l.openBlock(),l.createElementBlock("span",{key:m,class:"history-item__row"},[l.createElementVNode("span",Lf,l.toDisplayString(h.label),1),l.createVNode(Vl,{kind:a.type,"old-value":h.oldValue,"new-value":h.newValue},null,8,["kind","old-value","new-value"])]))),128))])):l.createCommentVNode("",!0)],16,kf))}}),Hf=["disabled"],Of=["disabled"],Ff=l.defineComponent({__name:"ToggleAdvanced",props:{labelLeft:{},iconLeft:{},labelRight:{},iconRight:{},disabled:{type:Boolean},modelValue:{type:Boolean},theme:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>t.modelValue??!1),s=()=>{t.disabled||n("update:modelValue",!i.value)},r=l.computed(()=>({...t.theme??{}}));return(o,c)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(r.value),class:l.normalizeClass(["amc2-advanced-toggle-container",{disabled:a.disabled}])},[l.createElementVNode("button",{class:l.normalizeClass(["amc2-toggle-btn left",{active:i.value}]),onClick:s,disabled:a.disabled},[a.iconLeft?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconLeft,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelLeft),1)],10,Hf),l.createElementVNode("button",{class:l.normalizeClass(["amc2-toggle-btn right",{active:!i.value}]),onClick:s,disabled:a.disabled},[a.iconRight?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconRight,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelRight),1)],10,Of)],6))}}),jf={key:0,class:"trip-popup",role:"tooltip"},Uf={key:0,class:"trip-popup__header"},_f={key:0,class:"trip-popup__type"},Kf={class:"trip-popup__sr-only"},Pf={key:1,class:"trip-popup__line"},Wf={key:2,class:"trip-popup__line"},Qf={key:3,class:"trip-popup__compensation"},Yf=l.defineComponent({name:"TripPopup",__name:"TripPopup",props:{type:{},duration:{},distance:{},compensation:{},transport:{}},setup(a){const e=a,t={walk:{icon:"walk",label:"À pied"},bike:{icon:"bike",label:"À vélo"},car:{icon:"car",label:"En voiture"},bus:{icon:"bus",label:"En transport en commun"}},n={v:"car",b:"bike",c:"bus",p:"walk"},i=l.computed(()=>{if(typeof e.transport!="string")return;const u=e.transport.trim().toLowerCase(),h=Object.prototype.hasOwnProperty.call(n,u)?n[u]:u;return Object.prototype.hasOwnProperty.call(t,h)?t[h]:void 0}),s=l.computed(()=>c1(e.type)),r=l.computed(()=>c1(e.duration)),o=l.computed(()=>c1(e.distance)),c=l.computed(()=>c1(e.compensation)),d=l.computed(()=>s.value||!!i.value||r.value||o.value||c.value);return(u,h)=>d.value?(l.openBlock(),l.createElementBlock("div",jf,[s.value||i.value?(l.openBlock(),l.createElementBlock("div",Uf,[s.value?(l.openBlock(),l.createElementBlock("p",_f,l.toDisplayString(a.type),1)):l.createCommentVNode("",!0),i.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(U,{"icon-name":i.value.icon,width:"16",height:"16",color:l.unref(j1),"class-icon":"trip-popup__icon","aria-hidden":"true"},null,8,["icon-name","color"]),l.createElementVNode("span",Kf,l.toDisplayString(i.value.label),1)],64)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),r.value?(l.openBlock(),l.createElementBlock("p",Pf,l.toDisplayString(a.duration),1)):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createElementBlock("p",Wf,l.toDisplayString(a.distance),1)):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createElementBlock("p",Qf,l.toDisplayString(a.compensation),1)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}}),qf={key:0,class:"hours-counter-popup",role:"tooltip"},Gf={class:"hours-counter-popup__label"},Jf={class:"hours-counter-popup__value"},Zf=l.defineComponent({name:"HoursCounterPopup",__name:"HoursCounterPopup",props:{trackingMethod:{},plannedHours:{},targetHours:{},hoursDifference:{},lostHours:{},labels:{}},setup(a){const e=a,t=[{key:"trackingMethod",label:"Méthode de suivi :",layout:"inline"},{key:"plannedHours",label:"Heures planifiées :",layout:"columns"},{key:"targetHours",label:"Objectifs d’heures :",layout:"columns"},{key:"hoursDifference",label:"Écart :",layout:"columns"},{key:"lostHours",label:"Heures perdues :",layout:"columns"}],n=s=>{const r=e.labels?.[s.key];return typeof r=="string"&&r.trim()!==""?r:s.label},i=l.computed(()=>t.flatMap(s=>{const r=e[s.key];return c1(r)?[{...s,label:n(s),value:String(r)}]:[]}));return(s,r)=>i.value.length>0?(l.openBlock(),l.createElementBlock("div",qf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,o=>(l.openBlock(),l.createElementBlock("p",{key:o.key,class:l.normalizeClass(["hours-counter-popup__row",`hours-counter-popup__row--${o.layout}`])},[l.createElementVNode("span",Gf,l.toDisplayString(o.label),1),r[0]||(r[0]=l.createTextVNode()),l.createElementVNode("span",Jf,l.toDisplayString(o.value),1)],2))),128))])):l.createCommentVNode("",!0)}}),Xf={class:"toast-container"},$f={class:"toast-content"},em={class:"toast-close"},tm=l.defineComponent({__name:"ToastBase",setup(a){const e=l.inject("toasts"),t=l.inject("removeToast"),n=r=>{t(r)},i=r=>{switch(r){case"info":return"info";case"success":return"thumbs-up";case"warning":return"alert-circle";case"error":return"x-circle";default:return"info"}},s=r=>{switch(r){case"info":return Z2;case"success":return Tl;case"warning":return Ll;case"error":return Hl;default:return Z2}};return(r,o)=>(l.openBlock(),l.createElementBlock("div",Xf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(e),c=>(l.openBlock(),l.createElementBlock("div",{key:c.id,class:l.normalizeClass(["toast","show",c.intent])},[l.createElementVNode("div",$f,[l.createVNode(U,{"icon-name":i(c.intent),color:s(c.intent),width:"30px",height:"30px"},null,8,["icon-name","color"]),l.createElementVNode("span",null,l.toDisplayString(c.message),1),l.createElementVNode("div",em,[l.createVNode(U,{"icon-name":"close",onClick:d=>n(c.id)},null,8,["onClick"])])])],2))),128))]))}}),am={key:0,class:"widget-header"},nm={class:"widget-body"},im={key:0,class:"widget-empty"},lm={key:1,class:"widget-loader"},sm={key:1,class:"widget-footer"},rm=X2(l.defineComponent({__name:"WidgetBase",props:{width:{default:"50%"},height:{default:"180px"},color:{},isLoading:{type:Boolean}},setup(a){const e=l.useSlots(),t=l.computed(()=>{const s=e.header?.();return!(s&&s?.length>0)}),n=l.computed(()=>{const s=e.body?.();return!(s&&s?.length>0)}),i=l.computed(()=>{const s=e.footer?.();return!(s&&s?.length>0)});return(s,r)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["widget-container",a.color?"custom-color":""]),style:l.normalizeStyle({width:a.width,height:a.height,backgroundColor:a.color})},[t.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("header",am,[l.renderSlot(s.$slots,"header",{},void 0,!0)])),l.createElementVNode("main",nm,[n.value?(l.openBlock(),l.createElementBlock("div",im,[l.createVNode(U,{iconName:"no_data",width:"50",height:"50",color:l.unref(J1)},null,8,["color"]),r[0]||(r[0]=l.createElementVNode("p",null,"Aucune donnée à afficher",-1))])):l.createCommentVNode("",!0),a.isLoading?(l.openBlock(),l.createElementBlock("div",lm,[l.createVNode(Fe)])):l.renderSlot(s.$slots,"body",{key:2},void 0,!0)]),i.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",sm,[l.renderSlot(s.$slots,"footer",{},void 0,!0)]))],6))}}),[["__scopeId","data-v-40656ad7"]]),om=["aria-labelledby"],cm=["id"],dm={class:"worker-day-journey__list"},Il=l.defineComponent({name:"WorkerDayJourney",__name:"WorkerDayJourney",props:{steps:{},title:{},homeStepLabels:{}},emits:["intervention-click"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>m1(t.title,"Parcours du jour")),s=Re("worker-day-journey-title"),r=c=>c1(c)?String(c).trim():void 0,o=l.computed(()=>Array.isArray(t.steps)?t.steps.flatMap(c=>{if(typeof c!="object"||c===null)return[];const d=c,u=typeof d.type=="string"?d.type.trim().toLowerCase():"";if(u==="home"){const y=Cl(d.direction);return y?[{type:"home",direction:y}]:[]}if(u==="trip"){const y=r(d.label);return y?[{type:"trip",label:y}]:[]}if(u!=="intervention")return[];const h=c,m=typeof h.activity=="string"?h.activity:"";return[{type:"intervention",activity:m.trim().toLowerCase()==="trajet"?"":m,clientName:r(h.clientName),activityLabel:r(h.activityLabel),time:r(h.time),status:h.status,hasTransmission:h.hasTransmission,hasRepetition:h.hasRepetition,source:h}]}):[]);return(c,d)=>o.value.length>0?(l.openBlock(),l.createElementBlock("section",{key:0,class:"worker-day-journey","aria-labelledby":l.unref(s)},[l.createElementVNode("h3",{id:l.unref(s),class:"worker-day-journey__title"},l.toDisplayString(i.value),9,cm),l.createElementVNode("ol",dm,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(u,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:l.normalizeClass(["worker-day-journey__step",`worker-day-journey__step--${u.type}`])},[u.type==="home"?(l.openBlock(),l.createBlock(zl,{key:0,direction:u.direction,labels:a.homeStepLabels},null,8,["direction","labels"])):u.type==="trip"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(u.label),1)],64)):(l.openBlock(),l.createBlock(Sl,{key:2,activity:u.activity,"client-name":u.clientName,"activity-label":u.activityLabel,time:u.time,status:u.status,"has-transmission":u.hasTransmission,"has-repetition":u.hasRepetition,onClick:m=>n("intervention-click",u.source)},null,8,["activity","client-name","activity-label","time","status","has-transmission","has-repetition","onClick"]))],2))),128))])],8,om)):l.createCommentVNode("",!0)}}),um=["aria-labelledby"],hm={class:"worker-day-panel__header"},fm={class:"worker-day-panel__profile"},mm={class:"worker-day-panel__info"},pm=["id","title"],vm={key:1,class:"worker-day-panel__count"},gm=["aria-label"],ym={key:0,class:"worker-day-panel__stats"},Am={key:1,class:"worker-day-panel__map"},bm=l.defineComponent({name:"WorkerDayPanel",__name:"WorkerDayPanel",props:{workerName:{},initials:{},avatarSrc:{},interventionsLabel:{},stats:{},journey:{},labels:{},homeStepLabels:{}},emits:["close","intervention-click"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>typeof t.labels=="object"&&t.labels!==null?t.labels:{}),s=l.computed(()=>({close:m1(i.value.close,"Fermer")})),r=l.ref(null),o=g=>{if(g.key!=="Escape"||g.defaultPrevented)return;const v=document.activeElement;v&&v!==document.body&&r.value?.contains(v)!==!0||n("close")};l.onMounted(()=>document.addEventListener("keydown",o)),l.onBeforeUnmount(()=>document.removeEventListener("keydown",o));const c=Re("worker-day-panel-name"),d=l.computed(()=>c1(t.workerName)?String(t.workerName).trim():""),u=l.computed(()=>c1(t.initials)?String(t.initials).trim():void 0),h=l.computed(()=>c1(t.avatarSrc)?String(t.avatarSrc).trim():void 0),m=l.computed(()=>u.value!==void 0||h.value!==void 0),f=l.computed(()=>c1(t.interventionsLabel)),y=l.computed(()=>Array.isArray(t.stats)?t.stats.filter(g=>typeof g=="object"&&g!==null&&["label","value","range"].some(v=>c1(g[v]))):[]);return(g,v)=>(l.openBlock(),l.createElementBlock("aside",{ref_key:"rootRef",ref:r,class:"worker-day-panel","aria-labelledby":d.value?l.unref(c):void 0},[l.createElementVNode("header",hm,[l.createElementVNode("div",fm,[m.value?(l.openBlock(),l.createBlock(it,{key:0,class:"worker-day-panel__avatar",size:"lg",color:"primary",initials:u.value,src:h.value,"aria-hidden":"true"},null,8,["initials","src"])):l.createCommentVNode("",!0),l.createElementVNode("div",mm,[d.value?(l.openBlock(),l.createElementBlock("h2",{key:0,id:l.unref(c),class:"worker-day-panel__name",title:d.value},l.toDisplayString(d.value),9,pm)):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createElementBlock("p",vm,l.toDisplayString(a.interventionsLabel),1)):l.createCommentVNode("",!0)])]),l.createElementVNode("button",{type:"button",class:"worker-day-panel__close","aria-label":s.value.close,onClick:v[0]||(v[0]=A=>n("close"))},[l.createVNode(U,{iconName:"x",width:"24",height:"24",color:l.unref(j1),"aria-hidden":"true"},null,8,["color"])],8,gm)]),y.value.length>0?(l.openBlock(),l.createElementBlock("div",ym,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.value,(A,b)=>(l.openBlock(),l.createBlock(Bl,{key:b,label:A.label,value:A.value,range:A.range},null,8,["label","value","range"]))),128))])):l.createCommentVNode("",!0),g.$slots.map?(l.openBlock(),l.createElementBlock("div",Am,[l.renderSlot(g.$slots,"map")])):l.createCommentVNode("",!0),l.createVNode(Il,{steps:a.journey,title:i.value.journeyTitle,"home-step-labels":a.homeStepLabels,onInterventionClick:v[1]||(v[1]=A=>n("intervention-click",A))},null,8,["steps","title","home-step-labels"])],8,um))}});let Em=0;const se=l.ref([]);function wm(a,e="info",t=3e3){const n=++Em;se.value.push({id:n,message:a,intent:e}),setTimeout(()=>{se.value=se.value.filter(i=>i.id!==n)},t)}function Cm(a){se.value=se.value.filter(e=>e.id!==a)}function zm(){return{show:wm}}function Sm(a){a.provide("toasts",se),a.provide("removeToast",Cm)}const Mm=["NFC-Phone","NFC-card","accounting","activity","add-comment","address-book","administration","airplay","alert-circle","alert-octagon","alert-triangle","align-center","align-justify","align-left","align-right","almond","ambulance","anchor","aperture","arche-1","arche-2","arche-3","armchair","arrow-down-1-9","arrow-down-9-1","arrow-down-left","arrow-down-right","arrow-down-a-z","arrow-down-z-a","arrow-down","arrow-go","arrow-left","arrow-right","arrow-up-9-1","arrow-up-a-z","arrow-up-left","arrow-up-right","arrow-up","assistance","at-sign","attach","award","bacteria","bar-chart-2","bar-chart","bar-code","battery-charging","battery","bed","bell-off","bell-ring","bell","bike","birthday","bluetooth-off","bluetooth","book-open","book","bookmark","box-archive","box","briefcase","broom","budget-grid","budget-grid2","budget-grid3","budget-grid4","budget-grid5","budget","bug","bulb-broken","bulb","burger","bus","calc","calendar-alert","calendar-check","calendar-download","calendar-import","calendar-parameters","calendar-plus","calendar-warning","calendar","camera-off","camera","car-2","car","cardboard","cars","cast","cellular-network-2","cellular-network-3","cellular-network-4","cellular-network-head","cellular-network-top","certificat","chart","check-circle","check-square","check","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-down","chevrons-left","chevrons-right","chevrons-up","chrome","circle-full","circle-half","circle-quarter","circle-three-quarters","circle","circles","clipboard-check","clipboard-error","clipboard-full","clipboard-off","clipboard-plus","clipboard-warning","clipboard","clock","close","cloud-drizzle","cloud-lightning","cloud-off","cloud-rain","cloud-snow","cloud","column","combined-shape","command","company","company2","compass","computer","copy","copy2","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left-double-check","corner-up-left-double-error","corner-up-left-double-warning","corner-up-left","corner-up-right-check","corner-up-right-error","corner-up-right-warning","corner-up-right","cpu","crab","credit-card","cross-hair","customer-card","cut","delete","desk","disc","dog-2","dog","dome","door-open","door","dot","download-cloud","download","droplet","drugs","edit-2","edit-3","edit","education","egg","euro","export-image","extern-al-link","eye-off","eye","facebook","fall","fast-forward","faucet","fax","feather","female","feminin","file-close","file-doc","file-export","file-import","file-jpg","file-minus","file-off","file-pdf","file-plus","file-png","file-text","file-txt","file-warning","file-xls","file-xxx","file","files","film","filter-off","filter","fire","flag","folder-error","folder-open-error","folder-open-warning","folder-open","folder-warning","folder","folders","for-me","for-you","forbidden","fridge","furniture","github","globe","grant","grid-3","grid-empty","grid-header","grid-import","grid","haha","hands","hash","head-set","headphones","health-kit","health","heart-2","heart","hide-grid-header","history","holiday","home","hourglass","human","iban-rib","image","inbox","info","injection","instagram","invoice","itinerary","journey","key-2","key-3","key","keychain-off","keychain","km","law","layers","layout","letter-a-plus","letter-a","letter-c","letter-d","letter-m","letter-o","letter-sigma","letter-sigma2","letter-t","life-buoy","line","link-2","link","loader","loan","lock","log-in","log-out","macro","mail-check","mail-copy","mail-open","mail","male","mandatary","map-2","map-pin-off","map-pin","map","masculin","max","maximize-2","maximize","menu","message-circle","message-square-off","message-square","mic-off","mic","min","minimize-2","minimize","minus-circle","minus-square","minus","mms","mobile-call","monitor","moon","more-horizontal","more-vertical","move","music","navigation-2","navigation","network","newmenu","newspaper","nfc-hand","no_data","number-1","number-10","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","nurse","octagon","package","palette","paste","pause-circle","pause","pear","percent","phone-call","phone-forwarded","phone-hangs-up","phone-incoming","phone-keyboard","phone-missed-2","phone-missed","phone-off","phone-outgoing","phone","pie-chart-2","pie-chart","piggy-bank","pin","play-circle","play","plus-circle","plus-square","plus","pocket","pointer","power","prestataire","preview","printer-selection","printer","processing","qr-code","question-circle","question","questions","quote-close","quote-open","quote","radio-off","radio","rank","refresh-ccw","refresh-cw","repeat","reset","restaurant","restore-size","rewind","road-sign","rotate-ccw","rotate-cw","save","scan","scissors","search","select-line","send","server","settings-check","settings-ok","settings","share-2","share","share1","shield-2","shield","shopbag1","shopbag2","shower","shuffle","sidebar","sign-add","sign-remove","sign","sim-card","sink","skip-back","skip-forward","slack","slash","smartphone","smile","speaker","square","ssiad","star-full","star-half","star","stethoscope-plus","stethoscope","stop-circle","storage-2","storage","stroller","sugar","sun","sunrise","sunset","surprise","swim","tablet-2","tablet-synchro","tablet","tag","target","task-2","task","thermometer","thumbs-down","thumbs-up","time-constraint","timestamp","toggle-left","toggle-right","tools","torch-on","torch","traceability-off","traceability-on","transfert","transmission","trash-2","trash","trending-down","trending-up","triangle","truck","tune","twitter","type","umbrella","uniEAAB","uniEAAC","uniEAAD","uniEAAE","uniEAAF","uniEAB0","uniEAB1","uniEAB2","uniEAB3","uniEAB4","unlink","unlock","up-down","update-cell","update-month","update-type","update-year","update","upload-cloud","upload","user-admin","user-alert","user-check","user-lock","user-minus","user-plus","user-tie","user-x","user","users-alert","users-plus","users","vacuum","video-off","video","voicemail","volume-1","volume-2","volume-x","volume","voucher-2","voucher","walk","wallet","watch","wifi-1","wifi-2","wifi-3","wifi-off","wifi","wifi1","wind","workgroup","x-circle","x-square","x","youtube","zap","zoom-in","zoom-out"];O.Alert=Xl,O.AppointmentPopup=as,O.AvatarBase=it,O.ButtonBase=A3,O.CalendarBase=M9,O.CheckboxBase=B0,O.CompatibilityPopup=P9,O.CriterionRow=_i,O.DataGrid=Ru,O.DatePicker=fl,O.DayNavigator=Hu,O.DiffValue=Vl,O.FilterPanel=ph,O.FlyoutMenu=j2,O.HistoryBadge=Dl,O.HistoryFilter=wf,O.HistoryItem=Nf,O.HomeStep=zl,O.HoursCounterPopup=Zf,O.InputBase=Q2,O.InterventionCard=Sl,O.ListWithSearch=pl,O.LoaderBase=Fe,O.ModalBase=Lh,O.NavType=h1,O.RadioBase=Oh,O.ScoreBadge=Fi,O.ScoringPanel=Xh,O.SegmentedButton=sf,O.SelectBase=yl,O.SelectionGroup=gl,O.SideMenu=ff,O.SliderBase=Ml,O.StatCard=Bl,O.SvgIcon=U,O.TabBar=Ef,O.TagBase=Xi,O.TagStatus=nt,O.ToastBase=tm,O.ToggleAdvanced=Ff,O.ToggleBase=U2,O.TooltipBase=H3,O.TripPopup=Yf,O.WidgetBase=rm,O.WorkerDayJourney=Il,O.WorkerDayPanel=bm,O.countActiveFilters=lh,O.emptyFilterPanelValue=q2,O.iconNames=Mm,O.provideToast=Sm,O.useToast=zm,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
24
+ `,allowHTML:!0,placement:"top",theme:"light-border"})},headerToolbar:{left:s.value,center:"prev title next",right:r.value},buttonText:{prev:"< Précédent",next:"Suivant >"},events:t.events}));return(h,m)=>(l.openBlock(),l.createBlock(l.unref(o5),{options:u.value},null,8,["options"]))}}),k9=["disabled"],x9=["innerHTML"],B0=l.defineComponent({__name:"CheckboxBase",props:l.mergeModels({label:{},icon:{},iconStyle:{},theme:{},indeterminate:{type:Boolean},disabled:{type:Boolean},className:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const e=a,t=l.useModel(a,"modelValue"),n=l.ref(e.indeterminate?"minus":"check"),i=s=>{s.target instanceof HTMLElement&&(s.target.className==="no-click"||s.target.parentNode instanceof HTMLElement&&s.target.parentNode.className.includes("no-click"))&&s.preventDefault()};return l.watch(()=>e.indeterminate,s=>{n.value=s?"minus":"check"}),(s,r)=>(l.openBlock(),l.createElementBlock("label",{style:l.normalizeStyle(a.theme),class:l.normalizeClass(["amc2-checkbox-container",a.className,{disabled:a.disabled}]),onClick:i},[l.withDirectives(l.createElementVNode("input",{type:"checkbox",disabled:a.disabled,"onUpdate:modelValue":r[0]||(r[0]=o=>t.value=o)},null,8,k9),[[l.vModelCheckbox,t.value]]),l.createVNode(U,l.mergeProps({class:"amc2-checkmark",iconName:n.value},a.iconStyle),null,16,["iconName"]),a.icon?(l.openBlock(),l.createBlock(U,l.mergeProps({key:0,iconName:a.icon},a.iconStyle,{class:"no-click"}),null,16,["iconName"])):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:a.label,class:"no-click"},null,8,x9)):l.createCommentVNode("",!0)],6))}}),B9=/^[+-]?\d+(?:[.,]\d+)?$/,v3=a=>{if(!c1(a))return;if(typeof a=="number")return a;const e=a.trim();return B9.test(e)?Number(e.replace(",",".")):void 0},Hi=a=>{const e=v3(a);if(!(e===void 0||e<0||e>100))return Math.round(e)},Oi=a=>{if(typeof a!="string")return;const e=a.trim().toLowerCase();return e==="success"||e==="warning"||e==="error"?e:void 0},D9={class:"score-badge__value"},V9={class:"score-badge__sr"},I9=75,R9=50,Fi=l.defineComponent({name:"ScoreBadge",__name:"ScoreBadge",props:{score:{},level:{},labels:{}},setup(a){const e=a,t={context:"de compatibilité",success:"score élevé",warning:"score moyen",error:"score faible"},n=r=>r>=I9?"success":r>=R9?"warning":"error",i=l.computed(()=>{const r=Hi(e.score);if(r!==void 0)return{value:r,level:Oi(e.level)??n(r)}}),s=l.computed(()=>{if(!i.value)return"";const r=e.labels?.context,o=typeof r=="string"?r.trim():t.context,c=e.labels?.[i.value.level],d=typeof c=="string"&&c.trim()!==""?c.trim():t[i.value.level];return`${o?` ${o}`:""}, ${d}.`});return(r,o)=>i.value?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["score-badge",`score-badge--${i.value.level}`])},[l.createElementVNode("span",D9,l.toDisplayString(i.value.value)+"%",1),l.createElementVNode("span",V9,l.toDisplayString(s.value),1)],2)):l.createCommentVNode("",!0)}}),ji=(a,e)=>typeof a=="number"?String(Math.round(e*100)/100):String(a).trim(),Ui=a=>{if(!c1(a.label))return;const e=v3(a.value),t=v3(a.max),n=Oi(a.level);if(e===void 0||t===void 0||n===void 0||e<0||t<0)return;const i=t>0?e/t:0;return{label:String(a.label).trim(),valueText:ji(a.value,e),maxText:ji(a.max,t),level:n,percent:Math.min(i,1)*100}},T9={class:"criterion-row__top"},L9={class:"criterion-row__label"},N9={class:"criterion-row__score"},H9={class:"criterion-row__sr"},O9={class:"criterion-row__track","aria-hidden":"true"},_i=l.defineComponent({name:"CriterionRow",__name:"CriterionRow",props:{label:{},value:{},max:{},level:{},labels:{}},setup(a){const e=a,t={success:"bon",warning:"à surveiller",error:"insuffisant"},n=l.computed(()=>Ui(e)),i=l.computed(()=>{if(!n.value)return"";const s=e.labels?.[n.value.level];return typeof s=="string"&&s.trim()!==""?s.trim():t[n.value.level]});return(s,r)=>n.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["criterion-row",`criterion-row--${n.value.level}`])},[l.createElementVNode("div",T9,[r[0]||(r[0]=l.createElementVNode("span",{class:"criterion-row__dot","aria-hidden":"true"},null,-1)),l.createElementVNode("p",L9,l.toDisplayString(n.value.label),1),l.createElementVNode("p",N9,[l.createTextVNode(l.toDisplayString(n.value.valueText)+"/"+l.toDisplayString(n.value.maxText),1),l.createElementVNode("span",H9,", "+l.toDisplayString(i.value)+".",1)])]),l.createElementVNode("div",O9,[l.createElementVNode("div",{class:"criterion-row__fill",style:l.normalizeStyle({width:`${n.value.percent}%`})},null,4)])],2)):l.createCommentVNode("",!0)}}),F9={key:0,class:"compatibility-popup",role:"tooltip"},j9={class:"compatibility-popup__header"},U9={class:"compatibility-popup__title"},_9={key:0,class:"compatibility-popup__divider","aria-hidden":"true"},K9="Score de compatibilité",P9=l.defineComponent({name:"CompatibilityPopup",__name:"CompatibilityPopup",props:{score:{},level:{},criteria:{},title:{},scoreLabels:{},criterionLabels:{}},setup(a){const e=a,t=l.computed(()=>typeof e.title=="string"&&e.title.trim()!==""?e.title.trim():K9),n=l.computed(()=>{const r=typeof e.scoreLabels=="object"&&e.scoreLabels!==null?e.scoreLabels:{};return{...r,context:typeof r.context=="string"?r.context:""}}),i=l.computed(()=>Hi(e.score)!==void 0),s=l.computed(()=>Array.isArray(e.criteria)?e.criteria.filter(r=>typeof r=="object"&&r!==null&&Ui(r)!==void 0):[]);return(r,o)=>i.value||s.value.length>0?(l.openBlock(),l.createElementBlock("div",F9,[l.createElementVNode("div",j9,[l.createVNode(Fi,{score:a.score,level:a.level,labels:n.value},null,8,["score","level","labels"]),l.createElementVNode("p",U9,l.toDisplayString(t.value),1)]),s.value.length>0?(l.openBlock(),l.createElementBlock("div",_9)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,(c,d)=>(l.openBlock(),l.createBlock(_i,{key:d,label:c.label,value:c.value,max:c.max,level:c.level,labels:a.criterionLabels},null,8,["label","value","max","level","labels"]))),128))])):l.createCommentVNode("",!0)}}),W9=l.defineComponent({inheritAttrs:!1,__name:"OptionalWrapperComponent",props:{is:{},wrap:{type:Boolean}},setup(a){return(e,t)=>a.is&&a.wrap!==!1?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.is),l.normalizeProps(l.mergeProps({key:0},e.$attrs)),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16)):l.renderSlot(e.$slots,"default",{key:1})}});function De(a){return l.getCurrentScope()?(l.onScopeDispose(a),!0):!1}const T2=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Q9=a=>a!=null,Y9=Object.prototype.toString,Ki=a=>Y9.call(a)==="[object Object]",T3=()=>{},L2=q9();function q9(){var a,e;return T2&&((a=window?.navigator)==null?void 0:a.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function G9(...a){if(a.length!==1)return l.toRef(...a);const e=a[0];return typeof e=="function"?l.readonly(l.customRef(()=>({get:e,set:T3}))):l.ref(e)}function L3(a){return Array.isArray(a)?a:[a]}function J9(a){return l.getCurrentInstance()}function Z9(a,e=!0,t){J9()?l.onMounted(a,t):e?a():l.nextTick(a)}function Pi(a,e,t){return l.watch(a,e,{...t,immediate:!0})}const N2=T2?window:void 0;function ie(a){var e;const t=l.toValue(a);return(e=t?.$el)!=null?e:t}function Wi(...a){const e=[],t=()=>{e.forEach(o=>o()),e.length=0},n=(o,c,d,u)=>(o.addEventListener(c,d,u),()=>o.removeEventListener(c,d,u)),i=l.computed(()=>{const o=L3(l.toValue(a[0])).filter(c=>c!=null);return o.every(c=>typeof c!="string")?o:void 0}),s=Pi(()=>{var o,c;return[(c=(o=i.value)==null?void 0:o.map(d=>ie(d)))!=null?c:[N2].filter(d=>d!=null),L3(l.toValue(i.value?a[1]:a[0])),L3(l.unref(i.value?a[2]:a[1])),l.toValue(i.value?a[3]:a[2])]},([o,c,d,u])=>{if(t(),!o?.length||!c?.length||!d?.length)return;const h=Ki(u)?{...u}:u;e.push(...o.flatMap(m=>c.flatMap(f=>d.map(y=>n(m,f,y,h)))))},{flush:"post"}),r=()=>{s(),t()};return De(t),r}function X9(){const a=l.shallowRef(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{a.value=!0},e),a}function Qi(a){const e=X9();return l.computed(()=>(e.value,!!a()))}function $9(a,e,t={}){const{window:n=N2,...i}=t;let s;const r=Qi(()=>n&&"MutationObserver"in n),o=()=>{s&&(s.disconnect(),s=void 0)},c=l.computed(()=>{const m=l.toValue(a),f=L3(m).map(ie).filter(Q9);return new Set(f)}),d=l.watch(c,m=>{o(),r.value&&m.size&&(s=new MutationObserver(e),m.forEach(f=>s.observe(f,i)))},{immediate:!0,flush:"post"}),u=()=>s?.takeRecords(),h=()=>{d(),o()};return De(h),{isSupported:r,stop:h,takeRecords:u}}function ed(a,e,t={}){const{window:n=N2,...i}=t;let s;const r=Qi(()=>n&&"ResizeObserver"in n),o=()=>{s&&(s.disconnect(),s=void 0)},c=l.computed(()=>{const h=l.toValue(a);return Array.isArray(h)?h.map(m=>ie(m)):[ie(h)]}),d=l.watch(c,h=>{if(o(),r.value&&n){s=new ResizeObserver(e);for(const m of h)m&&s.observe(m,i)}},{immediate:!0,flush:"post"}),u=()=>{o(),d()};return De(u),{isSupported:r,stop:u}}function Yi(a,e={}){const{reset:t=!0,windowResize:n=!0,windowScroll:i=!0,immediate:s=!0,updateTiming:r="sync"}=e,o=l.shallowRef(0),c=l.shallowRef(0),d=l.shallowRef(0),u=l.shallowRef(0),h=l.shallowRef(0),m=l.shallowRef(0),f=l.shallowRef(0),y=l.shallowRef(0);function g(){const A=ie(a);if(!A){t&&(o.value=0,c.value=0,d.value=0,u.value=0,h.value=0,m.value=0,f.value=0,y.value=0);return}const b=A.getBoundingClientRect();o.value=b.height,c.value=b.bottom,d.value=b.left,u.value=b.right,h.value=b.top,m.value=b.width,f.value=b.x,y.value=b.y}function v(){r==="sync"?g():r==="next-frame"&&requestAnimationFrame(()=>g())}return ed(a,v),l.watch(()=>ie(a),A=>!A&&v()),$9(a,v,{attributeFilter:["style","class"]}),i&&Wi("scroll",v,{capture:!0,passive:!0}),n&&Wi("resize",v,{passive:!0}),Z9(()=>{s&&v()}),{height:o,bottom:c,left:d,right:u,top:h,width:m,x:f,y,update:v}}const qi=T2?window:void 0;function Ve(a){var e;const t=l.toValue(a);return(e=t?.$el)!=null?e:t}function D0(...a){const e=[],t=()=>{e.forEach(o=>o()),e.length=0},n=(o,c,d,u)=>(o.addEventListener(c,d,u),()=>o.removeEventListener(c,d,u)),i=l.computed(()=>{const o=L3(l.toValue(a[0])).filter(c=>c!=null);return o.every(c=>typeof c!="string")?o:void 0}),s=Pi(()=>{var o,c;return[(c=(o=i.value)==null?void 0:o.map(d=>Ve(d)))!=null?c:[qi].filter(d=>d!=null),L3(l.toValue(i.value?a[1]:a[0])),L3(l.unref(i.value?a[2]:a[1])),l.toValue(i.value?a[3]:a[2])]},([o,c,d,u])=>{if(t(),!o?.length||!c?.length||!d?.length)return;const h=Ki(u)?{...u}:u;e.push(...o.flatMap(m=>c.flatMap(f=>d.map(y=>n(m,f,y,h)))))},{flush:"post"}),r=()=>{s(),t()};return De(t),r}let Gi=!1;function Ji(a,e,t={}){const{window:n=qi,ignore:i=[],capture:s=!0,detectIframe:r=!1,controls:o=!1}=t;if(!n)return o?{stop:T3,cancel:T3,trigger:T3}:T3;if(L2&&!Gi){Gi=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(A=>A.addEventListener("click",T3,v)),n.document.documentElement.addEventListener("click",T3,v)}let c=!0;const d=v=>l.toValue(i).some(A=>{if(typeof A=="string")return Array.from(n.document.querySelectorAll(A)).some(b=>b===v.target||v.composedPath().includes(b));{const b=Ve(A);return b&&(v.target===b||v.composedPath().includes(b))}});function u(v){const A=l.toValue(v);return A&&A.$.subTree.shapeFlag===16}function h(v,A){const b=l.toValue(v),w=b.$.subTree&&b.$.subTree.children;return w==null||!Array.isArray(w)?!1:w.some(p=>p.el===A.target||A.composedPath().includes(p.el))}const m=v=>{const A=Ve(a);if(v.target!=null&&!(!(A instanceof Element)&&u(a)&&h(a,v))&&!(!A||A===v.target||v.composedPath().includes(A))){if("detail"in v&&v.detail===0&&(c=!d(v)),!c){c=!0;return}e(v)}};let f=!1;const y=[D0(n,"click",v=>{f||(f=!0,setTimeout(()=>{f=!1},0),m(v))},{passive:!0,capture:s}),D0(n,"pointerdown",v=>{const A=Ve(a);c=!d(v)&&!!(A&&!v.composedPath().includes(A))},{passive:!0}),r&&D0(n,"blur",v=>{setTimeout(()=>{var A;const b=Ve(a);((A=n.document.activeElement)==null?void 0:A.tagName)==="IFRAME"&&!b?.contains(n.document.activeElement)&&e(v)},0)},{passive:!0})].filter(Boolean),g=()=>y.forEach(v=>v());return o?{stop:g,cancel:()=>{c=!1},trigger:v=>{c=!0,m(v),c=!1}}:g}const H2=new WeakMap,td={mounted(a,e){const t=!e.modifiers.bubble;let n;if(typeof e.value=="function")n=Ji(a,e.value,{capture:t});else{const[i,s]=e.value;n=Ji(a,i,Object.assign({capture:t},s))}H2.set(a,n)},unmounted(a){const e=H2.get(a);e&&typeof e=="function"?e():e?.stop(),H2.delete(a)}};function O2(a){return typeof Window<"u"&&a instanceof Window?a.document.documentElement:typeof Document<"u"&&a instanceof Document?a.documentElement:a}function Zi(a){const e=window.getComputedStyle(a);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&a.clientWidth<a.scrollWidth||e.overflowY==="auto"&&a.clientHeight<a.scrollHeight)return!0;{const t=a.parentNode;return!t||t.tagName==="BODY"?!1:Zi(t)}}function ad(a){const e=a||window.event,t=e.target;return Zi(t)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const F2=new WeakMap;function nd(a,e=!1){const t=l.shallowRef(e);let n=null,i="";l.watch(G9(a),o=>{const c=O2(l.toValue(o));if(c){const d=c;if(F2.get(d)||F2.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(i=d.style.overflow),d.style.overflow==="hidden")return t.value=!0;if(t.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const o=O2(l.toValue(a));!o||t.value||(L2&&(n=D0(o,"touchmove",c=>{ad(c)},{passive:!1})),o.style.overflow="hidden",t.value=!0)},r=()=>{const o=O2(l.toValue(a));!o||!t.value||(L2&&n?.(),o.style.overflow=i,F2.delete(o),t.value=!1)};return De(r),l.computed({get(){return t.value},set(o){o?s():r()}})}function id(){let a=!1;const e=l.shallowRef(!1);return(t,n)=>{if(e.value=n.value,a)return;a=!0;const i=nd(t,n.value);l.watch(e,s=>i.value=s)}}id();const ld={class:"flyout-menu-container"},sd={key:0,class:"flyout-menu-item-wrapper"},rd=["onClick"],i3=2,N3=8,j2=l.defineComponent({__name:"FlyoutMenu",props:{items:{},displayEl:{},position:{},autoClose:{type:Boolean,default:!0}},emits:["close"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(!1),s=l.useTemplateRef("contentWrapper"),r=l.useTemplateRef("menuContainer"),o=l.ref({}),c=()=>{i.value&&(i.value=!1,n("close"))},d=[c,{ignore:[r]}],u=()=>{if(i.value){c();return}o.value={position:"fixed",top:"0px",left:"0px",visibility:"hidden"},i.value=!0,l.nextTick(h)},h=()=>{const g=r.value,v=s.value;if(!g||!v)return;const A=g.getBoundingClientRect(),b=window.innerWidth,w=window.innerHeight;if(b===0||w===0)return;v.style.maxHeight="";const p=v.getBoundingClientRect(),D=t.position||"bottom";let S,V;switch(D){case"top":S=A.top-i3-p.height,V=A.left+A.width/2-p.width/2;break;case"right":S=A.top,V=A.right+i3;break;case"left":S=A.top,V=A.left-i3-p.width;break;case"bottom-left":S=A.bottom+i3,V=A.right-p.width;break;default:S=A.bottom+i3,V=A.left+A.width/2-p.width/2}const I=w-A.bottom-i3,P=A.top-i3;(D==="bottom"||D==="bottom-left")&&p.height>I&&P>I&&(S=A.top-i3-p.height),D==="top"&&p.height>P&&I>P&&(S=A.bottom+i3);const R={position:"fixed",minWidth:`${Math.round(A.width)}px`},N=Math.max(w-2*N3,0);let G=p.height;G>N&&(R.maxHeight=`${N}px`,R.overflowY="auto",G=N),S=Math.min(Math.max(S,N3),Math.max(w-G-N3,N3)),V=Math.min(Math.max(V,N3),Math.max(b-p.width-N3,N3)),R.top=`${Math.round(S)}px`,R.left=`${Math.round(V)}px`,o.value=R},m=g=>{const v=s.value;v&&g.target instanceof Node&&v.contains(g.target)||c()},f=()=>h();l.watch(i,g=>{g?(window.addEventListener("scroll",m,!0),window.addEventListener("resize",f)):(window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",f))}),l.onBeforeUnmount(()=>{window.removeEventListener("scroll",m,!0),window.removeEventListener("resize",f)});const y=l.computed(()=>`flyout-${t.position||"bottom"}`);return(g,v)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",ld,[l.createElementVNode("div",{ref:"menuContainer",onClick:u},[l.renderSlot(g.$slots,"default")],512),i.value?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,ref:"contentWrapper",class:l.normalizeClass(["flyout-menu-list",y.value]),style:l.normalizeStyle(o.value)},[a.items?(l.openBlock(),l.createElementBlock("div",sd,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.items,(A,b)=>(l.openBlock(),l.createElementBlock("div",{key:b,onClick:()=>{A.onClick?.(),a.autoClose&&c()},class:"flyout-menu-item"},l.toDisplayString(A.label),9,rd))),128))])):g.$slots.content?l.renderSlot(g.$slots,"content",{key:1}):l.createCommentVNode("",!0)],6)),[[l.unref(td),d]]):l.createCommentVNode("",!0)])]))}}),od=["aria-label","disabled","checked"],U2=l.defineComponent({__name:"ToggleBase",props:{label:{},icon:{},theme:{},disabled:{type:Boolean},modelValue:{type:Boolean},ariaLabel:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>({...t.theme??{}})),s=r=>{const o=r.target;n("update:modelValue",o.checked)};return(r,o)=>(l.openBlock(),l.createElementBlock("label",{style:l.normalizeStyle(i.value),class:"amc2-toggle-container"},[l.createElementVNode("input",{type:"checkbox",role:"switch","aria-label":a.ariaLabel||void 0,disabled:a.disabled,checked:a.modelValue,onChange:s},null,40,od),o[0]||(o[0]=l.createElementVNode("span",{class:"amc2-toggle-slider"},null,-1)),a.icon?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.icon},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(a.label),1)],4))}}),Xi=l.defineComponent({__name:"TagBase",props:{label:{},backgroundColor:{}},setup(a){return(e,t)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps(e.$attrs,{class:["base-tag",`tag-background-color-${a.backgroundColor}`]}),l.toDisplayString(a.label),17))}}),cd={class:"tooltip-content"},H3=l.defineComponent({__name:"TooltipBase",props:{position:{default:"bottom"},className:{},style:{},removeDelay:{}},setup(a){const e=a,t=l.ref(!1),n=l.ref({}),i=l.ref(null),s=l.ref(null),r=l.ref(!1);let o=null;const c=l.useSlots(),d=l.computed(()=>{const f=c.content?.();return f&&f?.length>0&&f[0].children.length>0?"visible":"hidden"}),u=async()=>{r.value=!0,t.value=!0,await l.nextTick(),m()},h=()=>{if(r.value=!1,!e.removeDelay){t.value=!1;return}o&&clearTimeout(o),o=setTimeout(()=>{r.value||(t.value=!1)},e.removeDelay)},m=()=>{const f=i.value,y=s.value;if(!f||!y)return;const g=f.getBoundingClientRect(),v=y.getBoundingClientRect(),A=window.pageXOffset||document.documentElement.scrollLeft,b=window.pageYOffset||document.documentElement.scrollTop,w={},p=8;switch(e.position){case"top":w.top=`${g.top+b-v.height-p}px`,w.left=`${g.left+A+g.width/2-v.width/2}px`;break;case"bottom":w.top=`${g.bottom+b+p}px`,w.left=`${g.left+A+g.width/2-v.width/2}px`;break;case"left":w.top=`${g.top+b+g.height/2-v.height/2}px`,w.left=`${g.left+A-v.width-p}px`;break;case"right":w.top=`${g.top+b+g.height/2-v.height/2}px`,w.left=`${g.right+A+p}px`;break}n.value={...w,position:"absolute",zIndex:"9999",visibility:d.value,...e.style}};return(f,y)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:"tooltip-container",onMouseenter:u,onMouseleave:h},[l.createElementVNode("div",{ref_key:"triggerRef",ref:i,class:"tooltip-container-slot"},[l.renderSlot(f.$slots,"default")],512)],32),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[t.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["tooltip-content-arrow",a.className,a.position]),style:l.normalizeStyle(n.value),ref_key:"tooltipRef",ref:s,onMouseenter:y[0]||(y[0]=g=>r.value=!0),onMouseleave:h},[l.createElementVNode("div",cd,[l.renderSlot(f.$slots,"content")]),l.createElementVNode("div",{class:l.normalizeClass(["tooltip-arrow",a.position])},null,2)],38)):l.createCommentVNode("",!0)]))],64))}});function g3(a){return typeof a=="string"||a instanceof String}function $i(a){var e;return typeof a=="object"&&a!=null&&(a==null||(e=a.constructor)==null?void 0:e.name)==="Object"}function el(a,e){return Array.isArray(e)?el(a,(t,n)=>e.includes(n)):Object.entries(a).reduce((t,n)=>{let[i,s]=n;return e(s,i)&&(t[i]=s),t},{})}const j={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function dd(a){switch(a){case j.LEFT:return j.FORCE_LEFT;case j.RIGHT:return j.FORCE_RIGHT;default:return a}}function _2(a){return a.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function V0(a,e){if(e===a)return!0;const t=Array.isArray(e),n=Array.isArray(a);let i;if(t&&n){if(e.length!=a.length)return!1;for(i=0;i<e.length;i++)if(!V0(e[i],a[i]))return!1;return!0}if(t!=n)return!1;if(e&&a&&typeof e=="object"&&typeof a=="object"){const s=e instanceof Date,r=a instanceof Date;if(s&&r)return e.getTime()==a.getTime();if(s!=r)return!1;const o=e instanceof RegExp,c=a instanceof RegExp;if(o&&c)return e.toString()==a.toString();if(o!=c)return!1;const d=Object.keys(e);for(i=0;i<d.length;i++)if(!Object.prototype.hasOwnProperty.call(a,d[i]))return!1;for(i=0;i<d.length;i++)if(!V0(a[d[i]],e[d[i]]))return!1;return!0}else if(e&&a&&typeof e=="function"&&typeof a=="function")return e.toString()===a.toString();return!1}class ud{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?j.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?j.RIGHT:j.LEFT}}function Q(a,e){return new Q.InputMask(a,e)}function tl(a){if(a==null)throw new Error("mask property should be defined");return a instanceof RegExp?Q.MaskedRegExp:g3(a)?Q.MaskedPattern:a===Date?Q.MaskedDate:a===Number?Q.MaskedNumber:Array.isArray(a)||a===Array?Q.MaskedDynamic:Q.Masked&&a.prototype instanceof Q.Masked?a:Q.Masked&&a instanceof Q.Masked?a.constructor:a instanceof Function?Q.MaskedFunction:(console.warn("Mask not found for mask",a),Q.Masked)}function Ie(a){if(!a)throw new Error("Options in not defined");if(Q.Masked){if(a.prototype instanceof Q.Masked)return{mask:a};const{mask:e=void 0,...t}=a instanceof Q.Masked?{mask:a}:$i(a)&&a.mask instanceof Q.Masked?a:{};if(e){const n=e.mask;return{...el(e,(i,s)=>!s.startsWith("_")),mask:e.constructor,_mask:n,...t}}}return $i(a)?{...a}:{mask:a}}function l3(a){if(Q.Masked&&a instanceof Q.Masked)return a;const e=Ie(a),t=tl(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}Q.createMask=l3;class K2{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}Q.MaskElement=K2;const al=90,hd=89;class I0 extends K2{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,n;return(e=(t=(n=this.input).getRootNode)==null?void 0:t.call(n))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===al&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===hd&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===al&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}Q.HTMLMaskElement=I0;class fd extends I0{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}Q.HTMLMaskElement=I0;class nl extends I0{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}Q.HTMLContenteditableMaskElement=nl;class R0{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>R0.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}R0.MAX_LENGTH=100;class md{constructor(e,t){this.el=e instanceof K2?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new nl(e):new fd(e),this.masked=l3(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new R0,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof Q.Masked)&&this.masked.constructor===tl(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof Q.Masked?e:l3({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const n=this._listeners[e];n&&n.forEach(i=>i(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,n=this.masked.value,i=this.masked.rawInputValue,s=this.displayValue,r=this.unmaskedValue!==t||this.value!==n||this._rawInputValue!==i;this._unmaskedValue=t,this._value=n,this._rawInputValue=i,this.el.value!==s&&(this.el.value=s),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),r&&this._fireChangeEvents(),!this._historyChanging&&(r||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...n}=e,i=!this.maskEquals(t),s=this.masked.optionsIsChanged(n);i&&(this.mask=t),s&&this.masked.updateOptions(n),(i||s)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,j.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new ud({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,s=n===this.masked.rawInputValue?t.removeDirection:j.NONE;let r=this.masked.nearestInputPos(t.startChangePos+i,s);s!==j.NONE&&(r=this.masked.nearestInputPos(r,j.NONE)),this.updateControl(r),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}Q.InputMask=md;class Y{static normalize(e){return Array.isArray(e)?e:[e,new Y]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}Q.ChangeDetails=Y;class Y1{constructor(e,t,n){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class v1{constructor(e){this._value="",this._update({...v1.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new Y1(this.extractInput(e,t),e)}appendTail(e){return g3(e)&&(e=new Y1(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new Y({inserted:e,rawInserted:e})):new Y}_appendChar(e,t,n){t===void 0&&(t={});const i=this.state;let s;if([e,s]=this.doPrepareChar(e,t),e&&(s=s.aggregate(this._appendCharRaw(e,t)),!s.rawInserted&&this.autofix==="pad")){const r=this.state;this.state=i;let o=this.pad(t);const c=this._appendCharRaw(e,t);o=o.aggregate(c),c.rawInserted||o.equals(s)?s=o:this.state=r}if(s.inserted){let r,o=this.doValidate(t)!==!1;if(o&&n!=null){const c=this.state;if(this.overwrite===!0){r=n.state;for(let u=0;u<s.rawInserted.length;++u)n.unshift(this.displayValue.length-s.tailShift)}let d=this.appendTail(n);if(o=d.rawInserted.length===n.toString().length,!(o&&d.inserted)&&this.overwrite==="shift"){this.state=c,r=n.state;for(let u=0;u<s.rawInserted.length;++u)n.shift();d=this.appendTail(n),o=d.rawInserted.length===n.toString().length}o&&d.inserted&&(this.state=c)}o||(s=new Y,this.state=i,n&&r&&(n.state=r))}return s}_appendPlaceholder(){return new Y}_appendEager(){return new Y}append(e,t,n){if(!g3(e))throw new Error("value should be string");const i=g3(n)?new Y1(String(n)):n;t!=null&&t.tail&&(t._beforeTailState=this.state);let s;[e,s]=this.doPrepare(e,t);for(let r=0;r<e.length;++r){const o=this._appendChar(e[r],t,i);if(!o.rawInserted&&!this.doSkipInvalid(e[r],t,i))break;s.aggregate(o)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&s.aggregate(this._appendEager()),i!=null&&(s.tailShift+=this.appendTail(i).tailShift),s}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new Y}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==n&&n.indexOf(this.value)===0&&(this.append(n.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),Y.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),Y.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,n,i,s){n===void 0&&(n=""),i===void 0&&(i=j.NONE),s===void 0&&(s={input:!0});const r=e+t,o=this.extractTail(r),c=this.eager===!0||this.eager==="remove";let d;c&&(i=dd(i),d=this.extractInput(0,r,{raw:!0}));let u=e;const h=new Y;if(i!==j.NONE&&(u=this.nearestInputPos(e,t>1&&e!==0&&!c?j.NONE:i),h.tailShift=u-e),h.aggregate(this.remove(u)),c&&i!==j.NONE&&d===this.rawInputValue)if(i===j.FORCE_LEFT){let m;for(;d===this.rawInputValue&&(m=this.displayValue.length);)h.aggregate(new Y({tailShift:-1})).aggregate(this.remove(m-1))}else i===j.FORCE_RIGHT&&o.unshift();return h.aggregate(this.append(n,s,o))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!V0(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||v1.EMPTY_VALUES.includes(e)&&v1.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new Y}}v1.DEFAULTS={skipInvalid:!0},v1.EMPTY_VALUES=[void 0,null,""],Q.Masked=v1;class O3{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=g3(e)?new Y1(String(e)):e;const t=this.chunks[this.chunks.length-1],n=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof Y1)n?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof O3){if(e.stop==null){let i;for(;e.chunks.length&&e.chunks[0].stop==null;)i=e.chunks.shift(),i.from+=e.from,this.extend(i)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof Q.MaskedPattern))return new Y1(this.toString()).appendTo(e);const t=new Y;for(let n=0;n<this.chunks.length;++n){const i=this.chunks[n],s=e._mapPosToBlock(e.displayValue.length),r=i.stop;let o;if(r!=null&&(!s||s.index<=r)&&((i instanceof O3||e._stops.indexOf(r)>=0)&&t.aggregate(e._appendPlaceholder(r)),o=i instanceof O3&&e._blocks[r]),o){const c=o.appendTail(i);t.aggregate(c);const d=i.toString().slice(c.rawInserted.length);d&&t.aggregate(e.append(d,{tail:!0}))}else t.aggregate(e.append(i.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...n}=e;Object.assign(this,n),this.chunks=t.map(i=>{const s="chunks"in i?new O3:new Y1;return s.state=i,s})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],s=i.unshift(t);if(i.toString()){if(!s)break;++n}else this.chunks.splice(n,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class pd{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,j.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,j.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,j.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,j.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,j.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,j.NONE),!0})}}class il{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new Y}nearestInputPos(e,t){t===void 0&&(t=j.NONE);const n=0,i=this._value.length;switch(t){case j.LEFT:case j.FORCE_LEFT:return n;case j.NONE:case j.RIGHT:case j.FORCE_RIGHT:default:return i}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new Y;const n=this.eager===!0||this.eager==="append",s=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&!t.tail,r=new Y({inserted:this.char,rawInserted:s?this.char:""});return this._value=this.char,this._isRawInput=s&&(t.raw||t.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new Y;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new Y1("")}appendTail(e){return g3(e)&&(e=new Y1(String(e))),e.appendTo(this)}append(e,t,n){const i=this._appendChar(e[0],t);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class T0{constructor(e){const{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:r,eager:o,...c}=e;this.masked=l3(c),Object.assign(this,{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:r,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new Y}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new Y;const n=this.masked.state;let i=this.masked._appendChar(e,this.currentMaskFlags(t));return i.inserted&&this.doValidate(t)===!1&&(i=new Y,this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new Y:(this.isFilled=!0,new Y({inserted:this.placeholderChar}))}_appendEager(){return new Y}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){t===void 0&&(t=j.NONE);const n=0,i=this.value.length,s=Math.min(Math.max(e,n),i);switch(t){case j.LEFT:case j.FORCE_LEFT:return this.isComplete?s:n;case j.RIGHT:case j.FORCE_RIGHT:return this.isComplete?s:i;case j.NONE:default:return s}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||e?._beforeTailState}}pad(e){return new Y}}T0.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class vd extends v1{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=n=>n.search(t)>=0),super._update(e)}}Q.MaskedRegExp=vd;class g1 extends v1{constructor(e){super({...g1.DEFAULTS,...e,definitions:Object.assign({},T0.DEFAULT_DEFINITIONS,e?.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let n=!1,i=!1;for(let s=0;s<t.length;++s){if(this.blocks){const d=t.slice(s),u=Object.keys(this.blocks).filter(m=>d.indexOf(m)===0);u.sort((m,f)=>f.length-m.length);const h=u[0];if(h){const{expose:m,repeat:f,...y}=Ie(this.blocks[h]),g={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...y,repeat:f,parent:this},v=f!=null?new Q.RepeatBlock(g):l3(g);v&&(this._blocks.push(v),m&&(this.exposeBlock=v),this._maskedBlocks[h]||(this._maskedBlocks[h]=[]),this._maskedBlocks[h].push(this._blocks.length-1)),s+=h.length-1;continue}}let r=t[s],o=r in e;if(r===g1.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(r==="{"||r==="}"){n=!n;continue}if(r==="["||r==="]"){i=!i;continue}if(r===g1.ESCAPE_CHAR){if(++s,r=t[s],!r)break;o=!1}const c=o?new T0({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Ie(e[r]),parent:this}):new il({char:r,eager:this.eager,isUnmasking:n});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...n}=e;this._blocks.forEach((i,s)=>i.state=t[s]),super.state=n}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new Y;let n=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(n==null)return t;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const s=this._blocks[i]._appendEager();if(!s.inserted)break;t.aggregate(s)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const n=this._mapPosToBlock(this.displayValue.length),i=new Y;if(!n)return i;for(let r=n.index,o;o=this._blocks[r];++r){var s;const c=o._appendChar(e,{...t,_beforeTailState:(s=t._beforeTailState)==null||(s=s._blocks)==null?void 0:s[r]});if(i.aggregate(c),c.consumed)break}return i}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=new O3;return e===t||this._forEachBlocksInRange(e,t,(i,s,r,o)=>{const c=i.extractTail(r,o);c.stop=this._findStopBefore(s),c.from=this._blockStartPos(s),c instanceof O3&&(c.blockIndex=s),n.extend(c)}),n}extractInput(e,t,n){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),n===void 0&&(n={}),e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(s,r,o,c)=>{i+=s.extractInput(o,c,n)}),i}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=e)t=i;else break}return t}_appendPlaceholder(e){const t=new Y;if(this.lazy&&e==null)return t;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;const i=n.index,s=e??this._blocks.length;return this._blocks.slice(i,s).forEach(r=>{if(!r.lazy||e!=null){var o;t.aggregate(r._appendPlaceholder((o=r._blocks)==null?void 0:o.length))}}),t}_mapPosToBlock(e){let t="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],s=t.length;if(t+=i.displayValue,e<=t.length)return{index:n,offset:e-s}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,n)=>t+=n.displayValue.length,0)}_forEachBlocksInRange(e,t,n){t===void 0&&(t=this.displayValue.length);const i=this._mapPosToBlock(e);if(i){const s=this._mapPosToBlock(t),r=s&&i.index===s.index,o=i.offset,c=s&&r?s.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,o,c),s&&!r){for(let d=i.index+1;d<s.index;++d)n(this._blocks[d],d,0,this._blocks[d].displayValue.length);n(this._blocks[s.index],s.index,0,s.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(i,s,r,o)=>{n.aggregate(i.remove(r,o))}),n}nearestInputPos(e,t){if(t===void 0&&(t=j.NONE),!this._blocks.length)return 0;const n=new pd(this,e);if(t===j.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(t===j.LEFT||t===j.FORCE_LEFT){if(t===j.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===j.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e||(n.popState(),n.ok&&n.pos<=e))return n.pos;n.popState()}return n.ok?n.pos:t===j.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return t===j.RIGHT||t===j.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===j.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(e,j.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=0;return this._forEachBlocksInRange(e,t,(i,s,r,o)=>{n+=i.totalInputPositions(r,o)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(n=>this._blocks[n]):[]}pad(e){const t=new Y;return this._forEachBlocksInRange(0,this.displayValue.length,n=>t.aggregate(n.pad(e))),t}}g1.DEFAULTS={...v1.DEFAULTS,lazy:!0,placeholderChar:"_"},g1.STOP_CHAR="`",g1.ESCAPE_CHAR="\\",g1.InputDefinition=T0,g1.FixedDefinition=il,Q.MaskedPattern=g1;class L0 extends g1{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:s=this.autofix,...r}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,i),this.autofix=s;const o=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let d=0;for(;d<c.length&&c[d]===o[d];)++d;r.mask=c.slice(0,d).replace(/0/g,"\\0")+"0".repeat(this.maxLength-d),super._update(r)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",n="";const[,i,s]=e.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(t="0".repeat(i.length)+s,n="9".repeat(i.length)+s),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepareChar(e,t){t===void 0&&(t={});let n;return[e,n]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const n=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),[s,r]=this.boundaries(this.value+e);return Number(r)<this.from?super._appendCharRaw(n[this.value.length],t):Number(s)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(i[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[i,s]=this.boundaries(t);return this.from<=Number(s)&&Number(i)<=this.to&&super.doValidate(e)}pad(e){const t=new Y;if(this.value.length===this.maxLength)return t;const n=this.value,i=this.maxLength-this.value.length;if(i){this.reset();for(let s=0;s<i;++s)t.aggregate(super._appendCharRaw("0",e));n.split("").forEach(s=>this._appendCharRaw(s))}return t}}Q.MaskedRange=L0;const gd="d{.}`m{.}`Y";class s3 extends g1{static extractPatternOptions(e){const{mask:t,pattern:n,...i}=e;return{...i,mask:g3(t)?t:n}}constructor(e){super(s3.extractPatternOptions({...s3.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:n,blocks:i,...s}={...s3.DEFAULTS,...e},r=Object.assign({},s3.GET_DEFAULT_BLOCKS());e.min&&(r.Y.from=e.min.getFullYear()),e.max&&(r.Y.to=e.max.getFullYear()),e.min&&e.max&&r.Y.from===r.Y.to&&(r.m.from=e.min.getMonth()+1,r.m.to=e.max.getMonth()+1,r.m.from===r.m.to&&(r.d.from=e.min.getDate(),r.d.to=e.max.getDate())),Object.assign(r,this.blocks,i),super._update({...s,mask:g3(t)?t:n,blocks:r})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(s3.extractPatternOptions(e))}}s3.GET_DEFAULT_BLOCKS=()=>({d:{mask:L0,from:1,to:31,maxLength:2},m:{mask:L0,from:1,to:12,maxLength:2},Y:{mask:L0,from:1900,to:9999}}),s3.DEFAULTS={...g1.DEFAULTS,mask:Date,pattern:gd,format:(a,e)=>{if(!a)return"";const t=String(a.getDate()).padStart(2,"0"),n=String(a.getMonth()+1).padStart(2,"0"),i=a.getFullYear();return[t,n,i].join(".")},parse:(a,e)=>{const[t,n,i]=a.split(".").map(Number);return new Date(i,n-1,t)}},Q.MaskedDate=s3;class N0 extends v1{constructor(e){super({...N0.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:n,...i}=Ie(t),s=l3({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=s),s}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(e,t,n){e===void 0&&(e=""),t===void 0&&(t={}),n===void 0&&(n="");const i=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,s=this.rawInputValue,r=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:s,o=s.slice(r.length),c=this.currentMask,d=new Y,u=c?.state;return this.currentMask=this.doDispatch(e,{...t},n),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),r&&(this.currentMask.append(r,{raw:!0}),d.tailShift=this.currentMask.value.length-i.length),o&&(d.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)):u&&(this.currentMask.state=u)),d}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new Y;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((n=e._beforeTailState)==null?void 0:n.currentMask)||e._beforeTailState}}doDispatch(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=""),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[n,i]=super.doPrepare(e,t);if(this.currentMask){let s;[n,s]=super.doPrepare(n,this.currentMaskFlags(t)),i=i.aggregate(s)}return[n,i]}doPrepareChar(e,t){t===void 0&&(t={});let[n,i]=super.doPrepareChar(e,t);if(this.currentMask){let s;[n,s]=super.doPrepareChar(n,this.currentMaskFlags(t)),i=i.aggregate(s)}return[n,i]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const n=new Y;return this.currentMask&&n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:i,...s}=e;t&&this.compiledMasks.forEach((r,o)=>r.state=t[o]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=s}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,n)=>{if(!e[n])return;const{mask:i,...s}=e[n];return V0(t,s)&&t.maskEquals(i)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}}N0.DEFAULTS={...v1.DEFAULTS,dispatch:(a,e,t,n)=>{if(!e.compiledMasks.length)return;const i=e.rawInputValue,s=e.compiledMasks.map((r,o)=>{const c=e.currentMask===r,d=c?r.displayValue.length:r.nearestInputPos(r.displayValue.length,j.FORCE_LEFT);return r.rawInputValue!==i?(r.reset(),r.append(i,{raw:!0})):c||r.remove(d),r.append(a,e.currentMaskFlags(t)),r.appendTail(n),{index:o,weight:r.rawInputValue.length,totalInputPositions:r.totalInputPositions(0,Math.max(d,r.nearestInputPos(r.displayValue.length,j.FORCE_LEFT)))}});return s.sort((r,o)=>o.weight-r.weight||o.totalInputPositions-r.totalInputPositions),e.compiledMasks[s[0].index]}},Q.MaskedDynamic=N0;class H0 extends g1{constructor(e){super({...H0.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...n}=e;if(t){const i=t.map(o=>o.length),s=Math.min(...i),r=Math.max(...i)-s;n.mask="*".repeat(s),r&&(n.mask+="["+"*".repeat(r)+"]"),this.enum=t}super._update(n)}_appendCharRaw(e,t){t===void 0&&(t={});const n=Math.min(this.nearestInputPos(0,j.FORCE_RIGHT),this.value.length),i=this.enum.filter(s=>this.matchValue(s,this.unmaskedValue+e,n));if(i.length){i.length===1&&this._forEachBlocksInRange(0,this.value.length,(r,o)=>{const c=i[0][o];o>=this.value.length||c===r.value||(r.reset(),r._appendChar(c,t))});const s=super._appendCharRaw(i[0][this.value.length],t);return i.length===1&&i[0].slice(this.unmaskedValue.length).split("").forEach(r=>s.aggregate(super._appendCharRaw(r))),s}return new Y({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new Y1("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new Y;const n=Math.min(super.nearestInputPos(0,j.FORCE_RIGHT),this.value.length);let i;for(i=e;i>=0&&!(this.enum.filter(o=>this.matchValue(o,this.value.slice(n,i),n)).length>1);--i);const s=super.remove(i,t);return s.tailShift+=i-e,s}get isComplete(){return this.enum.indexOf(this.value)>=0}}H0.DEFAULTS={...g1.DEFAULTS,matchValue:(a,e,t)=>a.indexOf(e,t)===t},Q.MaskedEnum=H0;class yd extends v1{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}Q.MaskedFunction=yd;var ll;class R1 extends v1{constructor(e){super({...R1.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",n=(this.scale?"("+_2(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(_2).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(_2(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(e,t){t===void 0&&(t=!1);let n=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e,t){t===void 0&&(t={});const n=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const s=this._value;this._value+=e;const r=this.number;let o=!isNaN(r),c=!1;if(o){let m;this.min!=null&&this.min<0&&this.number<this.min&&(m=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(m=this.max),m!=null&&(this.autofix?(this._value=this.format(m,this).replace(R1.UNMASKED_RADIX,this.radix),c||(c=s===this._value&&!t.tail)):o=!1),o&&(o=!!this._value.match(this._numberRegExp))}let d;o?d=new Y({inserted:this._value.slice(s.length),rawInserted:c?"":e,skip:c}):(this._value=s,d=new Y),this._value=this._insertThousandsSeparators(this._value);const u=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,h=this._separatorsCountFromSlice(u);return d.tailShift+=(h-i)*this.thousandsSeparator.length,d}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n>=0&&(e=n);const i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),i=this.value.slice(t),s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const r=this._separatorsCountFromSlice(n);return new Y({tailShift:(r-s)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case j.NONE:case j.LEFT:case j.FORCE_LEFT:{const n=this._findSeparatorAround(e-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===j.FORCE_LEFT)return n}break}case j.RIGHT:case j.FORCE_RIGHT:{const n=this._findSeparatorAround(e);if(n>=0)return n+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(n,i,s,r)=>i+r),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,n){t===void 0&&(t={});const i=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===R1.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,R1.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(R1.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||R1.EMPTY_VALUES.includes(e)&&R1.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}ll=R1,R1.UNMASKED_RADIX=".",R1.EMPTY_VALUES=[...v1.EMPTY_VALUES,0],R1.DEFAULTS={...v1.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[ll.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:a=>a.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},Q.MaskedNumber=R1;const P2={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function sl(a,e,t){e===void 0&&(e=P2.MASKED),t===void 0&&(t=P2.MASKED);const n=l3(a);return i=>n.runIsolated(s=>(s[e]=i,s[t]))}function Ad(a,e,t,n){return sl(e,t,n)(a)}Q.PIPE_TYPE=P2,Q.createPipe=sl,Q.pipe=Ad;class bd extends g1{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,n,i;const{repeat:s,...r}=Ie(e);this._blockOpts=Object.assign({},this._blockOpts,r);const o=l3(this._blockOpts);this.repeat=(t=(n=s??o.repeat)!=null?n:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((i=this._blocks)==null?void 0:i.length)||0,this.repeatFrom)),blocks:{m:o},eager:o.eager,overwrite:o.overwrite,skipInvalid:o.skipInvalid,lazy:o.lazy,placeholderChar:o.placeholderChar,displayChar:o.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(l3(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const n=new Y;for(let c=(i=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?i:Math.max(this._blocks.length-1,0),d,u;d=(r=this._blocks[c])!=null?r:u=!u&&this._allocateBlock(c);++c){var i,s,r,o;const h=d._appendChar(e,{...t,_beforeTailState:(o=t._beforeTailState)==null||(o=o._blocks)==null?void 0:o[c]});if(h.skip&&u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(h),h.consumed)break}return n}_trimEmptyTail(e,t){var n,i;e===void 0&&(e=0);const s=Math.max(((n=this._mapPosToBlock(e))==null?void 0:n.index)||0,this.repeatFrom,0);let r;t!=null&&(r=(i=this._mapPosToBlock(t))==null?void 0:i.index),r==null&&(r=this._blocks.length-1);let o=0;for(let c=r;s<=c&&!this._blocks[c].unmaskedValue;--c,++o);o&&(this._blocks.splice(r-o+1,o),this.mask=this.mask.slice(o))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}Q.RepeatBlock=bd;try{globalThis.IMask=Q}catch{}function O0(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var F0={exports:{}},Ed=F0.exports,rl;function ol(){return rl||(rl=1,(function(a,e){(function(t,n){a.exports=n()})(Ed,(function(){var t=1e3,n=6e4,i=36e5,s="millisecond",r="second",o="minute",c="hour",d="day",u="week",h="month",m="quarter",f="year",y="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var x=["th","st","nd","rd"],B=L%100;return"["+L+(x[(B-20)%10]||x[B]||x[0])+"]"}},w=function(L,x,B){var C=String(L);return!C||C.length>=x?L:""+Array(x+1-C.length).join(B)+L},p={s:w,z:function(L){var x=-L.utcOffset(),B=Math.abs(x),C=Math.floor(B/60),k=B%60;return(x<=0?"+":"-")+w(C,2,"0")+":"+w(k,2,"0")},m:function L(x,B){if(x.date()<B.date())return-L(B,x);var C=12*(B.year()-x.year())+(B.month()-x.month()),k=x.clone().add(C,h),T=B-k<0,F=x.clone().add(C+(T?-1:1),h);return+(-(C+(B-k)/(T?k-F:F-k))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:f,w:u,d,D:y,h:c,m:o,s:r,ms:s,Q:m}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},D="en",S={};S[D]=b;var V="$isDayjsObject",I=function(L){return L instanceof G||!(!L||!L[V])},P=function L(x,B,C){var k;if(!x)return D;if(typeof x=="string"){var T=x.toLowerCase();S[T]&&(k=T),B&&(S[T]=B,k=T);var F=x.split("-");if(!k&&F.length>1)return L(F[0])}else{var q=x.name;S[q]=x,k=q}return!C&&k&&(D=k),k||!C&&D},R=function(L,x){if(I(L))return L.clone();var B=typeof x=="object"?x:{};return B.date=L,B.args=arguments,new G(B)},N=p;N.l=P,N.i=I,N.w=function(L,x){return R(L,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var G=(function(){function L(B){this.$L=P(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[V]=!0}var x=L.prototype;return x.parse=function(B){this.$d=(function(C){var k=C.date,T=C.utc;if(k===null)return new Date(NaN);if(N.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var F=k.match(v);if(F){var q=F[2]-1||0,X=(F[7]||"0").substring(0,3);return T?new Date(Date.UTC(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)):new Date(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)}}return new Date(k)})(B),this.init()},x.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},x.$utils=function(){return N},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(B,C){var k=R(B);return this.startOf(C)<=k&&k<=this.endOf(C)},x.isAfter=function(B,C){return R(B)<this.startOf(C)},x.isBefore=function(B,C){return this.endOf(C)<R(B)},x.$g=function(B,C,k){return N.u(B)?this[C]:this.set(k,B)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(B,C){var k=this,T=!!N.u(C)||C,F=N.p(B),q=function(k1,u1){var E1=N.w(k.$u?Date.UTC(k.$y,u1,k1):new Date(k.$y,u1,k1),k);return T?E1:E1.endOf(d)},X=function(k1,u1){return N.w(k.toDate()[k1].apply(k.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(u1)),k)},l1=this.$W,s1=this.$M,o1=this.$D,y1="set"+(this.$u?"UTC":"");switch(F){case f:return T?q(1,0):q(31,11);case h:return T?q(1,s1):q(0,s1+1);case u:var M1=this.$locale().weekStart||0,b1=(l1<M1?l1+7:l1)-M1;return q(T?o1-b1:o1+(6-b1),s1);case d:case y:return X(y1+"Hours",0);case c:return X(y1+"Minutes",1);case o:return X(y1+"Seconds",2);case r:return X(y1+"Milliseconds",3);default:return this.clone()}},x.endOf=function(B){return this.startOf(B,!1)},x.$set=function(B,C){var k,T=N.p(B),F="set"+(this.$u?"UTC":""),q=(k={},k[d]=F+"Date",k[y]=F+"Date",k[h]=F+"Month",k[f]=F+"FullYear",k[c]=F+"Hours",k[o]=F+"Minutes",k[r]=F+"Seconds",k[s]=F+"Milliseconds",k)[T],X=T===d?this.$D+(C-this.$W):C;if(T===h||T===f){var l1=this.clone().set(y,1);l1.$d[q](X),l1.init(),this.$d=l1.set(y,Math.min(this.$D,l1.daysInMonth())).$d}else q&&this.$d[q](X);return this.init(),this},x.set=function(B,C){return this.clone().$set(B,C)},x.get=function(B){return this[N.p(B)]()},x.add=function(B,C){var k,T=this;B=Number(B);var F=N.p(C),q=function(s1){var o1=R(T);return N.w(o1.date(o1.date()+Math.round(s1*B)),T)};if(F===h)return this.set(h,this.$M+B);if(F===f)return this.set(f,this.$y+B);if(F===d)return q(1);if(F===u)return q(7);var X=(k={},k[o]=n,k[c]=i,k[r]=t,k)[F]||1,l1=this.$d.getTime()+B*X;return N.w(l1,this)},x.subtract=function(B,C){return this.add(-1*B,C)},x.format=function(B){var C=this,k=this.$locale();if(!this.isValid())return k.invalidDate||g;var T=B||"YYYY-MM-DDTHH:mm:ssZ",F=N.z(this),q=this.$H,X=this.$m,l1=this.$M,s1=k.weekdays,o1=k.months,y1=k.meridiem,M1=function(u1,E1,q1,G1){return u1&&(u1[E1]||u1(C,T))||q1[E1].slice(0,G1)},b1=function(u1){return N.s(q%12||12,u1,"0")},k1=y1||function(u1,E1,q1){var G1=u1<12?"AM":"PM";return q1?G1.toLowerCase():G1};return T.replace(A,(function(u1,E1){return E1||(function(q1){switch(q1){case"YY":return String(C.$y).slice(-2);case"YYYY":return N.s(C.$y,4,"0");case"M":return l1+1;case"MM":return N.s(l1+1,2,"0");case"MMM":return M1(k.monthsShort,l1,o1,3);case"MMMM":return M1(o1,l1);case"D":return C.$D;case"DD":return N.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return M1(k.weekdaysMin,C.$W,s1,2);case"ddd":return M1(k.weekdaysShort,C.$W,s1,3);case"dddd":return s1[C.$W];case"H":return String(q);case"HH":return N.s(q,2,"0");case"h":return b1(1);case"hh":return b1(2);case"a":return k1(q,X,!0);case"A":return k1(q,X,!1);case"m":return String(X);case"mm":return N.s(X,2,"0");case"s":return String(C.$s);case"ss":return N.s(C.$s,2,"0");case"SSS":return N.s(C.$ms,3,"0");case"Z":return F}return null})(u1)||F.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(B,C,k){var T,F=this,q=N.p(C),X=R(B),l1=(X.utcOffset()-this.utcOffset())*n,s1=this-X,o1=function(){return N.m(F,X)};switch(q){case f:T=o1()/12;break;case h:T=o1();break;case m:T=o1()/3;break;case u:T=(s1-l1)/6048e5;break;case d:T=(s1-l1)/864e5;break;case c:T=s1/i;break;case o:T=s1/n;break;case r:T=s1/t;break;default:T=s1}return k?T:N.a(T)},x.daysInMonth=function(){return this.endOf(h).$D},x.$locale=function(){return S[this.$L]},x.locale=function(B,C){if(!B)return this.$L;var k=this.clone(),T=P(B,C,!0);return T&&(k.$L=T),k},x.clone=function(){return N.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},L})(),$=G.prototype;return R.prototype=$,[["$ms",s],["$s",r],["$m",o],["$H",c],["$W",d],["$M",h],["$y",f],["$D",y]].forEach((function(L){$[L[1]]=function(x){return this.$g(x,L[0],L[1])}})),R.extend=function(L,x){return L.$i||(L(x,G,R),L.$i=!0),R},R.locale=P,R.isDayjs=I,R.unix=function(L){return R(1e3*L)},R.en=S[D],R.Ls=S,R.p={},R}))})(F0)),F0.exports}var wd=ol();const t1=O0(wd);var j0={exports:{}},Cd=j0.exports,cl;function zd(){return cl||(cl=1,(function(a,e){(function(t,n){a.exports=n(ol())})(Cd,(function(t){function n(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var i=n(t),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(r){return""+r+(r===1?"er":"")}};return i.default.locale(s,null,!0),s}))})(j0)),j0.exports}zd();var U0={exports:{}},Sd=U0.exports,dl;function Md(){return dl||(dl=1,(function(a,e){(function(t,n){a.exports=n()})(Sd,(function(){return function(t,n){n.prototype.weekday=function(i){var s=this.$locale().weekStart||0,r=this.$W,o=(r<s?r+7:r)-s;return this.$utils().u(i)?o:this.subtract(o,"day").add(i,"day")}}}))})(U0)),U0.exports}var kd=Md();const xd=O0(kd);var _0={exports:{}},Bd=_0.exports,ul;function Dd(){return ul||(ul=1,(function(a,e){(function(t,n){a.exports=n()})(Bd,(function(){return function(t,n,i){n.prototype.isBetween=function(s,r,o,c){var d=i(s),u=i(r),h=(c=c||"()")[0]==="(",m=c[1]===")";return(h?this.isAfter(d,o):!this.isBefore(d,o))&&(m?this.isBefore(u,o):!this.isAfter(u,o))||(h?this.isBefore(d,o):!this.isAfter(d,o))&&(m?this.isAfter(u,o):!this.isBefore(u,o))}}}))})(_0)),_0.exports}var Vd=Dd();const Id=O0(Vd);var K0={exports:{}},Rd=K0.exports,hl;function Td(){return hl||(hl=1,(function(a,e){(function(t,n){a.exports=n()})(Rd,(function(){var t="week",n="year";return function(i,s,r){var o=s.prototype;o.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=r(this).startOf(n).add(1,n).date(d),h=r(this).endOf(t);if(u.isBefore(h))return 1}var m=r(this).startOf(n).date(d).startOf(t).subtract(1,"millisecond"),f=this.diff(m,t,!0);return f<0?r(this).startOf("week").week():Math.ceil(f)},o.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(K0)),K0.exports}var Ld=Td();const Nd=O0(Ld);t1.locale("fr"),t1.extend(xd),t1.extend(Id),t1.extend(Nd);const Hd=(a=new Date)=>t1(a).startOf("month").format("d"),Od=(a=new Date)=>t1(a).daysInMonth(),Fd=(a,e,{noDay:t=!1}={})=>t?t1(a).isSame(e,"month")&&t1(a).isSame(e,"year"):t1(a).isSame(e,"day")&&t1(a).isSame(e,"month")&&t1(a).isSame(e,"year"),W2=({date:a=new Date,key:e="month",number:t=1})=>t1(a).add(t,e).toDate(),jd=(a=new Date,{skipWE:e=!1,monthFormat:t="MMMM",dayFormat:n="dd"}={})=>{const i=t1(a),s=i.weekday(0),r=[],o=6-(e?2:0);for(let c=0;c<=o;c++){const d=i.format("D"),u=t1(s).add(c,"days").format("D");r.push({number:parseInt(u),month:t1(s).add(c,"days").format(t),day:t1(s).add(c,"days").format(n),isCurrent:d===u})}return r},Ud=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],_d=a=>t1(a).format("YYYY");var h1=(a=>(a[a.Day=0]="Day",a[a.Month=1]="Month",a[a.Year=2]="Year",a))(h1||{});const Kd={class:"datepicker-navigation-container"},Pd={class:"datepicker-navigation"},Wd=l.defineComponent({__name:"DatePickerNavigation",props:{navigationDate:{},navType:{}},emits:["updateNavDate","updateNavType"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(t.navigationDate),s=l.computed(()=>t1(t.navigationDate).format("MMMM")),r=l.computed(()=>t1(t.navigationDate).format("YYYY")),o=l.computed(()=>{const u=Number(r.value);return`${u-8} - ${u+7}`}),c=l.computed(()=>[h1.Day,h1.Month].includes(t.navType)),d=l.computed(()=>u=>{const h=m=>u==="left"?-m:m;switch(t.navType){case h1.Day:i.value=W2({date:t.navigationDate,key:"month",number:h(1)});break;case h1.Month:i.value=W2({date:t.navigationDate,key:"year",number:h(1)});break;case h1.Year:i.value=W2({date:t.navigationDate,key:"year",number:h(16)});break}});return l.watch(i,()=>n("updateNavDate",i.value)),(u,h)=>(l.openBlock(),l.createElementBlock("div",Kd,[l.createElementVNode("div",Pd,[l.createElementVNode("button",{type:"button",class:"datepicker-navigation-arrows datepicker-navigation-button",onClick:h[0]||(h[0]=m=>d.value("left"))},[...h[4]||(h[4]=[l.createElementVNode("span",null,"‹",-1)])]),c.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month",onClick:h[1]||(h[1]=m=>u.$emit("updateNavType",l.unref(h1).Month))},[l.createElementVNode("span",null,l.toDisplayString(s.value),1)])):l.createCommentVNode("",!0),l.createElementVNode("button",{type:"button",class:l.normalizeClass(["datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month",{"datepicker-navigation-button__inactive":a.navType===l.unref(h1).Year}]),onClick:h[2]||(h[2]=m=>u.$emit("updateNavType",l.unref(h1).Year))},[l.createElementVNode("span",null,l.toDisplayString(a.navType===l.unref(h1).Year?o.value:r.value),1)],2),l.createElementVNode("button",{type:"button",class:"datepicker-navigation-arrows datepicker-navigation-button",onClick:h[3]||(h[3]=m=>d.value("right"))},[...h[5]||(h[5]=[l.createElementVNode("span",null,"›",-1)])])])]))}}),Qd={role:"grid",class:"datepicker-calendar"},Yd={key:0},qd={"aria-label":"weekday",class:"calendar-weekday"},Gd=["onClick"],Jd={class:"calendar-cell-content calendar-day-cell-content"},Zd=["onClick"],Xd={class:"calendar-cell-content calendar-month-cell-content"},$d=["onClick"],eu={class:"calendar-cell-content calendar-year-cell-content"},tu=l.defineComponent({__name:"DatePickerCalendar",props:{selectedDate:{},navigationDate:{},navType:{},min:{},max:{}},emits:["updateNavDate","updateSelectedDate","updateNavType"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(t.navigationDate),s=jd(void 0,{dayFormat:"ddd"}).map(({day:v})=>v),r=v=>t.min===void 0||v.isAfter(t1(t.min).startOf("day")),o=v=>t.max===void 0||v.isBefore(t1(t.max).endOf("day")),c=v=>r(v)&&o(v),d=v=>{i.value=v},u=l.computed(()=>{const v=[];let A=parseInt(Hd(t.navigationDate));A===0&&(A=7);const b=t1(t.navigationDate).add(-1,"month").daysInMonth();for(let w=1;w<A;w++){const p=t1(t.navigationDate).add(-1,"month").date(b-w+1),D=c(p);v.push({class:{"calendar-day-cell":!0,"calendar-day-cell-invisible":!0,"calendar-cell__disabled":!D},value:p.date(),onClick:()=>D&&d(p.toDate())})}return v.reverse(),v}),h=l.computed(()=>{const v=[];for(let A=1;A<=Od(t.navigationDate);A++){const b=t1(t.navigationDate).date(A),w=t.selectedDate!==void 0&&Fd(t.selectedDate,b.toDate()),p=c(t1(t.navigationDate).date(A));v.push({class:{"calendar-cell__disabled":!p,"calendar-cell__selected":w,"calendar-day-cell-current-month":!0},value:A,onClick:()=>!w&&p&&d(b.toDate())})}return v}),m=l.computed(()=>[...u.value,...h.value]),f=l.computed(()=>{const v=[];let A=[];m.value.forEach((w,p)=>{if(p===0||p%7!==0)A.push(w);else{const D=A.slice();v.push(D),A=[],A.push(w)}if(p===m.value.length-1){const D=A.slice();v.push(D)}});let b=0;for(let w=0;w<6;w++){const p=v[w]?[...v[w]]:[];if(p.length<7)for(let D=0;D<7;D++){if(p[D])continue;b++;const V=t1(t.navigationDate).add(1,"month").date(b),I=c(V);p.push({class:{"calendar-day-cell":!0,"calendar-day-cell-invisible":!0,"calendar-cell__disabled":!I},value:V.date(),onClick:()=>I&&d(V.toDate())})}v[w]=p}return v}),y=l.computed(()=>[...Array(4).keys()].map(b=>{const w=b*3;return Ud.slice(w,w+3).map((D,S)=>{const V=t1(t.navigationDate).month(w+S);return{value:D,onClick:()=>d(V.toDate())}})})),g=l.computed(()=>{const w=Number(_d(t.navigationDate))-8,p=[];for(let D=w;D<w+16;D++)p.push(D);return[...Array(4).keys()].map(D=>{const S=D*4;return p.slice(S,S+4).map(I=>{const P=t1(t.navigationDate).year(I).toDate();return{value:I,onClick:()=>d(P)}})})});return l.watch(i,()=>{t.navType===h1.Day?n("updateSelectedDate",i.value):t.navType===h1.Month?(n("updateNavDate",i.value),n("updateNavType",h1.Day)):t.navType===h1.Year&&(n("updateNavDate",i.value),n("updateNavType",h1.Month))}),(v,A)=>(l.openBlock(),l.createElementBlock("table",Qd,[a.navType===l.unref(h1).Day?(l.openBlock(),l.createElementBlock("thead",Yd,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),b=>(l.openBlock(),l.createElementBlock("th",qd,[l.createElementVNode("span",null,l.toDisplayString(b),1)]))),256))])])):l.createCommentVNode("",!0),l.createElementVNode("tbody",null,[a.navType===l.unref(h1).Day?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(f.value,b=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(b,w=>(l.openBlock(),l.createElementBlock("td",{class:l.normalizeClass(["calendar-cell calendar-day-cell",w.class]),onClick:p=>w.onClick()},[l.createElementVNode("span",Jd,l.toDisplayString(w.value),1)],10,Gd))),256))]))),256)):a.navType===l.unref(h1).Month?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(y.value,b=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(b,w=>(l.openBlock(),l.createElementBlock("td",{class:"calendar-cell calendar-month-cell",onClick:p=>w.onClick()},[l.createElementVNode("span",Xd,l.toDisplayString(w.value),1)],8,Zd))),256))]))),256)):a.navType===l.unref(h1).Year?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList(g.value,b=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(b,w=>(l.openBlock(),l.createElementBlock("td",{class:"calendar-cell calendar-year-cell",onClick:p=>w.onClick()},[l.createElementVNode("span",eu,l.toDisplayString(w.value),1)],8,$d))),256))]))),256)):l.createCommentVNode("",!0)])]))}}),au={class:"datepicker-container",role:"dialog","aria-label":"calendar"},nu={class:"datepicker-wrapper"},iu={class:"datepicker-body"},fl=l.defineComponent({__name:"DatePicker",props:{modelValue:{},min:{},max:{},onDateChange:{type:Function}},emits:["update:modelValue"],setup(a,{emit:e}){const t=e,n=l.ref(),i=l.ref(n.value??new Date),s=l.ref(h1.Day),r=d=>{i.value=d},o=d=>{n.value=d},c=d=>{s.value=d};return l.watch(n,()=>{r(n.value??new Date),n.value&&t("update:modelValue",n.value)}),(d,u)=>(l.openBlock(),l.createElementBlock("div",au,[l.createElementVNode("div",nu,[l.createVNode(Wd,{navigationDate:i.value,navType:s.value,onUpdateNavDate:r,onUpdateNavType:c},null,8,["navigationDate","navType"]),l.createElementVNode("div",iu,[l.createVNode(tu,{selectedDate:n.value,navigationDate:i.value,navType:s.value,min:a.min,max:a.max,onUpdateSelectedDate:o,onUpdateNavDate:r,onUpdateNavType:c},null,8,["selectedDate","navigationDate","navType","min","max"])])])]))}}),lu={class:"amc2-input-wrapper"},su={key:1,class:"input-require"},ru=["type","value","disabled","placeholder"],ou=["type","disabled","placeholder"],cu={key:2,class:"amc2-input-icons date"},du={key:3,class:"amc2-select-dropdown amc2-input-suggestions"},uu={class:"amc2-list-wrapper"},hu={class:"amc2-list"},fu=["onMousedown"],mu=["for"],pu={key:0,class:"amc2-input-error"},Q2=l.defineComponent({__name:"InputBase",props:{label:{},modelValue:{},type:{},iconName:{},clearable:{type:Boolean},passwordControl:{type:Boolean},disabled:{type:Boolean},error:{type:Boolean},errorMessage:{},required:{type:Boolean},placeholder:{},suggestions:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=l.ref(!1),i={text:"Texte",number:"Nombre",password:"Mot de passe",email:"Email",search:"Rechercher...",time:"Temps",tel:"Numéro de téléphone",url:"Url",date:"Date"},s=e,r=l.ref(t.modelValue??""),o=l.ref(r.value!==""),c=l.ref(!1),d=l.ref(!1),u=l.ref(null),h=l.ref({}),m=l.ref([]),f=l.ref(!1),y=l.ref(null);let g=null;const v=l.computed(()=>t.type==="password"?n.value?"text":"password":t.type==="date"?"text":t.type??"text"),A=l.computed(()=>n.value?"eye-off":"eye"),b=l.computed(()=>t.clearable===!0&&t.modelValue!==""&&!t.disabled),w=l.computed(()=>t.passwordControl&&t.type==="password"&&t.modelValue!==""),p=l.computed(()=>t.label&&t.modelValue===""?"absolute":"relative"),D=()=>{if(!t.suggestions)return;const C=String(r.value).toLowerCase();m.value=t.suggestions.filter(k=>k.label.toLowerCase().includes(C))},S=C=>{r.value=C.label,f.value=!1,s("update:modelValue",C.label)};l.watch(()=>t.modelValue,C=>{const k=C??"";r.value!==k&&(r.value=k,t.type==="date"&&g&&(g.value=String(k)))}),l.watch(d,C=>{C&&l.nextTick(()=>{V()})});const V=()=>{if(!u.value)return;const C=u.value.getBoundingClientRect();h.value={position:"absolute",top:`${C.bottom+window.scrollY}px`,left:`${C.left+window.scrollX}px`,zIndex:"2000"}},I=C=>{const k=C.target;t.type==="date"&&g?(s("update:modelValue",g.value),r.value=g.value):(s("update:modelValue",k.value),r.value=k.value),t.suggestions&&(D(),f.value=!0)},P=C=>{const k=C.toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric"});d.value=!1,s("update:modelValue",k),g&&(g.value=k)},R=()=>{o.value=!0,t.type==="date"&&g&&(d.value=!0,g.updateOptions({lazy:!1})),f.value=!0},N=()=>{setTimeout(()=>{const C=document.activeElement;if(!(document.querySelector(".datepicker-popup")?.contains(C)??!1)&&(d.value=!1,o.value=r.value!=="",t.type==="date"&&g)){const T=g.value;g.unmaskedValue!==""&&(T.length!==10||!G(T))?c.value=!0:(c.value=!1,g.unmaskedValue===""?s("update:modelValue",""):s("update:modelValue",T)),g.updateOptions({lazy:!0})}},200),f.value=!1},G=C=>{if(C==="")return!0;const[k,T,F]=C.split("/").map(Number),q=new Date(F,T-1,k);return!isNaN(q.getTime())&&q.getFullYear()===F&&q.getMonth()===T-1&&q.getDate()===k},$=()=>{t.type==="date"&&(c.value=!1,o.value=!1,g?.updateOptions({lazy:!0})),s("update:modelValue","")},L=l.computed(()=>t.label!==void 0&&t.placeholder===void 0&&t.iconName===void 0&&(t.modelValue===""||t.modelValue===void 0)),x=()=>{n.value=!n.value},B=()=>t.placeholder?t.placeholder:t.label?"":i[t.type??"text"]??"Saisissez une valeur";return l.onMounted(()=>{t.type==="date"&&y.value&&(g=Q(y.value,{mask:"00/00/0000",lazy:!0,overwrite:!0,autofix:!1}),t.modelValue&&(g.value=String(t.modelValue)))}),l.onBeforeUnmount(()=>{g?.destroy()}),(C,k)=>(l.openBlock(),l.createElementBlock("div",lu,[l.createElementVNode("div",{class:l.normalizeClass({"amc2-input-container":!0,disabled:t.disabled,error:!t.disabled&&(t.error||c.value),search:t.type==="search"})},[a.label?(l.openBlock(),l.createElementBlock("label",{key:0,class:l.normalizeClass(["label-input",[{solo:L.value&&!o.value},{active:o.value}]])},l.toDisplayString(a.label),3)):l.createCommentVNode("",!0),a.required?(l.openBlock(),l.createElementBlock("div",su,"Requis")):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["amc2-input-line",{active:o.value},{noLabel:!a.label}])},[a.iconName&&v.value==="search"&&!a.label?(l.openBlock(),l.createBlock(U,{key:0,iconName:a.iconName,class:"amc2-input-icon"},null,8,["iconName"])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"dateInputWrapper",ref:u,class:l.normalizeClass(["input-content",p.value])},[a.type!=="date"?(l.openBlock(),l.createElementBlock("input",{key:0,ref_key:"inputRef",ref:y,type:v.value,value:r.value,disabled:a.disabled,placeholder:B(),autocomplete:"off",onInput:I,onFocus:R,onBlur:N},null,40,ru)):(l.openBlock(),l.createElementBlock("input",{key:1,ref_key:"inputRef",ref:y,type:v.value,disabled:a.disabled,placeholder:B(),autocomplete:"off",onInput:I,onFocus:R,onBlur:N},null,40,ou)),l.createElementVNode("div",{class:l.normalizeClass(["input-icon-container",{visible:o.value&&(b.value||w.value||a.type==="date"||a.iconName&&a.label)}])},[b.value?(l.openBlock(),l.createBlock(U,{key:0,iconName:"close",class:"amc2-input-icon input-clear",onClick:$})):l.createCommentVNode("",!0),w.value?(l.openBlock(),l.createBlock(U,{key:1,iconName:A.value,class:"amc2-input-icon password-control",onClick:k[0]||(k[0]=T=>x())},null,8,["iconName"])):l.createCommentVNode("",!0),a.type==="date"?(l.openBlock(),l.createElementBlock("div",cu,[l.createVNode(U,{"icon-name":"close",class:"amc2-input-icon input-clear",onClick:$}),l.createVNode(U,{class:l.normalizeClass(["amc2-input-icon",c.value?"alert-circle":"calendar"]),iconName:c.value?"alert-circle":"calendar",onClick:R},null,8,["class","iconName"])])):l.createCommentVNode("",!0)],2),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[d.value?(l.openBlock(),l.createBlock(fl,{key:0,class:"datepicker-popup",style:l.normalizeStyle(h.value),"onUpdate:modelValue":P},null,8,["style"])):l.createCommentVNode("",!0)]))],2)],2),a.iconName&&(v.value!=="search"||v.value==="search"&&a.label)?(l.openBlock(),l.createBlock(U,{key:2,iconName:a.iconName,class:"amc2-input-icon-permanent"},null,8,["iconName"])):l.createCommentVNode("",!0),v.value==="text"&&f.value&&m.value.length?(l.openBlock(),l.createElementBlock("div",du,[l.createElementVNode("div",uu,[l.createElementVNode("ul",hu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m.value,(T,F)=>(l.openBlock(),l.createElementBlock("li",{key:F,onMousedown:l.withModifiers(q=>S(T),["prevent"])},[l.createElementVNode("label",{for:T.value,class:"amc2-list-item"},[l.createElementVNode("span",null,l.toDisplayString(T.label),1)],8,mu)],40,fu))),128))])])])):l.createCommentVNode("",!0)],2),t.error&&t.errorMessage?(l.openBlock(),l.createElementBlock("div",pu,l.toDisplayString(t.errorMessage),1)):l.createCommentVNode("",!0)]))}}),vu={key:0,class:"datagrid-thead-cell datagrid-cell datagrid-checkbox-col",style:{"align-self":"center"}},gu={class:"datagrid-cell-wrapper"},yu={class:"datagrid-cell-label"},Au={key:0,class:"datagrid-filter-order"},bu=["onClick"],Eu=["onClick"],wu={key:1,class:"datagrid-thead-cell datagrid-cell"},Cu={ref:"settingsCol",class:"datagrid-cell-wrapper"},zu={class:"datagrid-settings-header"},Su={class:"col-selection-container"},Mu={class:"col-selection-options"},ku={class:"col-selection-option-text"},xu={key:0,class:"datagrid-tbody-cell datagrid-cell datagrid-checkbox-col"},Bu=["title"],Du={class:"datagrid-action-menu-container"},Vu={class:"datagrid-loader"},ml=1500,Iu=24,Ru=l.defineComponent({__name:"DataGrid",props:{headers:{},items:{},selection:{type:Boolean,default:!1},hasMore:{type:Boolean},allCheckState:{default:()=>({isChecked:!1,partially:!1})},displaySettingsHeader:{type:Boolean,default:!0},displaySettings:{type:Boolean,default:!0},modalFilter:{},dataSort:{}},emits:["loadMore","updateCheckItem","updateCheckAll"],setup(a,{expose:e,emit:t}){const n=a,i=t,s=l.ref(),r=l.ref(),o={height:"17",width:"17"},c=l.useTemplateRef("displayContainer"),d=l.useTemplateRef("settingsCol"),u=l.ref(""),{right:h,update:m}=Yi(s),{right:f,update:y}=Yi(d),g=l.computed(()=>n.headers.filter(x=>x.visibility.isShown)),v=l.computed(()=>n.headers.filter(x=>{const B=at(x.label),C=at(u.value);return B.toLowerCase().includes(C.toLowerCase())})),A=l.computed(()=>{let x=g.value.length+(n.selection?2:1);return(n.displaySettings||n.displaySettingsHeader)&&x++,{gridColumn:`1 / ${x}`}}),b=x=>{let B=Array.isArray(x)?x:(()=>{try{return JSON.parse(x)}catch{return[]}})();if(Array.isArray(B)){const C=B.join(", ");return C.length>=40?C.substring(0,40)+"...":C}return x},w=(x,B)=>{if(B==="ASC")switch(x){case"string":return"Trié de A à Z (ordre alphabétique)";case"number":return"Trié du plus petit au plus grand";case"date":return"Trié du plus ancien au plus récent"}if(B==="DESC")switch(x){case"string":return"Trié de Z à A (ordre alphabétique inversé)";case"number":return"Trié du plus grand au plus petit";case"date":return"Trié du plus récent au plus ancien"}return"Aucun tri"},p=x=>({...x.minChars&&{minWidth:`calc(${x.minChars}ch + ${Iu}px)`},...x.style}),D=(x,B)=>{const C=x[B.key];if(C!=null){if(Array.isArray(C))return C.join(", ");if(typeof C!="object")return String(C)}},S=x=>{i("updateCheckItem",x.id,x.isSelected)},V=x=>{i("updateCheckAll",x.target.checked)},I=l.computed(()=>{const x=f.value-h.value,B=x<=0;return{isFullyVisible:B,...!B&&{offsetRight:x+10}}}),P=new IntersectionObserver(x=>{x[0].isIntersecting&&i("loadMore")},{threshold:0}),R=()=>{r.value&&P.observe(r.value)},N=()=>c.value?.scrollTo(0,0),G=async()=>{await l.nextTick(),s.value&&s.value.scrollTo({left:s.value.scrollWidth-s.value.clientWidth,behavior:"instant"})},$=()=>{if(!r.value||!s.value)return;const x=r.value?.getBoundingClientRect(),B=s.value?.getBoundingClientRect();return x.top<=B.top+B.height+ml},L=()=>l.nextTick(()=>{$()&&i("loadMore")});return l.watch(()=>n.hasMore,R,{flush:"post"}),l.watch(()=>n.items,()=>l.nextTick(()=>{L(),m(),y()})),l.onMounted(()=>{R(),i("loadMore")}),l.onUnmounted(()=>P.disconnect()),e({resetScroll:N,checkLoadMore:L}),(x,B)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"datagridRef",ref:s,class:"datagrid-container"},[l.createElementVNode("div",{class:l.normalizeClass(["datagrid-table",{"datagrid-table__with-selection":a.selection}])},[l.createElementVNode("div",{class:"datagrid-thead",style:l.normalizeStyle(A.value)},[a.selection?(l.openBlock(),l.createElementBlock("div",vu,[a.selection&&a.headers.length?(l.openBlock(),l.createBlock(B0,{key:"checkAll",theme:{"--amc2-checkbox-color":l.unref(Nl)},iconStyle:o,indeterminate:a.allCheckState.partially,modelValue:a.allCheckState.isChecked,"onUpdate:modelValue":B[0]||(B[0]=C=>a.allCheckState.isChecked=C),onChange:V},null,8,["theme","indeterminate","modelValue"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.value,C=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["datagrid-thead-cell datagrid-cell",{"datagrid-cell__fixed":C.fixedWidth}]),style:l.normalizeStyle(p(C))},[l.createElementVNode("div",gu,[l.createElementVNode("span",yu,l.toDisplayString(C.label),1),C.sortable&&a.modalFilter?(l.openBlock(),l.createElementBlock("div",Au,[l.createElementVNode("span",{class:"datagrid-cell-filter",onClick:k=>a.modalFilter(C)},[l.createVNode(U,{iconName:"filter",height:"18",width:"18"}),C.filtered?(l.openBlock(),l.createBlock(Xi,{key:0,backgroundColor:"secondary"})):l.createCommentVNode("",!0)],8,bu),l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(w(C.dataType,C.sortOrder)),1)]),default:l.withCtx(()=>[C.sortable&&a.dataSort?(l.openBlock(),l.createElementBlock("span",{key:0,class:"datagrid-cell-sortOrder",onClick:k=>a.dataSort(C)},[l.createVNode(U,{iconName:"arrow-up",class:l.normalizeClass(["sort-order-arrow","up",C.sortOrder==="ASC"&&"active"])},null,8,["class"]),l.createVNode(U,{iconName:"arrow-down",class:l.normalizeClass(["sort-order-arrow","down",C.sortOrder==="DESC"&&"active"])},null,8,["class"])],8,Eu)):l.createCommentVNode("",!0)]),_:2},1024)])):l.createCommentVNode("",!0)])],6))),256)),a.displaySettingsHeader?(l.openBlock(),l.createElementBlock("div",wu,[l.createElementVNode("div",Cu,[l.createVNode(j2,{position:"bottom-left",class:"datagrid-settings-menu-container",onClose:B[2]||(B[2]=C=>u.value="")},{content:l.withCtx(()=>[l.createElementVNode("div",Su,[l.createVNode(Q2,{id:"datagrid-col-selection-input",class:"col-selection-input",type:"search",iconName:"search",clearable:"",modelValue:u.value,"onUpdate:modelValue":B[1]||(B[1]=C=>u.value=C)},null,8,["modelValue"]),l.createElementVNode("div",Mu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.value,C=>(l.openBlock(),l.createElementBlock("div",{key:C.key,class:"col-selection-option"},[l.createElementVNode("div",ku,l.toDisplayString(l.unref($2)(C.label)),1),l.createVNode(U2,{disabled:C.visibility?.isDisabled,modelValue:C.visibility.isShown,"onUpdate:modelValue":k=>C.visibility.isShown=k,onChange:()=>{C.visibility.update(C.visibility.isShown),G()}},null,8,["disabled","modelValue","onUpdate:modelValue","onChange"])]))),128))])])]),default:l.withCtx(()=>[l.createElementVNode("div",zu,[l.createVNode(U,{iconName:"settings",height:"18",width:"18"}),l.createVNode(U,{iconName:"chevron-down",height:"24",width:"24"})])]),_:1})],512)])):l.createCommentVNode("",!0)],4),l.createElementVNode("div",{ref:"displayContainer",class:"datagrid-tbody",style:l.normalizeStyle(A.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.items,C=>(l.openBlock(),l.createElementBlock("div",{key:C.id,class:l.normalizeClass(["datagrid-tbody-row",{"datagrid-tbody-row__selected":C.isSelected}]),style:l.normalizeStyle(A.value)},[a.selection?(l.openBlock(),l.createElementBlock("div",xu,[(l.openBlock(),l.createBlock(B0,{key:C.id,iconStyle:o,modelValue:C.isSelected,"onUpdate:modelValue":k=>C.isSelected=k,onChange:()=>S(C)},null,8,["modelValue","onUpdate:modelValue","onChange"]))])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.value,k=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["datagrid-tbody-cell datagrid-cell",{"datagrid-cell__fixed":k.fixedWidth,"datagrid-cell__component":!!C[k.key]?.render}]),title:D(C,k)},[l.createVNode(W9,{is:"a",class:"datagrid-link",wrap:!!C[`onClick_${k.key}`],onClick:C[`onClick_${k.key}`]},{default:l.withCtx(()=>[C[k.key]?.render?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(C[k.key].render),{key:0})):k.dataType==="array"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(b(C[k.key])),1)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createTextVNode(l.toDisplayString(C[k.key]),1)],64))]),_:2},1032,["wrap","onClick"])],10,Bu))),256)),a.displaySettings?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["datagrid-tbody-cell datagrid-cell datagrid-cell__settings",{"datagrid-cell__not-fully-visible":!I.value.isFullyVisible}]),style:l.normalizeStyle({right:I.value.isFullyVisible?0:`${I.value.offsetRight}px`})},[l.createVNode(j2,{position:"bottom-left","display-el":c.value,items:C.actions},{default:l.withCtx(()=>[l.createElementVNode("div",Du,[l.createVNode(U,{iconName:"more-vertical"})])]),_:1},8,["display-el","items"])],6)):l.createCommentVNode("",!0)],6))),128)),a.hasMore?(l.openBlock(),l.createElementBlock("div",{key:0,class:"datagrid-loadTrigger-container",style:l.normalizeStyle(A.value)},[l.createElementVNode("div",{ref_key:"loadTrigger",ref:r,class:"datagrid-loadTrigger",style:l.normalizeStyle({height:`${ml}px`})},null,4),l.createElementVNode("div",Vu,[l.createVNode(Fe)])],4)):l.createCommentVNode("",!0)],4)],2)],512))}}),Tu=["aria-label"],Lu={class:"day-navigator__date"},Nu={class:"day-navigator__date-label","aria-live":"polite"},Hu=l.defineComponent({name:"DayNavigator",__name:"DayNavigator",props:{date:{},disabledPrevious:{type:Boolean,default:!1},disabledNext:{type:Boolean,default:!1},label:{default:"Navigation par jour"}},emits:["previous","next"],setup(a,{emit:e}){const t=a,n=e,i=y=>y===!0||y==="true",s=l.computed(()=>i(t.disabledPrevious)),r=l.computed(()=>i(t.disabledNext)),o=/^\d{4}-\d{2}-\d{2}/,c=l.computed(()=>{const{date:y}=t;if(y instanceof Date||typeof y=="string"&&o.test(y)){const g=t1(y);return g.isValid()?g.locale("fr"):void 0}}),d=["Mercredi 1er septembre 2026","Dimanche 1er septembre 2026"],u=l.computed(()=>{if(!c.value)return"";const y=c.value.date()===1?"1er":String(c.value.date());return $2(`${c.value.format("dddd")} ${y} ${c.value.format("MMMM YYYY")}`)}),h=l.ref(),m=l.ref(),f=(y,g,v)=>{const A=g.value?.$el;!y||!A||document.activeElement!==A||l.nextTick(()=>{const b=v.value?.$el;b&&!b.disabled&&b.focus()})};return l.watch(r,y=>f(y,m,h)),l.watch(s,y=>f(y,h,m)),(y,g)=>(l.openBlock(),l.createElementBlock("div",{class:"day-navigator",role:"group","aria-label":a.label},[l.createVNode(A3,{ref_key:"previousButton",ref:h,class:"day-navigator__button day-navigator__button--previous",type:"secondary",disabled:s.value,onClick:g[0]||(g[0]=v=>n("previous"))},{default:l.withCtx(()=>[l.createVNode(U,{iconName:"chevron-left",color:s.value?l.unref(et):l.unref(j1),width:"16",height:"16","aria-hidden":"true"},null,8,["color"]),g[2]||(g[2]=l.createTextVNode(" Préc.",-1)),g[3]||(g[3]=l.createElementVNode("span",{class:"day-navigator__sr-only"}," (jour précédent)",-1))]),_:1},8,["disabled"]),l.createElementVNode("span",Lu,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(d,v=>l.createElementVNode("span",{key:v,class:"day-navigator__date-sizer","aria-hidden":"true"},l.toDisplayString(v),1)),64)),l.createElementVNode("span",Nu,l.toDisplayString(u.value),1)]),l.createVNode(A3,{ref_key:"nextButton",ref:m,class:"day-navigator__button day-navigator__button--next",type:"secondary",disabled:r.value,onClick:g[1]||(g[1]=v=>n("next"))},{default:l.withCtx(()=>[g[4]||(g[4]=l.createTextVNode(" Suiv.",-1)),g[5]||(g[5]=l.createElementVNode("span",{class:"day-navigator__sr-only"}," (jour suivant)",-1)),l.createVNode(U,{iconName:"chevron-right",color:r.value?l.unref(et):l.unref(j1),width:"16",height:"16","aria-hidden":"true"},null,8,["color"])]),_:1},8,["disabled"])],8,Tu))}}),Ou={class:"amc2-list-wrapper"},Fu={class:"amc2-list-item"},ju={key:1,class:"list-with-search-empty-space"},Uu={key:2,class:"amc2-list-search"},_u=["aria-multiselectable"],Ku={key:0,class:"amc2-list-empty"},Pu={class:"amc2-list-item"},Wu=["aria-selected","onClick","onKeydown"],pl=l.defineComponent({__name:"ListWithSearch",props:{stickyHeader:{type:Boolean,default:!0},searchable:{type:Boolean},itemSize:{},searchPlaceholder:{default:"Rechercher"},emptyMessage:{default:"Aucune valeur"},labelSelectAll:{default:"Tout sélectionner"},modelValue:{},options:{},disabled:{type:Boolean},multiple:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(""),s=l.computed({get:()=>t.modelValue,set:h=>n("update:modelValue",h)}),r=h=>s.value.some(m=>m.value===h),o=l.computed(()=>{const h=i.value.toLowerCase();return t.options.filter(m=>m.label.toString().toLowerCase().includes(h))}),c=l.computed({get:()=>o.value.length>0&&o.value.every(h=>s.value.some(m=>m.value===h.value)),set:()=>{if(t.multiple)if(c.value)s.value=s.value.filter(h=>!o.value.some(m=>m.value===h.value));else{const h=o.value.filter(m=>!s.value.some(f=>f.value===m.value));s.value=[...s.value,...h]}}}),d=(h,m)=>{const f=h.currentTarget,y=Array.from(f.closest(".amc2-list")?.querySelectorAll(".amc2-list-item[tabindex]")??[]);y[y.indexOf(f)+m]?.focus()},u=h=>{if(t.multiple){const m=s.value.some(f=>f.value===h.value);s.value=m?s.value.filter(f=>f.value!==h.value):[...s.value,h]}else s.value=[h]};return(h,m)=>(l.openBlock(),l.createElementBlock("div",Ou,[a.multiple||a.searchable?(l.openBlock(),l.createElementBlock("div",{key:0,ref:"headerRef",class:l.normalizeClass(["amc2-list-header",{"amc2-list-header-sticky":a.stickyHeader}])},[l.createElementVNode("div",Fu,[a.multiple&&i.value.length>=3?(l.openBlock(),l.createBlock(H3,{key:0,position:"right"},{content:l.withCtx(()=>[...m[4]||(m[4]=[l.createTextVNode("Sélectionnez tout",-1)])]),default:l.withCtx(()=>[l.createVNode(B0,{modelValue:c.value,"onUpdate:modelValue":m[0]||(m[0]=f=>c.value=f)},null,8,["modelValue"])]),_:1})):(l.openBlock(),l.createElementBlock("div",ju)),a.searchable?(l.openBlock(),l.createElementBlock("div",Uu,[l.createVNode(Q2,{ref:"searchRef",autofocus:"",class:"amc2-list-search-input",placeholder:"Rechercher",type:"search",iconName:"search",modelValue:i.value,"onUpdate:modelValue":m[1]||(m[1]=f=>i.value=f)},null,8,["modelValue"])])):l.createCommentVNode("",!0)])],2)):l.createCommentVNode("",!0),l.createElementVNode("ul",{class:l.normalizeClass(["amc2-list",[a.itemSize?`amc2-list-${a.itemSize}`:""]]),role:"listbox","aria-multiselectable":a.multiple||void 0},[o.value.length===0?(l.openBlock(),l.createElementBlock("li",Ku,[l.createElementVNode("span",Pu,l.toDisplayString(a.emptyMessage),1)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,f=>(l.openBlock(),l.createElementBlock("li",{key:f.value+"-"+f.label,class:l.normalizeClass({"amc2-list-item-selected":r(f.value)})},[l.createElementVNode("label",{class:"amc2-list-item",tabindex:"0",role:"option","aria-selected":r(f.value),onClick:y=>u(f),onKeydown:[l.withKeys(l.withModifiers(y=>u(f),["prevent"]),["enter"]),l.withKeys(l.withModifiers(y=>u(f),["prevent"]),["space"]),m[2]||(m[2]=l.withKeys(l.withModifiers(y=>d(y,1),["prevent"]),["down"])),m[3]||(m[3]=l.withKeys(l.withModifiers(y=>d(y,-1),["prevent"]),["up"]))]},[l.createElementVNode("span",{class:l.normalizeClass({selected:r(f.value)})},l.toDisplayString(f.label),3)],40,Wu)],2))),128))],10,_u)]))}}),Qu={class:"amc2-selection-overflow"},vl=l.defineComponent({__name:"SelectionItem",props:{disabled:{type:Boolean},clearable:{type:Boolean,default:!0},modelValue:{}},emits:["update:modelValue","clear"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>t.modelValue!==null);function s(){n("update:modelValue",null),n("clear")}return(r,o)=>i.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["amc2-selection",{"amc2-selection-disabled":t.disabled}])},[l.createElementVNode("span",Qu,[l.renderSlot(r.$slots,"default")]),!t.disabled&&a.clearable?(l.openBlock(),l.createBlock(U,{key:0,iconName:"x",class:"amc2-selection-close",onClick:l.withModifiers(s,["stop"])})):l.createCommentVNode("",!0)],2)):l.createCommentVNode("",!0)}}),Yu={key:0,class:"amc2-selection-group-placeholder"},qu={class:"amc2-select-item"},Gu={class:"amc2-selection-group-hidden-items"},Ju={className:"amc2-selection"},Zu={class:"amc2-selection-group-hidden-items-wrapper"},Xu={class:"amc2-select-item"},gl=l.defineComponent({__name:"SelectionGroup",props:{placeholder:{},singleLine:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},expandable:{type:Boolean},tooltipStyle:{},modelValue:{},tooltipPosition:{}},emits:["update:modelValue","clearAll","clear"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(null),s=l.ref(null),r=l.ref(t.modelValue.length),o=l.computed(()=>t.modelValue.slice(0,r.value)),c=l.computed(()=>t.modelValue.slice(r.value)),d=l.computed(()=>!t.disabled&&t.clearable&&t.modelValue.length>0);function u(f){const y=[...t.modelValue],g=y[f];y.splice(f,1),n("update:modelValue",y),n("clear",g)}const h=f=>{if(d.value){const y=[...t.modelValue];n("update:modelValue",[]),n("clearAll",y)}f.stopPropagation(),f.preventDefault()};function m(){l.nextTick(()=>{if(!i.value||!s.value)return;const f=i.value.clientWidth,y=s.value.children;let g=0,v=1;const A=40;Array.from(y).forEach(b=>{if(b instanceof HTMLElement){const w=b.offsetWidth;g+w+A<=f&&(g+=w,v++)}}),r.value=v})}return l.watch(()=>t.modelValue,()=>m(),{deep:!0,immediate:!0}),l.onMounted(()=>{window.addEventListener("resize",m),m()}),l.onUnmounted(()=>{window.removeEventListener("resize",m)}),(f,y)=>(l.openBlock(),l.createElementBlock("div",{class:"amc2-selection-group",ref_key:"selectionRef",ref:i},[l.createElementVNode("div",{class:"amc2-selection-group-items",ref_key:"itemsRef",ref:s},[a.modelValue.length===0?(l.openBlock(),l.createElementBlock("span",Yu,l.toDisplayString(t.placeholder),1)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(o.value,(g,v)=>(l.openBlock(),l.createBlock(vl,{key:v,disabled:t.disabled,onClear:A=>u(v),clearable:a.clearable,modelValue:g},{default:l.withCtx(()=>[l.createElementVNode("div",qu,l.toDisplayString(g.label),1)]),_:2},1032,["disabled","onClear","clearable","modelValue"]))),128))],512),l.createElementVNode("div",Gu,[c.value.length>0?(l.openBlock(),l.createBlock(H3,{key:0,style:l.normalizeStyle(a.tooltipStyle),className:"tooltip-display-component",position:a.tooltipPosition,removeDelay:100},{content:l.withCtx(()=>[l.createElementVNode("div",Zu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,(g,v)=>(l.openBlock(),l.createBlock(vl,{key:v,disabled:t.disabled,onClear:A=>u(v),clearable:a.modelValue.length>1,modelValue:g},{default:l.withCtx(()=>[l.createElementVNode("div",Xu,l.toDisplayString(g.label),1)]),_:2},1032,["disabled","onClear","clearable","modelValue"]))),128))])]),default:l.withCtx(()=>[l.createElementVNode("span",Ju,"+"+l.toDisplayString(c.value.length),1)]),_:1},8,["style","position"])):l.createCommentVNode("",!0)]),d.value?(l.openBlock(),l.createBlock(U,{key:0,iconName:"x",onClick:h,class:"amc2-selection-group-clear"})):l.createCommentVNode("",!0)],512))}}),$u=["tabindex","aria-label","aria-expanded","aria-disabled"],eh={key:0,class:"amc2-select-oneitem"},yl=l.defineComponent({__name:"SelectBase",props:{options:{},multiple:{type:Boolean},searchable:{type:Boolean},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},modelValue:{},label:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>!!t.label),s=l.ref(!1),r=l.computed(()=>s.value||t.modelValue.length>0),o=l.computed({get:()=>t.modelValue,set:w=>{if(n("update:modelValue",w),!t.multiple&&w.length===1){const p=u.value?.contains(document.activeElement);s.value=!1,p&&l.nextTick(()=>d.value?.focus())}}}),c=l.ref(null),d=l.ref(null),u=l.ref(null),h=l.ref({}),m=l.ref("down"),f=()=>{if(!c.value)return;const w=c.value.getBoundingClientRect(),p=u.value?.getBoundingClientRect(),D=window.innerHeight-w.bottom,S=w.top,V=p?.height||300;D<V&&S>D?(m.value="up",h.value={position:"absolute",top:`${w.top-V+window.scrollY}px`,left:`${w.left+window.scrollX}px`,width:`${w.width}px`,zIndex:"9999"}):(m.value="down",h.value={position:"absolute",top:`${w.bottom+window.scrollY}px`,left:`${w.left+window.scrollX}px`,width:`${w.width}px`,zIndex:"9999"})},y=()=>{t.disabled||(s.value=!s.value,s.value&&l.nextTick(()=>{f()}))},g=()=>{t.disabled||(s.value=!0,l.nextTick(()=>{f(),u.value?.querySelector("input, .amc2-list-item[tabindex]")?.focus()}))},v=w=>{s.value&&(w.preventDefault(),s.value=!1,d.value?.focus())},A=w=>{w.target===d.value&&(w.key==="Escape"?v(w):["Enter"," ","ArrowDown"].includes(w.key)&&(w.preventDefault(),g()))},b=w=>{const p=w.target;c.value&&!c.value.contains(p)&&u.value&&!u.value.contains(p)&&(s.value=!1)};return l.onMounted(()=>{document.addEventListener("mousedown",b),window.addEventListener("scroll",f,!0),window.addEventListener("resize",f)}),l.onBeforeUnmount(()=>{document.removeEventListener("mousedown",b),window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}),(w,p)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"selectRef",ref:c,class:l.normalizeClass(["amc2-select",{"amc2-select-disabled":a.disabled}])},[l.createElementVNode("div",{ref_key:"triggerRef",ref:d,class:"amc2-select-display",role:"combobox",tabindex:a.disabled?-1:0,"aria-label":i.value?a.label:a.placeholder||void 0,"aria-haspopup":"listbox","aria-expanded":s.value,"aria-disabled":a.disabled||void 0,onClick:y,onKeydown:A},[l.createElementVNode("div",{class:l.normalizeClass(["amc2-select-display-content",{withLabel:i.value}])},[o.value.length===1?(l.openBlock(),l.createElementBlock("span",eh,l.toDisplayString(o.value[0].label),1)):(l.openBlock(),l.createBlock(gl,{key:1,clearable:a.clearable,disabled:a.disabled,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=D=>o.value=D)},null,8,["clearable","disabled","modelValue"])),l.createElementVNode("div",{class:l.normalizeClass(["amc2-select-label-container",{active:r.value,withLabel:i.value}])},[i.value?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["amc2-select-label",{active:r.value}])},l.toDisplayString(a.label),3)):l.createCommentVNode("",!0),!o.value.length&&a.placeholder?(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass(["amc2-select-placeholder",{active:r.value}])},l.toDisplayString(a.placeholder),3)):l.createCommentVNode("",!0)],2)],2),a.disabled?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(U,{key:0,iconName:"chevron-down",class:l.normalizeClass(["amc2-select-icon",{opened:s.value}])},null,8,["class"]))],40,$u),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:u,class:"amc2-select-dropdown",style:l.normalizeStyle(h.value),onKeydown:l.withKeys(v,["esc"])},[l.createVNode(pl,{ref:"listRef",options:a.options,multiple:a.multiple,searchable:a.searchable,modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=D=>o.value=D)},null,8,["options","multiple","searchable","modelValue"])],36)):l.createCommentVNode("",!0)]))],2))}});let th=0;const Re=a=>`${a}-${++th}`,Y2={secteursClient:{label:"Secteur(s) client",multiple:!0},secteursIntervenant:{label:"Secteur(s) intervenant",multiple:!0},gestionnaire:{label:"Gestionnaire",multiple:!1},prestation:{label:"Prestation",multiple:!1},intervenant:{label:"Intervenant",multiple:!1},client:{label:"Client",multiple:!1}},Al={interventionsAnnulees:{label:"Interventions annulées"},trajets:{label:"Trajets"}},le=Object.keys(Y2),Te=Object.keys(Al),ah={...Object.fromEntries(le.map(a=>[a,Y2[a].label])),...Object.fromEntries(Te.map(a=>[a,Al[a].label])),placeholder:"Sélectionner…",close:"Fermer les filtres",reset:"Réinitialiser",submit:"Appliquer"},q2=()=>({...Object.fromEntries(le.map(a=>[a,[]])),...Object.fromEntries(Te.map(a=>[a,!1]))}),nh=a=>typeof a=="object"&&a!==null&&c1(a.label),bl=a=>Array.isArray(a)?a.filter(nh):[],ih=a=>{const e=typeof a=="object"&&a!==null?a:{};return Object.fromEntries(le.map(t=>[t,bl(e[t])]))},El=a=>{const e=typeof a=="object"&&a!==null?a:{},t=q2();for(const n of le)t[n]=bl(e[n]);for(const n of Te)t[n]=e6(e[n]);return t},lh=a=>{const e=El(a);return le.filter(t=>e[t].length>0).length+Te.filter(t=>e[t]).length},sh=["aria-labelledby"],rh={class:"filter-panel__header"},oh=["id"],ch=["aria-label"],dh={class:"filter-panel__body"},uh=["onClick"],hh=["onClick"],fh={class:"filter-panel__footer"},mh='.amc2-select-dropdown, .tooltip-content-arrow, .datepicker-popup, [role="dialog"], [aria-modal="true"]',ph=l.defineComponent({name:"FilterPanel",__name:"FilterPanel",props:{modelValue:{},options:{},title:{},labels:{},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue","reset","close"],setup(a,{emit:e}){const t=a,n=e,i=Re("filter-panel-title"),s=l.computed(()=>m1(t.title,"Filtres")),r=l.computed(()=>{const b=typeof t.labels=="object"&&t.labels!==null?t.labels:{};return Object.fromEntries(Object.entries(ah).map(([w,p])=>[w,m1(b[w],p)]))}),o=l.computed(()=>El(t.modelValue)),c=l.computed(()=>ih(t.options)),d=(b,w)=>{const p=typeof t.modelValue=="object"&&t.modelValue!==null?t.modelValue:{};n("update:modelValue",{...p,...o.value,[b]:w})},u=()=>{n("update:modelValue",q2()),n("reset")},h=l.ref(null),m=b=>h.value?.contains(b)===!0||b.closest(mh)!==null,f=b=>{const w=b.target;t.closeOnOutsideClick&&(!(w instanceof Element)||!w.isConnected||m(w)||n("close"))},y=b=>{if(b.key!=="Escape"||b.defaultPrevented)return;const w=document.activeElement;w&&w!==document.body&&!m(w)||n("close")};let g=null;const v=b=>{g=b&&"$el"in b?b.$el:b},A=()=>{const b=g?.querySelector(".amc2-select-display");b&&b.tabIndex>=0&&b.focus({preventScroll:!0})};return l.onMounted(()=>{document.addEventListener("pointerdown",f,!0),document.addEventListener("keydown",y),l.nextTick(A)}),l.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",f,!0),document.removeEventListener("keydown",y)}),(b,w)=>(l.openBlock(),l.createElementBlock("aside",{ref_key:"rootRef",ref:h,class:"filter-panel",role:"complementary","aria-labelledby":l.unref(i)},[l.createElementVNode("div",rh,[l.createElementVNode("h2",{id:l.unref(i),class:"filter-panel__title"},l.toDisplayString(s.value),9,oh),l.createElementVNode("button",{type:"button",class:"filter-panel__close","aria-label":r.value.close,onClick:w[0]||(w[0]=p=>n("close"))},[l.createVNode(U,{iconName:"x",color:l.unref(j1),width:"24",height:"24","aria-hidden":"true"},null,8,["color"])],8,ch)]),l.createElementVNode("div",dh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(le),(p,D)=>(l.openBlock(),l.createBlock(yl,{key:p,ref_for:!0,ref:D===0?v:void 0,label:r.value[p],placeholder:r.value.placeholder,multiple:l.unref(Y2)[p].multiple,options:c.value[p],"model-value":o.value[p],"onUpdate:modelValue":S=>d(p,S)},null,8,["label","placeholder","multiple","options","model-value","onUpdate:modelValue"]))),128)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(Te),p=>(l.openBlock(),l.createElementBlock("div",{key:p,class:"filter-panel__toggle-field",onClick:l.withModifiers(D=>d(p,!o.value[p]),["self"])},[l.createElementVNode("span",{class:"filter-panel__toggle-label","aria-hidden":"true",onClick:D=>d(p,!o.value[p])},l.toDisplayString(r.value[p]),9,hh),l.createVNode(U2,{"model-value":o.value[p],"aria-label":r.value[p],"onUpdate:modelValue":D=>d(p,D)},null,8,["model-value","aria-label","onUpdate:modelValue"])],8,uh))),128))]),l.createElementVNode("div",fh,[l.createVNode(A3,{type:"secondary",iconName:"reset",onClick:l.withModifiers(u,["prevent"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value.reset),1)]),_:1}),l.createVNode(A3,{type:"primary",onClick:w[1]||(w[1]=l.withModifiers(p=>n("close"),["prevent"]))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value.submit),1)]),_:1})])],8,sh))}}),wl={depart:"departure",retour:"return"},vh=["departure","return"],Cl=a=>{if(typeof a!="string")return;const e=at(a.trim().toLowerCase()),t=Object.prototype.hasOwnProperty.call(wl,e)?wl[e]:e;return vh.includes(t)?t:void 0},gh={key:0,class:"home-step"},yh={class:"home-step__label"},Ah={class:"home-step__place"},bh={class:"home-step__direction"},zl=l.defineComponent({name:"HomeStep",__name:"HomeStep",props:{direction:{},labels:{}},setup(a){const e=a,t={place:"Domicile",departure:"Départ",return:"Retour"},n=l.computed(()=>m1(e.labels?.place,t.place)),i=l.computed(()=>{const s=Cl(e.direction);return s?m1(e.labels?.[s],t[s]):void 0});return(s,r)=>i.value?(l.openBlock(),l.createElementBlock("div",gh,[l.createVNode(U,{"icon-name":"home",color:l.unref(J1),"class-icon":"home-step__icon","aria-hidden":"true"},null,8,["color"]),l.createElementVNode("p",yh,[l.createElementVNode("span",Ah,l.toDisplayString(n.value)+" - ",1),l.createElementVNode("span",bh,l.toDisplayString(i.value),1)])])):l.createCommentVNode("",!0)}}),Eh=["aria-pressed"],wh={class:"intervention-card__header intervention-card__header--centered"},Ch={class:"intervention-card__duration"},zh={class:"intervention-card__time-section intervention-card__time-section--centered"},Sh={class:"intervention-card__header"},Mh={key:0,class:"intervention-card__sr-only"},kh=["title"],xh={class:"intervention-card__activity-section"},Bh=["title"],Dh={class:"intervention-card__time-section"},Vh={class:"intervention-card__time"},Sl=l.defineComponent({name:"InterventionCard",__name:"InterventionCard",props:{activity:{default:"jardinage"},state:{default:"default"},selected:{type:Boolean,default:void 0},clientName:{default:""},activityLabel:{default:""},time:{default:""},status:{},duration:{default:""},hasTransmission:{type:Boolean,default:!1},hasRepetition:{type:Boolean,default:!1},hasAttention:{type:Boolean,default:!1}},setup(a){const e=a,t={jardinage:{label:"Jardinage",modifier:"jardinage"},bricolage:{label:"Bricolage",modifier:"bricolage"},menage:{label:"Ménage",modifier:"menage"},aideADomicile:{label:"Aide à domicile",modifier:"aide-a-domicile"},gardeEnfants:{label:"Garde d'enfants",modifier:"garde-enfants"},trajet:{label:"Trajet",modifier:"trajet"},replace:{label:"",modifier:"replace"}},n=l.computed(()=>Object.prototype.hasOwnProperty.call(t,e.activity)?t[e.activity]:void 0),i=l.computed(()=>e.activityLabel||n.value?.label||""),s=l.computed(()=>e.activity==="trajet"),r=l.computed(()=>e.activity==="replace"),o=y=>y===!0||y==="true",c=l.computed(()=>o(e.hasTransmission)),d=l.computed(()=>o(e.hasRepetition)),u=l.computed(()=>o(e.hasAttention)),h=l.computed(()=>o(e.selected)||r.value&&e.state==="selected"),m=l.computed(()=>e.selected!==void 0?h.value:h.value?!0:void 0),f=l.computed(()=>[n.value&&`intervention-card--${n.value.modifier}`,r.value&&`intervention-card--${e.state}`,r.value&&h.value&&e.state!=="selected"&&"intervention-card--selected"]);return(y,g)=>(l.openBlock(),l.createElementBlock("button",{type:"button",class:l.normalizeClass(["intervention-card",f.value]),"aria-pressed":m.value},[s.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("span",wh,[l.createElementVNode("span",Ch,l.toDisplayString(a.duration),1)]),l.createElementVNode("span",zh,[l.createVNode(U,{"icon-name":"itinerary",width:"12",height:"12",color:l.unref(J1),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[0]||(g[0]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"Trajet",-1))])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("span",Sh,[r.value?(l.openBlock(),l.createElementBlock("span",Mh," Créneau à attribuer ")):l.createCommentVNode("",!0),r.value&&u.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(U,{"icon-name":"alert-triangle",width:"16",height:"16",color:l.unref(Fl),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[1]||(g[1]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"RDV urgent",-1))],64)):l.createCommentVNode("",!0),l.createElementVNode("span",{class:"intervention-card__client",title:a.clientName},l.toDisplayString(a.clientName),9,kh),!r.value&&c.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createVNode(U,{"icon-name":"phone",width:"12",height:"12",color:l.unref(J1),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[2]||(g[2]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"Télétransmission effectuée",-1))],64)):l.createCommentVNode("",!0),!r.value&&d.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:3},[l.createVNode(U,{"icon-name":"repeat",width:"12",height:"12",color:l.unref(J1),"class-icon":"intervention-card__icon","aria-hidden":"true"},null,8,["color"]),g[3]||(g[3]=l.createElementVNode("span",{class:"intervention-card__sr-only"},"RDV récurrent",-1))],64)):l.createCommentVNode("",!0)]),l.createElementVNode("span",xh,[g[4]||(g[4]=l.createElementVNode("span",{class:"intervention-card__dot","aria-hidden":"true"},null,-1)),l.createElementVNode("span",{class:"intervention-card__activity",title:i.value},l.toDisplayString(i.value),9,Bh)]),l.createElementVNode("span",Dh,[l.createElementVNode("span",Vh,l.toDisplayString(a.time),1),!r.value&&a.status?(l.openBlock(),l.createBlock(nt,{key:0,status:a.status,class:"intervention-card__status"},null,8,["status"])):l.createCommentVNode("",!0)])],64))],10,Eh))}}),Ih={class:"modal"},Rh={class:"header-title"},Th={class:"modal-content"},Lh=l.defineComponent({__name:"ModalBase",props:{visible:{type:Boolean},additionnal:{type:Boolean},title:{}},setup(a){return(e,t)=>a.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-container",{"additional-modal":a.additionnal??!1}])},[t[1]||(t[1]=l.createElementVNode("div",{class:"modal-background"},null,-1)),l.createElementVNode("dialog",Ih,[l.createElementVNode("header",null,[l.createElementVNode("div",Rh,l.toDisplayString(a.title),1),l.createVNode(U,{"icon-name":"x",onClick:t[0]||(t[0]=n=>e.$emit("close"))})]),l.createElementVNode("div",Th,[l.renderSlot(e.$slots,"default")])])],2)):l.createCommentVNode("",!0)}}),Nh=["disabled","checked"],Hh={key:1},Oh=l.defineComponent({__name:"RadioBase",props:{label:{},icon:{},theme:{},disabled:{type:Boolean},modelValue:{},value:{},className:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>({...t.theme})),s=()=>{t.disabled||n("update:modelValue",t.value)};return(r,o)=>(l.openBlock(),l.createElementBlock("label",{style:l.normalizeStyle(i.value),class:l.normalizeClass(["amc2-radio-container",a.className]),onClick:s},[l.createElementVNode("input",{type:"radio",disabled:a.disabled,checked:a.modelValue===a.value},null,8,Nh),o[0]||(o[0]=l.createElementVNode("span",{class:"amc2-radio"},null,-1)),a.icon?(l.openBlock(),l.createBlock(U,{key:0,iconName:a.icon},null,8,["iconName"])):l.createCommentVNode("",!0),a.label?(l.openBlock(),l.createElementBlock("span",Hh,l.toDisplayString(a.label),1)):l.createCommentVNode("",!0)],6))}}),Fh=["for"],jh={class:"slider-base__track"},Uh=["id","min","max","step","value","disabled","aria-valuetext"],_h={class:"slider-base__value","aria-hidden":"true"},Ml=l.defineComponent({name:"SliderBase",__name:"SliderBase",props:{modelValue:{},label:{},min:{default:0},max:{default:100},step:{default:1},unitLabel:{},unitSpokenLabel:{},locale:{},disabled:{type:Boolean},emptyLabel:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=(b,w)=>typeof b=="string"?b.trim():w,s=l.computed(()=>i(t.unitLabel,"pts")),r=l.computed(()=>i(t.unitSpokenLabel,typeof t.unitLabel=="string"?s.value:"points")),o=Re("slider-base"),c=l.computed(()=>{const b=v3(t.min),w=v3(t.max),p=v3(t.step);if(b===void 0||w===void 0||p===void 0||w<=b||p<=0)return;const D=Number((b+Math.floor((w-b)/p)*p).toFixed(6));return{min:b,max:w,step:p,top:D}}),d=b=>{const w=c.value,p=Math.min(Math.max(b,w.min),w.max),D=Number((Math.round((p-w.min)/w.step)*w.step+w.min).toFixed(6));return Math.min(D,w.top)},u=l.computed(()=>{if(!c.value)return;const b=v3(t.modelValue);return b===void 0?null:d(b)}),h=l.ref(null);l.watch(u,b=>h.value=b??null,{immediate:!0});const m=l.computed(()=>{try{return new Intl.NumberFormat(t.locale||"fr-FR",{maximumFractionDigits:6})}catch{return new Intl.NumberFormat("fr-FR",{maximumFractionDigits:6})}}),f=(b,w)=>w?`${b} ${w}`:b,y=l.computed(()=>h.value===null?"—":f(m.value.format(h.value),s.value)),g=l.computed(()=>h.value===null?m1(t.emptyLabel,"non défini"):f(m.value.format(h.value),r.value)),v=l.computed(()=>{const b=c.value;if(!b||!c1(t.label))return;const w=h.value;return{...b,label:String(t.label).trim(),defined:w!==null,fill:w===null?0:(w-b.min)/(b.max-b.min)*100}}),A=b=>{h.value=Number(b.target.value),n("update:modelValue",h.value)};return(b,w)=>v.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["slider-base",{"slider-base--disabled":a.disabled,"slider-base--empty":!v.value.defined}]),style:l.normalizeStyle({"--slider-base-fill":`${v.value.fill}%`})},[l.createElementVNode("label",{for:l.unref(o),class:"slider-base__label"},l.toDisplayString(v.value.label),9,Fh),l.createElementVNode("div",jh,[l.createElementVNode("input",{id:l.unref(o),class:"slider-base__input",type:"range",min:v.value.min,max:v.value.max,step:v.value.step,value:h.value??v.value.min,disabled:a.disabled,"aria-valuetext":g.value,onInput:A},null,40,Uh)]),l.createElementVNode("span",_h,l.toDisplayString(y.value),1)],6)):l.createCommentVNode("",!0)}}),Kh=["aria-labelledby"],Ph={class:"scoring-panel__container"},Wh={class:"scoring-panel__header"},Qh={class:"scoring-panel__header-text"},Yh=["id"],qh={class:"scoring-panel__subtitle"},Gh=["aria-label"],Jh={class:"scoring-panel__values"},Zh={class:"scoring-panel__footer"},kl=0,xl=50,Xh=l.defineComponent({name:"ScoringPanel",__name:"ScoringPanel",props:{title:{},subtitle:{},modelValue:{},resetLabel:{},submitLabel:{},closeLabel:{},unitLabel:{},unitSpokenLabel:{}},emits:["update:modelValue","close","reset","apply"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>m1(t.title,"Paramétrage du scoring")),s=l.computed(()=>m1(t.subtitle,"Ajustez l’importance du scoring")),r=l.computed(()=>m1(t.resetLabel,"Rétablir par défaut")),o=l.computed(()=>m1(t.submitLabel,"Appliquer")),c=l.computed(()=>m1(t.closeLabel,"Fermer")),d=l.computed(()=>m1(t.unitLabel,"pts")),u=l.computed(()=>m1(t.unitSpokenLabel,"points")),h=Re("scoring-panel-title"),m=b=>{if(!Array.isArray(b))return[];const w=new Set;return b.flatMap((p,D)=>{if(typeof p!="object"||p===null)return[];const{key:S,label:V,value:I}=p;if(!c1(V))return[];const P=v3(I);if(P===void 0||P<kl||P>xl)return[];const R=c1(S)?`k:${String(S).trim()}`:void 0,N=R&&!w.has(R)?R:`i:${D}`;return w.add(N),[{index:D,key:N,label:String(V).trim(),value:P,touched:!1}]})},f=l.ref([]),y=()=>{f.value=m(t.modelValue)};l.watch(()=>t.modelValue,y,{immediate:!0,deep:!0});const g=()=>{if(!Array.isArray(t.modelValue))return[];const b=new Map(f.value.filter(w=>w.touched).map(w=>[w.index,w.value]));return t.modelValue.map((w,p)=>b.has(p)?{...w,value:b.get(p)}:w)},v=(b,w)=>{b.value=w,b.touched=!0,n("update:modelValue",g())},A=async()=>{n("reset"),await l.nextTick(),y()};return(b,w)=>(l.openBlock(),l.createElementBlock("section",{class:"scoring-panel","aria-labelledby":l.unref(h)},[l.createElementVNode("div",Ph,[l.createElementVNode("header",Wh,[l.createElementVNode("div",Qh,[l.createElementVNode("h2",{id:l.unref(h),class:"scoring-panel__title"},l.toDisplayString(i.value),9,Yh),l.createElementVNode("p",qh,l.toDisplayString(s.value),1)]),l.createElementVNode("button",{type:"button",class:"scoring-panel__close","aria-label":c.value,onClick:w[0]||(w[0]=p=>n("close"))},[l.createVNode(U,{iconName:"x",width:"24",height:"24",color:l.unref(j1),"aria-hidden":"true"},null,8,["color"])],8,Gh)]),l.createElementVNode("div",Jh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,p=>(l.openBlock(),l.createBlock(Ml,{key:p.key,class:"scoring-panel__criterion",label:p.label,"model-value":p.value,min:kl,max:xl,"unit-label":d.value,"unit-spoken-label":u.value,"onUpdate:modelValue":D=>v(p,D)},null,8,["label","model-value","unit-label","unit-spoken-label","onUpdate:modelValue"]))),128))])]),l.createElementVNode("footer",Zh,[l.createVNode(A3,{type:"secondary",iconName:"reset",onClick:l.withModifiers(A,["prevent"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value),1)]),_:1}),l.createVNode(A3,{type:"primary",onClick:w[1]||(w[1]=l.withModifiers(p=>n("apply",g()),["prevent"]))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.value),1)]),_:1})])],8,Kh))}}),$h={class:"slot-container"},ef=["disabled"],tf={class:"slot-container"},af=["disabled"],nf={class:"slot-container"},lf=["disabled"],sf=l.defineComponent({__name:"SegmentedButton",props:{iconLeft:{default:"arrow-down-a-z"},labelLeft:{default:"Croissant"},toolTipLabelLeft:{default:"Croissant : Affiche les éléments dans l'ordre alphabétique (de A à Z)"},iconCenter:{},labelCenter:{default:"Aucun tri"},toolTipLabelCenter:{default:"Aucun tri : Affiche les éléments dans l'ordre d'origine, sans tri appliqué"},iconRight:{default:"arrow-down-z-a"},labelRight:{default:"Décroissant"},toolTipLabelRight:{default:"Décroissant : Affiche les éléments dans l'ordre inverse (de Z à A)"},disabled:{type:Boolean},modelValue:{default:"center"},theme:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=r=>{t.disabled||n("update:modelValue",r)},s=l.computed(()=>({"--on-color":t.theme?.["amc2-segmented-button-on-color"],"--on-hover-color":t.theme?.["amc2-segmented-button-on-hover-color"],"--off-color":t.theme?.["amc2-segmented-button-off-color"],"--off-hover-color":t.theme?.["amc2-segmented-button-off-hover-color"],"--on-disabled-color":t.theme?.["amc2-segmented-button-on-disabled-color"],"--off-disabled-color":t.theme?.["amc2-segmented-button-off-disabled-color"]}));return(r,o)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(s.value),class:l.normalizeClass(["amc2-segment-btn-container",{disabled:a.disabled}])},[l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.toolTipLabelLeft),1)]),default:l.withCtx(()=>[l.createElementVNode("div",$h,[l.createElementVNode("div",{class:l.normalizeClass(["amc2-segment-btn left",{active:a.modelValue==="left"}]),onClick:o[0]||(o[0]=c=>i("left")),disabled:a.disabled},[a.iconLeft?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconLeft,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelLeft),1)],10,ef)])]),_:1}),l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.toolTipLabelCenter),1)]),default:l.withCtx(()=>[l.createElementVNode("div",tf,[l.createElementVNode("div",{class:l.normalizeClass(["amc2-segment-btn center",{active:a.modelValue==="center"}]),onClick:o[1]||(o[1]=c=>i("center")),disabled:a.disabled},[a.iconCenter?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconCenter,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelCenter),1)],10,af)])]),_:1}),l.createVNode(H3,null,{content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.toolTipLabelRight),1)]),default:l.withCtx(()=>[l.createElementVNode("div",nf,[l.createElementVNode("div",{class:l.normalizeClass(["amc2-segment-btn right",{active:a.modelValue==="right"}]),onClick:o[2]||(o[2]=c=>i("right")),disabled:a.disabled},[a.iconRight?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconRight,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelRight),1)],10,lf)])]),_:1})],6))}}),rf={class:"side-menu"},of=["onClick"],cf={class:"side-menu-item-label"},df={class:"side-menu-chevron-container"},uf={key:0,class:"side-menu-submenu"},hf=["onClick"],ff=l.defineComponent({__name:"SideMenu",props:{items:{},idSelected:{}},setup(a){const e=a,t=l.ref(new Set),n=l.ref(e.idSelected??void 0),i=o=>{if(!o.children){s(o);return}t.value.has(o.label)?t.value.delete(o.label):(Array.from(t.value).filter(d=>{const u=e.items.find(h=>h.label===d);return u?.children?!u.children.some(h=>h.id===n.value):!0}).forEach(d=>{t.value.delete(d)}),t.value.add(o.label))},s=o=>{n.value=o.id,o.action?.()},r=o=>t.value.has(o.label);return l.onMounted(()=>{if(e.idSelected){const o=e.items.find(c=>c.children?.some(d=>d.id===e.idSelected));o&&t.value.add(o.label)}}),(o,c)=>(l.openBlock(),l.createElementBlock("nav",rf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.items,d=>(l.openBlock(),l.createElementBlock("li",{key:d.id,class:l.normalizeClass({"side-menu-item":!0,selected:d.id===n.value})},[l.createElementVNode("div",{class:"side-menu-item-line",onClick:u=>i(d)},[d.icon?(l.openBlock(),l.createBlock(U,{key:0,iconName:d.icon,height:"22",width:"22"},null,8,["iconName"])):l.createCommentVNode("",!0),l.createElementVNode("span",cf,l.toDisplayString(d.label),1),l.createElementVNode("div",df,[d.children&&!r(d)?(l.openBlock(),l.createBlock(U,{key:0,iconName:"chevron-down"})):l.createCommentVNode("",!0),d.children&&r(d)?(l.openBlock(),l.createBlock(U,{key:1,iconName:"chevron-up"})):l.createCommentVNode("",!0)])],8,of),l.createVNode(l.Transition,{name:"submenu",appear:""},{default:l.withCtx(()=>[d.children&&r(d)?(l.openBlock(),l.createElementBlock("div",uf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.children,u=>(l.openBlock(),l.createElementBlock("li",{key:u.id,class:l.normalizeClass({"side-menu-submenu-item":!0,selected:u.id===n.value}),onClick:h=>s(u)},[u.icon?(l.openBlock(),l.createBlock(U,{key:0,iconName:u.icon,height:"20",width:"20",color:l.unref(tt)},null,8,["iconName","color"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(u.label),1)],10,hf))),128))])):l.createCommentVNode("",!0)]),_:2},1024)],2))),128))]))}}),mf={key:0,class:"stat-card"},pf={key:0,class:"stat-card__label"},vf={key:1,class:"stat-card__value"},gf={key:2,class:"stat-card__range"},Bl=l.defineComponent({name:"StatCard",__name:"StatCard",props:{label:{},value:{},range:{}},setup(a){const e=a,t=l.computed(()=>c1(e.label)),n=l.computed(()=>c1(e.value)),i=l.computed(()=>c1(e.range)),s=l.computed(()=>t.value||n.value||i.value);return(r,o)=>s.value?(l.openBlock(),l.createElementBlock("div",mf,[t.value?(l.openBlock(),l.createElementBlock("p",pf,l.toDisplayString(a.label),1)):l.createCommentVNode("",!0),n.value?(l.openBlock(),l.createElementBlock("p",vf,l.toDisplayString(a.value),1)):l.createCommentVNode("",!0),i.value?(l.openBlock(),l.createElementBlock("p",gf,l.toDisplayString(a.range),1)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}}),yf={class:"tabbar-container"},Af={class:"tabbar-menu"},bf=["onClick"],Ef=l.defineComponent({__name:"TabBar",props:{listItems:{},listType:{}},emits:["change"],setup(a,{emit:e}){const t=a,n=e;return l.watchEffect(()=>{t.listItems.includes(t.listType)||console.warn(`La valeur de "listType" (${t.listType}) n'est pas présente dans "listItems".`)}),(i,s)=>(l.openBlock(),l.createElementBlock("div",yf,[l.createElementVNode("menu",Af,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.listItems,r=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["tabbar-menu-item",{active:r===a.listType}]),onClick:o=>n("change",r)},l.toDisplayString(r),11,bf))),256))])]))}}),Dl=l.defineComponent({__name:"HistoryBadge",props:{type:{}},setup(a){const e={modification:"Modification",creation:"Création",suppression:"Suppression"};return(t,n)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps(t.$attrs,{class:["history-badge",`history-badge--${a.type}`]}),l.toDisplayString(e[a.type]),17))}}),wf=l.defineComponent({__name:"HistoryFilter",props:{type:{},active:{type:Boolean}},emits:["click"],setup(a){const e={all:"Tout",modification:"Modification",creation:"Création",suppression:"Suppression"};return(t,n)=>(l.openBlock(),l.createElementBlock("button",l.mergeProps(t.$attrs,{class:["history-filter",a.active?`history-filter--${a.type}`:"history-filter--inactive"],onClick:n[0]||(n[0]=i=>t.$emit("click"))}),l.toDisplayString(e[a.type]),17))}}),Cf={key:0,class:"diff-value__pill diff-value__pill--new"},zf={class:"diff-value__pill diff-value__pill--old"},Sf={class:"diff-value__pill diff-value__pill--new"},Mf={class:"diff-value__pill diff-value__pill--deleted"},Vl=l.defineComponent({name:"DiffValue",inheritAttrs:!1,__name:"DiffValue",props:{kind:{default:"modification"},oldValue:{default:""},newValue:{default:""}},setup(a){const e=a,t=l.computed(()=>e.kind==="modification"&&e.oldValue===""),n=l.computed(()=>e.kind==="modification"&&!t.value&&e.newValue==="");return(i,s)=>(l.openBlock(),l.createElementBlock("span",l.mergeProps(i.$attrs,{class:"diff-value"}),[a.kind==="creation"||t.value?(l.openBlock(),l.createElementBlock("span",Cf,l.toDisplayString(a.newValue),1)):a.kind==="modification"&&!n.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("del",zf,l.toDisplayString(a.oldValue),1),l.createVNode(U,{"icon-name":"arrow-right",width:"16",height:"16",color:l.unref(J1),"class-icon":"diff-value__arrow","aria-hidden":"true"},null,8,["color"]),l.createElementVNode("span",Sf,l.toDisplayString(a.newValue),1)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createElementVNode("del",Mf,l.toDisplayString(a.oldValue),1),l.createVNode(U,{"icon-name":"arrow-right",width:"16",height:"16",color:l.unref(J1),"class-icon":"diff-value__arrow","aria-hidden":"true"},null,8,["color"]),s[0]||(s[0]=l.createElementVNode("span",{class:"diff-value__removed-label"},"Supprimé",-1))],64))],16))}}),kf=["aria-expanded","aria-label"],xf={class:"history-item__header"},Bf={class:"history-item__badge-col"},Df={class:"history-item__timestamp"},Vf={class:"history-item__date"},If={key:0,class:"history-item__author"},Rf={class:"history-item__author-name"},Tf={key:0,class:"history-item__details",role:"region"},Lf={class:"history-item__label"},Nf=l.defineComponent({name:"HistoryItem",inheritAttrs:!1,__name:"HistoryItem",props:{type:{default:"modification"},open:{type:Boolean,default:!1},date:{default:""},author:{default:""},initials:{default:"?"},fields:{default:()=>[]}},emits:["update:open","toggle"],setup(a,{emit:e}){const t=a,n=e,i=l.ref(t.open);l.watch(()=>t.open,d=>{i.value=d});const s={modification:"Modification",creation:"Création",suppression:"Suppression"},r=l.computed(()=>{const d=U3(t.initials);return U3(t.author)!==""||d!==""&&d!=="?"}),o=l.computed(()=>{const d=[s[t.type]];return t.author&&d.push(`par ${t.author}`),t.date&&d.push(`le ${t.date}`),d.join(" ")}),c=()=>{i.value=!i.value,n("update:open",i.value),n("toggle",i.value)};return(d,u)=>(l.openBlock(),l.createElementBlock("button",l.mergeProps(d.$attrs,{class:["history-item",`history-item--${a.type}`],type:"button","aria-expanded":i.value,"aria-label":o.value,onClick:c}),[l.createElementVNode("span",xf,[l.createElementVNode("span",Bf,[l.createVNode(Dl,{type:a.type},null,8,["type"])]),l.createElementVNode("span",Df,[l.createVNode(U,{"icon-name":"history",width:"16",height:"16",color:l.unref(J1),"class-icon":"history-item__timestamp-icon","aria-hidden":"true"},null,8,["color"]),l.createElementVNode("span",Vf,l.toDisplayString(a.date),1)]),r.value?(l.openBlock(),l.createElementBlock("span",If,[l.createVNode(it,{initials:a.initials,size:"sm",color:"primary","aria-hidden":"true"},null,8,["initials"]),l.createElementVNode("span",Rf,l.toDisplayString(a.author),1)])):l.createCommentVNode("",!0),l.createVNode(U,{"icon-name":"chevron-down",width:"24",height:"24",color:l.unref(j1),"class-icon":"history-item__chevron","aria-hidden":"true"},null,8,["color"])]),i.value&&a.fields.length?(l.openBlock(),l.createElementBlock("span",Tf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.fields,(h,m)=>(l.openBlock(),l.createElementBlock("span",{key:m,class:"history-item__row"},[l.createElementVNode("span",Lf,l.toDisplayString(h.label),1),l.createVNode(Vl,{kind:a.type,"old-value":h.oldValue,"new-value":h.newValue},null,8,["kind","old-value","new-value"])]))),128))])):l.createCommentVNode("",!0)],16,kf))}}),Hf=["disabled"],Of=["disabled"],Ff=l.defineComponent({__name:"ToggleAdvanced",props:{labelLeft:{},iconLeft:{},labelRight:{},iconRight:{},disabled:{type:Boolean},modelValue:{type:Boolean},theme:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>t.modelValue??!1),s=()=>{t.disabled||n("update:modelValue",!i.value)},r=l.computed(()=>({...t.theme??{}}));return(o,c)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(r.value),class:l.normalizeClass(["amc2-advanced-toggle-container",{disabled:a.disabled}])},[l.createElementVNode("button",{class:l.normalizeClass(["amc2-toggle-btn left",{active:i.value}]),onClick:s,disabled:a.disabled},[a.iconLeft?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconLeft,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelLeft),1)],10,Hf),l.createElementVNode("button",{class:l.normalizeClass(["amc2-toggle-btn right",{active:!i.value}]),onClick:s,disabled:a.disabled},[a.iconRight?(l.openBlock(),l.createBlock(U,{key:0,"icon-name":a.iconRight,height:"24",width:"24"},null,8,["icon-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.labelRight),1)],10,Of)],6))}}),jf={key:0,class:"trip-popup",role:"tooltip"},Uf={key:0,class:"trip-popup__header"},_f={key:0,class:"trip-popup__type"},Kf={class:"trip-popup__sr-only"},Pf={key:1,class:"trip-popup__line"},Wf={key:2,class:"trip-popup__line"},Qf={key:3,class:"trip-popup__compensation"},Yf=l.defineComponent({name:"TripPopup",__name:"TripPopup",props:{type:{},duration:{},distance:{},compensation:{},transport:{}},setup(a){const e=a,t={walk:{icon:"walk",label:"À pied"},bike:{icon:"bike",label:"À vélo"},car:{icon:"car",label:"En voiture"},bus:{icon:"bus",label:"En transport en commun"}},n={v:"car",b:"bike",c:"bus",p:"walk"},i=l.computed(()=>{if(typeof e.transport!="string")return;const u=e.transport.trim().toLowerCase(),h=Object.prototype.hasOwnProperty.call(n,u)?n[u]:u;return Object.prototype.hasOwnProperty.call(t,h)?t[h]:void 0}),s=l.computed(()=>c1(e.type)),r=l.computed(()=>c1(e.duration)),o=l.computed(()=>c1(e.distance)),c=l.computed(()=>c1(e.compensation)),d=l.computed(()=>s.value||!!i.value||r.value||o.value||c.value);return(u,h)=>d.value?(l.openBlock(),l.createElementBlock("div",jf,[s.value||i.value?(l.openBlock(),l.createElementBlock("div",Uf,[s.value?(l.openBlock(),l.createElementBlock("p",_f,l.toDisplayString(a.type),1)):l.createCommentVNode("",!0),i.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(U,{"icon-name":i.value.icon,width:"16",height:"16",color:l.unref(j1),"class-icon":"trip-popup__icon","aria-hidden":"true"},null,8,["icon-name","color"]),l.createElementVNode("span",Kf,l.toDisplayString(i.value.label),1)],64)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),r.value?(l.openBlock(),l.createElementBlock("p",Pf,l.toDisplayString(a.duration),1)):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createElementBlock("p",Wf,l.toDisplayString(a.distance),1)):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createElementBlock("p",Qf,l.toDisplayString(a.compensation),1)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}}),qf={key:0,class:"hours-counter-popup",role:"tooltip"},Gf={class:"hours-counter-popup__label"},Jf={class:"hours-counter-popup__value"},Zf=l.defineComponent({name:"HoursCounterPopup",__name:"HoursCounterPopup",props:{trackingMethod:{},plannedHours:{},targetHours:{},hoursDifference:{},lostHours:{},labels:{}},setup(a){const e=a,t=[{key:"trackingMethod",label:"Méthode de suivi :",layout:"inline"},{key:"plannedHours",label:"Heures planifiées :",layout:"columns"},{key:"targetHours",label:"Objectifs d’heures :",layout:"columns"},{key:"hoursDifference",label:"Écart :",layout:"columns"},{key:"lostHours",label:"Heures perdues :",layout:"columns"}],n=s=>{const r=e.labels?.[s.key];return typeof r=="string"&&r.trim()!==""?r:s.label},i=l.computed(()=>t.flatMap(s=>{const r=e[s.key];return c1(r)?[{...s,label:n(s),value:String(r)}]:[]}));return(s,r)=>i.value.length>0?(l.openBlock(),l.createElementBlock("div",qf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,o=>(l.openBlock(),l.createElementBlock("p",{key:o.key,class:l.normalizeClass(["hours-counter-popup__row",`hours-counter-popup__row--${o.layout}`])},[l.createElementVNode("span",Gf,l.toDisplayString(o.label),1),r[0]||(r[0]=l.createTextVNode()),l.createElementVNode("span",Jf,l.toDisplayString(o.value),1)],2))),128))])):l.createCommentVNode("",!0)}}),Xf={class:"toast-container"},$f={class:"toast-content"},em={class:"toast-close"},tm=l.defineComponent({__name:"ToastBase",setup(a){const e=l.inject("toasts"),t=l.inject("removeToast"),n=r=>{t(r)},i=r=>{switch(r){case"info":return"info";case"success":return"thumbs-up";case"warning":return"alert-circle";case"error":return"x-circle";default:return"info"}},s=r=>{switch(r){case"info":return Z2;case"success":return Tl;case"warning":return Ll;case"error":return Hl;default:return Z2}};return(r,o)=>(l.openBlock(),l.createElementBlock("div",Xf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(e),c=>(l.openBlock(),l.createElementBlock("div",{key:c.id,class:l.normalizeClass(["toast","show",c.intent])},[l.createElementVNode("div",$f,[l.createVNode(U,{"icon-name":i(c.intent),color:s(c.intent),width:"30px",height:"30px"},null,8,["icon-name","color"]),l.createElementVNode("span",null,l.toDisplayString(c.message),1),l.createElementVNode("div",em,[l.createVNode(U,{"icon-name":"close",onClick:d=>n(c.id)},null,8,["onClick"])])])],2))),128))]))}}),am={key:0,class:"widget-header"},nm={class:"widget-body"},im={key:0,class:"widget-empty"},lm={key:1,class:"widget-loader"},sm={key:1,class:"widget-footer"},rm=X2(l.defineComponent({__name:"WidgetBase",props:{width:{default:"50%"},height:{default:"180px"},color:{},isLoading:{type:Boolean}},setup(a){const e=l.useSlots(),t=l.computed(()=>{const s=e.header?.();return!(s&&s?.length>0)}),n=l.computed(()=>{const s=e.body?.();return!(s&&s?.length>0)}),i=l.computed(()=>{const s=e.footer?.();return!(s&&s?.length>0)});return(s,r)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["widget-container",a.color?"custom-color":""]),style:l.normalizeStyle({width:a.width,height:a.height,backgroundColor:a.color})},[t.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("header",am,[l.renderSlot(s.$slots,"header",{},void 0,!0)])),l.createElementVNode("main",nm,[n.value?(l.openBlock(),l.createElementBlock("div",im,[l.createVNode(U,{iconName:"no_data",width:"50",height:"50",color:l.unref(J1)},null,8,["color"]),r[0]||(r[0]=l.createElementVNode("p",null,"Aucune donnée à afficher",-1))])):l.createCommentVNode("",!0),a.isLoading?(l.openBlock(),l.createElementBlock("div",lm,[l.createVNode(Fe)])):l.renderSlot(s.$slots,"body",{key:2},void 0,!0)]),i.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",sm,[l.renderSlot(s.$slots,"footer",{},void 0,!0)]))],6))}}),[["__scopeId","data-v-40656ad7"]]),om=["aria-labelledby"],cm=["id"],dm={class:"worker-day-journey__list"},Il=l.defineComponent({name:"WorkerDayJourney",__name:"WorkerDayJourney",props:{steps:{},title:{},homeStepLabels:{}},emits:["intervention-click"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>m1(t.title,"Parcours du jour")),s=Re("worker-day-journey-title"),r=c=>c1(c)?String(c).trim():void 0,o=l.computed(()=>Array.isArray(t.steps)?t.steps.flatMap(c=>{if(typeof c!="object"||c===null)return[];const d=c,u=typeof d.type=="string"?d.type.trim().toLowerCase():"";if(u==="home"){const y=Cl(d.direction);return y?[{type:"home",direction:y}]:[]}if(u==="trip"){const y=r(d.label);return y?[{type:"trip",label:y}]:[]}if(u!=="intervention")return[];const h=c,m=typeof h.activity=="string"?h.activity:"";return[{type:"intervention",activity:m.trim().toLowerCase()==="trajet"?"":m,clientName:r(h.clientName),activityLabel:r(h.activityLabel),time:r(h.time),status:h.status,hasTransmission:h.hasTransmission,hasRepetition:h.hasRepetition,source:h}]}):[]);return(c,d)=>o.value.length>0?(l.openBlock(),l.createElementBlock("section",{key:0,class:"worker-day-journey","aria-labelledby":l.unref(s)},[l.createElementVNode("h3",{id:l.unref(s),class:"worker-day-journey__title"},l.toDisplayString(i.value),9,cm),l.createElementVNode("ol",dm,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(u,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:l.normalizeClass(["worker-day-journey__step",`worker-day-journey__step--${u.type}`])},[u.type==="home"?(l.openBlock(),l.createBlock(zl,{key:0,direction:u.direction,labels:a.homeStepLabels},null,8,["direction","labels"])):u.type==="trip"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(u.label),1)],64)):(l.openBlock(),l.createBlock(Sl,{key:2,activity:u.activity,"client-name":u.clientName,"activity-label":u.activityLabel,time:u.time,status:u.status,"has-transmission":u.hasTransmission,"has-repetition":u.hasRepetition,onClick:m=>n("intervention-click",u.source)},null,8,["activity","client-name","activity-label","time","status","has-transmission","has-repetition","onClick"]))],2))),128))])],8,om)):l.createCommentVNode("",!0)}}),um=["aria-labelledby"],hm={class:"worker-day-panel__header"},fm={class:"worker-day-panel__profile"},mm={class:"worker-day-panel__info"},pm=["id","title"],vm={key:1,class:"worker-day-panel__count"},gm=["aria-label"],ym={key:0,class:"worker-day-panel__stats"},Am={key:1,class:"worker-day-panel__map"},bm=l.defineComponent({name:"WorkerDayPanel",__name:"WorkerDayPanel",props:{workerName:{},initials:{},avatarSrc:{},interventionsLabel:{},stats:{},journey:{},labels:{},homeStepLabels:{}},emits:["close","intervention-click"],setup(a,{emit:e}){const t=a,n=e,i=l.computed(()=>typeof t.labels=="object"&&t.labels!==null?t.labels:{}),s=l.computed(()=>({close:m1(i.value.close,"Fermer")})),r=l.ref(null),o=g=>{if(g.key!=="Escape"||g.defaultPrevented)return;const v=document.activeElement;v&&v!==document.body&&r.value?.contains(v)!==!0||n("close")};l.onMounted(()=>document.addEventListener("keydown",o)),l.onBeforeUnmount(()=>document.removeEventListener("keydown",o));const c=Re("worker-day-panel-name"),d=l.computed(()=>c1(t.workerName)?String(t.workerName).trim():""),u=l.computed(()=>c1(t.initials)?String(t.initials).trim():void 0),h=l.computed(()=>c1(t.avatarSrc)?String(t.avatarSrc).trim():void 0),m=l.computed(()=>u.value!==void 0||h.value!==void 0),f=l.computed(()=>c1(t.interventionsLabel)),y=l.computed(()=>Array.isArray(t.stats)?t.stats.filter(g=>typeof g=="object"&&g!==null&&["label","value","range"].some(v=>c1(g[v]))):[]);return(g,v)=>(l.openBlock(),l.createElementBlock("aside",{ref_key:"rootRef",ref:r,class:"worker-day-panel","aria-labelledby":d.value?l.unref(c):void 0},[l.createElementVNode("header",hm,[l.createElementVNode("div",fm,[m.value?(l.openBlock(),l.createBlock(it,{key:0,class:"worker-day-panel__avatar",size:"lg",color:"primary",initials:u.value,src:h.value,"aria-hidden":"true"},null,8,["initials","src"])):l.createCommentVNode("",!0),l.createElementVNode("div",mm,[d.value?(l.openBlock(),l.createElementBlock("h2",{key:0,id:l.unref(c),class:"worker-day-panel__name",title:d.value},l.toDisplayString(d.value),9,pm)):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createElementBlock("p",vm,l.toDisplayString(a.interventionsLabel),1)):l.createCommentVNode("",!0)])]),l.createElementVNode("button",{type:"button",class:"worker-day-panel__close","aria-label":s.value.close,onClick:v[0]||(v[0]=A=>n("close"))},[l.createVNode(U,{iconName:"x",width:"24",height:"24",color:l.unref(j1),"aria-hidden":"true"},null,8,["color"])],8,gm)]),y.value.length>0?(l.openBlock(),l.createElementBlock("div",ym,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.value,(A,b)=>(l.openBlock(),l.createBlock(Bl,{key:b,label:A.label,value:A.value,range:A.range},null,8,["label","value","range"]))),128))])):l.createCommentVNode("",!0),g.$slots.map?(l.openBlock(),l.createElementBlock("div",Am,[l.renderSlot(g.$slots,"map")])):l.createCommentVNode("",!0),l.createVNode(Il,{steps:a.journey,title:i.value.journeyTitle,"home-step-labels":a.homeStepLabels,onInterventionClick:v[1]||(v[1]=A=>n("intervention-click",A))},null,8,["steps","title","home-step-labels"])],8,um))}});let Em=0;const se=l.ref([]);function wm(a,e="info",t=3e3){const n=++Em;se.value.push({id:n,message:a,intent:e}),setTimeout(()=>{se.value=se.value.filter(i=>i.id!==n)},t)}function Cm(a){se.value=se.value.filter(e=>e.id!==a)}function zm(){return{show:wm}}function Sm(a){a.provide("toasts",se),a.provide("removeToast",Cm)}const Mm=["NFC-Phone","NFC-card","accounting","activity","add-comment","address-book","administration","airplay","alert-circle","alert-octagon","alert-triangle","align-center","align-justify","align-left","align-right","almond","ambulance","anchor","aperture","arche-1","arche-2","arche-3","armchair","arrow-down-1-9","arrow-down-9-1","arrow-down-left","arrow-down-right","arrow-down-a-z","arrow-down-z-a","arrow-down","arrow-go","arrow-left","arrow-right","arrow-up-9-1","arrow-up-a-z","arrow-up-left","arrow-up-right","arrow-up","assistance","at-sign","attach","award","bacteria","bar-chart-2","bar-chart","bar-code","battery-charging","battery","bed","bell-off","bell-ring","bell","bike","birthday","bluetooth-off","bluetooth","book-open","book","bookmark","box-archive","box","briefcase","broom","budget-grid","budget-grid2","budget-grid3","budget-grid4","budget-grid5","budget","bug","bulb-broken","bulb","burger","bus","calc","calendar-alert","calendar-check","calendar-download","calendar-import","calendar-parameters","calendar-plus","calendar-warning","calendar","camera-off","camera","car-2","car","cardboard","cars","cast","cellular-network-2","cellular-network-3","cellular-network-4","cellular-network-head","cellular-network-top","certificat","chart","check-circle","check-square","check","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-down","chevrons-left","chevrons-right","chevrons-up","chrome","circle-full","circle-half","circle-quarter","circle-three-quarters","circle","circles","clipboard-check","clipboard-error","clipboard-full","clipboard-off","clipboard-plus","clipboard-warning","clipboard","clock","close","cloud-drizzle","cloud-lightning","cloud-off","cloud-rain","cloud-snow","cloud","column","combined-shape","command","company","company2","compass","computer","copy","copy2","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left-double-check","corner-up-left-double-error","corner-up-left-double-warning","corner-up-left","corner-up-right-check","corner-up-right-error","corner-up-right-warning","corner-up-right","cpu","crab","credit-card","cross-hair","customer-card","cut","delete","desk","disc","dog-2","dog","dome","door-open","door","dot","download-cloud","download","droplet","drugs","edit-2","edit-3","edit","education","egg","euro","export-image","extern-al-link","eye-off","eye","facebook","fall","fast-forward","faucet","fax","feather","female","feminin","file-close","file-doc","file-export","file-import","file-jpg","file-minus","file-off","file-pdf","file-plus","file-png","file-text","file-txt","file-warning","file-xls","file-xxx","file","files","film","filter-off","filter","fire","flag","folder-error","folder-open-error","folder-open-warning","folder-open","folder-warning","folder","folders","for-me","for-you","forbidden","fridge","furniture","github","globe","grant","grid-3","grid-empty","grid-header","grid-import","grid","haha","hands","hash","head-set","headphones","health-kit","health","heart-2","heart","hide-grid-header","history","holiday","home","hourglass","human","iban-rib","image","inbox","info","injection","instagram","invoice","itinerary","journey","key-2","key-3","key","keychain-off","keychain","km","law","layers","layout","letter-a-plus","letter-a","letter-c","letter-d","letter-m","letter-o","letter-sigma","letter-sigma2","letter-t","life-buoy","line","link-2","link","loader","loan","lock","log-in","log-out","macro","mail-check","mail-copy","mail-open","mail","male","mandatary","map-2","map-pin-off","map-pin","map","masculin","max","maximize-2","maximize","menu","message-circle","message-square-off","message-square","mic-off","mic","min","minimize-2","minimize","minus-circle","minus-square","minus","mms","mobile-call","monitor","moon","more-horizontal","more-vertical","move","music","navigation-2","navigation","network","newmenu","newspaper","nfc-hand","no_data","number-1","number-10","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","nurse","octagon","package","palette","paste","pause-circle","pause","pear","percent","phone-call","phone-forwarded","phone-hangs-up","phone-incoming","phone-keyboard","phone-missed-2","phone-missed","phone-off","phone-outgoing","phone","pie-chart-2","pie-chart","piggy-bank","pin","play-circle","play","plus-circle","plus-square","plus","pocket","pointer","power","prestataire","preview","printer-selection","printer","processing","qr-code","question-circle","question","questions","quote-close","quote-open","quote","radio-off","radio","rank","refresh-ccw","refresh-cw","repeat","reset","restaurant","restore-size","rewind","road-sign","rotate-ccw","rotate-cw","save","scan","scissors","search","select-line","send","server","settings-check","settings-ok","settings","share-2","share","share1","shield-2","shield","shopbag1","shopbag2","shower","shuffle","sidebar","sign-add","sign-remove","sign","sim-card","sink","skip-back","skip-forward","slack","slash","smartphone","smile","speaker","square","ssiad","star-full","star-half","star","stethoscope-plus","stethoscope","stop-circle","storage-2","storage","stroller","sugar","sun","sunrise","sunset","surprise","swim","tablet-2","tablet-synchro","tablet","tag","target","task-2","task","thermometer","thumbs-down","thumbs-up","time-constraint","timestamp","toggle-left","toggle-right","tools","torch-on","torch","traceability-off","traceability-on","transfert","transmission","trash-2","trash","trending-down","trending-up","triangle","truck","tune","twitter","type","umbrella","uniEAAB","uniEAAC","uniEAAD","uniEAAE","uniEAAF","uniEAB0","uniEAB1","uniEAB2","uniEAB3","uniEAB4","unlink","unlock","up-down","update-cell","update-month","update-type","update-year","update","upload-cloud","upload","user-admin","user-alert","user-check","user-lock","user-minus","user-plus","user-tie","user-x","user","users-alert","users-plus","users","vacuum","video-off","video","voicemail","volume-1","volume-2","volume-x","volume","voucher-2","voucher","walk","wallet","watch","wifi-1","wifi-2","wifi-3","wifi-off","wifi","wifi1","wind","workgroup","x-circle","x-square","x","youtube","zap","zoom-in","zoom-out"];O.Alert=Xl,O.AppointmentPopup=as,O.AvatarBase=it,O.ButtonBase=A3,O.CalendarBase=M9,O.CheckboxBase=B0,O.CompatibilityPopup=P9,O.CriterionRow=_i,O.DataGrid=Ru,O.DatePicker=fl,O.DayNavigator=Hu,O.DiffValue=Vl,O.FilterPanel=ph,O.FlyoutMenu=j2,O.HistoryBadge=Dl,O.HistoryFilter=wf,O.HistoryItem=Nf,O.HomeStep=zl,O.HoursCounterPopup=Zf,O.InputBase=Q2,O.InterventionCard=Sl,O.ListWithSearch=pl,O.LoaderBase=Fe,O.ModalBase=Lh,O.NavType=h1,O.RadioBase=Oh,O.ScoreBadge=Fi,O.ScoringPanel=Xh,O.SegmentedButton=sf,O.SelectBase=yl,O.SelectionGroup=gl,O.SideMenu=ff,O.SliderBase=Ml,O.StatCard=Bl,O.SvgIcon=U,O.TabBar=Ef,O.TagBase=Xi,O.TagStatus=nt,O.ToastBase=tm,O.ToggleAdvanced=Ff,O.ToggleBase=U2,O.TooltipBase=H3,O.TripPopup=Yf,O.WidgetBase=rm,O.WorkerDayJourney=Il,O.WorkerDayPanel=bm,O.countActiveFilters=lh,O.emptyFilterPanelValue=q2,O.iconNames=Mm,O.provideToast=Sm,O.useToast=zm,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));