@data-fair/app-dashboards 0.9.4 → 0.9.5

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.
@@ -24,4 +24,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
24
24
  - current synced src: ${this.syncedSrc}`),this.syncedSrc=this.fullSrc,this.emitState(),!this.appliedSrc||!this.iframeWindow)this.appliedSrc=this.fullSrc;else if(this.contentWindowRegistered)pn("replace location after change using postMessage",this.fullSrc),this.sendMessage({viframe:!0,stateAction:"replace",href:this.fullSrc});else{pn("replace location after change using iframe.location.replace",this.fullSrc);try{this.iframeWindow.location.replace(this.fullSrc)}catch(e){pn("failure to replace location, change src",e),this.appliedSrc=this.fullSrc}}},storeState(e){const t=new URL(window.location.href),n=new URL(this.src,window.location.href),i=new URL(this.syncedSrc);for(const l of[...t.searchParams.keys()])this.queryParamsExclude&&this.queryParamsExclude.includes(l)||i.searchParams.has(l)||t.searchParams.delete(l);for(const l of[...i.searchParams.keys()])this.queryParamsExtra&&l in this.queryParamsExtra||this.queryParamsInclude&&!this.queryParamsInclude.includes(l)||this.queryParamsExclude&&this.queryParamsExclude.includes(l)||t.searchParams.set(l,i.searchParams.get(l));if(n.pathname!==i.pathname&&!this.syncStateIgnorePath){let l=n.pathname;l.endsWith("/")||(l+="/");let a=i.pathname;a.startsWith(l)&&(a=a.replace(l,"./")),t.searchParams.set("p",a)}if(this.$route&&this.$router){const l={...this.$route.query};for(const a of[...t.searchParams.keys()])l[a]=t.searchParams.get(a);for(const a of Object.keys(l))t.searchParams.has(a)||(l[a]=void 0);if(JSON.stringify(l)===JSON.stringify(this.$route.query))return;pn(`apply state from iframe to parent using vue router
25
25
  - synced src: ${this.syncedSrc}
26
26
  - current query: ${JSON.stringify(this.$route.query)}
