@data-fair/app-dashboards 0.9.1 → 0.9.2
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)dn("replace location after change using postMessage",this.fullSrc),this.sendMessage({viframe:!0,stateAction:"replace",href:this.fullSrc});else{dn("replace location after change using iframe.location.replace",this.fullSrc);try{this.iframeWindow.location.replace(this.fullSrc)}catch(e){dn("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),l=new URL(this.syncedSrc);for(const i of[...t.searchParams.keys()])this.queryParamsExclude&&this.queryParamsExclude.includes(i)||l.searchParams.has(i)||t.searchParams.delete(i);for(const i of[...l.searchParams.keys()])this.queryParamsExtra&&i in this.queryParamsExtra||this.queryParamsInclude&&!this.queryParamsInclude.includes(i)||this.queryParamsExclude&&this.queryParamsExclude.includes(i)||t.searchParams.set(i,l.searchParams.get(i));if(n.pathname!==l.pathname&&!this.syncStateIgnorePath){let i=n.pathname;i.endsWith("/")||(i+="/");let a=l.pathname;a.startsWith(i)&&(a=a.replace(i,"./")),t.searchParams.set("p",a)}if(this.$route&&this.$router){const i={...this.$route.query};for(const a of[...t.searchParams.keys()])i[a]=t.searchParams.get(a);for(const a of Object.keys(i))t.searchParams.has(a)||(i[a]=void 0);if(JSON.stringify(i)===JSON.stringify(this.$route.query))return;dn(`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(i)}`),e==="push"?this.$router.push({query:i}):this.$router.replace({query:i})}else if(this.reactiveParams&&e!=="push"){dn("apply state from iframe to parent using reactive params",this.syncedSrc,t.search);for(const i of[...t.searchParams.keys()])this.reactiveParams[i]=t.searchParams.get(i);for(const i of Object.keys(this.reactiveParams))t.searchParams.has(i)||delete this.reactiveParams[i]}else{if(t.href===window.location.href)return;dn("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:V0,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})}}},E0=["innerHTML"];function L0(e,t,n,l,i,a){return ce(),Ne("div",{class:"v-iframe",style:Ln(`width:${n.width}`)},[a.actualAspectRatio?(ce(),De(_r,{key:0,"aspect-ratio":a.actualAspectRatio,style:{height:"100%"}},{default:Ee(()=>[e.actualWidth?(ce(),Ne("iframe",he({key:0},a.fullIframeAttrs,{onLoad:t[0]||(t[0]=r=>a.iframeLoaded())}),null,16)):et("",!0)]),_:1},8,["aspect-ratio"])):et("",!0),e.notification?(ce(),De(_0,he({key:1,ref:"notificationSnackbar",modelValue:e.showNotification,"onUpdate:modelValue":t[2]||(t[2]=r=>e.showNotification=r),class:"ui-notification"},a.fullSnackbarProps),{action:Ee(({})=>[h(el,{icon:"",onClick:t[1]||(t[1]=r=>e.showNotification=!1)},{default:Ee(()=>[h(He,null,{default:Ee(()=>[xt("mdi-close")]),_:1})]),_:1})]),default:Ee(()=>[Xn("p",null,Et(e.notification.msg),1),e.notification.errorMsg?(ce(),Ne("p",{key:0,class:"ml-3",innerHTML:e.notification.errorMsg},null,8,E0)):et("",!0)]),_:1},16,["modelValue"])):et("",!0)],4)}const Ru=b0(A0,[["render",L0]]),I0=fa("v-alert-title"),T0=["success","info","warning","error"],F0=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=>T0.includes(e)},..._e(),...Wt(),...jt(),...$n(),...ci(),...ka(),...Tt(),...Ze(),...nt(),...un({variant:"flat"})},"VAlert"),O0=re()({name:"VAlert",props:F0(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:l}=t;const i=qe(e,"modelValue"),a=C(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),r=C(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:o}=at(e),{colorClasses:s,colorStyles:d,variantClasses:u}=ol(r),{densityClasses:f}=Zt(e),{dimensionStyles:c}=zt(e),{elevationClasses:m}=Nn(e),{locationStyles:v}=Sa(e),{positionClasses:g}=_a(e),{roundedClasses:b}=Ft(e),{textColorClasses:S,textColorStyles:E}=Dt(le(e,"borderColor")),{t:V}=Al(),_=C(()=>({"aria-label":V(e.closeLabel),onClick(P){i.value=!1,n("click:close",P)}}));return()=>{const P=!!(l.prepend||a.value),p=!!(l.title||e.title),L=!!(l.close||e.closable);return i.value&&h(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},o.value,s.value,f.value,m.value,g.value,b.value,u.value,e.class],style:[d.value,c.value,v.value,e.style],role:"alert"},{default:()=>{var x,R;return[rl(!1,"v-alert"),e.border&&h("div",{key:"border",class:["v-alert__border",S.value],style:E.value},null),P&&h("div",{key:"prepend",class:"v-alert__prepend"},[l.prepend?h(Je,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{density:e.density,icon:a.value,size:e.prominent?44:28}}},l.prepend):h(He,{key:"prepend-icon",density:e.density,icon:a.value,size:e.prominent?44:28},null)]),h("div",{class:"v-alert__content"},[p&&h(I0,{key:"title"},{default:()=>{var $;return[(($=l.title)==null?void 0:$.call(l))??e.title]}}),((x=l.text)==null?void 0:x.call(l))??e.text,(R=l.default)==null?void 0:R.call(l)]),l.append&&h("div",{key:"append",class:"v-alert__append"},[l.append()]),L&&h("div",{key:"close",class:"v-alert__close"},[l.close?h(Je,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var $;return[($=l.close)==null?void 0:$.call(l,{props:_.value})]}}):h(el,he({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}}),M0={key:1,class:"mt-4"},Bu={__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,l=Object.assign({},...n.datasets[0].schema.map(u=>({[u.key]:u}))),i=C(()=>{const u={...t.filtersValues};return Ae.primary&&(u.primary=Ae.primary),Ae.secondary&&(u.secondary=Ae.secondary),u}),o=window.APPLICATION.exposedUrl.split("/").pop().split("%3A"),s=o.length===2?o[0]:null,d=C(()=>(t.element.valueMandatory&&t.element.mandatoryFilters||[]).filter(u=>{var f,c;return!((c=(f=t.filtersValues)==null?void 0:f.keys)!=null&&c.includes(u))}));return(u,f)=>d.value.length?(ce(),De(O0,{key:0,type:"info",variant:"outlined"},{default:Ee(()=>[Xn("h4",null,"Veuillez sélectionner une valeur de "+Et(d.value.map(c=>J(l)[c].label||J(l)[c].title||J(l)[c]["x-originalName"]||c).join(", ")),1)]),_:1})):e.element.type==="tablePreview"?(ce(),De(J(Ru),{key:1,src:`/data-fair/embed/dataset/${J(s)?J(s)+"%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":i.value,style:Ln(`height:${e.height>0?e.height+"px":"100%"}`)},null,8,["src","query-params-extra","style"])):(ce(),Ne("div",{key:2,style:Ln(`overflow-y:auto;height:${e.height>0?e.height+"px":"100%"}`)},[e.element.type==="application"?(ce(),De(J(Ru),{key:0,src:`/data-fair/app/${J(s)?J(s)+"%3A":""}${e.element.application.id}`,"query-params-extra":i.value,style:Ln(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"?(ce(),Ne("div",M0,Et(e.element.content),1)):et("",!0)],4))}},R0={__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"?(ce(!0),Ne(fe,{key:0},Qt(e.element.elements,(l,i)=>(ce(),De(Bu,{key:i,element:l,height:e.height/e.element.elements.length,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))),128)):(ce(),De(Bu,{key:1,element:e.element,height:e.height,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))}},B0={key:0,class:"text-h5 mt-8"},$0={key:1,class:"mt-4"},N0={key:0,class:"text-h6 mt-4"},xi={__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 l of t.section.rows)for(const i of["sm","md","lg","xl"]){let a=0;for(;a<l.elements.length;){let r=a,o=0;for(;r<l.elements.length&&o+n[i][l.elements[r].width-1]<=12;)o+=n[i][l.elements[r].width-1],r+=1;for(let s=a;s<r;s++)l.elements[s][i]=Math.floor(.3+12*n[i][l.elements[s].width-1]/o),l.elements[s].class=l.elements[s].class||(l.elements[s].type==="text"?["order-first"]:[]),l.elements[s].type==="text"&&l.elements[s][i]===12?l.elements[s].class.push("order-"+i+"-first"):l.elements[s].class.push("order-"+i+"-"+(s+1));a=r}}return(l,i)=>(ce(),Ne(fe,null,[e.hideTitle?et("",!0):(ce(),Ne("h3",B0,[e.section.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:e.section.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(e.section.title),1)])),e.section.description?(ce(),Ne("p",$0,Et(e.section.description),1)):et("",!0),(ce(!0),Ne(fe,null,Qt(e.section.rows||[],(a,r)=>(ce(),De(kl,{key:r,justify:"center"},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(a.elements||[],(o,s)=>(ce(),De(ln,{key:s,cols:12,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl,class:la(o.class?o.class.join(" "):"")},{default:Ee(()=>[o.title?(ce(),Ne("h4",N0,Et(o.title),1)):et("",!0),h(R0,{element:o,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))}},ni=Symbol.for("vuetify:v-expansion-panel"),Gf=U({..._e(),...$o()},"VExpansionPanelText"),Or=re()({name:"VExpansionPanelText",props:Gf(),setup(e,t){let{slots:n}=t;const l=ze(ni);if(!l)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:a}=No(e,l.isSelected);return be(()=>h(Zd,{onAfterLeave:a},{default:()=>{var r;return[vt(h("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&i.value&&h("div",{class:"v-expansion-panel-text__wrapper"},[(r=n.default)==null?void 0:r.call(n)])]),[[Rn,l.isSelected.value]])]}})),{}}}),Yf=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(),...jt()},"VExpansionPanelTitle"),Mr=re()({name:"VExpansionPanelTitle",directives:{Ripple:Ll},props:Yf(),setup(e,t){let{slots:n}=t;const l=ze(ni);if(!l)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:a}=Kt(e,"color"),{dimensionStyles:r}=zt(e),o=C(()=>({collapseIcon:e.collapseIcon,disabled:l.disabled.value,expanded:l.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),s=C(()=>l.isSelected.value?e.collapseIcon:e.expandIcon);return be(()=>{var d;return vt(h("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":l.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},i.value,e.class],style:[a.value,r.value,e.style],type:"button",tabindex:l.disabled.value?-1:void 0,disabled:l.disabled.value,"aria-expanded":l.isSelected.value,onClick:e.readonly?void 0:l.toggle},[h("span",{class:"v-expansion-panel-title__overlay"},null),(d=n.default)==null?void 0:d.call(n,o.value),!e.hideActions&&h(Je,{defaults:{VIcon:{icon:s.value}}},{default:()=>{var u;return[h("span",{class:"v-expansion-panel-title__icon"},[((u=n.actions)==null?void 0:u.call(n,o.value))??h(He,null,null)])]}})]),[[pn("ripple"),e.ripple]])}),{}}}),Zf=U({title:String,text:String,bgColor:String,...$n(),...ya(),...Tt(),...Ze(),...Yf(),...Gf()},"VExpansionPanel"),D0=re()({name:"VExpansionPanel",props:Zf(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const l=ba(e,ni),{backgroundColorClasses:i,backgroundColorStyles:a}=Kt(e,"bgColor"),{elevationClasses:r}=Nn(e),{roundedClasses:o}=Ft(e),s=C(()=>(l==null?void 0:l.disabled.value)||e.disabled),d=C(()=>l.group.items.value.reduce((c,m,v)=>(l.group.selected.value.includes(m.id)&&c.push(v),c),[])),u=C(()=>{const c=l.group.items.value.findIndex(m=>m.id===l.id);return!l.isSelected.value&&d.value.some(m=>m-c===1)}),f=C(()=>{const c=l.group.items.value.findIndex(m=>m.id===l.id);return!l.isSelected.value&&d.value.some(m=>m-c===-1)});return gt(ni,l),be(()=>{const c=!!(n.text||e.text),m=!!(n.title||e.title),v=Mr.filterProps(e),g=Or.filterProps(e);return h(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":l.isSelected.value,"v-expansion-panel--before-active":u.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":s.value},o.value,i.value,e.class],style:[a.value,e.style]},{default:()=>[h("div",{class:["v-expansion-panel__shadow",...r.value]},null),h(Je,{defaults:{VExpansionPanelTitle:{...v},VExpansionPanelText:{...g}}},{default:()=>{var b;return[m&&h(Mr,{key:"title"},{default:()=>[n.title?n.title():e.title]}),c&&h(Or,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(b=n.default)==null?void 0:b.call(n)]}})]})}),{groupItem:l}}}),H0=["default","accordion","inset","popout"],j0=U({flat:Boolean,...ga(),...ho(Zf(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...nt(),..._e(),...Ze(),variant:{type:String,default:"default",validator:e=>H0.includes(e)}},"VExpansionPanels"),z0=re()({name:"VExpansionPanels",props:j0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:l,prev:i}=ui(e,ni),{themeClasses:a}=at(e),r=C(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Bn({VExpansionPanel:{bgColor:le(e,"bgColor"),collapseIcon:le(e,"collapseIcon"),color:le(e,"color"),eager:le(e,"eager"),elevation:le(e,"elevation"),expandIcon:le(e,"expandIcon"),focusable:le(e,"focusable"),hideActions:le(e,"hideActions"),readonly:le(e,"readonly"),ripple:le(e,"ripple"),rounded:le(e,"rounded"),static:le(e,"static")}}),be(()=>h(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,r.value,e.class],style:e.style},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n,{prev:i,next:l})]}})),{next:l,prev:i}}}),W0=U({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Fo(),...Lo()},"VSwitch"),U0=re()({name:"VSwitch",inheritAttrs:!1,props:W0(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:l}=t;const i=qe(e,"indeterminate"),a=qe(e,"modelValue"),{loaderClasses:r}=xa(e),{isFocused:o,focus:s,blur:d}=Io(e),u=Q(),f=Be&&window.matchMedia("(forced-colors: active)").matches,c=C(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=Gt(),v=C(()=>e.id||`switch-${m}`);function g(){i.value&&(i.value=!1)}function b(S){var E,V;S.stopPropagation(),S.preventDefault(),(V=(E=u.value)==null?void 0:E.input)==null||V.click()}return be(()=>{const[S,E]=yo(n),V=Zi.filterProps(e),_=Yi.filterProps(e);return h(Zi,he({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},r.value,e.class]},S,V,{modelValue:a.value,"onUpdate:modelValue":P=>a.value=P,id:v.value,focused:o.value,style:e.style}),{...l,default:P=>{let{id:p,messagesId:L,isDisabled:x,isReadonly:R,isValid:$}=P;const O={model:a,isValid:$};return h(Yi,he({ref:u},_,{modelValue:a.value,"onUpdate:modelValue":[A=>a.value=A,g],id:p.value,"aria-describedby":L.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:x.value,readonly:R.value,onFocus:s,onBlur:d},E),{...l,default:A=>{let{backgroundColorClasses:F,backgroundColorStyles:D}=A;return h("div",{class:["v-switch__track",f?void 0:F.value],style:D.value,onClick:b},[l["track-true"]&&h("div",{key:"prepend",class:"v-switch__track-true"},[l["track-true"](O)]),l["track-false"]&&h("div",{key:"append",class:"v-switch__track-false"},[l["track-false"](O)])])},input:A=>{let{inputNode:F,icon:D,backgroundColorClasses:G,backgroundColorStyles:Z}=A;return h(fe,null,[F,h("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||e.loading},e.inset||f?void 0:G.value],style:e.inset?void 0:Z.value},[l.thumb?h(Je,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[l.thumb({...O,icon:D})]}):h(sp,null,{default:()=>[e.loading?h(jo,{name:"v-switch",active:!0,color:$.value===!1?void 0:c.value},{default:ne=>l.loader?l.loader(ne):h(Wf,{active:ne.isActive,color:ne.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&h(He,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}}),qo=Symbol.for("vuetify:v-tabs"),q0=U({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...on(Uf({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Xf=re()({name:"VTab",props:q0(),setup(e,t){let{slots:n,attrs:l}=t;const{textColorClasses:i,textColorStyles:a}=Dt(e,"sliderColor"),r=Q(),o=Q(),s=C(()=>e.direction==="horizontal"),d=C(()=>{var f,c;return((c=(f=r.value)==null?void 0:f.group)==null?void 0:c.isSelected.value)??!1});function u(f){var m,v;let{value:c}=f;if(c){const g=(v=(m=r.value)==null?void 0:m.$el.parentElement)==null?void 0:v.querySelector(".v-tab--selected .v-tab__slider"),b=o.value;if(!g||!b)return;const S=getComputedStyle(g).color,E=g.getBoundingClientRect(),V=b.getBoundingClientRect(),_=s.value?"x":"y",P=s.value?"X":"Y",p=s.value?"right":"bottom",L=s.value?"width":"height",x=E[_],R=V[_],$=x>R?E[p]-V[p]:E[_]-V[_],O=Math.sign($)>0?s.value?"right":"bottom":Math.sign($)<0?s.value?"left":"top":"center",F=(Math.abs($)+(Math.sign($)<0?E[L]:V[L]))/Math.max(E[L],V[L])||0,D=E[L]/V[L]||0,G=1.5;qn(b,{backgroundColor:[S,"currentcolor"],transform:[`translate${P}(${$}px) scale${P}(${D})`,`translate${P}(${$/G}px) scale${P}(${(F-1)/G+1})`,"none"],transformOrigin:Array(3).fill(O)},{duration:225,easing:Xl})}}return be(()=>{const f=el.filterProps(e);return h(el,he({symbol:qo,ref:r,class:["v-tab",e.class],style:e.style,tabindex:d.value?0:-1,role:"tab","aria-selected":String(d.value),active:!1},f,l,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":u}),{...n,default:()=>{var c;return h(fe,null,[((c=n.default)==null?void 0:c.call(n))??e.text,!e.hideSlider&&h("div",{ref:o,class:["v-tab__slider",i.value],style:a.value},null)])}})}),Il({},r)}}),K0=e=>{const{touchstartX:t,touchendX:n,touchstartY:l,touchendY:i}=e,a=.5,r=16;e.offsetX=n-t,e.offsetY=i-l,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-r&&e.left(e),e.right&&n>t+r&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&i<l-r&&e.up(e),e.down&&i>l+r&&e.down(e))};function G0(e,t){var l;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(l=t.start)==null||l.call(t,{originalEvent:e,...t})}function Y0(e,t){var l;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(l=t.end)==null||l.call(t,{originalEvent:e,...t}),K0(t)}function Z0(e,t){var l;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(l=t.move)==null||l.call(t,{originalEvent:e,...t})}function X0(){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=>G0(n,t),touchend:n=>Y0(n,t),touchmove:n=>Z0(n,t)}}function J0(e,t){var o;const n=t.value,l=n!=null&&n.parent?e.parentElement:e,i=(n==null?void 0:n.options)??{passive:!0},a=(o=t.instance)==null?void 0:o.$.uid;if(!l||!a)return;const r=X0(t.value);l._touchHandlers=l._touchHandlers??Object.create(null),l._touchHandlers[a]=r,Xc(r).forEach(s=>{l.addEventListener(s,r[s],i)})}function Q0(e,t){var a,r;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,l=(r=t.instance)==null?void 0:r.$.uid;if(!(n!=null&&n._touchHandlers)||!l)return;const i=n._touchHandlers[l];Xc(i).forEach(o=>{n.removeEventListener(o,i[o])}),delete n._touchHandlers[l]}const Jf={mounted:J0,unmounted:Q0},ew=Jf,Qf=Symbol.for("vuetify:v-window"),ev=Symbol.for("vuetify:v-window-group"),tv=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(),...Ze(),...nt()},"VWindow"),Rr=re()({name:"VWindow",directives:{Touch:Jf},props:tv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:l}=at(e),{isRtl:i}=Yt(),{t:a}=Al(),r=ui(e,ev),o=Q(),s=C(()=>i.value?!e.reverse:e.reverse),d=ge(!1),u=C(()=>{const _=e.direction==="vertical"?"y":"x",p=(s.value?!d.value:d.value)?"-reverse":"";return`v-window-${_}${p}-transition`}),f=ge(0),c=Q(void 0),m=C(()=>r.items.value.findIndex(_=>r.selected.value.includes(_.id)));ve(m,(_,P)=>{const p=r.items.value.length,L=p-1;p<=2?d.value=_<P:_===L&&P===0?d.value=!0:_===0&&P===L?d.value=!1:d.value=_<P}),gt(Qf,{transition:u,isReversed:d,transitionCount:f,transitionHeight:c,rootRef:o});const v=C(()=>e.continuous||m.value!==0),g=C(()=>e.continuous||m.value!==r.items.value.length-1);function b(){v.value&&r.prev()}function S(){g.value&&r.next()}const E=C(()=>{const _=[],P={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${s.value?"right":"left"}`,onClick:r.prev,"aria-label":a("$vuetify.carousel.prev")};_.push(v.value?n.prev?n.prev({props:P}):h(el,P,null):h("div",null,null));const p={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${s.value?"left":"right"}`,onClick:r.next,"aria-label":a("$vuetify.carousel.next")};return _.push(g.value?n.next?n.next({props:p}):h(el,p,null):h("div",null,null)),_}),V=C(()=>e.touch===!1?e.touch:{...{left:()=>{s.value?b():S()},right:()=>{s.value?S():b()},start:P=>{let{originalEvent:p}=P;p.stopPropagation()}},...e.touch===!0?{}:e.touch});return be(()=>vt(h(e.tag,{ref:o,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},l.value,e.class],style:e.style},{default:()=>{var _,P;return[h("div",{class:"v-window__container",style:{height:c.value}},[(_=n.default)==null?void 0:_.call(n,{group:r}),e.showArrows!==!1&&h("div",{class:"v-window__controls"},[E.value])]),(P=n.additional)==null?void 0:P.call(n,{group:r})]}}),[[pn("touch"),V.value]])),{group:r}}}),tw=U({...on(tv(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),nw=re()({name:"VTabsWindow",props:tw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const l=ze(qo,null),i=qe(e,"modelValue"),a=C({get(){var r;return i.value!=null||!l?i.value:(r=l.items.value.find(o=>l.selected.value.includes(o.id)))==null?void 0:r.value},set(r){i.value=r}});return be(()=>{const r=Rr.filterProps(e);return h(Rr,he({_as:"VTabsWindow"},r,{modelValue:a.value,"onUpdate:modelValue":o=>a.value=o,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),nv=U({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},..._e(),...ya(),...$o()},"VWindowItem"),Br=re()({name:"VWindowItem",directives:{Touch:ew},props:nv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const l=ze(Qf),i=ba(e,ev),{isBooted:a}=Bo();if(!l||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const r=ge(!1),o=C(()=>a.value&&(l.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function s(){!r.value||!l||(r.value=!1,l.transitionCount.value>0&&(l.transitionCount.value-=1,l.transitionCount.value===0&&(l.transitionHeight.value=void 0)))}function d(){var v;r.value||!l||(r.value=!0,l.transitionCount.value===0&&(l.transitionHeight.value=Ce((v=l.rootRef.value)==null?void 0:v.clientHeight)),l.transitionCount.value+=1)}function u(){s()}function f(v){r.value&&ot(()=>{!o.value||!r.value||!l||(l.transitionHeight.value=Ce(v.clientHeight))})}const c=C(()=>{const v=l.isReversed.value?e.reverseTransition:e.transition;return o.value?{name:typeof v!="string"?l.transition.value:v,onBeforeEnter:d,onAfterEnter:s,onEnterCancelled:u,onBeforeLeave:d,onAfterLeave:s,onLeaveCancelled:u,onEnter:f}:!1}),{hasContent:m}=No(e,i.isSelected);return be(()=>h(vn,{transition:c.value,disabled:!a.value},{default:()=>{var v;return[vt(h("div",{class:["v-window-item",i.selectedClass.value,e.class],style:e.style},[m.value&&((v=n.default)==null?void 0:v.call(n))]),[[Rn,i.isSelected.value]])]}})),{groupItem:i}}}),lw=U({...nv()},"VTabsWindowItem"),iw=re()({name:"VTabsWindowItem",props:lw(),setup(e,t){let{slots:n}=t;return be(()=>{const l=Br.filterProps(e);return h(Br,he({_as:"VTabsWindowItem"},l,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function aw(e){return e?e.map(t=>Zc(t)?t:{text:t,value:t}):[]}const rw=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,...Oo({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Wt(),...Ze()},"VTabs"),ow=re()({name:"VTabs",props:rw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:l}=t;const i=qe(e,"modelValue"),a=C(()=>aw(e.items)),{densityClasses:r}=Zt(e),{backgroundColorClasses:o,backgroundColorStyles:s}=Kt(le(e,"bgColor")),{scopeId:d}=Ca();return Bn({VTab:{color:le(e,"color"),direction:le(e,"direction"),stacked:le(e,"stacked"),fixed:le(e,"fixedTabs"),sliderColor:le(e,"sliderColor"),hideSlider:le(e,"hideSlider")}}),be(()=>{const u=Xi.filterProps(e),f=!!(l.window||e.items.length>0);return h(fe,null,[h(Xi,he(u,{modelValue:i.value,"onUpdate:modelValue":c=>i.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},r.value,o.value,e.class],style:[{"--v-tabs-height":Ce(e.height)},s.value,e.style],role:"tablist",symbol:qo},d,n),{default:()=>{var c;return[((c=l.default)==null?void 0:c.call(l))??a.value.map(m=>{var v;return((v=l.tab)==null?void 0:v.call(l,{item:m}))??h(Xf,he(m,{key:m.text,value:m.value}),{default:l[`tab.${m.value}`]?()=>{var g;return(g=l[`tab.${m.value}`])==null?void 0:g.call(l,{item:m})}:void 0})})]}}),f&&h(nw,he({modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,key:"tabs-window"},d),{default:()=>{var c;return[a.value.map(m=>{var v;return((v=l.item)==null?void 0:v.call(l,{item:m}))??h(iw,{value:m.value},{default:()=>{var g;return(g=l[`item.${m.value}`])==null?void 0:g.call(l,{item:m})}})}),(c=l.window)==null?void 0:c.call(l)]}})])}),{}}}),sw={key:0,class:"text-h4 text-center"},uw={key:1,class:"mt-2"},cw={__name:"dashboard",setup(e){const t=window.APPLICATION,n=t.configuration,l=u=>{console.error(u),Ki(t.href+"/error",{method:"POST",body:{message:u.message||u}})};if(Ae.draft==="true"&&window.parent){const u=[].concat(...n.sections.map(c=>[].concat(...c.rows.map(m=>[].concat(...m.elements))))),f=u.filter(c=>c.type==="application"&&c.application).map(c=>({id:c.application.id,title:c.application.title})).filter((c,m,v)=>v.findIndex(g=>c.id===g.id)===m);if((n.applications||[]).map(c=>c.id).join("-")!==f.map(c=>c.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"applications",value:f}},"*"),n.datasets&&n.datasets.length){const c=n.datasets[0],m=u.filter(v=>v.type==="tablePreview"&&v.dataset).map(v=>({id:v.dataset.id,title:v.dataset.title,href:v.dataset.href})).filter((v,g,b)=>v.id!==c.id&&b.findIndex(S=>v.id===S.id)===g);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 i=[Q({}),Q({})],a=[Q(null),Q(null)];let r=0,o=0;if(!n.datasets||!n.datasets.length)l("Veuillez choisir un source de données pour le filtre commun");else if((!n.filters||!n.filters.length)&&!n.periodFilter&&!n.addressFilter)l("Veuillez configurer un filtre");else{const u="_d_"+n.datasets[0].id+"_";for(const f of n.filters)!Ae[u+f.labelField+"_in"]&&f.forceOneValue&&f.startValue&&(Ae[u+f.labelField+"_in"]=f.startValue);if(n.periodFilter&&!Ae.period){const f=(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=[f];f!==c&&m.push(c),Ae.period=m.join(",")}r=Math.max(...n.sections.map(f=>f.title&&f.title.length||0)),o=n.sections.reduce((f,c)=>f+(c.title&&c.title.length||0),0)}function d(u){u?Ae.view="compare":delete Ae.view}return(u,f)=>{var c;return(c=J(n).filters)!=null&&c.length||J(n).periodFilter||J(n).addressFilter?(ce(),De(G1,{key:0,fluid:"","data-iframe-height":""},{default:Ee(()=>[J(n).title?(ce(),Ne("h2",sw,Et(J(n).title),1)):et("",!0),J(n).description?(ce(),Ne("p",uw,Et(J(n).description),1)):et("",!0),J(n).allowDuplicate?(ce(),De(U0,{key:2,label:"Mode comparaison",density:"compact","model-value":J(Ae).view==="compare",style:{"max-height":"40px"},"onUpdate:modelValue":d},null,8,["model-value"])):et("",!0),h(kl,null,{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(Ae).view==="compare"?[0,1]:[0],m=>(ce(),De(ln,{key:m,cols:J(Ae).view==="compare"?6:12},{default:Ee(()=>[h(y0,{config:J(n),prefix:m?"c":"","onUpdate:modelValue":v=>i[m].value=v},null,8,["config","prefix","onUpdate:modelValue"]),J(n).sections.length===1?(ce(),De(xi,{key:0,section:J(n).sections[0],"filters-values":i[m].value},null,8,["section","filters-values"])):J(n).sectionsGroup.includes("tabs")?(ce(),Ne(fe,{key:1},[J(n).sectionsGroup==="tabs-tab"?(ce(),De(ow,{key:0,modelValue:a[m],"onUpdate:modelValue":v=>a[m]=v,class:"mb-3",color:"primary","fixed-tabs":J(r)<=30,grow:J(r)>30&&J(o)<200,direction:J(o)>=200?"vertical":"horizontal"},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(Xf,{key:g,value:g},{default:Ee(()=>[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","fixed-tabs","grow","direction"])):J(n).sectionsGroup==="tabs-button"?(ce(),De(kl,{key:1},{default:Ee(()=>[h(Fu),h(ln,{cols:"auto"},{default:Ee(()=>[h(Fr,{variant:"outlined"},{default:Ee(()=>[h(w0,{modelValue:a[m],"onUpdate:modelValue":v=>a[m]=v,color:"primary",mandatory:"",style:Ln(J(o)*15>=u.$vuetify.display.width?`flex-direction: column;height:${J(n).sections.length*36}px`:"")},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(el,{key:g,value:g,height:J(o)*15>=u.$vuetify.display.width?36:48},{default:Ee(()=>[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)]),_:2},1032,["value","height"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style"])]),_:2},1024)]),_:2},1024),h(Fu)]),_:2},1024)):et("",!0),h(Rr,{modelValue:a[m],"onUpdate:modelValue":v=>a[m]=v},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(Br,{key:g,value:g},{default:Ee(()=>[h(xi,{section:v,"filters-values":i[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):J(n).sectionsGroup==="accordion"?(ce(),De(z0,{key:2,multiple:"",variant:"accordion","model-value":J(n).sections.map((v,g)=>g)},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(D0,{key:g,value:g,eager:""},{default:Ee(()=>[h(Mr,{class:"bg-primary"},{default:Ee(()=>[Xn("h3",null,[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)])]),_:2},1024),h(Or,null,{default:Ee(()=>[h(xi,{section:v,"filters-values":i[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:2},1032,["model-value"])):(ce(!0),Ne(fe,{key:3},Qt(J(n).sections||[],(v,g)=>(ce(),Ne("div",{key:g,class:"my-6"},[Xn("h2",null,[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)]),h(xi,{section:v,"filters-values":i[m].value,"hide-title":""},null,8,["section","filters-values"])]))),128))]),_:2},1032,["cols"]))),128))]),_:1})]),_:1})):et("",!0)}}},dw=U({..._e(),...Oy({fullHeight:!0}),...nt()},"VApp"),fw=re()({name:"VApp",props:dw(),setup(e,t){let{slots:n}=t;const l=at(e),{layoutClasses:i,getLayoutItem:a,items:r,layoutRef:o}=Ry(e),{rtlClasses:s}=Yt();return be(()=>{var d;return h("div",{ref:o,class:["v-application",l.themeClasses.value,i.value,s.value,e.class],style:[e.style]},[h("div",{class:"v-application__wrap"},[(d=n.default)==null?void 0:d.call(n)])])}),{getLayoutItem:a,items:r,theme:l}}}),vw=U({scrollable:Boolean,..._e(),...jt(),...Ze({tag:"main"})},"VMain"),mw=re()({name:"VMain",props:vw(),setup(e,t){let{slots:n}=t;const{dimensionStyles:l}=zt(e),{mainStyles:i}=Sd(),{ssrBootStyles:a}=Bo();return be(()=>h(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[i.value,a.value,l.value,e.style]},{default:()=>{var r,o;return[e.scrollable?h("div",{class:"v-main__scroller"},[(r=n.default)==null?void 0:r.call(n)]):(o=n.default)==null?void 0:o.call(n)]}})),{}}}),hw={__name:"app",setup(e){return(t,n)=>(ce(),De(fw,null,{default:Ee(()=>[h(mw,null,{default:Ee(()=>[(ce(),De(rm,null,{default:Ee(()=>[h(cw)]),_:1}))]),_:1})]),_:1}))}},gw={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"},yw={component:Po};window.iFrameResizer={heightCalculationMethod:"taggedElement"};const lv=Dy(Ae);lv.icons={defaultSet:"mdi",aliases:gw,sets:{mdi:yw}};const iv=Rh(hw);iv.use(xd(lv));iv.mount("#app");
|
27
|
+
- new query: ${JSON.stringify(i)}`),e==="push"?this.$router.push({query:i}):this.$router.replace({query:i})}else if(this.reactiveParams&&e!=="push"){dn("apply state from iframe to parent using reactive params",this.syncedSrc,t.search);for(const i of[...t.searchParams.keys()])this.reactiveParams[i]=t.searchParams.get(i);for(const i of Object.keys(this.reactiveParams))t.searchParams.has(i)||delete this.reactiveParams[i]}else{if(t.href===window.location.href)return;dn("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:V0,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})}}},E0=["innerHTML"];function L0(e,t,n,l,i,a){return ce(),Ne("div",{class:"v-iframe",style:Ln(`width:${n.width}`)},[a.actualAspectRatio?(ce(),De(_r,{key:0,"aspect-ratio":a.actualAspectRatio,style:{height:"100%"}},{default:Ee(()=>[e.actualWidth?(ce(),Ne("iframe",he({key:0},a.fullIframeAttrs,{onLoad:t[0]||(t[0]=r=>a.iframeLoaded())}),null,16)):et("",!0)]),_:1},8,["aspect-ratio"])):et("",!0),e.notification?(ce(),De(_0,he({key:1,ref:"notificationSnackbar",modelValue:e.showNotification,"onUpdate:modelValue":t[2]||(t[2]=r=>e.showNotification=r),class:"ui-notification"},a.fullSnackbarProps),{action:Ee(({})=>[h(el,{icon:"",onClick:t[1]||(t[1]=r=>e.showNotification=!1)},{default:Ee(()=>[h(He,null,{default:Ee(()=>[xt("mdi-close")]),_:1})]),_:1})]),default:Ee(()=>[Xn("p",null,Et(e.notification.msg),1),e.notification.errorMsg?(ce(),Ne("p",{key:0,class:"ml-3",innerHTML:e.notification.errorMsg},null,8,E0)):et("",!0)]),_:1},16,["modelValue"])):et("",!0)],4)}const Ru=b0(A0,[["render",L0]]),I0=fa("v-alert-title"),T0=["success","info","warning","error"],F0=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=>T0.includes(e)},..._e(),...Wt(),...jt(),...$n(),...ci(),...ka(),...Tt(),...Ze(),...nt(),...un({variant:"flat"})},"VAlert"),O0=re()({name:"VAlert",props:F0(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:l}=t;const i=qe(e,"modelValue"),a=C(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),r=C(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:o}=at(e),{colorClasses:s,colorStyles:d,variantClasses:u}=ol(r),{densityClasses:f}=Zt(e),{dimensionStyles:c}=zt(e),{elevationClasses:m}=Nn(e),{locationStyles:v}=Sa(e),{positionClasses:g}=_a(e),{roundedClasses:b}=Ft(e),{textColorClasses:S,textColorStyles:E}=Dt(le(e,"borderColor")),{t:V}=Al(),_=C(()=>({"aria-label":V(e.closeLabel),onClick(P){i.value=!1,n("click:close",P)}}));return()=>{const P=!!(l.prepend||a.value),p=!!(l.title||e.title),L=!!(l.close||e.closable);return i.value&&h(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},o.value,s.value,f.value,m.value,g.value,b.value,u.value,e.class],style:[d.value,c.value,v.value,e.style],role:"alert"},{default:()=>{var x,R;return[rl(!1,"v-alert"),e.border&&h("div",{key:"border",class:["v-alert__border",S.value],style:E.value},null),P&&h("div",{key:"prepend",class:"v-alert__prepend"},[l.prepend?h(Je,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{density:e.density,icon:a.value,size:e.prominent?44:28}}},l.prepend):h(He,{key:"prepend-icon",density:e.density,icon:a.value,size:e.prominent?44:28},null)]),h("div",{class:"v-alert__content"},[p&&h(I0,{key:"title"},{default:()=>{var $;return[(($=l.title)==null?void 0:$.call(l))??e.title]}}),((x=l.text)==null?void 0:x.call(l))??e.text,(R=l.default)==null?void 0:R.call(l)]),l.append&&h("div",{key:"append",class:"v-alert__append"},[l.append()]),L&&h("div",{key:"close",class:"v-alert__close"},[l.close?h(Je,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var $;return[($=l.close)==null?void 0:$.call(l,{props:_.value})]}}):h(el,he({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}}),M0={key:1,class:"mt-4"},Bu={__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,l=Object.assign({},...n.datasets[0].schema.map(u=>({[u.key]:u}))),i=C(()=>{const u={...t.filtersValues};return Ae.primary&&(u.primary=Ae.primary),Ae.secondary&&(u.secondary=Ae.secondary),u}),o=window.APPLICATION.exposedUrl.split("/").pop().split("%3A"),s=o.length===2?o[0]:null,d=C(()=>(t.element.valueMandatory&&t.element.mandatoryFilters||[]).filter(u=>{var f,c;return!((c=(f=t.filtersValues)==null?void 0:f.keys)!=null&&c.includes(u))}));return(u,f)=>d.value.length?(ce(),De(O0,{key:0,type:"info",variant:"outlined"},{default:Ee(()=>[Xn("h4",null,"Veuillez sélectionner une valeur de "+Et(d.value.map(c=>J(l)[c].label||J(l)[c].title||J(l)[c]["x-originalName"]||c).join(", ")),1)]),_:1})):e.element.type==="tablePreview"?(ce(),De(J(Ru),{key:1,src:`/data-fair/embed/dataset/${J(s)?J(s)+"%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":i.value,style:Ln(`height:${e.height>0?e.height+"px":"100%"}`)},null,8,["src","query-params-extra","style"])):(ce(),Ne("div",{key:2,style:Ln(`overflow-y:auto;height:${e.height>0?e.height+"px":"100%"}`)},[e.element.type==="application"?(ce(),De(J(Ru),{key:0,src:`/data-fair/app/${J(s)?J(s)+"%3A":""}${e.element.application.id}`,"query-params-extra":i.value,style:Ln(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"?(ce(),Ne("div",M0,Et(e.element.content),1)):et("",!0)],4))}},R0={__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"?(ce(!0),Ne(fe,{key:0},Qt(e.element.elements,(l,i)=>(ce(),De(Bu,{key:i,element:l,height:e.height/e.element.elements.length,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))),128)):(ce(),De(Bu,{key:1,element:e.element,height:e.height,"filters-values":e.filtersValues},null,8,["element","height","filters-values"]))}},B0={key:0,class:"text-h5 mt-8"},$0={key:1,class:"mt-4"},N0={key:0,class:"text-h6 mt-4"},xi={__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 l of t.section.rows)for(const i of["sm","md","lg","xl"]){let a=0;for(;a<l.elements.length;){let r=a,o=0;for(;r<l.elements.length&&o+n[i][l.elements[r].width-1]<=12;)o+=n[i][l.elements[r].width-1],r+=1;for(let s=a;s<r;s++)l.elements[s][i]=Math.floor(.3+12*n[i][l.elements[s].width-1]/o),l.elements[s].class=l.elements[s].class||(l.elements[s].type==="text"?["order-first"]:[]),l.elements[s].type==="text"&&l.elements[s][i]===12?l.elements[s].class.push("order-"+i+"-first"):l.elements[s].class.push("order-"+i+"-"+(s+1));a=r}}return(l,i)=>(ce(),Ne(fe,null,[e.hideTitle?et("",!0):(ce(),Ne("h3",B0,[e.section.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:e.section.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(e.section.title),1)])),e.section.description?(ce(),Ne("p",$0,Et(e.section.description),1)):et("",!0),(ce(!0),Ne(fe,null,Qt(e.section.rows||[],(a,r)=>(ce(),De(kl,{key:r,justify:"center"},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(a.elements||[],(o,s)=>(ce(),De(ln,{key:s,cols:12,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl,class:la(o.class?o.class.join(" "):"")},{default:Ee(()=>[o.title?(ce(),Ne("h4",N0,Et(o.title),1)):et("",!0),h(R0,{element:o,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))}},ni=Symbol.for("vuetify:v-expansion-panel"),Gf=U({..._e(),...$o()},"VExpansionPanelText"),Or=re()({name:"VExpansionPanelText",props:Gf(),setup(e,t){let{slots:n}=t;const l=ze(ni);if(!l)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:a}=No(e,l.isSelected);return be(()=>h(Zd,{onAfterLeave:a},{default:()=>{var r;return[vt(h("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&i.value&&h("div",{class:"v-expansion-panel-text__wrapper"},[(r=n.default)==null?void 0:r.call(n)])]),[[Rn,l.isSelected.value]])]}})),{}}}),Yf=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(),...jt()},"VExpansionPanelTitle"),Mr=re()({name:"VExpansionPanelTitle",directives:{Ripple:Ll},props:Yf(),setup(e,t){let{slots:n}=t;const l=ze(ni);if(!l)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:a}=Kt(e,"color"),{dimensionStyles:r}=zt(e),o=C(()=>({collapseIcon:e.collapseIcon,disabled:l.disabled.value,expanded:l.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),s=C(()=>l.isSelected.value?e.collapseIcon:e.expandIcon);return be(()=>{var d;return vt(h("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":l.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},i.value,e.class],style:[a.value,r.value,e.style],type:"button",tabindex:l.disabled.value?-1:void 0,disabled:l.disabled.value,"aria-expanded":l.isSelected.value,onClick:e.readonly?void 0:l.toggle},[h("span",{class:"v-expansion-panel-title__overlay"},null),(d=n.default)==null?void 0:d.call(n,o.value),!e.hideActions&&h(Je,{defaults:{VIcon:{icon:s.value}}},{default:()=>{var u;return[h("span",{class:"v-expansion-panel-title__icon"},[((u=n.actions)==null?void 0:u.call(n,o.value))??h(He,null,null)])]}})]),[[pn("ripple"),e.ripple]])}),{}}}),Zf=U({title:String,text:String,bgColor:String,...$n(),...ya(),...Tt(),...Ze(),...Yf(),...Gf()},"VExpansionPanel"),D0=re()({name:"VExpansionPanel",props:Zf(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const l=ba(e,ni),{backgroundColorClasses:i,backgroundColorStyles:a}=Kt(e,"bgColor"),{elevationClasses:r}=Nn(e),{roundedClasses:o}=Ft(e),s=C(()=>(l==null?void 0:l.disabled.value)||e.disabled),d=C(()=>l.group.items.value.reduce((c,m,v)=>(l.group.selected.value.includes(m.id)&&c.push(v),c),[])),u=C(()=>{const c=l.group.items.value.findIndex(m=>m.id===l.id);return!l.isSelected.value&&d.value.some(m=>m-c===1)}),f=C(()=>{const c=l.group.items.value.findIndex(m=>m.id===l.id);return!l.isSelected.value&&d.value.some(m=>m-c===-1)});return gt(ni,l),be(()=>{const c=!!(n.text||e.text),m=!!(n.title||e.title),v=Mr.filterProps(e),g=Or.filterProps(e);return h(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":l.isSelected.value,"v-expansion-panel--before-active":u.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":s.value},o.value,i.value,e.class],style:[a.value,e.style]},{default:()=>[h("div",{class:["v-expansion-panel__shadow",...r.value]},null),h(Je,{defaults:{VExpansionPanelTitle:{...v},VExpansionPanelText:{...g}}},{default:()=>{var b;return[m&&h(Mr,{key:"title"},{default:()=>[n.title?n.title():e.title]}),c&&h(Or,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(b=n.default)==null?void 0:b.call(n)]}})]})}),{groupItem:l}}}),H0=["default","accordion","inset","popout"],j0=U({flat:Boolean,...ga(),...ho(Zf(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...nt(),..._e(),...Ze(),variant:{type:String,default:"default",validator:e=>H0.includes(e)}},"VExpansionPanels"),z0=re()({name:"VExpansionPanels",props:j0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:l,prev:i}=ui(e,ni),{themeClasses:a}=at(e),r=C(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Bn({VExpansionPanel:{bgColor:le(e,"bgColor"),collapseIcon:le(e,"collapseIcon"),color:le(e,"color"),eager:le(e,"eager"),elevation:le(e,"elevation"),expandIcon:le(e,"expandIcon"),focusable:le(e,"focusable"),hideActions:le(e,"hideActions"),readonly:le(e,"readonly"),ripple:le(e,"ripple"),rounded:le(e,"rounded"),static:le(e,"static")}}),be(()=>h(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,r.value,e.class],style:e.style},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n,{prev:i,next:l})]}})),{next:l,prev:i}}}),W0=U({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Fo(),...Lo()},"VSwitch"),U0=re()({name:"VSwitch",inheritAttrs:!1,props:W0(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:l}=t;const i=qe(e,"indeterminate"),a=qe(e,"modelValue"),{loaderClasses:r}=xa(e),{isFocused:o,focus:s,blur:d}=Io(e),u=Q(),f=Be&&window.matchMedia("(forced-colors: active)").matches,c=C(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=Gt(),v=C(()=>e.id||`switch-${m}`);function g(){i.value&&(i.value=!1)}function b(S){var E,V;S.stopPropagation(),S.preventDefault(),(V=(E=u.value)==null?void 0:E.input)==null||V.click()}return be(()=>{const[S,E]=yo(n),V=Zi.filterProps(e),_=Yi.filterProps(e);return h(Zi,he({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},r.value,e.class]},S,V,{modelValue:a.value,"onUpdate:modelValue":P=>a.value=P,id:v.value,focused:o.value,style:e.style}),{...l,default:P=>{let{id:p,messagesId:L,isDisabled:x,isReadonly:R,isValid:$}=P;const O={model:a,isValid:$};return h(Yi,he({ref:u},_,{modelValue:a.value,"onUpdate:modelValue":[A=>a.value=A,g],id:p.value,"aria-describedby":L.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:x.value,readonly:R.value,onFocus:s,onBlur:d},E),{...l,default:A=>{let{backgroundColorClasses:F,backgroundColorStyles:D}=A;return h("div",{class:["v-switch__track",f?void 0:F.value],style:D.value,onClick:b},[l["track-true"]&&h("div",{key:"prepend",class:"v-switch__track-true"},[l["track-true"](O)]),l["track-false"]&&h("div",{key:"append",class:"v-switch__track-false"},[l["track-false"](O)])])},input:A=>{let{inputNode:F,icon:D,backgroundColorClasses:G,backgroundColorStyles:Z}=A;return h(fe,null,[F,h("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||e.loading},e.inset||f?void 0:G.value],style:e.inset?void 0:Z.value},[l.thumb?h(Je,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[l.thumb({...O,icon:D})]}):h(sp,null,{default:()=>[e.loading?h(jo,{name:"v-switch",active:!0,color:$.value===!1?void 0:c.value},{default:ne=>l.loader?l.loader(ne):h(Wf,{active:ne.isActive,color:ne.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&h(He,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}}),qo=Symbol.for("vuetify:v-tabs"),q0=U({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...on(Uf({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Xf=re()({name:"VTab",props:q0(),setup(e,t){let{slots:n,attrs:l}=t;const{textColorClasses:i,textColorStyles:a}=Dt(e,"sliderColor"),r=Q(),o=Q(),s=C(()=>e.direction==="horizontal"),d=C(()=>{var f,c;return((c=(f=r.value)==null?void 0:f.group)==null?void 0:c.isSelected.value)??!1});function u(f){var m,v;let{value:c}=f;if(c){const g=(v=(m=r.value)==null?void 0:m.$el.parentElement)==null?void 0:v.querySelector(".v-tab--selected .v-tab__slider"),b=o.value;if(!g||!b)return;const S=getComputedStyle(g).color,E=g.getBoundingClientRect(),V=b.getBoundingClientRect(),_=s.value?"x":"y",P=s.value?"X":"Y",p=s.value?"right":"bottom",L=s.value?"width":"height",x=E[_],R=V[_],$=x>R?E[p]-V[p]:E[_]-V[_],O=Math.sign($)>0?s.value?"right":"bottom":Math.sign($)<0?s.value?"left":"top":"center",F=(Math.abs($)+(Math.sign($)<0?E[L]:V[L]))/Math.max(E[L],V[L])||0,D=E[L]/V[L]||0,G=1.5;qn(b,{backgroundColor:[S,"currentcolor"],transform:[`translate${P}(${$}px) scale${P}(${D})`,`translate${P}(${$/G}px) scale${P}(${(F-1)/G+1})`,"none"],transformOrigin:Array(3).fill(O)},{duration:225,easing:Xl})}}return be(()=>{const f=el.filterProps(e);return h(el,he({symbol:qo,ref:r,class:["v-tab",e.class],style:e.style,tabindex:d.value?0:-1,role:"tab","aria-selected":String(d.value),active:!1},f,l,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":u}),{...n,default:()=>{var c;return h(fe,null,[((c=n.default)==null?void 0:c.call(n))??e.text,!e.hideSlider&&h("div",{ref:o,class:["v-tab__slider",i.value],style:a.value},null)])}})}),Il({},r)}}),K0=e=>{const{touchstartX:t,touchendX:n,touchstartY:l,touchendY:i}=e,a=.5,r=16;e.offsetX=n-t,e.offsetY=i-l,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-r&&e.left(e),e.right&&n>t+r&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&i<l-r&&e.up(e),e.down&&i>l+r&&e.down(e))};function G0(e,t){var l;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(l=t.start)==null||l.call(t,{originalEvent:e,...t})}function Y0(e,t){var l;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(l=t.end)==null||l.call(t,{originalEvent:e,...t}),K0(t)}function Z0(e,t){var l;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(l=t.move)==null||l.call(t,{originalEvent:e,...t})}function X0(){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=>G0(n,t),touchend:n=>Y0(n,t),touchmove:n=>Z0(n,t)}}function J0(e,t){var o;const n=t.value,l=n!=null&&n.parent?e.parentElement:e,i=(n==null?void 0:n.options)??{passive:!0},a=(o=t.instance)==null?void 0:o.$.uid;if(!l||!a)return;const r=X0(t.value);l._touchHandlers=l._touchHandlers??Object.create(null),l._touchHandlers[a]=r,Xc(r).forEach(s=>{l.addEventListener(s,r[s],i)})}function Q0(e,t){var a,r;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,l=(r=t.instance)==null?void 0:r.$.uid;if(!(n!=null&&n._touchHandlers)||!l)return;const i=n._touchHandlers[l];Xc(i).forEach(o=>{n.removeEventListener(o,i[o])}),delete n._touchHandlers[l]}const Jf={mounted:J0,unmounted:Q0},ew=Jf,Qf=Symbol.for("vuetify:v-window"),ev=Symbol.for("vuetify:v-window-group"),tv=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(),...Ze(),...nt()},"VWindow"),Rr=re()({name:"VWindow",directives:{Touch:Jf},props:tv(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:l}=at(e),{isRtl:i}=Yt(),{t:a}=Al(),r=ui(e,ev),o=Q(),s=C(()=>i.value?!e.reverse:e.reverse),d=ge(!1),u=C(()=>{const _=e.direction==="vertical"?"y":"x",p=(s.value?!d.value:d.value)?"-reverse":"";return`v-window-${_}${p}-transition`}),f=ge(0),c=Q(void 0),m=C(()=>r.items.value.findIndex(_=>r.selected.value.includes(_.id)));ve(m,(_,P)=>{const p=r.items.value.length,L=p-1;p<=2?d.value=_<P:_===L&&P===0?d.value=!0:_===0&&P===L?d.value=!1:d.value=_<P}),gt(Qf,{transition:u,isReversed:d,transitionCount:f,transitionHeight:c,rootRef:o});const v=C(()=>e.continuous||m.value!==0),g=C(()=>e.continuous||m.value!==r.items.value.length-1);function b(){v.value&&r.prev()}function S(){g.value&&r.next()}const E=C(()=>{const _=[],P={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${s.value?"right":"left"}`,onClick:r.prev,"aria-label":a("$vuetify.carousel.prev")};_.push(v.value?n.prev?n.prev({props:P}):h(el,P,null):h("div",null,null));const p={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${s.value?"left":"right"}`,onClick:r.next,"aria-label":a("$vuetify.carousel.next")};return _.push(g.value?n.next?n.next({props:p}):h(el,p,null):h("div",null,null)),_}),V=C(()=>e.touch===!1?e.touch:{...{left:()=>{s.value?b():S()},right:()=>{s.value?S():b()},start:P=>{let{originalEvent:p}=P;p.stopPropagation()}},...e.touch===!0?{}:e.touch});return be(()=>vt(h(e.tag,{ref:o,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},l.value,e.class],style:e.style},{default:()=>{var _,P;return[h("div",{class:"v-window__container",style:{height:c.value}},[(_=n.default)==null?void 0:_.call(n,{group:r}),e.showArrows!==!1&&h("div",{class:"v-window__controls"},[E.value])]),(P=n.additional)==null?void 0:P.call(n,{group:r})]}}),[[pn("touch"),V.value]])),{group:r}}}),tw=U({...on(tv(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),nw=re()({name:"VTabsWindow",props:tw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const l=ze(qo,null),i=qe(e,"modelValue"),a=C({get(){var r;return i.value!=null||!l?i.value:(r=l.items.value.find(o=>l.selected.value.includes(o.id)))==null?void 0:r.value},set(r){i.value=r}});return be(()=>{const r=Rr.filterProps(e);return h(Rr,he({_as:"VTabsWindow"},r,{modelValue:a.value,"onUpdate:modelValue":o=>a.value=o,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),nv=U({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},..._e(),...ya(),...$o()},"VWindowItem"),Br=re()({name:"VWindowItem",directives:{Touch:ew},props:nv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const l=ze(Qf),i=ba(e,ev),{isBooted:a}=Bo();if(!l||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const r=ge(!1),o=C(()=>a.value&&(l.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function s(){!r.value||!l||(r.value=!1,l.transitionCount.value>0&&(l.transitionCount.value-=1,l.transitionCount.value===0&&(l.transitionHeight.value=void 0)))}function d(){var v;r.value||!l||(r.value=!0,l.transitionCount.value===0&&(l.transitionHeight.value=Ce((v=l.rootRef.value)==null?void 0:v.clientHeight)),l.transitionCount.value+=1)}function u(){s()}function f(v){r.value&&ot(()=>{!o.value||!r.value||!l||(l.transitionHeight.value=Ce(v.clientHeight))})}const c=C(()=>{const v=l.isReversed.value?e.reverseTransition:e.transition;return o.value?{name:typeof v!="string"?l.transition.value:v,onBeforeEnter:d,onAfterEnter:s,onEnterCancelled:u,onBeforeLeave:d,onAfterLeave:s,onLeaveCancelled:u,onEnter:f}:!1}),{hasContent:m}=No(e,i.isSelected);return be(()=>h(vn,{transition:c.value,disabled:!a.value},{default:()=>{var v;return[vt(h("div",{class:["v-window-item",i.selectedClass.value,e.class],style:e.style},[m.value&&((v=n.default)==null?void 0:v.call(n))]),[[Rn,i.isSelected.value]])]}})),{groupItem:i}}}),lw=U({...nv()},"VTabsWindowItem"),iw=re()({name:"VTabsWindowItem",props:lw(),setup(e,t){let{slots:n}=t;return be(()=>{const l=Br.filterProps(e);return h(Br,he({_as:"VTabsWindowItem"},l,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function aw(e){return e?e.map(t=>Zc(t)?t:{text:t,value:t}):[]}const rw=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,...Oo({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Wt(),...Ze()},"VTabs"),ow=re()({name:"VTabs",props:rw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:l}=t;const i=qe(e,"modelValue"),a=C(()=>aw(e.items)),{densityClasses:r}=Zt(e),{backgroundColorClasses:o,backgroundColorStyles:s}=Kt(le(e,"bgColor")),{scopeId:d}=Ca();return Bn({VTab:{color:le(e,"color"),direction:le(e,"direction"),stacked:le(e,"stacked"),fixed:le(e,"fixedTabs"),sliderColor:le(e,"sliderColor"),hideSlider:le(e,"hideSlider")}}),be(()=>{const u=Xi.filterProps(e),f=!!(l.window||e.items.length>0);return h(fe,null,[h(Xi,he(u,{modelValue:i.value,"onUpdate:modelValue":c=>i.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},r.value,o.value,e.class],style:[{"--v-tabs-height":Ce(e.height)},s.value,e.style],role:"tablist",symbol:qo},d,n),{default:()=>{var c;return[((c=l.default)==null?void 0:c.call(l))??a.value.map(m=>{var v;return((v=l.tab)==null?void 0:v.call(l,{item:m}))??h(Xf,he(m,{key:m.text,value:m.value}),{default:l[`tab.${m.value}`]?()=>{var g;return(g=l[`tab.${m.value}`])==null?void 0:g.call(l,{item:m})}:void 0})})]}}),f&&h(nw,he({modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,key:"tabs-window"},d),{default:()=>{var c;return[a.value.map(m=>{var v;return((v=l.item)==null?void 0:v.call(l,{item:m}))??h(iw,{value:m.value},{default:()=>{var g;return(g=l[`item.${m.value}`])==null?void 0:g.call(l,{item:m})}})}),(c=l.window)==null?void 0:c.call(l)]}})])}),{}}}),sw={key:0,class:"text-h4 text-center"},uw={key:1,class:"mt-2"},cw={__name:"dashboard",setup(e){const t=window.APPLICATION,n=t.configuration,l=u=>{console.error(u),Ki(t.href+"/error",{method:"POST",body:{message:u.message||u}})};if(Ae.draft==="true"&&window.parent){const u=[].concat(...n.sections.map(c=>[].concat(...c.rows.map(m=>[].concat(...m.elements))))),f=u.filter(c=>c.type==="application"&&c.application).map(c=>({id:c.application.id,title:c.application.title})).filter((c,m,v)=>v.findIndex(g=>c.id===g.id)===m);if((n.applications||[]).map(c=>c.id).join("-")!==f.map(c=>c.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"applications",value:f}},"*"),n.datasets&&n.datasets.length){const c=n.datasets[0],m=u.filter(v=>v.type==="tablePreview"&&v.dataset).map(v=>({id:v.dataset.id,title:v.dataset.title,href:v.dataset.href})).filter((v,g,b)=>v.id!==c.id&&b.findIndex(S=>v.id===S.id)===g);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 i=[Q({}),Q({})],a=[Q(null),Q(null)];let r=0,o=0;if(!n.datasets||!n.datasets.length)l("Veuillez choisir un source de données pour le filtre commun");else if((!n.filters||!n.filters.length)&&!n.periodFilter&&!n.addressFilter)l("Veuillez configurer un filtre");else{const u="_d_"+n.datasets[0].id+"_";for(const f of n.filters)!Ae[u+f.labelField+"_in"]&&f.forceOneValue&&f.startValue&&(Ae[u+f.labelField+"_in"]=f.startValue);if(n.periodFilter&&!Ae.period){const f=(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=[f];f!==c&&m.push(c),Ae.period=m.join(",")}r=Math.max(...n.sections.map(f=>f.title&&f.title.length||0)),o=n.sections.reduce((f,c)=>f+(c.title&&c.title.length||0),0)}function d(u){u?Ae.view="compare":delete Ae.view}return(u,f)=>{var c;return(c=J(n).filters)!=null&&c.length||J(n).periodFilter||J(n).addressFilter?(ce(),De(G1,{key:0,fluid:"","data-iframe-height":""},{default:Ee(()=>[J(n).title?(ce(),Ne("h2",sw,Et(J(n).title),1)):et("",!0),J(n).description?(ce(),Ne("p",uw,Et(J(n).description),1)):et("",!0),J(n).allowDuplicate?(ce(),De(U0,{key:2,label:"Mode comparaison",density:"compact","model-value":J(Ae).view==="compare",style:{"max-height":"40px"},"onUpdate:modelValue":d},null,8,["model-value"])):et("",!0),h(kl,null,{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(Ae).view==="compare"?[0,1]:[0],m=>(ce(),De(ln,{key:m,cols:J(Ae).view==="compare"?6:12},{default:Ee(()=>[h(y0,{config:J(n),prefix:m?"c":"","onUpdate:modelValue":v=>i[m].value=v},null,8,["config","prefix","onUpdate:modelValue"]),J(n).sections.length===1?(ce(),De(xi,{key:0,section:J(n).sections[0],"filters-values":i[m].value},null,8,["section","filters-values"])):J(n).sectionsGroup.includes("tabs")?(ce(),Ne(fe,{key:1},[J(n).sectionsGroup==="tabs-tab"?(ce(),De(ow,{key:0,modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v,class:"mb-3",color:"primary","fixed-tabs":J(r)<=30,grow:J(r)>30&&J(o)<200,direction:J(o)>=200?"vertical":"horizontal"},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(Xf,{key:g,value:g},{default:Ee(()=>[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","fixed-tabs","grow","direction"])):J(n).sectionsGroup==="tabs-button"?(ce(),De(kl,{key:1},{default:Ee(()=>[h(Fu),h(ln,{cols:"auto"},{default:Ee(()=>[h(Fr,{variant:"outlined"},{default:Ee(()=>[h(w0,{modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v,color:"primary",mandatory:"",style:Ln(J(o)*15>=u.$vuetify.display.width?`flex-direction: column;height:${J(n).sections.length*36}px`:"")},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(el,{key:g,value:g,height:J(o)*15>=u.$vuetify.display.width?36:48},{default:Ee(()=>[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)]),_:2},1032,["value","height"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style"])]),_:2},1024)]),_:2},1024),h(Fu)]),_:2},1024)):et("",!0),h(Rr,{modelValue:a[m].value,"onUpdate:modelValue":v=>a[m].value=v},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(Br,{key:g,value:g},{default:Ee(()=>[h(xi,{section:v,"filters-values":i[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):J(n).sectionsGroup==="accordion"?(ce(),De(z0,{key:2,multiple:"",variant:"accordion","model-value":J(n).sections.map((v,g)=>g)},{default:Ee(()=>[(ce(!0),Ne(fe,null,Qt(J(n).sections||[],(v,g)=>(ce(),De(D0,{key:g,value:g,eager:""},{default:Ee(()=>[h(Mr,{class:"bg-primary"},{default:Ee(()=>[Xn("h3",null,[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)])]),_:2},1024),h(Or,null,{default:Ee(()=>[h(xi,{section:v,"filters-values":i[m].value,"hide-title":""},null,8,["section","filters-values"])]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:2},1032,["model-value"])):(ce(!0),Ne(fe,{key:3},Qt(J(n).sections||[],(v,g)=>(ce(),Ne("div",{key:g,class:"my-6"},[Xn("h2",null,[v.icon?(ce(),Ne(fe,{key:0},[h(He,{icon:v.icon.svgPath},null,8,["icon"]),xt(" ")],64)):et("",!0),xt(" "+Et(v.title),1)]),h(xi,{section:v,"filters-values":i[m].value,"hide-title":""},null,8,["section","filters-values"])]))),128))]),_:2},1032,["cols"]))),128))]),_:1})]),_:1})):et("",!0)}}},dw=U({..._e(),...Oy({fullHeight:!0}),...nt()},"VApp"),fw=re()({name:"VApp",props:dw(),setup(e,t){let{slots:n}=t;const l=at(e),{layoutClasses:i,getLayoutItem:a,items:r,layoutRef:o}=Ry(e),{rtlClasses:s}=Yt();return be(()=>{var d;return h("div",{ref:o,class:["v-application",l.themeClasses.value,i.value,s.value,e.class],style:[e.style]},[h("div",{class:"v-application__wrap"},[(d=n.default)==null?void 0:d.call(n)])])}),{getLayoutItem:a,items:r,theme:l}}}),vw=U({scrollable:Boolean,..._e(),...jt(),...Ze({tag:"main"})},"VMain"),mw=re()({name:"VMain",props:vw(),setup(e,t){let{slots:n}=t;const{dimensionStyles:l}=zt(e),{mainStyles:i}=Sd(),{ssrBootStyles:a}=Bo();return be(()=>h(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[i.value,a.value,l.value,e.style]},{default:()=>{var r,o;return[e.scrollable?h("div",{class:"v-main__scroller"},[(r=n.default)==null?void 0:r.call(n)]):(o=n.default)==null?void 0:o.call(n)]}})),{}}}),hw={__name:"app",setup(e){return(t,n)=>(ce(),De(fw,null,{default:Ee(()=>[h(mw,null,{default:Ee(()=>[(ce(),De(rm,null,{default:Ee(()=>[h(cw)]),_:1}))]),_:1})]),_:1}))}},gw={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"},yw={component:Po};window.iFrameResizer={heightCalculationMethod:"taggedElement"};const lv=Dy(Ae);lv.icons={defaultSet:"mdi",aliases:gw,sets:{mdi:yw}};const iv=Rh(hw);iv.use(xd(lv));iv.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.
|
24
|
-
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.
|
23
|
+
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.2/dist/assets/index-DC3eCRpR.js"></script>
|
24
|
+
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.2/dist/assets/index-DQsqORXR.css">
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|