27
- - new query: ${JSON.stringify(l)}`),e==="push"?this.$router.push({query:l}):this.$router.replace({query:l})}else if(this.reactiveParams&&e!=="push"){pn("apply state from iframe to parent using reactive params",this.syncedSrc,t.search);for(const l of[...t.searchParams.keys()])this.reactiveParams[l]=t.searchParams.get(l);for(const l of Object.keys(this.reactiveParams))t.searchParams.has(l)||delete this.reactiveParams[l]}else{if(t.href===window.location.href)return;pn("apply state from iframe to parent using window.history",this.syncedSrc,t.search),e==="push"?history.pushState(null,"",t.href):history.replaceState(null,"",t.href)}},iframeLoaded(){this.loaded=!0,this.iframeResizer&&(window.iFrameResize?(this.scrolling!=="no"&&console.error("iframeResizer=true is only compatible with scrolling=no."),window.iFrameResize({log:Z0,scrolling:"no",onResized:()=>{this.resized=!0}},`#${this.id}`)):console.error("iframe-resizer is not available."))},sendMessage(e,t="*"){this.iframeWindow.postMessage(e,t)},resize(){const e=this.$el.getBoundingClientRect().width;this.actualWidth!==e&&e&&(this.actualWidth!==null&&this.redrawOnResize?(this.iframeWindow=null,this.actualWidth=null,this.$nextTick(()=>this.applyNewWidth(e))):this.applyNewWidth(e))},applyNewWidth(e,t=!0){this.actualWidth=e,this.$nextTick(()=>{const n=this.$el.getElementsByTagName("iframe")[0];if(!n)return t?this.applyNewWidth(e,!1):console.error("v-iframe - iframe element was not created after setting its width");this.iframeWindow=n.contentWindow,setTimeout(()=>{n.getBoundingClientRect()},300)})},setNotification(e){typeof e=="string"&&(e={msg:e}),e.error&&(e.type="error",e.errorMsg=e.error.response&&(e.error.response.data||e.error.response.status)||e.error.message||e.error),e.type=e.type||"default",this.notification=e,this.showNotification=!0},emitState(){this.$emit("state",{href:this.syncedSrc})}}},J0=["innerHTML"];function Q0(e,t,n,i,l,a){return ue(),je("div",{class:"v-iframe",style:On(`width:${n.width}`)},[a.actualAspectRatio?(ue(),We(Bs,{key:0,"aspect-ratio":a.actualAspectRatio,style:{height:"100%"}},{default:Te(()=>[e.actualWidth?(ue(),je("iframe",he({key:0},a.fullIframeAttrs,{onLoad:t[0]||(t[0]=s=>a.iframeLoaded())}),null,16)):it("",!0)]),_:1},8,["aspect-ratio"])):it("",!0),e.notification?(ue(),We(G0,he({key:1,ref:"notificationSnackbar",modelValue:e.showNotification,"onUpdate:modelValue":t[2]||(t[2]=s=>e.showNotification=s),class:"ui-notification"},a.fullSnackbarProps),{action:Te(({})=>[g(ri,{icon:"",onClick:t[1]||(t[1]=s=>e.showNotification=!1)},{default:Te(()=>[g(Ue,null,{default:Te(()=>t[3]||(t[3]=[At("mdi-close")])),_:1})]),_:1})]),default:Te(()=>[ii("p",null,Et(e.notification.msg),1),e.notification.errorMsg?(ue(),je("p",{key:0,class:"ml-3",innerHTML:e.notification.errorMsg},null,8,J0)):it("",!0)]),_:1},16,["modelValue"])):it("",!0)],4)}const Nu=H0(X0,[["render",Q0]]),ew=wa("v-alert-title"),tw=["success","info","warning","error"],nw=U({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Oe,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>tw.includes(e)},..._e(),...qt(),...Wt(),...Wn(),...bl(),...Ia(),...Rt(),...Je(),...at(),...hn({variant:"flat"})},"VAlert"),iw=re()({name:"VAlert",props:nw(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const l=Ye(e,"modelValue"),a=w(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),s=w(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:r}=ot(e),{colorClasses:u,colorStyles:f,variantClasses:o}=fi(s),{densityClasses:d}=tn(e),{dimensionStyles:c}=Ut(e),{elevationClasses:m}=Un(e),{locationStyles:v}=Ea(e),{positionClasses:h}=Fa(e),{roundedClasses:p}=Bt(e),{textColorClasses:C,textColorStyles:V}=jt(ne(e,"borderColor")),{t:P}=Ri(),k=w(()=>({"aria-label":P(e.closeLabel),onClick(A){l.value=!1,n("click:close",A)}}));return()=>{const A=!!(i.prepend||a.value),S=!!(i.title||e.title),E=!!(i.close||e.closable);return l.value&&g(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},r.value,u.value,d.value,m.value,h.value,p.value,o.value,e.class],style:[f.value,c.value,v.value,e.style],role:"alert"},{default:()=>{var x,I;return[di(!1,"v-alert"),e.border&&g("div",{key:"border",class:["v-alert__border",C.value],style:V.value},null),A&&g("div",{key:"prepend",class:"v-alert__prepend"},[i.prepend?g(tt,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{density:e.density,icon:a.value,size:e.prominent?44:28}}},i.prepend):g(Ue,{key:"prepend-icon",density:e.density,icon:a.value,size:e.prominent?44:28},null)]),g("div",{class:"v-alert__content"},[S&&g(ew,{key:"title"},{default:()=>{var B;return[((B=i.title)==null?void 0:B.call(i))??e.title]}}),((x=i.text)==null?void 0:x.call(i))??e.text,(I=i.default)==null?void 0:I.call(i)]),i.append&&g("div",{key:"append",class:"v-alert__append"},[i.append()]),E&&g("div",{key:"close",class:"v-alert__close"},[i.close?g(tt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var B;return[(B=i.close)==null?void 0:B.call(i,{props:k.value})]}}):g(ri,he({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},k.value),null)])]}})}}}),lw={key:1,class:"mt-4"},Hu={__name:"dashboard-element",props:{element:{type:Object,required:!0},height:{type:Number,default:400},filtersValues:{type:[Object,null],required:!0}},setup(e){const t=e,n=window.APPLICATION.configuration,i=Object.assign({},...n.datasets[0].schema.map(o=>({[o.key]:o}))),l=w(()=>{const o={...t.filtersValues};return Ve.primary&&(o.primary=Ve.primary),Ve.secondary&&(o.secondary=Ve.secondary),o}),r=window.APPLICATION.exposedUrl.split("/").pop().split("%3A"),u=r.length===2?r[0]:null,f=w(()=>(t.element.valueMandatory&&t.element.mandatoryFilters||[]).filter(o=>{var d,c;return!((c=(d=t.filtersValues)==null?void 0:d.keys)!=null&&c.includes(o))}));return(o,d)=>f.value.length?(ue(),We(iw,{key:0,type:"info",variant:"outlined"},{default:Te(()=>[ii("h4",null,"Veuillez sélectionner une valeur de "+Et(f.value.map(c=>J(i)[c].label||J(i)[c].title||J(i)[c]["x-originalName"]||c).join(", ")),1)]),_:1})):e.element.type==="tablePreview"?(ue(),We(J(Nu),{key:1,src:`/data-fair/embed/dataset/${J(u)?J(u)+"%3A":""}${(e.element.dataset||J(n).datasets[0]).id}/table?display=${e.element.display}&interaction=${!e.element.noInteractions}${e.element.fields.length?"&cols="+e.element.fields.join(","):""}`,"query-params-extra":l.value,style:On(`height:${e.height>0?e.height+"px":"100%"}`)},null,8,["src","query-params-extra","style"])):(ue(),je("div",{key:2,style:On(`overflow-y:auto;height:${e.height>0?e.height+"px":"100%"}`)},[e.element.type==="application"?(ue(),We(J(Nu),{key:0,src:`/data-fair/app/${J(u)?J(u)+"%3A":""}${e.element.application.id}`,"query-params-extra":l.value,style:On(e.element.application.baseApp.meta["df:overflow"]!=="true"?`height:${e.height>0?e.height+"px":"100%"}`:"")},null,8,["src","query-params-extra","style"])):e.element.type==="text"?(ue(),je("div",lw,Et(e.element.content),1)):it("",!0)],4))}},aw={__name:"dashboard-column",props:{element:{type:Object,required:!0},height:{type:Number,default:400},filtersValues:{type:[Object,null],required:!0}},setup(e){return(t,n)=>e.element.type==="column"?(ue(!0),je(ve,{key:0},rn(e.element.elements,(i,l)=>(ue(),We(Hu,{key:l,element:i,height:e.height/e.element.elements.length,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))),128)):(ue(),We(Hu,{key:1,element:e.element,height:e.height,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))}},sw={key:0,class:"text-h5 mt-8"},rw={key:1,class:"mt-4"},ow={key:0,class:"text-h6 mt-4"},Tl={__name:"dashboard-section",props:{section:{type:Object,required:!0},filtersValues:{type:[Object,null],required:!0},hideTitle:{type:Boolean,default:!1}},setup(e){const t=e,n={sm:[6,12,12],md:[4,6,8],lg:[3,4,6],xl:[2,3,6]};for(const i of t.section.rows)for(const l of["sm","md","lg","xl"]){let a=0;for(;a<i.elements.length;){let s=a,r=0;for(;s<i.elements.length&&r+n[l][i.elements[s].width-1]<=12;)r+=n[l][i.elements[s].width-1],s+=1;for(let u=a;u<s;u++)i.elements[u][l]=Math.floor(.3+12*n[l][i.elements[u].width-1]/r),i.elements[u].class=i.elements[u].class||(i.elements[u].type==="text"?["order-first"]:[]),i.elements[u].type==="text"&&i.elements[u][l]===12?i.elements[u].class.push("order-"+l+"-first"):i.elements[u].class.push("order-"+l+"-"+(u+1));a=s}}return(i,l)=>(ue(),je(ve,null,[e.hideTitle?it("",!0):(ue(),je("h3",sw,[e.section.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:e.section.icon.svgPath},null,8,["icon"]),l[0]||(l[0]=At("   "))],64)):it("",!0),At(" "+Et(e.section.title),1)])),e.section.description?(ue(),je("p",rw,Et(e.section.description),1)):it("",!0),(ue(!0),je(ve,null,rn(e.section.rows||[],(a,s)=>(ue(),We(Fi,{key:s,justify:"center"},{default:Te(()=>[(ue(!0),je(ve,null,rn(a.elements||[],(r,u)=>(ue(),We(cn,{key:u,cols:12,sm:r.sm,md:r.md,lg:r.lg,xl:r.xl,class:fa(r.class?r.class.join(" "):"")},{default:Te(()=>[r.title?(ue(),je("h4",ow,Et(r.title),1)):it("",!0),g(aw,{element:r,height:a.height,"filters-values":e.filtersValues},null,8,["element","height","filters-values"])]),_:2},1032,["sm","md","lg","xl","class"]))),128))]),_:2},1024))),128))],64))}},dl=Symbol.for("vuetify:v-expansion-panel"),hv=U({..._e(),...Wr()},"VExpansionPanelText"),Us=re()({name:"VExpansionPanelText",props:hv(),setup(e,t){let{slots:n}=t;const i=qe(dl);if(!i)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:l,onAfterLeave:a}=Ur(e,i.isSelected);return ye(()=>g(gf,{onAfterLeave:a},{default:()=>{var s;return[ht(g("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&l.value&&g("div",{class:"v-expansion-panel-text__wrapper"},[(s=n.default)==null?void 0:s.call(n)])]),[[jn,i.isSelected.value]])]}})),{}}}),gv=U({color:String,expandIcon:{type:Oe,default:"$expand"},collapseIcon:{type:Oe,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,..._e(),...Wt()},"VExpansionPanelTitle"),qs=re()({name:"VExpansionPanelTitle",directives:{Ripple:$i},props:gv(),setup(e,t){let{slots:n}=t;const i=qe(dl);if(!i)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:l,backgroundColorStyles:a}=Zt(e,"color"),{dimensionStyles:s}=Ut(e),r=w(()=>({collapseIcon:e.collapseIcon,disabled:i.disabled.value,expanded:i.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),u=w(()=>i.isSelected.value?e.collapseIcon:e.expandIcon);return ye(()=>{var f;return ht(g("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":i.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},l.value,e.class],style:[a.value,s.value,e.style],type:"button",tabindex:i.disabled.value?-1:void 0,disabled:i.disabled.value,"aria-expanded":i.isSelected.value,onClick:e.readonly?void 0:i.toggle},[g("span",{class:"v-expansion-panel-title__overlay"},null),(f=n.default)==null?void 0:f.call(n,r.value),!e.hideActions&&g(tt,{defaults:{VIcon:{icon:u.value}}},{default:()=>{var o;return[g("span",{class:"v-expansion-panel-title__icon"},[((o=n.actions)==null?void 0:o.call(n,r.value))??g(Ue,null,null)])]}})]),[[Vn("ripple"),e.ripple]])}),{}}}),yv=U({title:String,text:String,bgColor:String,...Wn(),..._a(),...Rt(),...Je(),...gv(),...hv()},"VExpansionPanel"),uw=re()({name:"VExpansionPanel",props:yv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=Pa(e,dl),{backgroundColorClasses:l,backgroundColorStyles:a}=Zt(e,"bgColor"),{elevationClasses:s}=Un(e),{roundedClasses:r}=Bt(e),u=w(()=>(i==null?void 0:i.disabled.value)||e.disabled),f=w(()=>i.group.items.value.reduce((c,m,v)=>(i.group.selected.value.includes(m.id)&&c.push(v),c),[])),o=w(()=>{const c=i.group.items.value.findIndex(m=>m.id===i.id);return!i.isSelected.value&&f.value.some(m=>m-c===1)}),d=w(()=>{const c=i.group.items.value.findIndex(m=>m.id===i.id);return!i.isSelected.value&&f.value.some(m=>m-c===-1)});return wt(dl,i),ye(()=>{const c=!!(n.text||e.text),m=!!(n.title||e.title),v=qs.filterProps(e),h=Us.filterProps(e);return g(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":i.isSelected.value,"v-expansion-panel--before-active":o.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":u.value},r.value,l.value,e.class],style:[a.value,e.style]},{default:()=>[g("div",{class:["v-expansion-panel__shadow",...s.value]},null),g(tt,{defaults:{VExpansionPanelTitle:{...v},VExpansionPanelText:{...h}}},{default:()=>{var p;return[m&&g(qs,{key:"title"},{default:()=>[n.title?n.title():e.title]}),c&&g(Us,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(p=n.default)==null?void 0:p.call(n)]}})]})}),{groupItem:i}}}),cw=["default","accordion","inset","popout"],dw=U({flat:Boolean,...ka(),...Cr(yv(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...at(),..._e(),...Je(),variant:{type:String,default:"default",validator:e=>cw.includes(e)}},"VExpansionPanels"),fw=re()({name:"VExpansionPanels",props:dw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:i,prev:l}=pl(e,dl),{themeClasses:a}=ot(e),s=w(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return zn({VExpansionPanel:{bgColor:ne(e,"bgColor"),collapseIcon:ne(e,"collapseIcon"),color:ne(e,"color"),eager:ne(e,"eager"),elevation:ne(e,"elevation"),expandIcon:ne(e,"expandIcon"),focusable:ne(e,"focusable"),hideActions:ne(e,"hideActions"),readonly:ne(e,"readonly"),ripple:ne(e,"ripple"),rounded:ne(e,"rounded"),static:ne(e,"static")}}),ye(()=>g(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,s.value,e.class],style:e.style},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n,{prev:l,next:i})]}})),{next:i,prev:l}}}),vw=U({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Dr(),...Rr()},"VSwitch"),mw=re()({name:"VSwitch",inheritAttrs:!1,props:vw(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const l=Ye(e,"indeterminate"),a=Ye(e,"modelValue"),{loaderClasses:s}=La(e),{isFocused:r,focus:u,blur:f}=Br(e),o=X(),d=Re&&window.matchMedia("(forced-colors: active)").matches,c=w(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=Qt(),v=w(()=>e.id||`switch-${m}`);function h(){l.value&&(l.value=!1)}function p(C){var V,P;C.stopPropagation(),C.preventDefault(),(P=(V=o.value)==null?void 0:V.input)==null||P.click()}return ye(()=>{const[C,V]=xr(n),P=ia.filterProps(e),k=na.filterProps(e);return g(ia,he({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":l.value},s.value,e.class]},C,P,{modelValue:a.value,"onUpdate:modelValue":A=>a.value=A,id:v.value,focused:r.value,style:e.style}),{...i,default:A=>{let{id:S,messagesId:E,isDisabled:x,isReadonly:I,isValid:B}=A;const R={model:a,isValid:B};return g(na,he({ref:o},k,{modelValue:a.value,"onUpdate:modelValue":[T=>a.value=T,h],id:S.value,"aria-describedby":E.value,type:"checkbox","aria-checked":l.value?"mixed":void 0,disabled:x.value,readonly:I.value,onFocus:u,onBlur:f},V),{...i,default:T=>{let{backgroundColorClasses:F,backgroundColorStyles:D}=T;return g("div",{class:["v-switch__track",d?void 0:F.value],style:D.value,onClick:p},[i["track-true"]&&g("div",{key:"prepend",class:"v-switch__track-true"},[i["track-true"](R)]),i["track-false"]&&g("div",{key:"append",class:"v-switch__track-false"},[i["track-false"](R)])])},input:T=>{let{inputNode:F,icon:D,backgroundColorClasses:G,backgroundColorStyles:Z}=T;return g(ve,null,[F,g("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||e.loading},e.inset||d?void 0:G.value],style:e.inset?void 0:Z.value},[i.thumb?g(tt,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[i.thumb({...R,icon:D})]}):g(kb,null,{default:()=>[e.loading?g(Gr,{name:"v-switch",active:!0,color:B.value===!1?void 0:c.value},{default:te=>i.loader?i.loader(te):g(dv,{active:te.isActive,color:te.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&g(Ue,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}}),Jr=Symbol.for("vuetify:v-tabs"),hw=U({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...vn(fv({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),pv=re()({name:"VTab",props:hw(),setup(e,t){let{slots:n,attrs:i}=t;const{textColorClasses:l,textColorStyles:a}=jt(e,"sliderColor"),s=X(),r=X(),u=w(()=>e.direction==="horizontal"),f=w(()=>{var d,c;return((c=(d=s.value)==null?void 0:d.group)==null?void 0:c.isSelected.value)??!1});function o(d){var m,v;let{value:c}=d;if(c){const h=(v=(m=s.value)==null?void 0:m.$el.parentElement)==null?void 0:v.querySelector(".v-tab--selected .v-tab__slider"),p=r.value;if(!h||!p)return;const C=getComputedStyle(h).color,V=h.getBoundingClientRect(),P=p.getBoundingClientRect(),k=u.value?"x":"y",A=u.value?"X":"Y",S=u.value?"right":"bottom",E=u.value?"width":"height",x=V[k],I=P[k],B=x>I?V[S]-P[S]:V[k]-P[k],R=Math.sign(B)>0?u.value?"right":"bottom":Math.sign(B)<0?u.value?"left":"top":"center",F=(Math.abs(B)+(Math.sign(B)<0?V[E]:P[E]))/Math.max(V[E],P[E])||0,D=V[E]/P[E]||0,G=1.5;Xn(p,{backgroundColor:[C,"currentcolor"],transform:[`translate${A}(${B}px) scale${A}(${D})`,`translate${A}(${B/G}px) scale${A}(${(F-1)/G+1})`,"none"],transformOrigin:Array(3).fill(R)},{duration:225,easing:sl})}}return ye(()=>{const d=ri.filterProps(e);return g(ri,he({symbol:Jr,ref:s,class:["v-tab",e.class],style:e.style,tabindex:f.value?0:-1,role:"tab","aria-selected":String(f.value),active:!1},d,i,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":o}),{...n,default:()=>{var c;return g(ve,null,[((c=n.default)==null?void 0:c.call(n))??e.text,!e.hideSlider&&g("div",{ref:r,class:["v-tab__slider",l.value],style:a.value},null)])}})}),Di({},s)}}),gw=e=>{const{touchstartX:t,touchendX:n,touchstartY:i,touchendY:l}=e,a=.5,s=16;e.offsetX=n-t,e.offsetY=l-i,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-s&&e.left(e),e.right&&n>t+s&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&l<i-s&&e.up(e),e.down&&l>i+s&&e.down(e))};function yw(e,t){var i;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(i=t.start)==null||i.call(t,{originalEvent:e,...t})}function pw(e,t){var i;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(i=t.end)==null||i.call(t,{originalEvent:e,...t}),gw(t)}function bw(e,t){var i;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(i=t.move)==null||i.call(t,{originalEvent:e,...t})}function ww(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>yw(n,t),touchend:n=>pw(n,t),touchmove:n=>bw(n,t)}}function Cw(e,t){var r;const n=t.value,i=n!=null&&n.parent?e.parentElement:e,l=(n==null?void 0:n.options)??{passive:!0},a=(r=t.instance)==null?void 0:r.$.uid;if(!i||!a)return;const s=ww(t.value);i._touchHandlers=i._touchHandlers??Object.create(null),i._touchHandlers[a]=s,gd(s).forEach(u=>{i.addEventListener(u,s[u],l)})}function Sw(e,t){var a,s;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,i=(s=t.instance)==null?void 0:s.$.uid;if(!(n!=null&&n._touchHandlers)||!i)return;const l=n._touchHandlers[i];gd(l).forEach(r=>{n.removeEventListener(r,l[r])}),delete n._touchHandlers[i]}const bv={mounted:Cw,unmounted:Sw},xw=bv,wv=Symbol.for("vuetify:v-window"),Cv=Symbol.for("vuetify:v-window-group"),Sv=U({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},..._e(),...Je(),...at()},"VWindow"),Ks=re()({name:"VWindow",directives:{Touch:bv},props:Sv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=ot(e),{isRtl:l}=en(),{t:a}=Ri(),s=pl(e,Cv),r=X(),u=w(()=>l.value?!e.reverse:e.reverse),f=ge(!1),o=w(()=>{const k=e.direction==="vertical"?"y":"x",S=(u.value?!f.value:f.value)?"-reverse":"";return`v-window-${k}${S}-transition`}),d=ge(0),c=X(void 0),m=w(()=>s.items.value.findIndex(k=>s.selected.value.includes(k.id)));de(m,(k,A)=>{const S=s.items.value.length,E=S-1;S<=2?f.value=k<A:k===E&&A===0?f.value=!0:k===0&&A===E?f.value=!1:f.value=k<A}),wt(wv,{transition:o,isReversed:f,transitionCount:d,transitionHeight:c,rootRef:r});const v=w(()=>e.continuous||m.value!==0),h=w(()=>e.continuous||m.value!==s.items.value.length-1);function p(){v.value&&s.prev()}function C(){h.value&&s.next()}const V=w(()=>{const k=[],A={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:s.prev,"aria-label":a("$vuetify.carousel.prev")};k.push(v.value?n.prev?n.prev({props:A}):g(ri,A,null):g("div",null,null));const S={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:s.next,"aria-label":a("$vuetify.carousel.next")};return k.push(h.value?n.next?n.next({props:S}):g(ri,S,null):g("div",null,null)),k}),P=w(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?p():C()},right:()=>{u.value?C():p()},start:A=>{let{originalEvent:S}=A;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return ye(()=>ht(g(e.tag,{ref:r,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},i.value,e.class],style:e.style},{default:()=>{var k,A;return[g("div",{class:"v-window__container",style:{height:c.value}},[(k=n.default)==null?void 0:k.call(n,{group:s}),e.showArrows!==!1&&g("div",{class:"v-window__controls"},[V.value])]),(A=n.additional)==null?void 0:A.call(n,{group:s})]}}),[[Vn("touch"),P.value]])),{group:s}}}),kw=U({...vn(Sv(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),_w=re()({name:"VTabsWindow",props:kw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=qe(Jr,null),l=Ye(e,"modelValue"),a=w({get(){var s;return l.value!=null||!i?l.value:(s=i.items.value.find(r=>i.selected.value.includes(r.id)))==null?void 0:s.value},set(s){l.value=s}});return ye(()=>{const s=Ks.filterProps(e);return g(Ks,he({_as:"VTabsWindow"},s,{modelValue:a.value,"onUpdate:modelValue":r=>a.value=r,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),xv=U({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},..._e(),..._a(),...Wr()},"VWindowItem"),Gs=re()({name:"VWindowItem",directives:{Touch:xw},props:xv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=qe(wv),l=Pa(e,Cv),{isBooted:a}=zr();if(!i||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=ge(!1),r=w(()=>a.value&&(i.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!s.value||!i||(s.value=!1,i.transitionCount.value>0&&(i.transitionCount.value-=1,i.transitionCount.value===0&&(i.transitionHeight.value=void 0)))}function f(){var v;s.value||!i||(s.value=!0,i.transitionCount.value===0&&(i.transitionHeight.value=Se((v=i.rootRef.value)==null?void 0:v.clientHeight)),i.transitionCount.value+=1)}function o(){u()}function d(v){s.value&&st(()=>{!r.value||!s.value||!i||(i.transitionHeight.value=Se(v.clientHeight))})}const c=w(()=>{const v=i.isReversed.value?e.reverseTransition:e.transition;return r.value?{name:typeof v!="string"?i.transition.value:v,onBeforeEnter:f,onAfterEnter:u,onEnterCancelled:o,onBeforeLeave:f,onAfterLeave:u,onLeaveCancelled:o,onEnter:d}:!1}),{hasContent:m}=Ur(e,l.isSelected);return ye(()=>g(Sn,{transition:c.value,disabled:!a.value},{default:()=>{var v;return[ht(g("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[m.value&&((v=n.default)==null?void 0:v.call(n))]),[[jn,l.isSelected.value]])]}})),{groupItem:l}}}),Pw=U({...xv()},"VTabsWindowItem"),Vw=re()({name:"VTabsWindowItem",props:Pw(),setup(e,t){let{slots:n}=t;return ye(()=>{const i=Gs.filterProps(e);return g(Gs,he({_as:"VTabsWindowItem"},i,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Aw(e){return e?e.map(t=>hd(t)?t:{text:t,value:t}):[]}const Tw=U({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Nr({mandatory:"force",selectedClass:"v-tab-item--selected"}),...qt(),...Je()},"VTabs"),Ew=re()({name:"VTabs",props:Tw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const l=Ye(e,"modelValue"),a=w(()=>Aw(e.items)),{densityClasses:s}=tn(e),{backgroundColorClasses:r,backgroundColorStyles:u}=Zt(ne(e,"bgColor")),{scopeId:f}=Ta();return zn({VTab:{color:ne(e,"color"),direction:ne(e,"direction"),stacked:ne(e,"stacked"),fixed:ne(e,"fixedTabs"),sliderColor:ne(e,"sliderColor"),hideSlider:ne(e,"hideSlider")}}),ye(()=>{const o=la.filterProps(e),d=!!(i.window||e.items.length>0);return g(ve,null,[g(la,he(o,{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},s.value,r.value,e.class],style:[{"--v-tabs-height":Se(e.height)},u.value,e.style],role:"tablist",symbol:Jr},f,n),{default:()=>{var c;return[((c=i.default)==null?void 0:c.call(i))??a.value.map(m=>{var v;return((v=i.tab)==null?void 0:v.call(i,{item:m}))??g(pv,he(m,{key:m.text,value:m.value}),{default:i[`tab.${m.value}`]?()=>{var h;return(h=i[`tab.${m.value}`])==null?void 0:h.call(i,{item:m})}:void 0})})]}}),d&&g(_w,he({modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,key:"tabs-window"},f),{default:()=>{var c;return[a.value.map(m=>{var v;return((v=i.item)==null?void 0:v.call(i,{item:m}))??g(Vw,{value:m.value},{default:()=>{var h;return(h=i[`item.${m.value}`])==null?void 0:h.call(i,{item:m})}})}),(c=i.window)==null?void 0:c.call(i)]}})])}),{}}}),Lw={key:0,class:"text-h4 text-center"},Iw={key:1,class:"mt-2"},Fw={__name:"dashboard",setup(e){const t=window.APPLICATION,n=t.configuration,i=o=>{console.error(o),ea(t.href+"/error",{method:"POST",body:{message:o.message||o}})};if(Ve.draft==="true"&&window.parent){const o=[].concat(...n.sections.map(c=>[].concat(...c.rows.map(m=>[].concat(...m.elements))))),d=o.filter(c=>c.type==="application"&&c.application).map(c=>({id:c.application.id,title:c.application.title})).filter((c,m,v)=>v.findIndex(h=>c.id===h.id)===m);if((n.applications||[]).map(c=>c.id).join("-")!==d.map(c=>c.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"applications",value:d}},"*"),n.datasets&&n.datasets.length){const c=n.datasets[0],m=o.filter(v=>v.type==="tablePreview"&&v.dataset).map(v=>({id:v.dataset.id,title:v.dataset.title,href:v.dataset.href})).filter((v,h,p)=>v.id!==c.id&&p.findIndex(C=>v.id===C.id)===h);m.unshift(c),(n.datasets||[]).map(v=>v.id).join("-")!==m.map(v=>v.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"datasets",value:m}},"*")}}const l=[X({}),X({})],a=[X(null),X(null)];let s=0,r=0;if(!n.datasets||!n.datasets.length)i("Veuillez choisir un source de données pour le filtre commun");else if((!n.filters||!n.filters.length)&&!n.periodFilter&&!n.addressFilter)i("Veuillez configurer un filtre");else{const o="_d_"+n.datasets[0].id+"_";for(const d of n.filters)!Ve[o+d.labelField+"_in"]&&d.forceOneValue&&d.startValue&&(Ve[o+d.labelField+"_in"]=d.startValue);if(n.periodFilter&&!Ve.period){const d=(n.datasets[0].timePeriod?n.datasets[0].timePeriod.startDate:new Date().toISOString()).slice(0,10),c=(n.datasets[0].timePeriod?n.datasets[0].timePeriod.endDate:new Date().toISOString()).slice(0,10),m=[d];d!==c&&m.push(c),Ve.period=m.join(",")}s=Math.max(...n.sections.map(d=>d.title&&d.title.length||0)),r=n.sections.reduce((d,c)=>d+(c.title&&c.title.length||0),0)}function f(o){o?Ve.view="compare":delete Ve.view}return(o,d)=>{var c;return(c=J(n).filters)!=null&&c.length||J(n).periodFilter||J(n).addressFilter?(ue(),We(p0,{key:0,fluid:"","data-iframe-height":""},{default:Te(()=>[J(n).title?(ue(),je("h2",Lw,Et(J(n).title),1)):it("",!0),J(n).description?(ue(),je("p",Iw,Et(J(n).description),1)):it("",!0),J(n).allowDuplicate?(ue(),We(mw,{key:2,label:"Mode comparaison",density:"compact","model-value":J(Ve).view==="compare",style:{"max-height":"40px"},"onUpdate:modelValue":f},null,8,["model-value"])):it("",!0),g(Fi,null,{default:Te(()=>[(ue(!0),je(ve,null,rn(J(Ve).view==="compare"?[0,1]:[0],m=>(ue(),We(cn,{key:m,cols:J(Ve).view==="compare"?6:12},{default:Te(()=>[g(N0,{config:J(n),prefix:m?"c":"","onUpdate:modelValue":v=>l[m].value=v},null,8,["config","prefix","onUpdate:modelValue"]),J(n).sections.length===1?(ue(),We(Tl,{key:0,section:J(n).sections[0],"filters-values":l[m].value},null,8,["section","filters-values"])):J(n).sectionsGroup.includes("tabs")?(ue(),je(ve,{key:1},[J(n).sectionsGroup==="tabs-tab"?(ue(),We(Ew,{key:0,modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v,class:"mb-3",color:"primary","fixed-tabs":J(s)<=30,grow:J(s)>30&&J(r)<200,direction:J(r)>=200?"vertical":"horizontal"},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(pv,{key:h,value:h},{default:Te(()=>[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[0]||(d[0]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","fixed-tabs","grow","direction"])):J(n).sectionsGroup==="tabs-button"?(ue(),We(Fi,{key:1},{default:Te(()=>[g(Bu),g(cn,{cols:"auto"},{default:Te(()=>[g(ov,{variant:"outlined"},{default:Te(()=>[g(z0,{modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v,color:"primary",mandatory:"",style:On(J(r)*15>=o.$vuetify.display.width?`flex-direction: column;height:${J(n).sections.length*36}px`:"")},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(ri,{key:h,value:h,height:J(r)*15>=o.$vuetify.display.width?36:48},{default:Te(()=>[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[1]||(d[1]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)]),_:2},1032,["value","height"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style"])]),_:2},1024)]),_:2},1024),g(Bu)]),_:2},1024)):it("",!0),g(Ks,{modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(Gs,{key:h,value:h},{default:Te(()=>[g(Tl,{section:v,"filters-values":l[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):J(n).sectionsGroup==="accordion"?(ue(),We(fw,{key:2,multiple:"",variant:"accordion","model-value":J(n).sections.map((v,h)=>h)},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(uw,{key:h,value:h,eager:""},{default:Te(()=>[g(qs,{class:"bg-primary"},{default:Te(()=>[ii("h3",null,[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[2]||(d[2]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)])]),_:2},1024),g(Us,null,{default:Te(()=>[g(Tl,{section:v,"filters-values":l[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:2},1032,["model-value"])):(ue(!0),je(ve,{key:3},rn(J(n).sections||[],(v,h)=>(ue(),je("div",{key:h,class:"my-6"},[ii("h2",null,[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[3]||(d[3]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)]),g(Tl,{section:v,"filters-values":l[m].value,"hide-title":""},null,8,["section","filters-values"])]))),128))]),_:2},1032,["cols"]))),128))]),_:1})]),_:1})):it("",!0)}}},Ow=U({..._e(),...Zy({fullHeight:!0}),...at()},"VApp"),Mw=re()({name:"VApp",props:Ow(),setup(e,t){let{slots:n}=t;const i=ot(e),{layoutClasses:l,getLayoutItem:a,items:s,layoutRef:r}=Jy(e),{rtlClasses:u}=en();return ye(()=>{var f;return g("div",{ref:r,class:["v-application",i.themeClasses.value,l.value,u.value,e.class],style:[e.style]},[g("div",{class:"v-application__wrap"},[(f=n.default)==null?void 0:f.call(n)])])}),{getLayoutItem:a,items:s,theme:i}}}),Rw=U({scrollable:Boolean,..._e(),...Wt(),...Je({tag:"main"})},"VMain"),Bw=re()({name:"VMain",props:Rw(),setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=Ut(e),{mainStyles:l}=Hd(),{ssrBootStyles:a}=zr();return ye(()=>g(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[l.value,a.value,i.value,e.style]},{default:()=>{var s,r;return[e.scrollable?g("div",{class:"v-main__scroller"},[(s=n.default)==null?void 0:s.call(n)]):(r=n.default)==null?void 0:r.call(n)]}})),{}}}),$w={__name:"app",setup(e){return(t,n)=>(ue(),We(Mw,null,{default:Te(()=>[g(Bw,null,{default:Te(()=>[(ue(),We(lh,null,{default:Te(()=>[g(Fw)]),_:1}))]),_:1})]),_:1}))}},Dw={collapse:"svg:M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",complete:"svg:M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"svg:M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"svg:M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"svg:M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"svg:M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"svg:M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"svg:M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"svg:M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"svg:M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"svg:M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"svg:M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sortAsc:"svg:M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",sortDesc:"svg:M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",expand:"svg:M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"svg:M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"svg:M7,10L12,15L17,10H7Z",dropdown:"svg:M7,10L12,15L17,10H7Z",radioOn:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"svg:M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"svg:M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"svg:M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"svg:M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"svg:M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"svg:M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"svg:M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"svg:M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"svg:M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"svg:M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"svg:M19,13H5V11H19V13Z",calendar:"svg:M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",treeviewCollapse:"svg:M7,10L12,15L17,10H7Z",treeviewExpand:"svg:M10,17L15,12L10,7V17Z",eyeDropper:"svg:M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"},Nw={component:Ir};window.iFrameResizer={heightCalculationMethod:"taggedElement"};const Qr=np(Ve);Qr.icons={defaultSet:"mdi",aliases:Dw,sets:{mdi:Nw}};delete Qr.defaults;const kv=Jh($w);kv.use(jd(Qr));kv.mount("#app");
27
+ - new query: ${JSON.stringify(l)}`),e==="push"?this.$router.push({query:l}):this.$router.replace({query:l})}else if(this.reactiveParams&&e!=="push"){pn("apply state from iframe to parent using reactive params",this.syncedSrc,t.search);for(const l of[...t.searchParams.keys()])this.reactiveParams[l]=t.searchParams.get(l);for(const l of Object.keys(this.reactiveParams))t.searchParams.has(l)||delete this.reactiveParams[l]}else{if(t.href===window.location.href)return;pn("apply state from iframe to parent using window.history",this.syncedSrc,t.search),e==="push"?history.pushState(null,"",t.href):history.replaceState(null,"",t.href)}},iframeLoaded(){this.loaded=!0,this.iframeResizer&&(window.iFrameResize?(this.scrolling!=="no"&&console.error("iframeResizer=true is only compatible with scrolling=no."),window.iFrameResize({log:Z0,scrolling:"no",onResized:()=>{this.resized=!0}},`#${this.id}`)):console.error("iframe-resizer is not available."))},sendMessage(e,t="*"){this.iframeWindow.postMessage(e,t)},resize(){const e=this.$el.getBoundingClientRect().width;this.actualWidth!==e&&e&&(this.actualWidth!==null&&this.redrawOnResize?(this.iframeWindow=null,this.actualWidth=null,this.$nextTick(()=>this.applyNewWidth(e))):this.applyNewWidth(e))},applyNewWidth(e,t=!0){this.actualWidth=e,this.$nextTick(()=>{const n=this.$el.getElementsByTagName("iframe")[0];if(!n)return t?this.applyNewWidth(e,!1):console.error("v-iframe - iframe element was not created after setting its width");this.iframeWindow=n.contentWindow,setTimeout(()=>{n.getBoundingClientRect()},300)})},setNotification(e){typeof e=="string"&&(e={msg:e}),e.error&&(e.type="error",e.errorMsg=e.error.response&&(e.error.response.data||e.error.response.status)||e.error.message||e.error),e.type=e.type||"default",this.notification=e,this.showNotification=!0},emitState(){this.$emit("state",{href:this.syncedSrc})}}},J0=["innerHTML"];function Q0(e,t,n,i,l,a){return ue(),je("div",{class:"v-iframe",style:On(`width:${n.width}`)},[a.actualAspectRatio?(ue(),We(Bs,{key:0,"aspect-ratio":a.actualAspectRatio,style:{height:"100%"}},{default:Te(()=>[e.actualWidth?(ue(),je("iframe",he({key:0},a.fullIframeAttrs,{onLoad:t[0]||(t[0]=s=>a.iframeLoaded())}),null,16)):it("",!0)]),_:1},8,["aspect-ratio"])):it("",!0),e.notification?(ue(),We(G0,he({key:1,ref:"notificationSnackbar",modelValue:e.showNotification,"onUpdate:modelValue":t[2]||(t[2]=s=>e.showNotification=s),class:"ui-notification"},a.fullSnackbarProps),{action:Te(({})=>[g(ri,{icon:"",onClick:t[1]||(t[1]=s=>e.showNotification=!1)},{default:Te(()=>[g(Ue,null,{default:Te(()=>t[3]||(t[3]=[At("mdi-close")])),_:1})]),_:1})]),default:Te(()=>[ii("p",null,Et(e.notification.msg),1),e.notification.errorMsg?(ue(),je("p",{key:0,class:"ml-3",innerHTML:e.notification.errorMsg},null,8,J0)):it("",!0)]),_:1},16,["modelValue"])):it("",!0)],4)}const Nu=H0(X0,[["render",Q0]]),ew=wa("v-alert-title"),tw=["success","info","warning","error"],nw=U({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Oe,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>tw.includes(e)},..._e(),...qt(),...Wt(),...Wn(),...bl(),...Ia(),...Rt(),...Je(),...at(),...hn({variant:"flat"})},"VAlert"),iw=re()({name:"VAlert",props:nw(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const l=Ye(e,"modelValue"),a=w(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),s=w(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:r}=ot(e),{colorClasses:u,colorStyles:f,variantClasses:o}=fi(s),{densityClasses:d}=tn(e),{dimensionStyles:c}=Ut(e),{elevationClasses:m}=Un(e),{locationStyles:v}=Ea(e),{positionClasses:h}=Fa(e),{roundedClasses:p}=Bt(e),{textColorClasses:C,textColorStyles:V}=jt(ne(e,"borderColor")),{t:P}=Ri(),k=w(()=>({"aria-label":P(e.closeLabel),onClick(A){l.value=!1,n("click:close",A)}}));return()=>{const A=!!(i.prepend||a.value),S=!!(i.title||e.title),E=!!(i.close||e.closable);return l.value&&g(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},r.value,u.value,d.value,m.value,h.value,p.value,o.value,e.class],style:[f.value,c.value,v.value,e.style],role:"alert"},{default:()=>{var x,I;return[di(!1,"v-alert"),e.border&&g("div",{key:"border",class:["v-alert__border",C.value],style:V.value},null),A&&g("div",{key:"prepend",class:"v-alert__prepend"},[i.prepend?g(tt,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{density:e.density,icon:a.value,size:e.prominent?44:28}}},i.prepend):g(Ue,{key:"prepend-icon",density:e.density,icon:a.value,size:e.prominent?44:28},null)]),g("div",{class:"v-alert__content"},[S&&g(ew,{key:"title"},{default:()=>{var B;return[((B=i.title)==null?void 0:B.call(i))??e.title]}}),((x=i.text)==null?void 0:x.call(i))??e.text,(I=i.default)==null?void 0:I.call(i)]),i.append&&g("div",{key:"append",class:"v-alert__append"},[i.append()]),E&&g("div",{key:"close",class:"v-alert__close"},[i.close?g(tt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var B;return[(B=i.close)==null?void 0:B.call(i,{props:k.value})]}}):g(ri,he({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},k.value),null)])]}})}}}),lw={key:1,class:"mt-4"},Hu={__name:"dashboard-element",props:{element:{type:Object,required:!0},height:{type:Number,default:400},filtersValues:{type:[Object,null],required:!0}},setup(e){const t=e,n=window.APPLICATION.configuration,i=Object.assign({},...n.datasets[0].schema.map(o=>({[o.key]:o}))),l=w(()=>{const o={...t.filtersValues};return Ve.primary&&(o.primary=Ve.primary),Ve.secondary&&(o.secondary=Ve.secondary),o}),r=window.APPLICATION.exposedUrl.split("/").pop().split("%3A"),u=r.length===2?r[0]:null,f=w(()=>(t.element.valueMandatory&&t.element.mandatoryFilters||[]).filter(o=>{var d,c;return!((c=(d=t.filtersValues)==null?void 0:d.keys)!=null&&c.includes(o))}));return(o,d)=>f.value.length?(ue(),We(iw,{key:0,type:"info",variant:"outlined"},{default:Te(()=>[ii("h4",null,"Veuillez sélectionner une valeur de "+Et(f.value.map(c=>J(i)[c].label||J(i)[c].title||J(i)[c]["x-originalName"]||c).join(", ")),1)]),_:1})):e.element.type==="tablePreview"?(ue(),We(J(Nu),{key:1,src:`/data-fair/embed/dataset/${J(u)?J(u)+"%3A":""}${(e.element.dataset||J(n).datasets[0]).id}/table?display=${e.element.display}&interaction=${!e.element.noInteractions}${e.element.fields.length?"&cols="+e.element.fields.join(","):""}`,"query-params-extra":l.value,style:On(`height:${e.height>0?e.height+"px":"100%"}`)},null,8,["src","query-params-extra","style"])):(ue(),je("div",{key:2,style:On(`overflow-y:auto;height:${e.height>0?e.height+"px":"100%"}`)},[e.element.type==="application"?(ue(),We(J(Nu),{key:0,src:`/data-fair/app/${J(u)?J(u)+"%3A":""}${e.element.application.id}`,"query-params-extra":l.value,style:On(e.element.application.baseApp.meta["df:overflow"]!=="true"?`height:${e.height>0?e.height+"px":"100%"}`:"")},null,8,["src","query-params-extra","style"])):e.element.type==="text"?(ue(),je("div",lw,Et(e.element.content),1)):it("",!0)],4))}},aw={__name:"dashboard-column",props:{element:{type:Object,required:!0},height:{type:Number,default:400},filtersValues:{type:[Object,null],required:!0}},setup(e){return(t,n)=>e.element.type==="column"?(ue(!0),je(ve,{key:0},rn(e.element.elements,(i,l)=>(ue(),We(Hu,{key:l,element:i,height:e.height/e.element.elements.length,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))),128)):(ue(),We(Hu,{key:1,element:e.element,height:e.height,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))}},sw={key:0,class:"text-h5 mt-8"},rw={key:1,class:"mt-4"},ow={key:0,class:"text-h6 text-center mt-4"},Tl={__name:"dashboard-section",props:{section:{type:Object,required:!0},filtersValues:{type:[Object,null],required:!0},hideTitle:{type:Boolean,default:!1}},setup(e){const t=e,n={sm:[6,12,12],md:[4,6,8],lg:[3,4,6],xl:[2,3,6]};for(const i of t.section.rows)for(const l of["sm","md","lg","xl"]){let a=0;for(;a<i.elements.length;){let s=a,r=0;for(;s<i.elements.length&&r+n[l][i.elements[s].width-1]<=12;)r+=n[l][i.elements[s].width-1],s+=1;for(let u=a;u<s;u++)i.elements[u][l]=Math.floor(.3+12*n[l][i.elements[u].width-1]/r),i.elements[u].class=i.elements[u].class||(i.elements[u].type==="text"?["order-first"]:[]),i.elements[u].type==="text"&&i.elements[u][l]===12?i.elements[u].class.push("order-"+l+"-first"):i.elements[u].class.push("order-"+l+"-"+(u+1));a=s}}return(i,l)=>(ue(),je(ve,null,[e.hideTitle?it("",!0):(ue(),je("h3",sw,[e.section.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:e.section.icon.svgPath},null,8,["icon"]),l[0]||(l[0]=At("   "))],64)):it("",!0),At(" "+Et(e.section.title),1)])),e.section.description?(ue(),je("p",rw,Et(e.section.description),1)):it("",!0),(ue(!0),je(ve,null,rn(e.section.rows||[],(a,s)=>(ue(),We(Fi,{key:s,justify:"center"},{default:Te(()=>[(ue(!0),je(ve,null,rn(a.elements||[],(r,u)=>(ue(),We(cn,{key:u,cols:12,sm:r.sm,md:r.md,lg:r.lg,xl:r.xl,class:fa(r.class?r.class.join(" "):"")},{default:Te(()=>[r.title?(ue(),je("h4",ow,Et(r.title),1)):it("",!0),g(aw,{element:r,height:a.height,"filters-values":e.filtersValues},null,8,["element","height","filters-values"])]),_:2},1032,["sm","md","lg","xl","class"]))),128))]),_:2},1024))),128))],64))}},dl=Symbol.for("vuetify:v-expansion-panel"),hv=U({..._e(),...Wr()},"VExpansionPanelText"),Us=re()({name:"VExpansionPanelText",props:hv(),setup(e,t){let{slots:n}=t;const i=qe(dl);if(!i)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:l,onAfterLeave:a}=Ur(e,i.isSelected);return ye(()=>g(gf,{onAfterLeave:a},{default:()=>{var s;return[ht(g("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&l.value&&g("div",{class:"v-expansion-panel-text__wrapper"},[(s=n.default)==null?void 0:s.call(n)])]),[[jn,i.isSelected.value]])]}})),{}}}),gv=U({color:String,expandIcon:{type:Oe,default:"$expand"},collapseIcon:{type:Oe,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,..._e(),...Wt()},"VExpansionPanelTitle"),qs=re()({name:"VExpansionPanelTitle",directives:{Ripple:$i},props:gv(),setup(e,t){let{slots:n}=t;const i=qe(dl);if(!i)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:l,backgroundColorStyles:a}=Zt(e,"color"),{dimensionStyles:s}=Ut(e),r=w(()=>({collapseIcon:e.collapseIcon,disabled:i.disabled.value,expanded:i.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),u=w(()=>i.isSelected.value?e.collapseIcon:e.expandIcon);return ye(()=>{var f;return ht(g("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":i.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},l.value,e.class],style:[a.value,s.value,e.style],type:"button",tabindex:i.disabled.value?-1:void 0,disabled:i.disabled.value,"aria-expanded":i.isSelected.value,onClick:e.readonly?void 0:i.toggle},[g("span",{class:"v-expansion-panel-title__overlay"},null),(f=n.default)==null?void 0:f.call(n,r.value),!e.hideActions&&g(tt,{defaults:{VIcon:{icon:u.value}}},{default:()=>{var o;return[g("span",{class:"v-expansion-panel-title__icon"},[((o=n.actions)==null?void 0:o.call(n,r.value))??g(Ue,null,null)])]}})]),[[Vn("ripple"),e.ripple]])}),{}}}),yv=U({title:String,text:String,bgColor:String,...Wn(),..._a(),...Rt(),...Je(),...gv(),...hv()},"VExpansionPanel"),uw=re()({name:"VExpansionPanel",props:yv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=Pa(e,dl),{backgroundColorClasses:l,backgroundColorStyles:a}=Zt(e,"bgColor"),{elevationClasses:s}=Un(e),{roundedClasses:r}=Bt(e),u=w(()=>(i==null?void 0:i.disabled.value)||e.disabled),f=w(()=>i.group.items.value.reduce((c,m,v)=>(i.group.selected.value.includes(m.id)&&c.push(v),c),[])),o=w(()=>{const c=i.group.items.value.findIndex(m=>m.id===i.id);return!i.isSelected.value&&f.value.some(m=>m-c===1)}),d=w(()=>{const c=i.group.items.value.findIndex(m=>m.id===i.id);return!i.isSelected.value&&f.value.some(m=>m-c===-1)});return wt(dl,i),ye(()=>{const c=!!(n.text||e.text),m=!!(n.title||e.title),v=qs.filterProps(e),h=Us.filterProps(e);return g(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":i.isSelected.value,"v-expansion-panel--before-active":o.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":u.value},r.value,l.value,e.class],style:[a.value,e.style]},{default:()=>[g("div",{class:["v-expansion-panel__shadow",...s.value]},null),g(tt,{defaults:{VExpansionPanelTitle:{...v},VExpansionPanelText:{...h}}},{default:()=>{var p;return[m&&g(qs,{key:"title"},{default:()=>[n.title?n.title():e.title]}),c&&g(Us,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(p=n.default)==null?void 0:p.call(n)]}})]})}),{groupItem:i}}}),cw=["default","accordion","inset","popout"],dw=U({flat:Boolean,...ka(),...Cr(yv(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...at(),..._e(),...Je(),variant:{type:String,default:"default",validator:e=>cw.includes(e)}},"VExpansionPanels"),fw=re()({name:"VExpansionPanels",props:dw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:i,prev:l}=pl(e,dl),{themeClasses:a}=ot(e),s=w(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return zn({VExpansionPanel:{bgColor:ne(e,"bgColor"),collapseIcon:ne(e,"collapseIcon"),color:ne(e,"color"),eager:ne(e,"eager"),elevation:ne(e,"elevation"),expandIcon:ne(e,"expandIcon"),focusable:ne(e,"focusable"),hideActions:ne(e,"hideActions"),readonly:ne(e,"readonly"),ripple:ne(e,"ripple"),rounded:ne(e,"rounded"),static:ne(e,"static")}}),ye(()=>g(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,s.value,e.class],style:e.style},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n,{prev:l,next:i})]}})),{next:i,prev:l}}}),vw=U({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Dr(),...Rr()},"VSwitch"),mw=re()({name:"VSwitch",inheritAttrs:!1,props:vw(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const l=Ye(e,"indeterminate"),a=Ye(e,"modelValue"),{loaderClasses:s}=La(e),{isFocused:r,focus:u,blur:f}=Br(e),o=X(),d=Re&&window.matchMedia("(forced-colors: active)").matches,c=w(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=Qt(),v=w(()=>e.id||`switch-${m}`);function h(){l.value&&(l.value=!1)}function p(C){var V,P;C.stopPropagation(),C.preventDefault(),(P=(V=o.value)==null?void 0:V.input)==null||P.click()}return ye(()=>{const[C,V]=xr(n),P=ia.filterProps(e),k=na.filterProps(e);return g(ia,he({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":l.value},s.value,e.class]},C,P,{modelValue:a.value,"onUpdate:modelValue":A=>a.value=A,id:v.value,focused:r.value,style:e.style}),{...i,default:A=>{let{id:S,messagesId:E,isDisabled:x,isReadonly:I,isValid:B}=A;const R={model:a,isValid:B};return g(na,he({ref:o},k,{modelValue:a.value,"onUpdate:modelValue":[T=>a.value=T,h],id:S.value,"aria-describedby":E.value,type:"checkbox","aria-checked":l.value?"mixed":void 0,disabled:x.value,readonly:I.value,onFocus:u,onBlur:f},V),{...i,default:T=>{let{backgroundColorClasses:F,backgroundColorStyles:D}=T;return g("div",{class:["v-switch__track",d?void 0:F.value],style:D.value,onClick:p},[i["track-true"]&&g("div",{key:"prepend",class:"v-switch__track-true"},[i["track-true"](R)]),i["track-false"]&&g("div",{key:"append",class:"v-switch__track-false"},[i["track-false"](R)])])},input:T=>{let{inputNode:F,icon:D,backgroundColorClasses:G,backgroundColorStyles:Z}=T;return g(ve,null,[F,g("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||e.loading},e.inset||d?void 0:G.value],style:e.inset?void 0:Z.value},[i.thumb?g(tt,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[i.thumb({...R,icon:D})]}):g(kb,null,{default:()=>[e.loading?g(Gr,{name:"v-switch",active:!0,color:B.value===!1?void 0:c.value},{default:te=>i.loader?i.loader(te):g(dv,{active:te.isActive,color:te.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&g(Ue,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}}),Jr=Symbol.for("vuetify:v-tabs"),hw=U({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...vn(fv({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),pv=re()({name:"VTab",props:hw(),setup(e,t){let{slots:n,attrs:i}=t;const{textColorClasses:l,textColorStyles:a}=jt(e,"sliderColor"),s=X(),r=X(),u=w(()=>e.direction==="horizontal"),f=w(()=>{var d,c;return((c=(d=s.value)==null?void 0:d.group)==null?void 0:c.isSelected.value)??!1});function o(d){var m,v;let{value:c}=d;if(c){const h=(v=(m=s.value)==null?void 0:m.$el.parentElement)==null?void 0:v.querySelector(".v-tab--selected .v-tab__slider"),p=r.value;if(!h||!p)return;const C=getComputedStyle(h).color,V=h.getBoundingClientRect(),P=p.getBoundingClientRect(),k=u.value?"x":"y",A=u.value?"X":"Y",S=u.value?"right":"bottom",E=u.value?"width":"height",x=V[k],I=P[k],B=x>I?V[S]-P[S]:V[k]-P[k],R=Math.sign(B)>0?u.value?"right":"bottom":Math.sign(B)<0?u.value?"left":"top":"center",F=(Math.abs(B)+(Math.sign(B)<0?V[E]:P[E]))/Math.max(V[E],P[E])||0,D=V[E]/P[E]||0,G=1.5;Xn(p,{backgroundColor:[C,"currentcolor"],transform:[`translate${A}(${B}px) scale${A}(${D})`,`translate${A}(${B/G}px) scale${A}(${(F-1)/G+1})`,"none"],transformOrigin:Array(3).fill(R)},{duration:225,easing:sl})}}return ye(()=>{const d=ri.filterProps(e);return g(ri,he({symbol:Jr,ref:s,class:["v-tab",e.class],style:e.style,tabindex:f.value?0:-1,role:"tab","aria-selected":String(f.value),active:!1},d,i,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":o}),{...n,default:()=>{var c;return g(ve,null,[((c=n.default)==null?void 0:c.call(n))??e.text,!e.hideSlider&&g("div",{ref:r,class:["v-tab__slider",l.value],style:a.value},null)])}})}),Di({},s)}}),gw=e=>{const{touchstartX:t,touchendX:n,touchstartY:i,touchendY:l}=e,a=.5,s=16;e.offsetX=n-t,e.offsetY=l-i,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-s&&e.left(e),e.right&&n>t+s&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&l<i-s&&e.up(e),e.down&&l>i+s&&e.down(e))};function yw(e,t){var i;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(i=t.start)==null||i.call(t,{originalEvent:e,...t})}function pw(e,t){var i;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(i=t.end)==null||i.call(t,{originalEvent:e,...t}),gw(t)}function bw(e,t){var i;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(i=t.move)==null||i.call(t,{originalEvent:e,...t})}function ww(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>yw(n,t),touchend:n=>pw(n,t),touchmove:n=>bw(n,t)}}function Cw(e,t){var r;const n=t.value,i=n!=null&&n.parent?e.parentElement:e,l=(n==null?void 0:n.options)??{passive:!0},a=(r=t.instance)==null?void 0:r.$.uid;if(!i||!a)return;const s=ww(t.value);i._touchHandlers=i._touchHandlers??Object.create(null),i._touchHandlers[a]=s,gd(s).forEach(u=>{i.addEventListener(u,s[u],l)})}function Sw(e,t){var a,s;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,i=(s=t.instance)==null?void 0:s.$.uid;if(!(n!=null&&n._touchHandlers)||!i)return;const l=n._touchHandlers[i];gd(l).forEach(r=>{n.removeEventListener(r,l[r])}),delete n._touchHandlers[i]}const bv={mounted:Cw,unmounted:Sw},xw=bv,wv=Symbol.for("vuetify:v-window"),Cv=Symbol.for("vuetify:v-window-group"),Sv=U({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},..._e(),...Je(),...at()},"VWindow"),Ks=re()({name:"VWindow",directives:{Touch:bv},props:Sv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=ot(e),{isRtl:l}=en(),{t:a}=Ri(),s=pl(e,Cv),r=X(),u=w(()=>l.value?!e.reverse:e.reverse),f=ge(!1),o=w(()=>{const k=e.direction==="vertical"?"y":"x",S=(u.value?!f.value:f.value)?"-reverse":"";return`v-window-${k}${S}-transition`}),d=ge(0),c=X(void 0),m=w(()=>s.items.value.findIndex(k=>s.selected.value.includes(k.id)));de(m,(k,A)=>{const S=s.items.value.length,E=S-1;S<=2?f.value=k<A:k===E&&A===0?f.value=!0:k===0&&A===E?f.value=!1:f.value=k<A}),wt(wv,{transition:o,isReversed:f,transitionCount:d,transitionHeight:c,rootRef:r});const v=w(()=>e.continuous||m.value!==0),h=w(()=>e.continuous||m.value!==s.items.value.length-1);function p(){v.value&&s.prev()}function C(){h.value&&s.next()}const V=w(()=>{const k=[],A={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:s.prev,"aria-label":a("$vuetify.carousel.prev")};k.push(v.value?n.prev?n.prev({props:A}):g(ri,A,null):g("div",null,null));const S={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:s.next,"aria-label":a("$vuetify.carousel.next")};return k.push(h.value?n.next?n.next({props:S}):g(ri,S,null):g("div",null,null)),k}),P=w(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?p():C()},right:()=>{u.value?C():p()},start:A=>{let{originalEvent:S}=A;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return ye(()=>ht(g(e.tag,{ref:r,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},i.value,e.class],style:e.style},{default:()=>{var k,A;return[g("div",{class:"v-window__container",style:{height:c.value}},[(k=n.default)==null?void 0:k.call(n,{group:s}),e.showArrows!==!1&&g("div",{class:"v-window__controls"},[V.value])]),(A=n.additional)==null?void 0:A.call(n,{group:s})]}}),[[Vn("touch"),P.value]])),{group:s}}}),kw=U({...vn(Sv(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),_w=re()({name:"VTabsWindow",props:kw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=qe(Jr,null),l=Ye(e,"modelValue"),a=w({get(){var s;return l.value!=null||!i?l.value:(s=i.items.value.find(r=>i.selected.value.includes(r.id)))==null?void 0:s.value},set(s){l.value=s}});return ye(()=>{const s=Ks.filterProps(e);return g(Ks,he({_as:"VTabsWindow"},s,{modelValue:a.value,"onUpdate:modelValue":r=>a.value=r,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),xv=U({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},..._e(),..._a(),...Wr()},"VWindowItem"),Gs=re()({name:"VWindowItem",directives:{Touch:xw},props:xv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=qe(wv),l=Pa(e,Cv),{isBooted:a}=zr();if(!i||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=ge(!1),r=w(()=>a.value&&(i.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!s.value||!i||(s.value=!1,i.transitionCount.value>0&&(i.transitionCount.value-=1,i.transitionCount.value===0&&(i.transitionHeight.value=void 0)))}function f(){var v;s.value||!i||(s.value=!0,i.transitionCount.value===0&&(i.transitionHeight.value=Se((v=i.rootRef.value)==null?void 0:v.clientHeight)),i.transitionCount.value+=1)}function o(){u()}function d(v){s.value&&st(()=>{!r.value||!s.value||!i||(i.transitionHeight.value=Se(v.clientHeight))})}const c=w(()=>{const v=i.isReversed.value?e.reverseTransition:e.transition;return r.value?{name:typeof v!="string"?i.transition.value:v,onBeforeEnter:f,onAfterEnter:u,onEnterCancelled:o,onBeforeLeave:f,onAfterLeave:u,onLeaveCancelled:o,onEnter:d}:!1}),{hasContent:m}=Ur(e,l.isSelected);return ye(()=>g(Sn,{transition:c.value,disabled:!a.value},{default:()=>{var v;return[ht(g("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[m.value&&((v=n.default)==null?void 0:v.call(n))]),[[jn,l.isSelected.value]])]}})),{groupItem:l}}}),Pw=U({...xv()},"VTabsWindowItem"),Vw=re()({name:"VTabsWindowItem",props:Pw(),setup(e,t){let{slots:n}=t;return ye(()=>{const i=Gs.filterProps(e);return g(Gs,he({_as:"VTabsWindowItem"},i,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Aw(e){return e?e.map(t=>hd(t)?t:{text:t,value:t}):[]}const Tw=U({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Nr({mandatory:"force",selectedClass:"v-tab-item--selected"}),...qt(),...Je()},"VTabs"),Ew=re()({name:"VTabs",props:Tw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const l=Ye(e,"modelValue"),a=w(()=>Aw(e.items)),{densityClasses:s}=tn(e),{backgroundColorClasses:r,backgroundColorStyles:u}=Zt(ne(e,"bgColor")),{scopeId:f}=Ta();return zn({VTab:{color:ne(e,"color"),direction:ne(e,"direction"),stacked:ne(e,"stacked"),fixed:ne(e,"fixedTabs"),sliderColor:ne(e,"sliderColor"),hideSlider:ne(e,"hideSlider")}}),ye(()=>{const o=la.filterProps(e),d=!!(i.window||e.items.length>0);return g(ve,null,[g(la,he(o,{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},s.value,r.value,e.class],style:[{"--v-tabs-height":Se(e.height)},u.value,e.style],role:"tablist",symbol:Jr},f,n),{default:()=>{var c;return[((c=i.default)==null?void 0:c.call(i))??a.value.map(m=>{var v;return((v=i.tab)==null?void 0:v.call(i,{item:m}))??g(pv,he(m,{key:m.text,value:m.value}),{default:i[`tab.${m.value}`]?()=>{var h;return(h=i[`tab.${m.value}`])==null?void 0:h.call(i,{item:m})}:void 0})})]}}),d&&g(_w,he({modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,key:"tabs-window"},f),{default:()=>{var c;return[a.value.map(m=>{var v;return((v=i.item)==null?void 0:v.call(i,{item:m}))??g(Vw,{value:m.value},{default:()=>{var h;return(h=i[`item.${m.value}`])==null?void 0:h.call(i,{item:m})}})}),(c=i.window)==null?void 0:c.call(i)]}})])}),{}}}),Lw={key:0,class:"text-h4 text-center"},Iw={key:1,class:"mt-2"},Fw={__name:"dashboard",setup(e){const t=window.APPLICATION,n=t.configuration,i=o=>{console.error(o),ea(t.href+"/error",{method:"POST",body:{message:o.message||o}})};if(Ve.draft==="true"&&window.parent){const o=[].concat(...n.sections.map(c=>[].concat(...c.rows.map(m=>[].concat(...m.elements))))),d=o.filter(c=>c.type==="application"&&c.application).map(c=>({id:c.application.id,title:c.application.title})).filter((c,m,v)=>v.findIndex(h=>c.id===h.id)===m);if((n.applications||[]).map(c=>c.id).join("-")!==d.map(c=>c.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"applications",value:d}},"*"),n.datasets&&n.datasets.length){const c=n.datasets[0],m=o.filter(v=>v.type==="tablePreview"&&v.dataset).map(v=>({id:v.dataset.id,title:v.dataset.title,href:v.dataset.href})).filter((v,h,p)=>v.id!==c.id&&p.findIndex(C=>v.id===C.id)===h);m.unshift(c),(n.datasets||[]).map(v=>v.id).join("-")!==m.map(v=>v.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"datasets",value:m}},"*")}}const l=[X({}),X({})],a=[X(null),X(null)];let s=0,r=0;if(!n.datasets||!n.datasets.length)i("Veuillez choisir un source de données pour le filtre commun");else if((!n.filters||!n.filters.length)&&!n.periodFilter&&!n.addressFilter)i("Veuillez configurer un filtre");else{const o="_d_"+n.datasets[0].id+"_";for(const d of n.filters)!Ve[o+d.labelField+"_in"]&&d.forceOneValue&&d.startValue&&(Ve[o+d.labelField+"_in"]=d.startValue);if(n.periodFilter&&!Ve.period){const d=(n.datasets[0].timePeriod?n.datasets[0].timePeriod.startDate:new Date().toISOString()).slice(0,10),c=(n.datasets[0].timePeriod?n.datasets[0].timePeriod.endDate:new Date().toISOString()).slice(0,10),m=[d];d!==c&&m.push(c),Ve.period=m.join(",")}s=Math.max(...n.sections.map(d=>d.title&&d.title.length||0)),r=n.sections.reduce((d,c)=>d+(c.title&&c.title.length||0),0)}function f(o){o?Ve.view="compare":delete Ve.view}return(o,d)=>{var c;return(c=J(n).filters)!=null&&c.length||J(n).periodFilter||J(n).addressFilter?(ue(),We(p0,{key:0,fluid:"","data-iframe-height":""},{default:Te(()=>[J(n).title?(ue(),je("h2",Lw,Et(J(n).title),1)):it("",!0),J(n).description?(ue(),je("p",Iw,Et(J(n).description),1)):it("",!0),J(n).allowDuplicate?(ue(),We(mw,{key:2,label:"Mode comparaison",density:"compact","model-value":J(Ve).view==="compare",style:{"max-height":"40px"},"onUpdate:modelValue":f},null,8,["model-value"])):it("",!0),g(Fi,null,{default:Te(()=>[(ue(!0),je(ve,null,rn(J(Ve).view==="compare"?[0,1]:[0],m=>(ue(),We(cn,{key:m,cols:J(Ve).view==="compare"?6:12},{default:Te(()=>[g(N0,{config:J(n),prefix:m?"c":"","onUpdate:modelValue":v=>l[m].value=v},null,8,["config","prefix","onUpdate:modelValue"]),J(n).sections.length===1?(ue(),We(Tl,{key:0,section:J(n).sections[0],"filters-values":l[m].value},null,8,["section","filters-values"])):J(n).sectionsGroup.includes("tabs")?(ue(),je(ve,{key:1},[J(n).sectionsGroup==="tabs-tab"?(ue(),We(Ew,{key:0,modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v,class:"mb-3",color:"primary","fixed-tabs":J(s)<=30,grow:J(s)>30&&J(r)<200,direction:J(r)>=200?"vertical":"horizontal"},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(pv,{key:h,value:h},{default:Te(()=>[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[0]||(d[0]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","fixed-tabs","grow","direction"])):J(n).sectionsGroup==="tabs-button"?(ue(),We(Fi,{key:1},{default:Te(()=>[g(Bu),g(cn,{cols:"auto"},{default:Te(()=>[g(ov,{variant:"outlined"},{default:Te(()=>[g(z0,{modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v,color:"primary",mandatory:"",style:On(J(r)*15>=o.$vuetify.display.width?`flex-direction: column;height:${J(n).sections.length*36}px`:"")},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(ri,{key:h,value:h,height:J(r)*15>=o.$vuetify.display.width?36:48},{default:Te(()=>[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[1]||(d[1]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)]),_:2},1032,["value","height"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style"])]),_:2},1024)]),_:2},1024),g(Bu)]),_:2},1024)):it("",!0),g(Ks,{modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(Gs,{key:h,value:h},{default:Te(()=>[g(Tl,{section:v,"filters-values":l[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):J(n).sectionsGroup==="accordion"?(ue(),We(fw,{key:2,multiple:"",variant:"accordion","model-value":J(n).sections.map((v,h)=>h)},{default:Te(()=>[(ue(!0),je(ve,null,rn(J(n).sections||[],(v,h)=>(ue(),We(uw,{key:h,value:h,eager:""},{default:Te(()=>[g(qs,{class:"bg-primary"},{default:Te(()=>[ii("h3",null,[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[2]||(d[2]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)])]),_:2},1024),g(Us,null,{default:Te(()=>[g(Tl,{section:v,"filters-values":l[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:2},1032,["model-value"])):(ue(!0),je(ve,{key:3},rn(J(n).sections||[],(v,h)=>(ue(),je("div",{key:h,class:"my-6"},[ii("h2",null,[v.icon?(ue(),je(ve,{key:0},[g(Ue,{icon:v.icon.svgPath},null,8,["icon"]),d[3]||(d[3]=At("   "))],64)):it("",!0),At(" "+Et(v.title),1)]),g(Tl,{section:v,"filters-values":l[m].value,"hide-title":""},null,8,["section","filters-values"])]))),128))]),_:2},1032,["cols"]))),128))]),_:1})]),_:1})):it("",!0)}}},Ow=U({..._e(),...Zy({fullHeight:!0}),...at()},"VApp"),Mw=re()({name:"VApp",props:Ow(),setup(e,t){let{slots:n}=t;const i=ot(e),{layoutClasses:l,getLayoutItem:a,items:s,layoutRef:r}=Jy(e),{rtlClasses:u}=en();return ye(()=>{var f;return g("div",{ref:r,class:["v-application",i.themeClasses.value,l.value,u.value,e.class],style:[e.style]},[g("div",{class:"v-application__wrap"},[(f=n.default)==null?void 0:f.call(n)])])}),{getLayoutItem:a,items:s,theme:i}}}),Rw=U({scrollable:Boolean,..._e(),...Wt(),...Je({tag:"main"})},"VMain"),Bw=re()({name:"VMain",props:Rw(),setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=Ut(e),{mainStyles:l}=Hd(),{ssrBootStyles:a}=zr();return ye(()=>g(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[l.value,a.value,i.value,e.style]},{default:()=>{var s,r;return[e.scrollable?g("div",{class:"v-main__scroller"},[(s=n.default)==null?void 0:s.call(n)]):(r=n.default)==null?void 0:r.call(n)]}})),{}}}),$w={__name:"app",setup(e){return(t,n)=>(ue(),We(Mw,null,{default:Te(()=>[g(Bw,null,{default:Te(()=>[(ue(),We(lh,null,{default:Te(()=>[g(Fw)]),_:1}))]),_:1})]),_:1}))}},Dw={collapse:"svg:M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",complete:"svg:M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"svg:M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"svg:M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"svg:M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"svg:M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"svg:M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"svg:M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"svg:M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"svg:M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"svg:M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"svg:M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sortAsc:"svg:M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",sortDesc:"svg:M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",expand:"svg:M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"svg:M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"svg:M7,10L12,15L17,10H7Z",dropdown:"svg:M7,10L12,15L17,10H7Z",radioOn:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"svg:M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"svg:M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"svg:M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"svg:M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"svg:M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"svg:M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"svg:M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"svg:M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"svg:M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"svg:M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"svg:M19,13H5V11H19V13Z",calendar:"svg:M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",treeviewCollapse:"svg:M7,10L12,15L17,10H7Z",treeviewExpand:"svg:M10,17L15,12L10,7V17Z",eyeDropper:"svg:M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"},Nw={component:Ir};window.iFrameResizer={heightCalculationMethod:"taggedElement"};const Qr=np(Ve);Qr.icons={defaultSet:"mdi",aliases:Dw,sets:{mdi:Nw}};delete Qr.defaults;const kv=Jh($w);kv.use(jd(Qr));kv.mount("#app");
package/dist/index.html CHANGED
@@ -20,8 +20,8 @@
20
20
 
21
21
  <!-- Capture a global variable defined by data-fair's reverse proxy. -->
22
22
  <script type="text/javascript">window.APPLICATION=%APPLICATION%;</script>
23
- <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.4/dist/assets/index-BalE0Aog.js"></script>
24
- <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.4/dist/assets/index-DQsqORXR.css">
23
+ <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.5/dist/assets/index-CfH-kID5.js"></script>
24
+ <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.5/dist/assets/index-DQsqORXR.css">
25
25
  </head>
26
26
 
27
27
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/app-dashboards",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "scripts": {
5
5
  "dev": "APP_URL=http://localhost:3000/app/ df-dev-server",
6
6
  "dev-src": "vite",