1import{a as U,aa as el,ab as il,t as d,a4 as $,C as Le,ac as he,a3 as p,ad as re,ae as de,af as se,ag as Ee,ah as ge,ai as ne,aj as Te,ak as _e,al as Ne,am as Ce,an as Ie,ao as Ve,ap as qe,aq as Pe,ar as Ge,as as Me,at as Je,au as jl,q as R,e as w,av as ol,a2 as zl,i as Be,aw as st,ax as Qe,ay as nt,az as it,aA as ot,aB as rt,aC as mt,aD as dt,aE as ut,aF as pt,aG as ht,aH as bt,aI as Dt,aJ as gt,aK as De,aL as Yl,aM as Kl,z as ue,aN as tt,aO as rl,aP as ml,aQ as dl,aR as ul,F as Se,aS as pl,aT as hl,aU as bl,aV as Dl,aW as gl,aX as fl,aY as yl,c as Zl,aZ as Vl,_ as Jl,a_ as le,a$ as xl,b0 as xe,a7 as tl,b1 as ea,b2 as ta}from"./vue_fontawesome-W-iAu5ca.js";import{b4 as g,b5 as v,bi as V,bf as m,bg as l,b7 as A,be as We,bh as P,bQ as r,bn as Y,ba as s,bL as h,b9 as oe,c2 as B,c5 as Oe,c3 as ve,b6 as ce,bO as fe,c4 as ll,bV as al,bE as la,bj as aa,bG as sa}from"./shared_vendor_mainApp.js_surveyApp.js_threesixtyApp.js-nvtKLfkX.js";import{I as ft,C as cl,R as L}from"./ReportElementParameter-Btg1V8Ps.js";import{D as na}from"./DatasubsetInput-BvqoHWVA.js";import{S as ia,Q as oa,I as ra}from"./IndexInput-Djf0KeKh.js";import{Q as ma}from"./QuestionInput-BRh4XxlN.js";import{H as da}from"./HeadingInput-C2ny9nH2.js";import{T as ua,B as pa,d as ha}from"./vuedraggable.umd-Bwb04H81.js";import{b as ae,n as q,A as ie,l as Fe,j as Re,e as He,f as ke,r as Xe,V as je,c as ee,h as I,i as O,T as be,U as ye,J as te,a as pe,E as J,K as ze,as as lt,a0 as H,$ as Q,_ as X,a1 as F,k as at,g as sl,a5 as El,a6 as Ae,Q as yt,at as ba,X as Da,W as ga,Y as nl,Z as et,B as fa}from"./vendor_vuetify_js_-DtIfjkKx.js";import{D as k}from"./DialogCard-PfVQgYtw.js";import{_ as Ue}from"./Input-B970RGIZ.js";import{N as me}from"./NumberInput-BTHGUrFo.js";import{I as $e}from"./InfoTooltip-Cgx2IzgR.js";import{T as we}from"./ToolTipIcon-C5MB8Hut.js";import{F as ya}from"./FileInputDragDrop-Bp_LGB0B.js";import{C as Va}from"./ColorPickerInput-24lwGEGc.js";import{v as ca}from"./index-CbNQXZmA.js";/* empty css */import"./SelectableList-BXSxisVt.js";/* empty css */var Tl=(e=>(e[e.PDF=1]="PDF",e[e.DOC=2]="DOC",e[e.DOCX=3]="DOCX",e[e.PPT=4]="PPT",e[e.PPTX=5]="PPTX",e[e.XML=6]="XML",e[e.XLSX=7]="XLSX",e))(Tl||{});const Ea={data(){return{}},props:{title:{type:String,default:""},classReference:{type:Function},moduleReference:{type:Object,default(){return null}},templateId:{type:Number,default:0}},methods:{startDrag(e){this.moduleReference?(this.$store.getters["reporttemplate/getTemplateById"](this.templateId).transferClass="",this.$store.getters["reporttemplate/getTemplateById"](this.templateId).transferModule=this.moduleReference):(this.$store.getters["reporttemplate/getTemplateById"](this.templateId).transferModule=null,this.$store.getters["reporttemplate/getTemplateById"](this.templateId).transferClass=this.classReference),this.$store.commit("reporttemplate/highlightPlaceholders",{reportTemplateId:this.templateId})},endDrag(){this.$store.commit("reporttemplate/unhighlightPlaceholders",{reportTemplateId:this.templateId})}},computed:{imgUrl(){var e;return this.classReference?this.$Utils.generateUrl("img/report-element-icons/"+((e=this.classReference)==null?void 0:e.type)+".PNG"):this.$Utils.generateUrl("img/report-modules-icons/"+this.title+".PNG")}},created(){},mounted(){}},Ta={style:{width:"100%",padding:"0 0 10px 0"}},wa={class:"grid-content draggable-element drag-handle"},Sa=["src"];function va(e,t,n,D,a,i){return g(),v("div",{draggable:"true",onDragend:t[0]||(t[0]=(...b)=>i.endDrag&&i.endDrag(...b)),onDragstart:t[1]||(t[1]=(...b)=>i.startDrag&&i.startDrag(...b))},[V("div",Ta,[V("div",wa,[V("img",{src:i.imgUrl,class:"element-img"},null,8,Sa),V("span",null,m(e.$t(n.title)),1)])])],32)}const Vt=U(Ea,[["render",va],["__scopeId","data-v-6021c636"]]),Ia={components:{DatasubsetInput:na,SurveyInput:ia,QuestionnaireInput:oa,QuestionInput:ma,HeadingInput:da,TextInput:ua,ImageInput:ft,IndexInput:ra,BooleanInput:pa},data(){return{name:"",localParameter:null}},props:{parameter:el,templateId:{type:Number,default:0}},methods:{editParameter(){this.parameter.name=this.localParameter.name,this.parameter.defaultValue=this.localParameter.defaultValue}},computed:{parentKey(){return this.$parent.$.uid}},watch:{parameter:{handler(){this.parameter.type.isList&&(this.parameter.defaultValue==null||this.parameter.defaultValue.includes(void 0))&&(this.parameter.defaultValue=[]),this.localParameter=new el(this.parameter)},immediate:!0}},mounted(){}},Ra={key:0,class:"editMutableParameter"};function _a(e,t,n,D,a,i){return a.localParameter?(g(),v("div",Ra,[l(ae,{modelValue:a.localParameter.name,"onUpdate:modelValue":t[0]||(t[0]=b=>a.localParameter.name=b),label:e.$t("name")},null,8,["modelValue","label"]),l(q),(g(),A(We(a.localParameter.type.inputComponentName),{key:i.parentKey,modelValue:a.localParameter.defaultValue,"onUpdate:modelValue":t[1]||(t[1]=b=>a.localParameter.defaultValue=b),configuration:a.localParameter.type.inputComponentConfig,"template-id":n.templateId},null,8,["modelValue","configuration","template-id"]))])):P("",!0)}const ct=U(Ia,[["render",_a]]),Na={name:"MutableParameterOutput",components:{DialogCard:k,EditMutableParam:ct},props:{templateId:{type:Number,default:0},isFromReportElementParameter:{type:Boolean,default:!1},isFromMutableParameter:{type:Boolean,default:!1},isFromLoop:{type:Boolean,default:!1},mutableParameter:null,entity:{},label:String,showLabel:{type:Boolean,default:!0},type:il,oneLine:{type:Boolean,default:!0},deletable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0}},data(){return{editDialogVisible:!1}},computed:{entityOutput(){return this.isMultiple?this.entity.length===0?this.entity:this.entity.every(e=>e.isValid())?this.entity[0]:"undefined":this.entity.isValid()?this.entity:"undefined"},parentKey(){return this.$parent.$.uid},entities(){return this.isMultiple?this.entity:[this.entity]}
1,computedChipColor(){var t;if(this.isHighlighted)return"teal-accent-2";if(this.type.name===d.BOOLEAN.name||this.type.name===d.TEXT.name||this.type.name===d.TEXT_LIST.name)return"green-lighten-1";let e="gray-lighten-1";return this.mutableParameter.type.isList?this.isMultiple?this.mutableParameter.defaultValue.length===0?"red-lighten-1":this.mutableParameter.defaultValue.every(n=>n.isValid())?"green-lighten-1":"red-lighten-1":this.mutableParameter.defaultValue.isValid()?"green-lighten-1":"red-lighten-1":this.mutableParameter.defaultValue&&this.mutableParameter.defaultValue instanceof Object?(t=this.mutableParameter.defaultValue)!=null&&t.isValid()?"green-lighten-1":"red-lighten-1":!this.entity||!this.entity.mutableParameter===void 0||this.isFromReportElementParameter?"red-lighten-1":this.isFromLoop?"orange-lighten-1":e},isMultiple(){return this.type.inputComponentConfig.multiple},isHighlighted(){return this.mutableParameter?this.mutableParameter.isHighlighted:!1},ParameterTypes(){return d}},watch:{},mounted(){},methods:{editParameter(e){this.$refs.editMutableParamDialog.editParameter(e),this.editDialogVisible=!1,this.$emit("edit",e)},deleteParameter(){this.$emit("delete")},getInterpolationParts(e){if(!e)return t.push({isInterpolated:!1,string:"undefined"});let t=[],n=e.toString();if(!(e instanceof $))return t.push({isInterpolated:!1,string:n}),t;let D="",a=0;for(let i=0;i<n.length;i++)if(n[i]==="{"&&n[i+1]==="{"&&(a++,t.push({isInterpolated:!1,string:D}),D=""),D+=n[i],n[i]==="}"&&n[i-1]==="}"){if(a--,a===0){let b=D.split(".");if(b.length===2){b[0]=b[0].replace("{{",""),b[1]=b[1].replace("}}","");let c=b[0],u=b[1];e.getInterpolationParameters().hasOwnProperty(c)?e.getInterpolationParameters()[c].hasOwnProperty(u)?t.push({isInterpolated:!0,string:e.getInterpolationParameters()[c][u].value}):t.push({isFromLoop:!0,isInterpolated:!0,string:D}):(t.push({isInterpolated:!1,string:D}),D="")}else t.push({isInterpolated:!1,string:D}),D=""}else t.push({isInterpolated:!1,string:D}),D="";D=""}return t.push({isInterpolated:!1,string:D}),t},setSelected(){this.mutableParameter&&(console.log("SET HIGHLIGHTED"),this.mutableParameter.isSelected=!this.mutableParameter.isSelected)},setHighlighted(){this.mutableParameter&&(this.mutableParameter.isHighlighted=!0)},unsetHighlighted(){this.mutableParameter&&(this.mutableParameter.isSelected||(this.mutableParameter.isHighlighted=!1))}}},Ca={key:0,class:"name_label",style:{"text-align":"center"}},Aa={key:0},Pa={key:0},Ua={key:1,class:"d-flex"},$a={style:{"min-width":"0"}},Ba={key:1},Oa={class:"isNotInterpolated"},ka={key:2},La={key:0,style:{cursor:"pointer"}},Wa={class:"isNotInterpolated"};function qa(e,t,n,D,a,i){const b=r("font-awesome-icon"),c=r("edit-mutable-param"),u=r("dialog-card");return g(),v("div",{class:B({"entity-output d-flex":!0,"flex-wrap":!n.oneLine,selected:n.mutableParameter.isSelected}),onMouseenter:t[4]||(t[4]=(...o)=>i.setHighlighted&&i.setHighlighted(...o)),onMouseleave:t[5]||(t[5]=(...o)=>i.unsetHighlighted&&i.unsetHighlighted(...o))},[n.showLabel?(g(),v("span",Ca,m(n.label)+":",1)):P("",!0),V("div",{class:"chip-container",onClick:t[0]||(t[0]=(...o)=>i.setSelected&&i.setSelected(...o))},[n.entity?(g(),v(Y,{key:0},[n.type.name===i.ParameterTypes.TEXT.name||n.type.name===i.ParameterTypes.TEXT_LIST.name?(g(),v("div",Aa,[i.entities.length===0?(g(),v("div",Pa,[l(ie,{color:"red-lighten-1",size:"small",tag:"div",variant:"flat",class:"isNotInterpolated"},{default:s(()=>t[6]||(t[6]=[h("[]")])),_:1})])):(g(),v("div",Ua,[(g(!0),v(Y,null,oe(i.entities,o=>(g(),v("div",$a,[l(ie,{color:i.computedChipColor,size:"small",tag:"div",variant:"flat"},{default:s(()=>[(g(!0),v(Y,null,oe(i.getInterpolationParts(o),y=>(g(),v(Y,null,[y.isFromLoop?(g(),A(ie,{key:0,size:"small",type:"warning",class:B({isFromLoop:y.isFromLoop})},{default:s(()=>[h(m(y.string),1)]),_:2},1032,["class"])):(g(),v("div",{key:1,style:{"white-space":"pre"},class:B({isInterpolated:y.isInterpolated,isNotInterpolated:!y.isInterpolated})},m(y.string),3))],64))),256))]),_:2},1032,["color"])]))),256))]))])):n.type.name===i.ParameterTypes.BOOLEAN.name?(g(),v("div",Ba,[l(ie,{color:i.computedChipColor,size:"small",variant:"flat"},{default:s(()=>[V("span",Oa,[n.entity?(g(),A(b,{key:0,icon:"square-check"})):(g(),A(b,{key:1,icon:["far","square"]}))])]),_:1},8,["color"])])):(g(),v("div",ka,[l(ie,{color:i.computedChipColor,class:"isNotInterpolated",size:"small",variant:"flat"},{default:s(()=>[h(m(i.entityOutput)+" ",1),i.entities.length>1?(g(),v("span",La,[t[7]||(t[7]=h(" ... ")),l(b,{icon:"list"}),h(" "+m(i.entities.length)+" ",1),l(Fe,{activator:"parent"},{default:s(()=>[l(Re,{density:"compact"},{default:s(()=>[l(He,null,{default:s(()=>[h(m(i.entities.length)+" "+m(e.$t("items")),1)]),_:1}),l(ke,null,{default:s(()=>[l(Xe,{density:"compact"},{default:s(()=>[(g(!0),v(Y,null,oe(i.entities,o=>(g(),A(je,{title:o.toString()},null,8,["title"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})])):P("",!0)]),_:1},8,["color"])]))],64)):n.type.name===i.ParameterTypes.BOOLEAN.name?(g(),A(ie,{key:1,color:i.computedChipColor,size:"small",variant:"flat"},{default:s(()=>[l(b,{icon:["far","square"]})]),_:1},8,["color"])):(g(),A(ie,{key:2,color:i.computedChipColor,size:"small",variant:"flat"},{default:s(()=>
1[V("span",Wa,m(e.$t("undefined")),1)]),_:1},8,["color"]))]),n.editable?(g(),v("div",{key:1,class:"edit-icon",onClick:t[1]||(t[1]=o=>a.editDialogVisible=!0)},[l(ee,{color:"primary",icon:"fas fa-pen",size:"x-small"})])):P("",!0),n.deletable?(g(),v("div",{key:2,class:"delete-icon ml-2",onClick:t[2]||(t[2]=(...o)=>i.deleteParameter&&i.deleteParameter(...o))},[l(ee,{color:"primary",icon:"fas fa-trash",size:"x-small"})])):P("",!0),l(u,{modelValue:a.editDialogVisible,"onUpdate:modelValue":t[3]||(t[3]=o=>a.editDialogVisible=o),width:"1200"},{title:s(()=>[h(m(e.$t("edit"))+": "+m(n.mutableParameter.type.name),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.editParameter},{default:s(()=>[h(m(e.$t("confirm")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(c,{ref:"editMutableParamDialog",parameter:n.mutableParameter,"template-id":n.templateId},null,8,["parameter","template-id"])]),_:1},8,["modelValue"])],34)}const Ga=U(Na,[["render",qa],["__scopeId","data-v-da298e67"]]),Ma={components:{ConfirmDialog:Le,DialogCard:k,CreateMutableParam:cl,EditMutableParam:ct,MutableParameterOutput:Ga,draggable:ha},data(){return{rerenderKey:0,selectParameterDialogVisible:!1,createDialogVisible:!1,editDialogVisible:!1,currentVariableType:null,parameterToEdit:null,dragging:!1}},props:{templateId:{type:Number,default:0},showTitle:{type:Boolean,default:!0}},methods:{checkMove(e){},openSelectParameterTypeDialog(){this.selectParameterDialogVisible=!0},openCreateParameterDialog(e){this.selectParameterDialogVisible=!1,this.currentVariableType=d.getByName(e),this.rerenderKey+=1,this.createDialogVisible=!0},createParameter(){this.$refs.createMutableParamDialog.createParameter()&&this.closeDialog()},editParameter(e){this.$refs.editMutableParamDialog.editParameter(e),this.closeDialog()},closeDialog(){this.createDialogVisible=!1,this.editDialogVisible=!1},deleteParameter(e){this.$store.commit("reporttemplate/removeMutableParameter",{parameter:e,reportTemplateId:this.templateId})}},computed:{parameterTypes(){return d.getAll()},parameterType(){return d},mutableParameters:{get:function(){let e=this.$store.getters["reporttemplate/getTemplateById"](this.templateId);return e?e.mutableParameters:[]},set:function(e){let t=this.$store.getters["reporttemplate/getTemplateById"](this.templateId);return t.mutableParameters=e,t?t.mutableParameters:[]}}},created(){}},Qa={class:"list-group-item mutable-parameter"};function Fa(e,t,n,D,a,i){const b=r("mutable-parameter-output"),c=r("draggable"),u=r("dialog-card"),o=r("create-mutable-param");return g(),A(Re,{class:"mutable-parameters",flat:"",width:"100%"},{default:s(()=>[n.showTitle?(g(),A(He,{key:0,class:"d-flex"},{default:s(()=>[h(m(e.$t("mutable_parameters"))+" ",1),l(O),l(I,{color:"primary",onClick:i.openSelectParameterTypeDialog},{default:s(()=>[h(m(e.$t("add")),1)]),_:1},8,["onClick"])]),_:1})):P("",!0),l(q),l(ke,{style:{"overflow-y":"scroll"}},{default:s(()=>[l(c,{modelValue:i.mutableParameters,"onUpdate:modelValue":t[0]||(t[0]=y=>i.mutableParameters=y),move:i.checkMove,class:"list-group","ghost-class":"ghost","item-key":"name",onEnd:t[1]||(t[1]=y=>a.dragging=!1),onStart:t[2]||(t[2]=y=>a.dragging=!0)},{item:s(({element:y})=>[V("div",Qa,[l(b,{deletable:!0,entity:y.defaultValue,"is-from-mutable-parameter":!0,label:y.name,"mutable-parameter":y,oneLine:!0,"template-id":n.templateId,type:y.type,onDelete:T=>i.deleteParameter(y)},null,8,["entity","label","mutable-parameter","template-id","type","onDelete"])])]),_:1},8,["modelValue","move"])]),_:1}),l(u,{modelValue:a.selectParameterDialogVisible,"onUpdate:modelValue":t[3]||(t[3]=y=>a.selectParameterDialogVisible=y),width:"600"},{title:s(()=>[h(m(e.$t("select_type")),1)]),default:s(()=>[l(be,null,{default:s(()=>[(g(!0),v(Y,null,oe(i.parameterTypes,(y,T)=>(g(),A(ye,{cols:"6",style:{padding:"6px","margin-bottom":"12px"}},{default:s(()=>[l(I,{block:"",onClick:S=>i.openCreateParameterDialog(y.name)},{default:s(()=>[h(m(y.name),1)]),_:2},1032,["onClick"])]),_:2},1024))),256))]),_:1})]),_:1},8,["modelValue"]),l(u,{modelValue:a.createDialogVisible,"onUpdate:modelValue":t[4]||(t[4]=y=>a.createDialogVisible=y),width:"650"},{title:s(()=>[h(m(e.$t("create"))+": "+m(a.currentVariableType.translation),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.createParameter},{default:s(()=>[h(m(e.$t("confirm")),1)]),_:1},8,["onClick"])]),default:s(()=>[(g(),A(o,{key:a.rerenderKey,ref:"createMutableParamDialog","template-id":n.templateId,type:a.currentVariableType},null,8,["template-id","type"]))]),_:1},8,["modelValue"])]),_:1})}const Ha=U(Ma,[["render",Fa]]),Xa={name:"ReportElementContextMenu",components:{},data(){return{modelValue:!0,items:[{title:"Ausschneiden",value:"CUT",props:{prependIcon:"far fa-cut",disabled:this.cutDisabled},action:this.cutReportElement},{title:"Kopieren",value:"COPY",props:{prependIcon:"far fa-copy",disabled:this.copyDisabled},action:this.copyReportElement},{title:"Einfügen",value:"PASTE",props:{prependIcon:"far fa-paste",disabled:this.pasteDisabled},action:this.pasteReportElement},{title:"Löschen",value:"DELETE",props:{prependIcon:"far fa-trash",disabled:this.deleteDisabled},action:this.deleteReportElement}]}},props:{element:{type:Object,default:null},templateId:{type:Number,default:0},event:{type:Event,default:null},x:{type:Number,default:0},y:{type:Number,default:0}},computed:{elementData(){return this.$store.getters["reporttemplate/getElementById"](this.element.uid,this.templateId)},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},copyElement(){return this.$store.getters["reporttemplate/getCopyElement"]()}},watch:{},methods:{functionDisabled(e){if(e.value==="CUT")return this.element.isPlaceholder;if(e.value==="COPY")return this.element.isPlaceholder;if(e.value==="PASTE")return!this.element.isPlaceholder;if(e.value==="DELETE")return this.element.isPlaceholder},cutReportElement(){this.$store.commit("reporttemplate/cutElement",{element:this.elementData,reportTemplateId:this.templateId}),this.$store.commit("reporttemplate/setCopyPasteState",{copyPasteState:he.CUT,reportTemplateId:this.templateId})},copyReportElement(){this.$store.commit("reporttemplate/copyElement",{element:this.elementData,reportTemplateId:this.templateId}),this.$store.commit("reporttemplate/setCopyPasteState",{copyPasteState:he.COPIED,reportTemplateId:this.templateId})},pasteReportElement(){this.pasteElement()},deleteReportElement(){this.$store.commit("reporttemplate/removeElement",{element:this.elementData,reportTemplateId:this.templateId})},async pasteElement(){if(this.elementData.isPlaceholder){let e=this.$store.getters["reporttemplate/getTemplateById"](this.templateId),t=JSON.parse(JSON.stringify(this.copyElement.toJSON()));this.generateNewUids(t),await this.$store.dispatch("reporttemplate/loadReportElements",{reportTemplateData:e,elementsData:[t],referencePlaceholder:this.elementData,parent:this.elementData.parent}),this.$store.getters["reporttemplate/getCopyPasteState"]===he.CUT&&this.$store.commit("reporttemplate/removeElement",{element:this.copyElement,reportTemplateId:this.templateId}),this.$store.commit("reporttemplate/unsetCopyElement")}},generateNewUids(e){for(let t in e){let n=e[t];(n instanceof Object&&n.hasOwnProperty("uid")||Array.isArray(n))&&this.generateNewUids(n),t==="uid"&&(e[t]=Oe())}}},mounted(){}};function ja(e,t,n,D,a,i){return g(),A(Fe,{ref:"contextmenu",modelValue:a.modelValue,"onUpdate:modelValue":t[0]||(t[0]=b=>a.modelValue=b),style:ve({top:n.y+"px",left:n.x+"px"})},{default:s(()=>[l(Xe,{items:a.items,density:"compact"},{default:s(()=>[(g(!0),v(Y,null,oe(a.items,b=>(g(),A(je,{disabled:i.functionDisabled(b),"prepend-icon":b.props.prependIcon,onClick:b.action},{default:s(()=>
1[h(m(b.title),1)]),_:2},1032,["disabled","prepend-icon","onClick"]))),256))]),_:1},8,["items"])]),_:1},8,["modelValue","style"])}const za=U(Xa,[["render",ja]]),Ya={name:"ReportElementActions",components:{ConfirmDialog:Le},props:{reportElement:{type:Object,default:null}},data(){return{}},computed:{},watch:{},mounted(){},methods:{}},Ka={class:"report-element-actions"},Za={style:{"padding-left":"0.5rem","font-size":"0.5rem","text-overflow":"ellipsis",width:"100px","text-wrap":"nowrap",overflow:"hidden"}};function Ja(e,t,n,D,a,i){var c;const b=r("confirm-dialog");return g(),v("div",null,[V("div",Ka,[V("div",{onClick:t[0]||(t[0]=u=>e.$emit("showEditDialog"))},[l(ee,{icon:"fas fa-cog",style:{cursor:"pointer",color:"#48c1b8"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("edit")),1)]),_:1})]),V("div",null,[l(ee,{icon:"fas fa-trash",style:{cursor:"pointer",color:"#48c1b8"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("delete")),1)]),_:1}),l(b,{title:e.$t("delete")+"?",onConfirm:t[1]||(t[1]=u=>e.$emit("deleteReportElement"))},null,8,["title"])]),V("div",{onClick:t[2]||(t[2]=u=>e.$emit("copyReportElement"))},[l(ee,{icon:"fas fa-copy",style:{cursor:"pointer",color:"#48c1b8"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("copy")),1)]),_:1})])]),V("div",Za,m((c=n.reportElement)==null?void 0:c.uid),1)])}const M=U(Ya,[["render",Ja],["__scopeId","data-v-4d2cc5aa"]]),C={props:{uid:{type:String,default:""},templateId:{type:Number,default:0}},data(){return{display:null,isHighlighted:!1}},computed:{elementData(){return this.$store.getters["reporttemplate/getElementById"](this.uid,this.templateId)},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},created(){this.elementData.initializeValidation(),this.display=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.display.replaceAttributes(this.elementData.display)},mounted(){var e,t;(t=this.$route.hash)!=null&&t.includes((e=this.elementData)==null?void 0:e.uid)&&(this.isHighlighted=!0,this.$el.scrollIntoView({behavior:"smooth"}))},methods:{save(){this.elementData.display=this.display},cutReportElement(){this.$store.commit("reporttemplate/copyElement",{element:this.elementData,reportTemplateId:this.templateId}),this.$store.commit("reporttemplate/setCopyPasteState",{copyPasteState:he.CUT,reportTemplateId:this.templateId})},copyReportElement(){this.$store.commit("reporttemplate/copyElement",{element:this.elementData,reportTemplateId:this.templateId}),this.$store.commit("reporttemplate/setCopyPasteState",{copyPasteState:he.COPIED,reportTemplateId:this.templateId})},deleteReportElement(){this.$emit("setDeleteFlag"),setTimeout(()=>{this.$store.commit("reporttemplate/removeElement",{element:this.elementData,reportTemplateId:this.templateId})},100)}}},xa={name:"ReportElementInput",components:{},extends:Ue,props:{configuration:{type:Object,default:function(){return{}}},modelValue:[String,Array],templateId:{type:Number},reportElementTypesFilter:{type:[Array,Function],default(){return[]}},reportElementFilterFunction:{type:Function},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},hideLabel:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{selectedUid:null,selectedUids:[]}},computed:{parentKey(){return this.$parent.$.uid},reportElements(){const e=this.$store.getters["reporttemplate/getElementsFlatByTemplateId"](this.templateId,this.reportElementTypesFilter);return this.reportElementFilterFunction?e.filter(this.reportElementFilterFunction):e}},watch:{modelValue:{handler(){this.templateId!==0&&(this.multiple?this.selectedUids=this.modelValue:this.selectedUid=this.modelValue)},immediate:!0}},created(){},methods:{itemTitle(e){if(e)if(typeof e=="string"){let t=this.reportElements.find(n=>n.uid===e);return t?this.reportElements.indexOf(t)+" - "+t.name:""}else return this.reportElements.indexOf(e)+" - "+e.name;else return""},assignValues(e){this.$emit("update:modelValue",e)},clear(){this.assignValues(this.multiple?[]:"")}}},es={class:"report-element-parameter-container"};function ts(e,t,n,D,a,i){return g(),v("div",es,[e.label&&!n.hideLabel?(g(),v("div",{key:0,class:B({"small-label":e.smallLabel,label:!0})},[ce(e.$slots,"label",{},()=>[h(m(e.label),1)],!0)],2)):P("",!0),l(pe,{clearable:n.clearable,"item-title":i.itemTitle,items:i.reportElements,label:e.label,"model-value":n.multiple?a.selectedUids:a.selectedUid,multiple:n.multiple,class:"navigation-element-input",density:"comfortable","item-value":"uid","onUpdate:modelValue":i.assignValues,"onClick:clear":i.clear},null,8,["clearable","item-title","items","label","model-value","multiple","onUpdate:modelValue","onClick:clear"])])}const x=U(xa,[["render",ts],["__scopeId","data-v-4be5c8e2"]]),ls={name:"ActionPortfolioModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,headings:null,includeBestQuestionsPortfolio:!0,includeWorstQuestionsPortfolio:!0,includeAspectCharts:!0,includeAspectResultLists:!0,includeTrendPortfolios:!0,useWeightedResults:!1}},emits:["update:showDialog"],props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ action_portfolio_and_aspect_charts }"}),e.subtitle.immutableValue=new $({string:""}),this.addReportElement(e);let t=new de({datasubset:this.datasubset,headings:this.headings,useWeightedResults:this.useWeightedResults});this.addReportElement(t);let n=new de({datasubset:this.datasubset,headings:this.headings,isScaled:!0,useWeightedResults:this.useWeightedResults});this.addReportElement(n);let D=null;
1this.includeBestQuestionsPortfolio&&(D=new de({datasubset:this.datasubset,headings:this.headings,isScaled:!0,sameScalingAsUid:n.uid,showBestQuestions:!0,useWeightedResults:this.useWeightedResults}),D.header.title.immutableValue=new $({string:"${ action_portfolio } | ${ strengths }"}),this.addReportElement(D));let a=null;this.includeWorstQuestionsPortfolio&&(a=new de({datasubset:this.datasubset,headings:this.headings,isScaled:!0,sameScalingAsUid:n.uid,showWorstQuestions:!0,useWeightedResults:this.useWeightedResults}),a.header.title.immutableValue=new $({string:"${ action_portfolio } | ${ weaknesses }"}),this.addReportElement(a));let i=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(i);let b=i.elements[0],c=new de({datasubset:this.datasubset,isScaled:!0,sameScalingAsUid:n.uid,parent:i,showTrendResults:this.includeTrendPortfolios,includeXMostChangedResults:100,useWeightedResults:this.useWeightedResults});if(this.addReportElement(c,b),this.includeAspectResultLists){let u=new Ee({datasubset:this.datasubset,parent:i,useWeightedResults:this.useWeightedResults});u.header.title.immutableValue=new $({string:"{{heading.name}} | ${ aspect_list }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:u.header})}),this.addReportElement(u,b)}if(this.includeAspectCharts){let u=new se({source:new p({type:d.HEADING}),resultType:d.QUESTION,parent:i});u.source.fromLoop=!0,this.addReportElement(u,b);let o=u.elements[0],y=new ge({datasubset:this.datasubset,parent:u,useWeightedResults:this.useWeightedResults});y.header.title.immutableValue=new $({string:"{{question.shorttext}}",question:new p({type:d.QUESTION,fromLoop:!0,reportElement:y.header})}),t.uidLinkedToBubble=y.uid,n.uidLinkedToBubble=y.uid,c.uidLinkedToBubble=y.uid,D&&(D.uidLinkedToBubble=y.uid),a&&(D.uidLinkedToBubble=y.uid),this.addReportElement(y,o)}this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.headings=new p({type:d.HEADING_LIST})}};function as(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("dialog-card");return g(),A(c,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[8]||(t[8]=u=>e.$emit("update:showDialog",u))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("action_portfolio_and_aspect_charts")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=u=>a.datasubset=u),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[1]||(t[1]=u=>a.headings=u),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(J,{modelValue:a.includeWorstQuestionsPortfolio,"onUpdate:modelValue":t[2]||(t[2]=u=>a.includeWorstQuestionsPortfolio=u),label:e.$t("include_worst_questions_portfolio"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.includeBestQuestionsPortfolio,"onUpdate:modelValue":t[3]||(t[3]=u=>a.includeBestQuestionsPortfolio=u),label:e.$t("include_best_questions_portfolio"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.includeAspectCharts,"onUpdate:modelValue":t[4]||(t[4]=u=>a.includeAspectCharts=u),label:e.$t("include_aspect_charts"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.includeAspectResultLists,"onUpdate:modelValue":t[5]||(t[5]=u=>a.includeAspectResultLists=u),label:e.$t("include_aspect_result_lists"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.includeTrendPortfolios,"onUpdate:modelValue":t[6]||(t[6]=u=>a.includeTrendPortfolios=u),label:e.$t("include_trend_portfolios"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=u=>a.useWeightedResults=u),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const wl=U(ls,[["render",as]]),ss={name:"QuartileChartModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,datasubsets:null,indices:null,headings:null,datasubsetOutput:null,showBestWorstResults:!0,showResultTooltips:null,includeDatasubsetsInChartNotes:!0,includeParentDatasubsetNameInTooltip:!0,includeParentParentDatasubsetNameInTooltip:!1,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},DatasubsetOutput(){return ne}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ quartile_chart }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new se({source:this.indices,resultType:d.INDEX});this.addReportElement(t);let n=t.elements[0],D=new Te({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,showBestWorstResults:this.showBestWorstResults,showResultTooltips:this.showResultTooltips,includeParentDatasubsetNameInTooltip:this.includeParentDatasubsetNameInTooltip,includeParentParentDatasubsetNameInTooltip:this.includeParentParentDatasubsetNameInTooltip,includeDatasubsetsInChartNotes:this.includeDatasubsetsInChartNotes,parent:t});D.index.fromLoop=!0,D.header.title.immutableValue=new $({string:"{{index.name}} | ${ quartile_chart }",index:new p({type:d.INDEX,fromLoop:!0,reportElement:D.header})}),this.addReportElement(D,n);let a=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(a);let i=a.elements[0],b=new Te({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,showBestWorstResults:this.showBestWorstResults,showResultTooltips:this.showResultTooltips,includeParentDatasubsetNameInTooltip:this.includeParentDatasubsetNameInTooltip,includeParentParentDatasubsetNameInTooltip:this.includeParentParentDatasubsetNameInTooltip,includeDatasubsetsInChartNotes:this.includeDatasubsetsInChartNotes,parent:a});b.heading.fromLoop=!0,b.header.title.immutableValue=new $({string:"{{heading.name}} | ${ quartile_chart }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:b.header})}
1),this.addReportElement(b,i);let c=new se({resultType:d.QUESTION,parent:a});c.source.type=d.HEADING,c.source.fromLoop=!0,this.addReportElement(c,i);let u=c.elements[0],o=new Te({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,showBestWorstResults:this.showBestWorstResults,showResultTooltips:this.showResultTooltips,includeParentDatasubsetNameInTooltip:this.includeParentDatasubsetNameInTooltip,includeParentParentDatasubsetNameInTooltip:this.includeParentParentDatasubsetNameInTooltip,includeDatasubsetsInChartNotes:this.includeDatasubsetsInChartNotes,parent:c});o.question.fromLoop=!0,o.header.title.immutableValue=new $({string:"{{question.shorttext}} | ${ quartile_chart }",question:new p({type:d.QUESTION,fromLoop:!0,reportElement:o.header})}),this.addReportElement(o,u),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.datasubsets=new p({type:d.DATASUBSET_LIST}),this.indices=new p({type:d.INDEX_LIST}),this.headings=new p({type:d.HEADING_LIST}),this.showResultTooltips=new p({type:d.BOOLEAN,immutableValue:!0}),this.datasubsetOutput=ne.SELECTED_DATASUBSETS}},ns={class:"rep_wrapper"},is=["title"];function os(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("dialog-card");return g(),A(c,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[11]||(t[11]=u=>e.$emit("update:showDialog",u))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("quartile_chart")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=u=>a.datasubset=u),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=u=>a.datasubsets=u),label:e.$t("datasubsets"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.indices,"onUpdate:modelValue":t[2]||(t[2]=u=>a.indices=u),label:e.$t("indices"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[3]||(t[3]=u=>a.headings=u),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),V("div",ns,[V("div",{title:e.$t("datasubset_output"),class:"label"},m(e.$t("datasubset_output"))+"?",9,is),l(ze,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[4]||(t[4]=u=>a.datasubsetOutput=u),color:"primary",density:"compact",mandatory:""},{default:s(()=>[l(I,{value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_selected_datasubsets")),1)]),_:1},8,["value"]),l(I,{value:i.DatasubsetOutput.CHILD_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_child_datasubsets")),1)]),_:1},8,["value"])]),_:1},8,["modelValue"])]),l(J,{modelValue:a.showBestWorstResults,"onUpdate:modelValue":t[5]||(t[5]=u=>a.showBestWorstResults=u),label:e.$t("show_best_and_worst_results"),color:"primary"},null,8,["modelValue","label"]),l(b,{modelValue:a.showResultTooltips,"onUpdate:modelValue":t[6]||(t[6]=u=>a.showResultTooltips=u),label:e.$t("show_result_tooltips")+"?","template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(J,{modelValue:a.includeDatasubsetsInChartNotes,"onUpdate:modelValue":t[7]||(t[7]=u=>a.includeDatasubsetsInChartNotes=u),label:e.$t("include_datasubsets_in_chart_notes"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.includeParentDatasubsetNameInTooltip,"onUpdate:modelValue":t[8]||(t[8]=u=>a.includeParentDatasubsetNameInTooltip=u),label:e.$t("include_parent_datasubset_name_in_tooltip"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.includeParentParentDatasubsetNameInTooltip,"onUpdate:modelValue":t[9]||(t[9]=u=>a.includeParentParentDatasubsetNameInTooltip=u),label:e.$t("include_parent_parent_datasubset_name_in_tooltip"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[10]||(t[10]=u=>a.useWeightedResults=u),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}
1const Sl=U(ss,[["render",os]]),rs={name:"InternalBenchmarkingModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,datasubsets:null,indices:null,headings:null,datasubsetOutput:null,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},DatasubsetOutput(){return ne}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ internal_benchmarking }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new _e({datasubset:this.datasubset,datasubsets:this.datasubsets,indices:this.indices,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput});this.addReportElement(t);let n=new _e({datasubset:this.datasubset,datasubsets:this.datasubsets,headings:this.headings,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput});this.addReportElement(n);let D=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(D);let a=D.elements[0],i=new _e({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,parent:D});i.heading.fromLoop=!0,i.header.title.immutableValue=new $({string:"{{heading.name}} | ${ internal_benchmarking }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:i.header})}),this.addReportElement(i,a),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.datasubsets=new p({type:d.DATASUBSET_LIST}),this.indices=new p({type:d.INDEX_LIST}),this.headings=new p({type:d.HEADING_LIST}),this.datasubsetOutput=ne.SELECTED_DATASUBSETS}},ms={class:"rep_wrapper"},ds=["title"];function us(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("dialog-card");return g(),A(c,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[6]||(t[6]=u=>e.$emit("update:showDialog",u))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("internal_benchmarking")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=u=>a.datasubset=u),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=u=>a.datasubsets=u),label:e.$t("datasubsets"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.indices,"onUpdate:modelValue":t[2]||(t[2]=u=>a.indices=u),label:e.$t("indices"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[3]||(t[3]=u=>a.headings=u),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),V("div",ms,[V("div",{title:e.$t("datasubset_output"),class:"label"},m(e.$t("datasubset_output"))+"?",9,ds),l(ze,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[4]||(t[4]=u=>a.datasubsetOutput=u),color:"primary",density:"compact",mandatory:""},{default:s(()=>[l(I,{value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_selected_datasubsets")),1)]),_:1},8,["value"]),l(I,{value:i.DatasubsetOutput.CHILD_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_child_datasubsets")),1)]),_:1},8,["value"])]),_:1},8,["modelValue"])]),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[5]||(t[5]=u=>a.useWeightedResults=u),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const vl=U(rs,[["render",us]]),ps={name:"TrendBarChartModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,indices:null,headings:null,displayYear:null,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ trend_bar_chart }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new se({source:this.indices,resultType:d.INDEX});this.addReportElement(t);let n=t.elements[0],D=new Ne({datasubset:this.datasubset,useWeightedResults:this.useWeightedResults,displayYear:this.displayYear,parent:t});D.index.fromLoop=!0,D.header.title.immutableValue=new $({string:"{{index.name}} | ${ trend_bar_chart }",index:new p({type:d.INDEX,fromLoop:!0,reportElement:D.header})}),this.addReportElement(D,n);let a=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(a);let i=a.elements[0],b=new Ne({datasubset:this.datasubset,useWeightedResults:this.useWeightedResults,displayYear:this.displayYear,parent:a});b.heading.fromLoop=!0,b.header.title.immutableValue=new $({string:"{{heading.name}} | ${ trend_bar_chart }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:b.header})}
1),this.addReportElement(b,i);let c=new se({resultType:d.QUESTION,parent:a});c.source.type=d.HEADING,c.source.fromLoop=!0,this.addReportElement(c,i);let u=c.elements[0],o=new Ne({datasubset:this.datasubset,useWeightedResults:this.useWeightedResults,displayYear:this.displayYear,parent:c});o.question.fromLoop=!0,o.header.title.immutableValue=new $({string:"{{question.shorttext}} | ${ trend_bar_chart }",question:new p({type:d.QUESTION,fromLoop:!0,reportElement:o.header})}),this.addReportElement(o,u),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.indices=new p({type:d.INDEX_LIST}),this.headings=new p({type:d.HEADING_LIST}),this.displayYear=new p({type:d.BOOLEAN,immutableValue:!0})}};function hs(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("dialog-card");return g(),A(c,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[5]||(t[5]=u=>e.$emit("update:showDialog",u))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("trend_bar_chart")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=u=>a.datasubset=u),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.indices,"onUpdate:modelValue":t[1]||(t[1]=u=>a.indices=u),label:e.$t("indices"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=u=>a.headings=u),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.displayYear,"onUpdate:modelValue":t[3]||(t[3]=u=>a.displayYear=u),label:e.$t("display_year")+"?","template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[4]||(t[4]=u=>a.useWeightedResults=u),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const Il=U(ps,[["render",hs]]),bs={name:"TrendOverviewModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,indices:null,headings:null,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ trend_overview }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new Ce({datasubset:this.datasubset,indices:this.indices,useWeightedResults:this.useWeightedResults});t.header.title.immutableValue=new $({string:"${ trend_overview }"}),this.addReportElement(t);let n=new Ce({datasubset:this.datasubset,headings:this.headings,useWeightedResults:this.useWeightedResults});n.header.title.immutableValue=new $({string:"${ trend_overview }"}),this.addReportElement(n);let D=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(D);let a=D.elements[0],i=new Ce({datasubset:this.datasubset,useWeightedResults:this.useWeightedResults,parent:D});i.heading.fromLoop=!0,i.header.title.immutableValue=new $({string:"{{heading.name}} | ${ trend_overview }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:i.header})}),this.addReportElement(i,a),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.indices=new p({type:d.INDEX_LIST}),this.headings=new p({type:d.HEADING_LIST})}};function Ds(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("dialog-card");return g(),A(c,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[4]||(t[4]=u=>e.$emit("update:showDialog",u))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("trend_overview")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=u=>a.datasubset=u),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.indices,"onUpdate:modelValue":t[1]||(t[1]=u=>a.indices=u),label:e.$t("indices"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=u=>a.headings=u),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[3]||(t[3]=u=>a.useWeightedResults=u),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const Rl=U(bs,[["render",Ds]]),gs={name:"TablesBarChartModule",components:{NumberInput:me,DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,datasubsets:null,attributeDatasubsets:null,indices:null,headings:null,barsPerSlide:100,trendResultCount:0,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ tables_bar_chart }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new se({source:this.indices,resultType:d.INDEX});this.addReportElement(t);let n=t.elements[0],D=new Ie({datasubset:this.datasubset,datasubsets:this.datasubsets,attributeDatasubsets:this.attributeDatasubsets,barsPerSlide:this.barsPerSlide,trendResultCount:this.trendResultCount,useWeightedResults:this.useWeightedResults,parent:t});D.index.fromLoop=!0,D.header.title.immutableValue=new $({string:"{{index.name}} | ${ tables_bar_chart }",index:new p({type:d.INDEX,fromLoop:!0,reportElement:D.header})}),this.addReportElement(D,n);let a=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(a);let i=a.elements[0],b=new Ie({datasubset:this.datasubset,datasubsets:this.datasubsets,attributeDatasubsets:this.attributeDatasubsets,barsPerSlide:this.barsPerSlide,trendResultCount:this.trendResultCount,useWeightedResults:this.useWeightedResults,parent:a});b.heading.fromLoop=!0,b.header.title.immutableValue=new $({string:"{{heading.name}} | ${ tables_bar_chart }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:b.header})}
1),this.addReportElement(b,i);let c=new se({resultType:d.QUESTION,parent:a});c.source.type=d.HEADING,c.source.fromLoop=!0,this.addReportElement(c,i);let u=c.elements[0],o=new Ie({datasubset:this.datasubset,datasubsets:this.datasubsets,attributeDatasubsets:this.attributeDatasubsets,barsPerSlide:this.barsPerSlide,trendResultCount:this.trendResultCount,useWeightedResults:this.useWeightedResults,parent:c});o.question.fromLoop=!0,o.header.title.immutableValue=new $({string:"{{question.shorttext}} | ${ tables_bar_chart }",question:new p({type:d.QUESTION,fromLoop:!0,reportElement:o.header})}),this.addReportElement(o,u),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.datasubsets=new p({type:d.DATASUBSET_LIST}),this.attributeDatasubsets=new p({type:d.DATASUBSET_LIST}),this.indices=new p({type:d.INDEX_LIST}),this.headings=new p({type:d.HEADING_LIST})}};function fs(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("number-input"),u=r("dialog-card");return g(),A(u,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[8]||(t[8]=o=>e.$emit("update:showDialog",o))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("tables_bar_chart")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=o=>a.datasubset=o),label:e.$t("main_datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=o=>a.datasubsets=o),label:e.$t("datasubsets"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.attributeDatasubsets,"onUpdate:modelValue":t[2]||(t[2]=o=>a.attributeDatasubsets=o),label:e.$t("datasubsets_that_should_not_show_bars"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.indices,"onUpdate:modelValue":t[3]||(t[3]=o=>a.indices=o),label:e.$t("indices"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[4]||(t[4]=o=>a.headings=o),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(c,{modelValue:a.barsPerSlide,"onUpdate:modelValue":t[5]||(t[5]=o=>a.barsPerSlide=o),label:e.$t("bars_per_slide")},null,8,["modelValue","label"]),l(c,{modelValue:a.trendResultCount,"onUpdate:modelValue":t[6]||(t[6]=o=>a.trendResultCount=o),label:e.$t("trend_result_count")},null,8,["modelValue","label"]),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=o=>a.useWeightedResults=o),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const _l=U(gs,[["render",fs]]),ys={name:"TablesPortfolioModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L,InfoTooltip:$e},data(){return{datasubset:null,datasubsets:null,indices:null,headings:null,datasubsetOutput:null,isScaled:!0,isScaledGlobal:!0,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},DatasubsetOutput(){return ne}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ tables_portfolio }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new se({source:this.indices,resultType:d.INDEX});this.addReportElement(t);let n=t.elements[0],D=new Ve({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,isScaled:this.isScaled,isScaledGlobal:this.isScaledGlobal,parent:t});D.index.fromLoop=!0,D.header.title.immutableValue=new $({string:"{{index.name}} | ${ tables_portfolio }",index:new p({type:d.INDEX,fromLoop:!0,reportElement:D.header})}),this.addReportElement(D,n);let a=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(a);let i=a.elements[0],b=new Ve({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,isScaled:this.isScaled,isScaledGlobal:this.isScaledGlobal,parent:a});b.heading.fromLoop=!0,b.header.title.immutableValue=new $({string:"{{heading.name}} | ${ tables_portfolio }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:b.header})}
1),this.addReportElement(b,i);let c=new se({resultType:d.QUESTION,parent:a});c.source.type=d.HEADING,c.source.fromLoop=!0,this.addReportElement(c,i);let u=c.elements[0],o=new Ve({datasubset:this.datasubset,datasubsets:this.datasubsets,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput,isScaled:this.isScaled,isScaledGlobal:this.isScaledGlobal,parent:c});o.question.fromLoop=!0,o.header.title.immutableValue=new $({string:"{{question.shorttext}} | ${ tables_portfolio }",question:new p({type:d.QUESTION,fromLoop:!0,reportElement:o.header})}),this.addReportElement(o,u),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.datasubsets=new p({type:d.DATASUBSET_LIST}),this.indices=new p({type:d.INDEX_LIST}),this.headings=new p({type:d.HEADING_LIST}),this.datasubsetOutput=ne.SELECTED_DATASUBSETS}},Vs={class:"rep_wrapper"},cs=["title"];function Es(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("info-tooltip"),u=r("dialog-card");return g(),A(u,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[8]||(t[8]=o=>e.$emit("update:showDialog",o))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("tables_portfolio")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=o=>a.datasubset=o),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=o=>a.datasubsets=o),label:e.$t("datasubsets"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.indices,"onUpdate:modelValue":t[2]||(t[2]=o=>a.indices=o),label:e.$t("indices"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[3]||(t[3]=o=>a.headings=o),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),V("div",Vs,[V("div",{title:e.$t("datasubset_output"),class:"label"},m(e.$t("datasubset_output"))+"?",9,cs),l(ze,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[4]||(t[4]=o=>a.datasubsetOutput=o),color:"primary",density:"compact",mandatory:""},{default:s(()=>[l(I,{value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_selected_datasubsets")),1)]),_:1},8,["value"]),l(I,{value:i.DatasubsetOutput.CHILD_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_child_datasubsets")),1)]),_:1},8,["value"])]),_:1},8,["modelValue"])]),l(J,{modelValue:a.isScaled,"onUpdate:modelValue":t[5]||(t[5]=o=>a.isScaled=o),label:e.$t("is_scaled"),color:"primary"},null,8,["modelValue","label"]),a.isScaled?(g(),A(J,{key:0,modelValue:a.isScaledGlobal,"onUpdate:modelValue":t[6]||(t[6]=o=>a.isScaledGlobal=o),label:e.$t("is_scaled_global"),color:"primary"},{label:s(()=>[l(c,{text:e.$t("use_widest_range_of_all_action_portfolios_and_table_portfolios")},null,8,["text"]),h(" "+m(e.$t("is_scaled_global"))+"? ",1)]),_:1},8,["modelValue","label"])):P("",!0),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=o=>a.useWeightedResults=o),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const Nl=U(ys,[["render",Es]]),Ts={name:"ExternalBenchmarkingModule",components:{NumberInput:me,DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,headings:null,greaterEqualsEmployees:100,greaterEqualsAnswersheets:0,greaterEqualsYear:0,minBenchmarks:1,displayN:!0,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},DatasubsetOutput(){return ne}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ external_benchmarking }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new se({source:this.headings,resultType:d.HEADING});this.addReportElement(t);let n=t.elements[0],D=new qe({datasubset:this.datasubset,greaterEqualsEmployees:this.greaterEqualsEmployees,greaterEqualsAnswersheets:this.greaterEqualsAnswersheets,greaterEqualsYear:this.greaterEqualsYear,displayN:this.displayN,minBenchmarks:this.minBenchmarks,useWeightedResults:this.useWeightedResults,parent:t});D.heading.fromLoop=!0,D.header.title.immutableValue=new $({string:"{{heading.name}} | ${ external_benchmarking }",heading:new p({type:d.HEADING,fromLoop:!0,reportElement:D.header})}),this.addReportElement(D,n),this.$emit("update:showDialog",!1)}
1,addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.headings=new p({type:d.HEADING_LIST})}};function ws(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("number-input"),u=r("dialog-card");return g(),A(u,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[8]||(t[8]=o=>e.$emit("update:showDialog",o))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("external_benchmarking")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=o=>a.datasubset=o),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.headings,"onUpdate:modelValue":t[1]||(t[1]=o=>a.headings=o),label:e.$t("headings"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(c,{modelValue:a.greaterEqualsEmployees,"onUpdate:modelValue":t[2]||(t[2]=o=>a.greaterEqualsEmployees=o),label:">= "+e.$t("employees"),"step-size":100},null,8,["modelValue","label"]),l(c,{modelValue:a.greaterEqualsAnswersheets,"onUpdate:modelValue":t[3]||(t[3]=o=>a.greaterEqualsAnswersheets=o),label:">= "+e.$t("answersheets"),"step-size":100},null,8,["modelValue","label"]),l(c,{modelValue:a.greaterEqualsYear,"onUpdate:modelValue":t[4]||(t[4]=o=>a.greaterEqualsYear=o),label:">= "+e.$t("year"),"step-size":100},null,8,["modelValue","label"]),l(c,{modelValue:a.minBenchmarks,"onUpdate:modelValue":t[5]||(t[5]=o=>a.minBenchmarks=o),label:e.$t("min_benchmarks"),"step-size":100},null,8,["modelValue","label"]),l(J,{modelValue:a.displayN,"onUpdate:modelValue":t[6]||(t[6]=o=>a.displayN=o),label:e.$t("display_N"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=o=>a.useWeightedResults=o),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const Cl=U(Ts,[["render",ws]]),Ss={name:"ImpactPortfolioModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L,InfoTooltip:$e},data(){return{datasubset:null,questions:null,isScaled:!0,isScaledGlobal:!0,stepwiseRegressionAlpha:.05,stepwiseRegressionCoefficientThreshold:.15,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ impact_portfolio }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new se({source:this.questions,resultType:d.QUESTION});this.addReportElement(t);let n=t.elements[0],D=new Pe({datasubset:this.datasubset,regressorQuestions:this.questions,isScaled:this.isScaled,isScaledGlobal:this.isScaledGlobal,stepwiseRegressionAlpha:this.stepwiseRegressionAlpha,stepwiseRegressionCoefficientThreshold:this.stepwiseRegressionCoefficientThreshold,useWeightedResults:this.useWeightedResults,parent:t});D.regressandQuestion.fromLoop=!0,D.header.title.immutableValue=new $({string:"{{question.shorttext}} | ${ impact_portfolio }",question:new p({type:d.QUESTION,fromLoop:!0,reportElement:D.header})}),this.addReportElement(D,n),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.questions=new p({type:d.QUESTION_LIST})}},vs=["title"],Is=["title"];function Rs(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("info-tooltip"),u=r("dialog-card");return g(),A(u,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[7]||(t[7]=o=>e.$emit("update:showDialog",o))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("impact_portfolio")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=o=>a.datasubset=o),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.questions,"onUpdate:modelValue":t[1]||(t[1]=o=>a.questions=o),label:e.$t("questions"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(J,{modelValue:a.isScaled,"onUpdate:modelValue":t[2]||(t[2]=o=>a.isScaled=o),label:e.$t("is_scaled"),color:"primary"},null,8,["modelValue","label"]),a.isScaled?(g(),A(J,{key:0,modelValue:a.isScaledGlobal,"onUpdate:modelValue":t[3]||(t[3]=o=>a.isScaledGlobal=o),label:e.$t("is_scaled_global"),color:"primary"},{label:s(()=>[l(c,{text:e.$t("use_widest_range_of_all_action_portfolios_and_table_portfolios")},null,8,["text"]),h(" "+m(e.$t("is_scaled_global"))+"? ",1)]),_:1},8,["modelValue","label"])):P("",!0),l(be,null,{default:s(()=>[l(ye,{cols:"4"},{default:s(()=>[V("div",{title:e.$t("stepwise_regression_alpha_value"),class:"label"},m(e.$t("stepwise_regression_alpha_value"))+": "+m(a.stepwiseRegressionAlpha),9,vs)]),_:1}),l(ye,{cols:"8",lg:"4"},{default:s(()=>[l(lt,{modelValue:a.stepwiseRegressionAlpha,"onUpdate:modelValue":t[4]||(t[4]=o=>
1a.stepwiseRegressionAlpha=o),max:1,min:0,step:.01,color:"primary"},null,8,["modelValue"])]),_:1})]),_:1}),l(be,null,{default:s(()=>[l(ye,{cols:"4"},{default:s(()=>[V("div",{title:e.$t("stepwise_regression_coefficient_threshold"),class:"label"},m(e.$t("stepwise_regression_coefficient_threshold"))+": "+m(a.stepwiseRegressionCoefficientThreshold),9,Is)]),_:1}),l(ye,{cols:"8",lg:"4"},{default:s(()=>[l(lt,{modelValue:a.stepwiseRegressionCoefficientThreshold,"onUpdate:modelValue":t[5]||(t[5]=o=>a.stepwiseRegressionCoefficientThreshold=o),max:1,min:0,step:.01,color:"primary"},null,8,["modelValue"])]),_:1})]),_:1}),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[6]||(t[6]=o=>a.useWeightedResults=o),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const Al=U(Ss,[["render",Rs]]),_s={name:"NetPromoterScoreModule",components:{DialogCard:k,ReportElementInput:x,ReportElementParameter:L},data(){return{datasubset:null,datasubsets:null,question:null,datasubsetOutput:null,useWeightedResults:!1}},props:{showDialog:{type:Boolean,default:!1},templateId:{type:Number,default:0},referencePlaceholder:{type:Object}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},DatasubsetOutput(){return ne}},watch:{},methods:{generateReportElements(){let e=new re({});e.title.immutableValue=new $({string:"${ nps }"}),e.subtitle.immutableValue=new $,this.addReportElement(e);let t=new Ge({datasubset:this.datasubset,question:this.QuartileChart,useWeightedResults:this.useWeightedResults});this.addReportElement(t);let n=new Me({datasubset:this.datasubset,question:this.QuartileChart,useWeightedResults:this.useWeightedResults});this.addReportElement(n);let D=new Te({datasubset:this.datasubset,datasubsets:this.datasubsets,question:this.question,useWeightedResults:this.useWeightedResults,datasubsetOutput:this.datasubsetOutput});D.header.title.immutableValue=new $({string:"${ nps } | ${ quartile_chart }"}),this.addReportElement(D),this.$emit("update:showDialog",!1)},addReportElement(e,t=this.referencePlaceholder){this.$store.dispatch("reporttemplate/addElement",{reportElement:e,referencePlaceholder:t,reportTemplateId:this.templateId})}},created(){this.datasubset=new p({type:d.DATASUBSET}),this.datasubsets=new p({type:d.DATASUBSET_LIST}),this.question=new p({type:d.QUESTION}),this.datasubsetOutput=ne.SELECTED_DATASUBSETS}},Ns={class:"rep_wrapper"},Cs=["title"];function As(e,t,n,D,a,i){const b=r("report-element-parameter"),c=r("dialog-card");return g(),A(c,{"model-value":n.showDialog,width:"1400","onUpdate:modelValue":t[5]||(t[5]=u=>e.$emit("update:showDialog",u))},{title:s(()=>[h(m(e.$t("add_module")+": "+e.$t("nps")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.generateReportElements},{default:s(()=>[h(m(e.$t("generate_module")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(b,{modelValue:a.datasubset,"onUpdate:modelValue":t[0]||(t[0]=u=>a.datasubset=u),label:e.$t("datasubset"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.question,"onUpdate:modelValue":t[1]||(t[1]=u=>a.question=u),label:e.$t("question"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),l(b,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=u=>a.datasubsets=u),label:e.$t("quartile_chart")+" - "+e.$t("datasubsets"),"template-id":n.templateId},null,8,["modelValue","label","template-id"]),l(q),V("div",Ns,[V("div",{title:e.$t("datasubset_output"),class:"label"},m(e.$t("datasubset_output"))+"?",9,Cs),l(ze,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[3]||(t[3]=u=>a.datasubsetOutput=u),color:"primary",density:"compact",mandatory:""},{default:s(()=>[l(I,{value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_selected_datasubsets")),1)]),_:1},8,["value"]),l(I,{value:i.DatasubsetOutput.CHILD_DATASUBSETS},{default:s(()=>[h(m(e.$t("use_child_datasubsets")),1)]),_:1},8,["value"])]),_:1},8,["modelValue"])]),l(J,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[4]||(t[4]=u=>a.useWeightedResults=u),label:e.$t("use_weighted_results"),color:"primary"},null,8,["modelValue","label"])]),_:1},8,["model-value"])}const Pl=U(_s,[["render",As]]),Ps={components:{ActionPortfolioModule:wl,QuartileChartModule:Sl,InternalBenchmarkingModule:vl,TrendBarChartModule:
1Il,TrendOverviewModule:Rl,TablesBarChartModule:_l,TablesPortfolioModule:Nl,ExternalBenchmarkingModule:Cl,ImpactPortfolioModule:Al,NetPromoterScoreModule:Pl},extends:C,props:{},data(){return{showModuleDialog:!1,moduleName:"",module:""}},computed:{placeholderState(){return Je},copyElement(){return this.$store.getters["reporttemplate/getCopyElement"]()}},created(){},methods:{handleDragEnter(){this.elementData.placeholderState=Je.SELECTED},handleDragLeave(){this.elementData.placeholderState=Je.HIGHLIGHTED},handleDrop(e){if(this.elementData.isPlaceholder){let t=this.$store.getters["reporttemplate/getTemplateById"](this.templateId).transferClass,n=this.$store.getters["reporttemplate/getTemplateById"](this.templateId).transferModule;if(t){let D=new t;D.showEditDialog=!0,this.$store.dispatch("reporttemplate/addElement",{reportElement:D,referencePlaceholder:this.elementData,reportTemplateId:this.templateId})}else n&&(this.moduleName=this.$t(n.name),this.module=n.moduleName,this.showModuleDialog=!0)}},async pasteElement(){if(this.elementData.isPlaceholder){let e=this.$store.getters["reporttemplate/getTemplateById"](this.templateId),t=JSON.parse(JSON.stringify(this.copyElement.toJSON()));this.generateNewUids(t),await this.$store.dispatch("reporttemplate/loadReportElements",{reportTemplateData:e,elementsData:[t],referencePlaceholder:this.elementData,parent:this.elementData.parent}),this.$store.getters["reporttemplate/getCopyPasteState"]===he.CUT&&this.$store.commit("reporttemplate/removeElement",{element:this.copyElement,reportTemplateId:this.templateId}),this.$store.commit("reporttemplate/unsetCopyElement")}},generateNewUids(e){for(let t in e){let n=e[t];(n instanceof Object&&n.hasOwnProperty("uid")||Array.isArray(n))&&this.generateNewUids(n),t==="uid"&&(e[t]=Oe())}}}},Us=["title"],$s={key:1};function Bs(e,t,n,D,a,i){return g(),v("div",{class:B([{highlighted:e.elementData.placeholderState===i.placeholderState.HIGHLIGHTED,hovered:e.elementData.placeholderState===i.placeholderState.SELECTED},"report-element drop-container"]),onDragenter:t[2]||(t[2]=fe((...b)=>i.handleDragEnter&&i.handleDragEnter(...b),["prevent"])),onDragleave:t[3]||(t[3]=fe((...b)=>i.handleDragLeave&&i.handleDragLeave(...b),["prevent"])),onDrop:t[4]||(t[4]=fe((...b)=>i.handleDrop&&i.handleDrop(...b),["prevent"])),onDragover:t[5]||(t[5]=fe(()=>{},["prevent"]))},[i.copyElement!==null?(g(),v("div",{key:0,onClick:t[0]||(t[0]=(...b)=>i.pasteElement&&i.pasteElement(...b))},[V("span",{title:e.$t("paste"),style:{"pointer-events":"auto",cursor:"pointer",color:"#48c1b8"}},[l(ee,{icon:"fas fa-paste"})],8,Us)])):(g(),v("div",$s,"Â ")),a.module?(g(),A(We(a.module),{key:2,showDialog:a.showModuleDialog,"onUpdate:showDialog":t[1]||(t[1]=b=>a.showModuleDialog=b),"reference-placeholder":e.elementData,"template-id":e.templateId},null,40,["showDialog","reference-placeholder","template-id"])):P("",!0)],34)}const Et=U(Ps,[["render",Bs],["__scopeId","data-v-414d7099"]]),Os={name:"EntityOutput",components:{CreateMutableParam:cl,ReportElementParameter:L,DialogCard:k,EditMutableParam:ct},props:{reportElement:null,parameterName:{type:String,default:""},isFromReportElementParameter:{type:Boolean,default:!1},isFromMutableParameter:{type:Boolean,default:!1},isFromLoop:{type:Boolean,default:!1},mutableParameter:null,entity:{},label:String,showLabel:{type:Boolean,default:!0},type:il,oneLine:{type:Boolean,default:!0},deletable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0}},data(){return{reportTemplate:null,localReportElementParameter:null,editDialogVisible:!1}},computed:{entityOutput(){return this.isMultiple?this.entity.length===0?this.entity:this.entity.every(e=>e.isValid())?this.entity[0]:"undefined":this.entity.isValid()?this.entity:"undefined"},parentKey(){return this.$parent.$.uid},entities(){return this.isMultiple?this.entity:[this.entity]},isMultiple(){return this.type.inputComponentConfig.multiple},isHighlighted(){return this.mutableParameter?this.mutableParameter.isHighlighted:!1},ParameterTypes(){return d},computedChipColor(){if(this.isHighlighted)return"teal-accent-2";
1if(this.type.name===d.TEXT.name||this.type.name===d.TEXT_LIST.name)return"blue-lighten-1";let e="gray-lighten-1";if(this.entity||(e="pink"),this.isFromLoop&&(e="orange-lighten-1"),this.isFromReportElementParameter){if(this.type.name===d.TEXT.name||this.type.name===d.TEXT_LIST.name)return this.entity instanceof $&&!this.getInterpolationParts(this.entity).filter(n=>n.isInterpolated).every(n=>{var D,a,i;return((a=(D=n.replaceValue)==null?void 0:D.immutableValue)==null?void 0:a.isValid())||((i=n.replaceValue)==null?void 0:i.mutableParameter.defaultValue.isValid())})?"pink":"blue-lighten-1";e="blue-lighten-1"}return this.isFromMutableParameter&&(this.mutableParameter&&this.mutableParameter.isHighlighted?e="teal-accent-2":e="green-lighten-1"),this.entities.every(t=>t==null?void 0:t.isValid())||(e="red-lighten-1"),e}},watch:{},mounted(){this.reportTemplate=this.$store.getters["reporttemplate/getTemplate"]()},methods:{setLocalReportElementParameter(){this.localReportElementParameter=new p({type:this.reportElement[this.parameterName].type,reportElement:this.reportElement}),this.localReportElementParameter.replaceAttributes(this.reportElement[this.parameterName])},editParameter(){this.reportElement[this.parameterName].replaceAttributes(this.localReportElementParameter),this.editDialogVisible=!1},deleteParameter(){this.$emit("delete")},splitInterpolationString(e){const t=/\{\{([^{}]+)\}\}/g,n=[];let D=0;return e.replace(t,(a,i,b)=>{b>D&&n.push(e.slice(D,b)),n.push(a),D=b+a.length}),D<e.length&&n.push(e.slice(D)),n},getInterpolationParts(e){const t=this.splitInterpolationString(e.toString());let n=[];return t.forEach((D,a)=>{if(!(D.startsWith("{{")&&D.includes(".")&&D.endsWith("}}"))){n.push({isFromLoop:!1,isInterpolated:!1,string:D,replaceValue:null});return}let i=D.split(".");if(i.length===2){i[0]=i[0].replace("{{",""),i[1]=i[1].replace("}}","");let b=i[0],c=i[1];e.getInterpolationParameters().hasOwnProperty(b)?e.getInterpolationParameters()[b].hasOwnProperty(c)?n.push({isFromLoop:!1,isInterpolated:!0,string:e.getInterpolationParameters()[b][c].value,replaceValue:e[b]}):(e.getInterpolationParameters()[b].type==="Loop"&&n.push({isFromLoop:!0,isInterpolated:!0,string:D,replaceValue:null}),e.getInterpolationParameters()[b]||n.push({isFromLoop:!1,isInterpolated:!0,string:D,replaceValue:null})):n.push({isFromLoop:!1,isInterpolated:!1,string:D,replaceValue:null})}}),n},computedTextChipColor(e){var t,n;if((n=(t=e.replaceValue)==null?void 0:t.mutableParameter)!=null&&n.isHighlighted)return"teal-accent-1";if(e.isInterpolated&&e.isFromLoop)return"orange-lighten-1";if(e.isInterpolated&&e.replaceValue===null)return"red-lighten-1";if(e.isInterpolated&&e.replaceValue.immutableValue)return e.replaceValue.immutableValue.isValid()?"grey-lighten-2":"red-lighten-1";if(e.isInterpolated&&e.replaceValue.mutableParameter.defaultValue)return e.replaceValue.mutableParameter.defaultValue.isValid()?"green-lighten-1":"red-lighten-1"},setHighlighted(e=null){this.mutableParameter?this.mutableParameter.isHighlighted=!0:e!==null&&(e.isHighlighted=!0)},unsetHighlighted(e=null){this.mutableParameter?this.mutableParameter.isSelected||(this.mutableParameter.isHighlighted=!1):e!==null&&(e.isHighlighted=!1)}}},ks={key:0,class:"name_label",style:{"text-align":"center"}},Ls={key:0},Ws={key:0},qs={key:1,class:"d-flex"},Gs={style:{"min-width":"0"}},Ms={key:1},Qs={class:"isNotInterpolated"},Fs={key:2},Hs={key:0,style:{cursor:"pointer"}},Xs={class:"isNotInterpolated"};function js(e,t,n,D,a,i){const b=r("font-awesome-icon"),c=r("report-element-parameter"),u=r("dialog-card");return g(),v("div",{class:B([{"flex-wrap":!n.oneLine},"entity-output d-flex"]),onMouseenter:t[4]||(t[4]=(...o)=>i.setHighlighted&&i.setHighlighted(...o)),onMouseleave:t[5]||(t[5]=(...o)=>i.unsetHighlighted&&i.unsetHighlighted(...o))},[n.showLabel?(g(),v("span",ks,m(n.label)+":",1)):P("",!0),n.entity?(g(),v(Y,{key:1},[n.type.name===i.ParameterTypes.TEXT.name||n.type.name===i.ParameterTypes.TEXT_LIST.name?(g(),v("div",Ls,[i.entities.length===0?(g(),v("div",Ws,[l(ie,{color:"red-lighten-1",size:"small",tag:"div",variant:"flat",class:"isNotInterpolated"},{default:s(()=>t[6]||(t[6]=[h("[]")])),_:1})])):(g(),v("div",qs,[(g(!0),v(Y,null,oe(i.entities,o=>(g(),v("div",Gs,[l(ie,{color:i.computedChipColor,size:"small",tag:"div",variant:"flat"},{default:s(()=>[(g(!0),v(Y,null,oe(i.getInterpolationParts(o),y=>(g(),v(Y,null,[y.replaceValue?(g(),A(ie,{key:0,color:i.computedTextChipColor
1(y),size:"small",variant:"flat",onMouseenter:T=>i.setHighlighted(y.replaceValue.mutableParameter),onMouseleave:T=>i.unsetHighlighted(y.replaceValue.mutableParameter)},{default:s(()=>[h(m(y.string),1)]),_:2},1032,["color","onMouseenter","onMouseleave"])):y.isFromLoop?(g(),A(ie,{key:1,color:i.computedTextChipColor(y),size:"small",class:B({isFromLoop:y.isFromLoop}),variant:"flat"},{default:s(()=>[h(m(y.string),1)]),_:2},1032,["color","class"])):(g(),v("div",{key:2,style:{"white-space":"pre"},class:B({isInterpolated:y.isInterpolated,isNotInterpolated:!y.isInterpolated})},m(y.string),3))],64))),256))]),_:2},1032,["color"])]))),256))]))])):n.type.name===i.ParameterTypes.BOOLEAN.name?(g(),v("div",Ms,[l(ie,{color:i.computedChipColor,size:"small",variant:"flat"},{default:s(()=>[V("span",Qs,[n.entity?(g(),A(b,{key:0,icon:"square-check"})):(g(),A(b,{key:1,icon:["far","square"]}))])]),_:1},8,["color"])])):(g(),v("div",Fs,[l(ie,{color:i.computedChipColor,class:"isNotInterpolated",size:"small",variant:"flat"},{default:s(()=>[h(m(i.entityOutput)+" ",1),i.entities.length>1?(g(),v("span",Hs,[t[7]||(t[7]=h(" ... ")),l(b,{icon:"list"}),h(" "+m(i.entities.length)+" ",1),l(Fe,{activator:"parent"},{default:s(()=>[l(Re,{density:"compact"},{default:s(()=>[l(He,null,{default:s(()=>[h(m(i.entities.length)+" "+m(e.$t("items")),1)]),_:1}),l(ke,null,{default:s(()=>[l(Xe,{density:"compact"},{default:s(()=>[(g(!0),v(Y,null,oe(i.entities,o=>(g(),A(je,{title:o.toString()},null,8,["title"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})])):P("",!0)]),_:1},8,["color"])]))],64)):(g(),A(ie,{key:2,color:i.computedChipColor,size:"small",variant:"flat"},{default:s(()=>[V("span",Xs,m(e.$t("undefined")),1)]),_:1},8,["color"])),n.editable?(g(),v("div",{key:3,class:"edit-icon",onClick:t[0]||(t[0]=o=>a.editDialogVisible=!0)},[l(ee,{color:"primary",icon:"fas fa-pen",size:"x-small"})])):P("",!0),n.deletable?(g(),v("div",{key:4,class:"delete-icon ml-2",onClick:t[1]||(t[1]=(...o)=>i.deleteParameter&&i.deleteParameter(...o))},[l(ee,{color:"primary",icon:"fas fa-trash",size:"x-small"})])):P("",!0),l(u,{modelValue:a.editDialogVisible,"onUpdate:modelValue":t[3]||(t[3]=o=>a.editDialogVisible=o),width:"850",onShow:i.setLocalReportElementParameter},{title:s(()=>[h(m(e.$t("edit")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.editParameter},{default:s(()=>[h(m(e.$t("confirm")),1)]),_:1},8,["onClick"])]),default:s(()=>[a.localReportElementParameter?(g(),A(c,{key:0,modelValue:a.localReportElementParameter,"onUpdate:modelValue":t[2]||(t[2]=o=>a.localReportElementParameter=o),label:n.label,"template-id":a.reportTemplate.id},null,8,["modelValue","label","template-id"])):P("",!0)]),_:1},8,["modelValue","onShow"])],34)}const Ul=U(Os,[["render",js],["__scopeId","data-v-29ccd332"]]),zs={name:"ReportElementParameterOutput",components:{EntityOutput:Ul},props:{reportElement:jl,parameterName:{type:String,default:""},label:{type:String,default:""},showLabel:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}},data(){return{}},computed:{},watch:{},mounted(){},methods:{}},Ys={key:0},Ks={key:2,class:"single_line"},Zs={key:0,class:"name_label"},Js={key:3,class:"single_line"},xs={key:0,class:"name_label"},en={key:2},tn={key:0,class:"not-valid-icon name_label"},ln={key:1},an={key:0},sn={class:"single_line"},nn={key:0,class:"name_label"},on={class:"isNotInterpolated"},rn={key:1,class:"not-valid-icon name_label"};function mn(e,t,n,D,a,i){const b=r("entity-output"),c=r("font-awesome-icon");return n.reportElement?(g(),v("div",Ys,[n.reportElement.type==="Condition"?(g(),A(ie,{key:0,variant:"flat",class:"single_line bg-orange-lighten-1",size:"small"},{default:s(()=>{var u;return[V("b",null,m((u=n.reportElement.source.mutableParameter)==null?void 0:u.name),1)]}),_:1})):P("",!0),n.reportElement[n.parameterName]&&n.reportElement[n.parameterName].isValid()?(g(),v(Y,{key:1},[n.reportElement[n.parameterName]&&n.reportElement[n.parameterName].immutableValue!==null?(g(),A(b,{key:0,editable:n.editable,entity:n.reportElement[n.parameterName].immutableValue,"is-from-report-element-parameter":!0,label:n.label,"parameter-name":n.parameterName,"report-element":n.reportElement,"show-label":n.showLabel,type:n.reportElement[n.parameterName].type},null,8,["editable","entity","label","parameter-name","report-element","show-label","type"])):n.reportElement[n.parameterName]&&n.reportElement[n.parameterName].mutableParameter!==null?(g(),v("div",{key:1,class:B({single_line:!n.reportElement[n.parameterName].mutableParameter.type.inputComponentConfig.multiple})},[l(b,{editable:n.editable,entity:n.reportElement[n.parameterName].mutableParameter.defaultValue,"is-from-mutable-parameter":!0,label:n.label,"mutable-parameter":n.reportElement[n.parameterName].mutableParameter,"parameter-name":n.parameterName,"report-element":n.reportElement,"show-label":n.showLabel,type:n.reportElement[n.parameterName].type},null,8,["editable","entity","label","mutable-parameter","parameter-name","report-element","show-label","type"])],2)):n.reportElement[n.parameterName].fromLoop===!0?(g(),v("div",Ks,[n.showLabel?(g(),v("div",Zs,m(n.label)+":",1)):P("",!0),V("span",null,[l(ie,{color:"orange",size:"small",variant:"flat"},{default:s(()=>[h(m(e.$t("from_loop")),1)]),_:1})])])):(g(),v("div",Js,[n.showLabel?(g(),v("div",xs,m(n.label)+":",1)):P("",!0),t[0]||(t[0]=V("span",null,null,-1))]))],64)):(g(),v("div",en,[n.showLabel?(g(),v("span",tn,[l(c,{icon:"info-circle"}),h(" "+m(n.label)+" ",1),l(te,{activator:"parent",location:"top"},{default:s(()=>[(g(!0),v(Y,null,oe(n.reportElement[n.parameterName].getValidationMessages(),u=>(g(),v("div",null,m(u),1))),256))]),_:1})])):P("",!0)]))])):(g(),v("div",ln,[n.label==="source_type"||n.label==="result_type"||n.label==="condition"?(g(),v("div",an,[V("div",sn,[n.showLabel?(g(),v("div",nn,m(e.$t(n.label))+":Â ",1)):P("",!0),l(ie,{color:"orange-lighten-1",size:"small",type:"info",variant:"flat"},{default:s(()=>[V("span",on,m(e.$t(n.parameterName)),1)]),_:1})])])):n.showLabel?(g(),v("span",rn,[l(c,{icon:"info-circle"}),h(" "+m(n.label)+" ",1),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("this_field_is_required")),1)]),_:1})])):P("",!0)]))}const G=U(zs,[["render",mn],["__scopeId","data-v-4d1485f8"]]),dn={name:"HeadingSlide",components:{ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ReportElementParameter:L},extends:C,props:{},data(){return{title:null,subtitle:null}},computed:{ReportFileType(){return R}},watch:{},created(){!this.elementData instanceof re&&w.warn("WRONG HeadingSlide"),!this.elementData.title instanceof p&&w.warn("WRONG title of HeadingSlide"),!this.elementData.subtitle instanceof p&&w.warn("WRONG subtitle of HeadingSlide"),this.title=new p({reportElement:this.elementData,type:d.TEXT}),this.subtitle=new p({reportElement:this.elementData,type:d.TEXT}),this.title.replaceAttributes(this.elementData.title),this.subtitle.replaceAttributes(this.elementData.subtitle)},methods:{save(){C.methods.save.call(this),this.elementData.title.replaceAttributes(this.title),this.elementData.subtitle.replaceAttributes(this.subtitle),this.elementData.showEditDialog=!1}}},un={class:"report-element-head"},pn={class:"chart-header"},hn={class:"report-element-header"},bn={class:"report-element-name"};function Dn(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("report-element-parameter-output"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",un,[V("div",pn,[V("div",hn,[V("div",bn,[e.template.generalSettings.reportFileType===i.ReportFileType.DOCUMENT?(g(),v(Y,{key:0},[h(m(e.$t("heading")),1)],64)):(g(),v(Y,{key:1},[h(m(e.elementData.name),1)],64))])])]),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(c,{label:e.$t("title"),"report-element":e.elementData,"parameter-name":"title"},null,8,["label","report-element"]),l(c,{label:e.$t("subtitle"),"report-element":e.elementData,"parameter-name":"subtitle"},null,8,["label","report-element"]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[5]||(t[5]=y=>e.elementData.showEditDialog=y),width:"800"},{title:s(()=>[h(m(e.$t("edit_heading_slide")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[4]||(t[4]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(u,{modelValue:a.title,"onUpdate:modelValue":t[1]||(t[1]=y=>a.title=y),label:e.$t("title"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(q),l(u,{modelValue:a.subtitle,"onUpdate:modelValue":t[2]||(t[2]=y=>a.subtitle=y),label:e.$t("subtitle"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(u,{modelValue:e.display,"onUpdate:modelValue":t[3]||(t[3]=y=>e.display=y),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const Tt=U(dn,[["render",Dn]]),gn={name:"SwitchInput",extends:Ue,components:{},data(){return{}},props:{modelValue:Boolean},emits:["update:modelValue"],computed:{},watch:{},methods:{change(e){this.$emit("update:modelValue",e)}},created(){}},fn={class:"d-flex align-center"};function yn(e,t,n,D,a,i){return g(),v("div",{class:B({"report-element-parameter-container":!0,"show-tooltip":this.$slots.tooltipIcon})},[e.label?(g(),v("div",{key:0,class:B({"small-label":e.smallLabel,label:!0})},[ce(e.$slots,"label",{},()=>[h(m(e.label),1)],!0)],2)):P("",!0),l(O),V("div",fn,[l(J,{modelValue:n.modelValue,class:"flex-grow-0",color:"primary","onUpdate:modelValue":i.change},null,8,["modelValue","onUpdate:modelValue"]),ce(e.$slots,"tooltipIcon",{},void 0,!0)])],2)}const Z=U(gn,[["render",yn],["__scopeId","data-v-9e968fa6"]]),Vn={name:"CoverPage",components:{SwitchInput:Z,ConfirmDialog:Le,DialogCard:k,ReportElementParameterOutput:G,ReportElementParameter:L,ReportElementActions:M,ImageInput:ft},extends:C,props:{},data(){return{title:null,subtitle:null,subsubtitle:null,logoMiddle:null,logoRight:null,showDate:null,showReportId:!0}},computed:{},watch:{},created(){!this.elementData instanceof ol&&w.warn("WRONG CoverPage"),!this.elementData.title instanceof p&&w.warn("WRONG title of CoverPage"),!this.elementData.subtitle instanceof p&&w.warn("WRONG subtitle of CoverPage"),!this.elementData.subsubtitle instanceof p&&w.warn("WRONG subsubtitle of CoverPage"),!this.elementData.logoMiddle instanceof p&&w.warn("WRONG logoMiddle of CoverPage"),!this.elementData.logoRight instanceof p&&w.warn("WRONG logoRight of CoverPage"),this.setDefaultValues(),this.title=new p({reportElement:this.elementData,type:d.TEXT}),this.subtitle=new p({reportElement:this.elementData,type:d.TEXT}),this.subsubtitle=new p({reportElement:this.elementData,type:d.TEXT}),this.logoMiddle=new p({reportElement:this.elementData,type:d.IMAGE}),this.logoRight=new p({reportElement:this.elementData,type:d.IMAGE}),this.showDate=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.title.replaceAttributes(this.elementData.title),this.subtitle.replaceAttributes(this.elementData.subtitle),this.subsubtitle.replaceAttributes(this.elementData.subsubtitle),this.logoMiddle.replaceAttributes(this.elementData.logoMiddle),this.logoRight.replaceAttributes(this.elementData.logoRight),this.showDate.replaceAttributes(this.elementData.showDate),this.showReportId=this.elementData.showReportId},methods:{save(){C.methods.save.call(this),this.elementData.title.replaceAttributes(this.title),this.elementData.subtitle.replaceAttributes(this.subtitle),this.elementData.subsubtitle.replaceAttributes(this.subsubtitle),this.elementData.logoMiddle.replaceAttributes(this.logoMiddle),this.elementData.logoRight.replaceAttributes(this.logoRight),this.elementData.showDate.replaceAttributes(this.showDate),this.elementData.showReportId=this.showReportId,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(!this.elementData.title.isSet()&&e.length===0){let t=this.$store.getters["projekt/getProjekt"]().id,n=this.$store.getters["projekt/getProjekt"](t).name;
1n&&(this.elementData.title.immutableValue=new zl({id:0,string:n,languageId:0}))}!this.elementData.title.isSet()&&e.length>0&&(this.elementData.title.immutableValue=this.elementData.title.type.getEntity({reportElement:this.elementData.title}),this.elementData.title.immutableValue.string="{{datasubset.name}}",this.elementData.title.immutableValue.datasubset.mutableParameter=e[0])}}},cn={class:"report-element-head"},En={class:"report-element-name"};function Tn(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("report-element-parameter-output"),u=r("report-element-parameter"),o=r("switch-input"),y=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",cn,[V("div",En,m(e.elementData.name),1),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=T=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(c,{label:e.$t("title"),"report-element":e.elementData,"parameter-name":"title"},null,8,["label","report-element"]),l(c,{label:e.$t("subtitle"),"report-element":e.elementData,"parameter-name":"subtitle"},null,8,["label","report-element"]),l(y,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[9]||(t[9]=T=>e.elementData.showEditDialog=T),width:"800"},{title:s(()=>[h(m(e.$t("edit_cover_page")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(u,{modelValue:a.title,"onUpdate:modelValue":t[1]||(t[1]=T=>a.title=T),label:e.$t("title"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:a.subtitle,"onUpdate:modelValue":t[2]||(t[2]=T=>a.subtitle=T),label:e.$t("subtitle"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:a.subsubtitle,"onUpdate:modelValue":t[3]||(t[3]=T=>a.subsubtitle=T),label:"2. "+e.$t("subtitle"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:a.logoMiddle,"onUpdate:modelValue":t[4]||(t[4]=T=>a.logoMiddle=T),label:e.$t("logo_middle"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:a.logoRight,"onUpdate:modelValue":t[5]||(t[5]=T=>a.logoRight=T),label:e.$t("logo_right"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:a.showReportId,"onUpdate:modelValue":t[6]||(t[6]=T=>a.showReportId=T),label:e.$t("show_report_id")},null,8,["modelValue","label"]),l(u,{modelValue:a.showDate,"onUpdate:modelValue":t[7]||(t[7]=T=>a.showDate=T),label:e.$t("show_date")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=T=>e.display=T),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const wt=U(Vn,[["render",Tn]]),wn={name:"NavigationElement",components:{ReportElementInput:x,ReportElementParameter:L},extends:C,props:{elementDataProp:null,index:{type:[String,Number],default:0},navigationElements:{type:Array,default:[]},elementeMinimum:{type:Number,default:0}},emits:["addNavigationElementBefore","removeNavigationElement","addNavigationElementAfter"],data(){return{linkedElementUid:"",linkToFirstFound:!1,linkToLastFound:!1,linkedEntity:null,tooltip:null,navKey:0,appendix:null,selectedEntityTypeName:"",moreThanOneFoundElementAction:"linkToFirstFound",moreThanOneFoundElementActionItems:[{title:Be.global.t("link_to_first_found"),value:"linkToFirstFound"},{title:Be.global.t("link_to_last_found"),value:"linkToLastFound"},{title:Be.global.t("link_to_parameter_value"),value:"linkToParameterValue"}],linkedEntityRenderKey:0,showAppendixDialog:!1,showLinkTypeDialog:!1}},computed:{elementData(){return this.elementDataProp?this.elementDataProp:this.$store.getters["reporttemplate/getElementById"](this.uid,this.templateId)},entityTypes(){return d.getAll()},reportElementTypesFilter(){return[re.type,de.type,ge.type,st.type,Qe.type,nt.type,Ie.type,Te.type,it.type,Ce.type,Ne.type,_e.type,ot.type,Ee.type,Ge.type,rt.type,Me.type,mt.type,dt.type,ut.type,pt.type,qe.type,Ve.type,ht.type,Pe.type,bt.type,Dt.type,gt.type]}},watch:{selectedEntityTypeName(e,t){e?(this.linkedEntity=new p({reportElement:this.elementData,alwaysEnableLoop:this.elementData.alwaysEnableLoop,fromLoop:this.linkedEntity?this.linkedEntity.fromLoop:!1}),this.linkedEntity.type=d.getByName(this.selectedEntityTypeName),t!==""&&(this.linkedEntity.immutableValue=null,this.linkedEntity.mutableParameter=null),this.linkedEntityRenderKey++):this.linkedEntity=null},moreThanOneFoundElementAction(){this.moreThanOneFoundElementAction==="linkToFirstFound"?(this.linkToFirstFound=!0,this.linkToLastFound=!1,this.selectedEntityTypeName=""):this.moreThanOneFoundElementAction==="linkToLastFound"?(this.linkToFirstFound=!1,this.linkToLastFound=!0,this.selectedEntityTypeName=""):(this.linkToFirstFound=!1,this.linkToLastFound=!1,this.selectedEntityTypeName="")}},created(){this.elementData instanceof De||w.warn("WRONG NavigationElement"),this.linkedElementUid=this.elementData.linkedElementUid,this.linkToFirstFound=this.elementData.linkToFirstFound,this.linkToLastFound=this.elementData.linkToLastFound,this.linkedEntity=this.elementData.linkedEntity,this.linkedEntity&&this.linkedEntity.type&&this.linkedEntity.type.name&&(this.selectedEntityTypeName=this.linkedEntity.type.name),this.tooltip=this.elementData.tooltip,this.appendix=this.elementData.appendix},methods:{save(){C.methods.save.call(this),this.elementData.linkedElementUid=this.linkedElementUid,this.elementData.linkedFirstFound=this.linkToFirstFound,this.elementData.linkedLastFound=this.linkToLastFound,this.elementData.linkedEntity=this.linkedEntity,this.elementData.tooltip=this.tooltip,this.elementData.appendix=this.appendix},setElementNameAsText(e){let t=this.$store.getters["reporttemplate/getElementById"](e,this.templateId);if(t){let n=0;t.header===null||t.header.title===null||t.header.title.immutableValue===null?n=parseInt(t.title.immutableValue.id):n=parseInt(t.header.title.immutableValue.id);let D=this.$store.getters["reporttemplate/getProjectTextelementById"](n);D&&(this.tooltip.immutableValue=D),this.navKey++}}}},Sn={style:{display:"flex","flex-flow":"column","justify-content":"space-between",width:"50px"}},vn={key:0},In={key:1},Rn={class:"navigation-element-container w-100"},_n={key:0},Nn={style:{width:"50px",position:"relative"}}
1,Cn={style:{display:"flex","justify-content":"center","align-items":"center",position:"relative"}},An={key:1},Pn={style:{width:"50px",position:"relative"}},Un={style:{display:"flex","justify-content":"center","align-items":"center",position:"relative"}},$n={key:2},Bn={style:{width:"50px",position:"relative"}},On={style:{display:"flex","justify-content":"center","align-items":"center",position:"relative"}},kn={style:{width:"50px",height:"100%",position:"relative"}},Ln={style:{display:"flex","justify-content":"center","align-items":"center",position:"relative",height:"100%"}},Wn={style:{width:"50px",height:"100%",position:"relative"}},qn={style:{display:"flex","justify-content":"center","align-items":"center",position:"relative",height:"100%"}},Gn={style:{width:"50px",height:"100%",position:"relative"}},Mn={style:{display:"flex","justify-content":"center","align-items":"center",position:"relative",height:"100%"}};function Qn(e,t,n,D,a,i){const b=r("font-awesome-icon"),c=r("report-element-input"),u=r("report-element-parameter");return g(),v(Y,null,[V("div",Sn,[l(I,{color:"primary",icon:"",size:"small",style:{transform:"translate(0%, calc(-50% - 5px))"},onClick:t[0]||(t[0]=o=>e.$emit("addNavigationElementBefore",n.index))},{default:s(()=>[l(b,{icon:"plus"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[n.index===0?(g(),v("span",vn,m(e.$t("add_navigation_element_before")),1)):(g(),v("span",In,m(e.$t("add_navigation_element")),1))]),_:1})]),_:1}),l(O),l(I,{disabled:n.navigationElements.length<=n.elementeMinimum,color:"error",icon:"",size:"small",onClick:t[1]||(t[1]=o=>e.$emit("removeNavigationElement",e.navigationElement))},{default:s(()=>[l(b,{icon:"trash-alt"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("remove_navigation_element")),1)]),_:1})]),_:1},8,["disabled"]),l(O),n.index===n.navigationElements.length-1?(g(),A(I,{key:0,color:"primary",icon:"",size:"small",style:{transform:"translate(0%, calc(50% + 5px))"},onClick:t[2]||(t[2]=o=>e.$emit("addNavigationElementAfter",n.index))},{default:s(()=>[l(b,{icon:"plus"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("add_navigation_element_after")),1)]),_:1})]),_:1})):(g(),A(O,{key:1}))]),l(q,{class:"mr-3",vertical:""}),V("div",Rn,[V("div",null,[l(c,{modelValue:a.linkedElementUid,"onUpdate:modelValue":[t[17]||(t[17]=o=>a.linkedElementUid=o),t[18]||(t[18]=o=>i.setElementNameAsText(o))],clearable:!1,"report-element-types-filter":i.reportElementTypesFilter,"template-id":e.templateId},{prepend:s(()=>[a.appendix?(g(),v("div",{key:0,class:"appendix-container",onClick:t[3]||(t[3]=fe(o=>a.showAppendixDialog=!0,["prevent"]))},[V("b",null,m(a.appendix),1),l(te,{activator:"parent"},{default:s(()=>[h(m(e.$t("edit_appendix")),1)]),_:1})])):(g(),v("div",{key:1,class:"appendix-container",onClick:t[4]||(t[4]=fe(o=>a.showAppendixDialog=!0,["prevent"]))},[l(ee,{icon:"far fa-plus"}),l(te,{activator:"parent"},{default:s(()=>[h(m(e.$t("add_appendix")),1)]),_:1})])),l(at,{modelValue:a.showAppendixDialog,"onUpdate:modelValue":t[8]||(t[8]=o=>a.showAppendixDialog=o),width:"auto",onKeydown:t[9]||(t[9]=ll(o=>a.showAppendixDialog=!1,["enter"]))},{default:s(()=>[l(Re,null,{default:s(()=>[l(ke,null,{default:s(()=>[t[22]||(t[22]=h(" Edit Appendix ")),l(ae,{modelValue:a.appendix,"onUpdate:modelValue":t[5]||(t[5]=o=>a.appendix=o)},null,8,["modelValue"])]),_:1}),l(sl,null,{default:s(()=>[l(I,{block:"",color:"primary",onClick:t[6]||(t[6]=o=>a.showAppendixDialog=!1)},{default:s(()=>[h(m(e.$t("save")),1)]),_:1}),l(I,{block:"",color:"secondary",onClick:t[7]||(t[7]=o=>a.showAppendixDialog=!1)},{default:s(()=>[h(m(e.$t("save")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),append:s(()=>[a.moreThanOneFoundElementAction?(g(),v("div",{key:0,class:"link-type-container",onClick:t[10]||(t[10]=fe(o=>a.showLinkTypeDialog=!0,["prevent"]))},[a.moreThanOneFoundElementAction==="linkToFirstFound"?(g(),v("div",_n,[V("div",Nn,[V("div",Cn,[l(ee,{icon:"mdi:mdi-link",style:{position:"absolute"}})]),t[23]||(t[23]=V("div",{style:{position:"absolute",height:"auto","font-size":"0.8rem",right:"0",top:"100%",transform:"translate(0%, -100%)"}}," 1st ",-1))]),l(te,{activator:"parent"},{default:s(()=>[h(m(e.$t("link_to_first_found")),1)]),_:1})])):a.moreThanOneFoundElementAction==="linkToLastFound"?(g(),v("div",An,[V("div",Pn,[V("div",Un,[l(ee,{icon:"mdi:mdi-link",style:{position:"absolute"}})]),t[24]||(t[24]=V("div",{style:{position:"absolute",height:"auto","font-size":"0.8rem",right:"0",top:"100%",transform:"translate(0%, -100%)"}}," last ",-1))]),l(te,{activator:"parent"},{default:s(()=>[h(m(e.$t("link_to_last_found")),1)]),_:1})])):a.moreThanOneFoundElementAction==="linkToParameterValue"?(g(),v("div",$n,[V("div",Bn,[V("div",On,[l(ee,{icon:"mdi:mdi-link",style:{position:"absolute"}})]),t[25]||(t[25]=V("div",{style:{position:"absolute",height:"auto","font-size":"0.8rem",right:"0",top:"100%",transform:"translate(0%, -100%)"}}," PV ",-1))]),l(te,{activator:"parent"},{default:s(()=>[h(m(e.$t("link_to_parameter_value")),1)]),_:1})])):P("",!0)])):(g(),v("div",{key:1,class:"link-type-container",onClick:t[11]||(t[11]=fe(o=>a.showLinkTypeDialog=!0,["prevent"]))},[l(ee,{icon:"mdi:mdi-link"})])),l(at,{modelValue:a.showLinkTypeDialog,"onUpdate:modelValue":t[15]||(t[15]=o=>a.showLinkTypeDialog=o),width:"auto",onKeydown:t[16]||(t[16]=ll(o=>a.showLinkTypeDialog=!1,["enter"]))},{default:s(()=>[l(Re,null,{default:s(()=>[l(ke,null,{default:s(()=>[t[29]||(t[29]=h(" Edit Link Type ")),l(El,{modelValue:a.moreThanOneFoundElementAction,"onUpdate:modelValue":t[12]||(t[12]=o=>a.moreThanOneFoundElementAction=o),"hide-details":""},{default:s(()=>[l(Ae,{value:"linkToFirstFound"},{label:s(()=>[h(m(e.$t("link_to_first_found"))+" ",1),V("div",kn,[V("div",Ln,[l(ee,{icon:"mdi:mdi-link",style:{position:"absolute"}})]),t[26]||(t[26]=V("div",{style:{position:"absolute",height:"auto","font-size":"0.8rem",right:"0",top:"100%",transform:"translate(0%, -100%)"}}," 1st ",-1))])]),_:1}),l(Ae,{value:"linkToLastFound"},{label:s(()=>[h(m(e.$t("link_to_last_found"))+" ",1),V("div",Wn,[V("div",qn,[l(ee,{icon:"mdi:mdi-link",style:{position:"absolute"}})]),t[27]||(t[27]=V("div",{style:{position:"absolute",height:"auto","font-size":"0.8rem",right:"0",top:"100%",transform:"translate(0%, -100%)"}}," last ",-1))])]),_:1}),l(Ae,{value:"linkToParameterValue"},{label:s(()=>[h(m(e.$t("link_to_parameter_value"))+" ",1),V("div",Gn,[V("div",Mn,[l(ee,{icon:"mdi:mdi-link",style:{position:"absolute"}})]),t[28]||(t[28]=V("div",{style:{position:"absolute",height:"auto","font-size":"0.8rem",right:"0",top:"100%",transform:"translate(0%, -100%)"}}," PV ",-1))])]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(sl,null,{default:s(()=>[l(I,{block:"",color:"primary",onClick:t[13]||(t[13]=o=>a.showLinkTypeDialog=!1)},{default:s(()=>[h(m(e.$t("save")),1)]),_:1}),l(I,{block:"",color:"secondary",onClick:t[14]||(t[14]=o=>a.showLinkTypeDialog=!1)},{default:s(()=>[h(m(e.$t("close")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","report-element-types-filter","template-id"]),a.moreThanOneFoundElementAction==="linkToParameterValue"?(g(),A(pe,{key:0,modelValue:a.selectedEntityTypeName,"onUpdate:modelValue":t[19]||(t[19]=o=>a.selectedEntityTypeName=o),items:i.entityTypes,label:e.$t("linked_entity_type"),class:"linked-entity-type-input",density:"compact","item-title":"translation","item-value":"name"},null,8,["modelValue","items","label"])):P("",!0),a.selectedEntityTypeName?(g(),A(u,{key:"linked_entity"+a.linkedEntityRenderKey,modelValue:a.linkedEntity,"onUpdate:modelValue":t[20]||(t[20]=o=>a.linkedEntity=o),label:e.$t("linked_entity")+":","template-id":e.templateId,"label-font-we
1ight":"normal"},null,8,["modelValue","label","template-id"])):P("",!0),(g(),A(u,{key:a.navKey,modelValue:a.tooltip,"onUpdate:modelValue":t[21]||(t[21]=o=>a.tooltip=o),label:i.elementData.parent&&i.elementData.parent.type==="TableOfContents"?e.$t("heading")+":":e.$t("tooltip")+":","template-id":e.templateId,"label-font-weight":"normal"},null,8,["modelValue","label","template-id"]))])])],64)}const Ye=U(wn,[["render",Qn],["__scopeId","data-v-283d07eb"]]),Fn={name:"ChartHeader",components:{DialogCard:k,ReportElementParameterOutput:G,NavigationElement:Ye,ReportElementParameter:L},extends:C,props:{parentData:{type:Object,default:{}}},data(){return{showEditChartHeaderDialog:!1,title:null,subtitle:null}},computed:{copiedNavigationElements(){return this.$store.getters["reporttemplate/getCopiedNavigationElements"]()},inCopyState(){return this.$store.getters["reporttemplate/getNavigationCopyPasteState"]===he.DEFAULT},inPasteState(){let e=this.$store.getters["reporttemplate/getNavigationCopyPasteState"];return e===he.COPIED||e===he.CUT}},watch:{},created(){this.elementData instanceof Yl||w.warn("WRONG ChartHeader"),!this.elementData.title instanceof p&&w.warn("WRONG Title of ChartHeader"),!this.elementData.subtitle instanceof p&&w.warn("WRONG Subtitle of ChartHeader"),this.title=new p({reportElement:this.elementData,type:d.TEXT}),this.subtitle=new p({reportElement:this.elementData,type:d.TEXT}),this.title.replaceAttributes(this.elementData.title),this.subtitle.replaceAttributes(this.elementData.subtitle)},methods:{save(){if(C.methods.save.call(this),this.$refs.navigationElement)for(let e of this.$refs.navigationElement)e.save();this.elementData.title.replaceAttributes(this.title),this.elementData.subtitle.replaceAttributes(this.subtitle),this.showEditChartHeaderDialog=!1},addNavigationElementAfter(e){this.elementData.navigation.splice(e+1,0,new De({parent:this.elementData}))},addNavigationElementBefore(e){this.elementData.navigation.splice(e,0,new De({parent:this.elementData}))},removeNavigationElement(e){let t=this.elementData.navigation.indexOf(e);this.elementData.navigation.splice(t,1)},copyNavigationElements(){let e=this.elementData.navigation;this.$store.commit("reporttemplate/setCopiedNavigationElements",{navigationElements:e}),this.$store.commit("reporttemplate/setNavigationCopyPasteState",{copyPasteState:he.COPIED,reportTemplateId:this.templateId})},pasteNavigationElements(){this.$store.commit("reporttemplate/setNavigationCopyPasteState",{copyPasteState:he.DEFAULT,reportTemplateId:this.templateId}),this.$store.getters["reporttemplate/getCopiedNavigationElements"]().forEach(t=>{let n=new De(t);n.uid=Oe(),n.parent=this.elementData,this.elementData.navigation.push(n)})}}},Hn={class:"chart-header"},Xn={class:"report-element-header"},jn={class:"report-element-name"},zn={class:"chart-header-actions"},Yn={class:"chart-header-action"},Kn={class:"chart-header_copy",style:{"margin-left":"10px"}},Zn={class:"chart-header-parameters"};function Jn(e,t,n,D,a,i){const b=r("report-element-parameter-output"),c=r("report-element-parameter"),u=r("dialog-card");return g(),v("div",Hn,[V("div",Xn,[V("div",jn,m(n.parentData.name),1),V("div",zn,[V("div",{class:"chart-header-action",onClick:t[0]||(t[0]=o=>a.showEditChartHeaderDialog=!0)},[l(ee,{title:e.$t("edit"),icon:"fas fa-pen",style:{cursor:"pointer",color:"#48c1b8"}},null,8,["title"]),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("edit")),1)]),_:1})]),V("div",Yn,[V("div",{style:ve({display:e.elementData.navigation.length>0&&i.inCopyState?"block":"none"})},[V("div",{class:"chart-header_copy",style:{"margin-left":"10px"},onClick:t[1]||(t[1]=(...o)=>i.copyNavigationElements&&i.copyNavigationElements(...o))},[l(ee,{icon:"fas fa-copy",style:{cursor:"pointer",color:"#48c1b8"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("copy_navigation_elements")),1)]),_:1})])],4),V("div",{style:ve({display:e.elementData.navigation.length<=0&&i.inCopyState?"block":"none"})},[V("div",Kn,[l(ee,{icon:"fas fa-copy",style:{color:"#c6c6c6"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("copy_navigation_elements")),1)]),_:1})])],4),V("div",{style:ve({display:i.copiedNavigationElements.length>0&&i.inPasteState?"block":"none"})},[V("div",{class:"chart-header_paste",style:{"margin-left":"10px"},onClick:t[2]||(t[2]=(...o)=>i.pasteNavigationElements&&i.pasteNavigationElements(...o))},[l(ee,{icon:"fas fa-paste",style:{cursor:"pointer",color:"#48c1b8"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("paste_navigation_elements")),1)]),_:1})])],4),V("div",{style:ve({display:i.copiedNavigationElements.length<=0&&i.inPasteState?"block":"none"})},[V("div",{class:"chart-header_paste",style:{"margin-left":"10px"},onClick:t[3]||(t[3]=(...o)=>i.pasteNavigationElements&&i.pasteNavigationElements(...o))},[l(ee,{icon:"fas fa-paste",style:{cursor:"pointer",color:"#c6c6c6"}}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("paste_navigation_elements")),1)]),_:1})])],4)])]),l(O)]),V("div",Zn,[l(b,{label:e.$t("title"),"report-element":e.elementData,"parameter-name":"title"},null,8,["label","report-element"]),l(b,{label:e.$t("subtitle"),"report-element":e.elementData,"parameter-name":"subtitle"},null,8,["label","report-element"])]),l(u,{modelValue:a.showEditChartHeaderDialog,"onUpdate:modelValue":t[7]||(t[7]=o=>a.showEditChartHeaderDialog=o),width:"850"},{title:s(()=>[h(m(e.$t("edit_chart_header")),1)]),default:s(()=>[l(c,{modelValue:a.title,"onUpdate:modelValue":t[4]||(t[4]=o=>a.title=o),label:e.$t("title"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(c,{modelValue:a.subtitle,"onUpdate:modelValue":t[5]||(t[5]=o=>a.subtitle=o),label:e.$t("subtitle"),"template-id":e.templateId},null,8,["modelValue","label","template-id"])]),actions:s(()=>[l(I,{color:"secondary",onClick:t[6]||(t[6]=o=>a.showEditChartHeaderDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),_:1},8,["modelValue"])])}const z=U(Fn,[["render",Jn],["__scopeId","data-v-911a1907"]]),xn={name:"ChartNotes",components:{DialogCard:k,ReportElementParameterOutput:G,NavigationElement:Ye,ReportElementParameter:L},extends:C,props:{},data(){return{showEditChartNotesDialog:!1,notesText:null}},computed:{},watch:{},created(){this.elementData instanceof Kl||w.warn("WRONG ChartNotes"),!this.elementData.notesText instanceof p&&w.warn("WRONG NotesText of ChartNotes"),this.notesText=new p({reportElement:this.elementData,type:d.TEXT_LIST}),this.notesText.replaceAttributes(this.elementData.notesText)},methods:{save(){C.methods.save.call(this),this.elementData.notesText.replaceAttributes(this.notesText),this.showEditChartNotesDialog=!1}}};function ei(e,t,n,D,a,i){const b=r("report-element-parameter");return g(),A(H,{class:"mt-2"},{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("chart_notes")),1)]),_:1}),l(F,null,{default:s(()=>[l(b,{modelValue:a.notesText,"onUpdate:modelValue":t[0]||(t[0]=c=>a.notesText=c),label:e.$t("notes_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})}const K=U(xn,[["render",ei],["__scopeId","data-v-e4a96001"]]),ti={name:"TableOfContents",components:{DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K,NavigationElement:Ye},extends:C,props:{},data(){return{}},computed:{},watch:{},created(){!this.elementData.title instanceof p&&w.warn("WRONG Title of TableOfContents"),!this.elementData.subtitle instanceof p&&w.warn("WRONG Subtitle of TableOfContents"),this.setDefaultValues()},methods:{save(){if(C.methods.save.call(this),this.$refs.navigationElement)for(let e of this.$refs.navigationElement)e.save();this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ table_of_contents }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_navigation_explanation_table_of_contents");
1n&&t.push(n),this.elementData.notes.notesText.immutableValue=t}},addNavigationElementAfter(e){let t=new De({});t.alwaysEnableLoop=!0,this.elementData.navigation.splice(e+1,0,t)},addNavigationElementBefore(e){let t=new De({});t.alwaysEnableLoop=!0,this.elementData.navigation.splice(e,0,t)},removeNavigationElement(e){let t=this.elementData.navigation.indexOf(e);this.elementData.navigation.splice(t,1)}}},li={class:"report-element-head"};function ai(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",li,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[3]||(t[3]=y=>e.elementData.showEditDialog=y),width:"850"},{title:s(()=>[h(m(e.$t("edit_table_of_contents")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[2]||(t[2]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(H,{class:"mt-4"},{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(u,{modelValue:e.display,"onUpdate:modelValue":t[1]||(t[1]=y=>e.display=y),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const St=U(ti,[["render",ai],["__scopeId","data-v-945afb72"]]),si={name:"ColorScaleInput",components:{},extends:Ue,props:{modelValue:Array,segments:Object,selectionMode:{type:String,default:"left-to-right"}},emits:["update:modelValue"],data(){return{selectedColorSegments:[]}},computed:{colorScaleSegments(){return Array.from(this.segments)}},watch:{},created(){this.modelValue.length===0?(this.selectionMode==="left-to-right"&&(this.selectedColorSegments=[0]),this.selectionMode==="right-to-left"&&(this.selectedColorSegments=[this.segments.length-1])):this.selectedColorSegments=this.modelValue},methods:{changeSelectedColorSegments(e,t){if(this.selectionMode==="left-to-right"){this.selectedColorSegments=[];for(let n=0;n<=e;n++)this.selectedColorSegments.push(n)}if(this.selectionMode==="right-to-left"){this.selectedColorSegments=[];for(let n=e;n<=this.colorScaleSegments.length-1;n++)this.selectedColorSegments.push(n)}this.$emit("update:modelValue",this.selectedColorSegments)}}};function ni(e,t,n,D,a,i){return g(),v("div",{class:B({"report-element-parameter-container":!0,"show-tooltip":e.$slots.tooltipIcon})},[e.label?(g(),v("div",{key:0,class:B({"small-label":e.smallLabel,label:!0})},[ce(e.$slots,"label",{},()=>[h(m(e.label),1)])],2)):P("",!0),l(O),(g(!0),v(Y,null,oe(i.colorScaleSegments,(b,c)=>(g(),v("div",null,[l(I,{style:ve("color: #"+b.colorCode),variant:"tonal",onClick:u=>i.changeSelectedColorSegments(c,u)},{prepend:s(()=>[a.selectedColorSegments.includes(c)?(g(),A(ee,{key:0,color:"#"+b.colorCode,icon:"mdi:mdi-check-circle"},null,8,["color"])):(g(),A(ee,{key:1,color:"#"+b.colorCode,icon:"mdi:mdi-circle"},null,8,["color"]))]),default:s(()=>[h(" "+m(c)+" - "+m(b.colorCode),1)]),_:2},1032,["style","onClick"])]))),256))],2)}const vt=U(si,[["render",ni]]),ii={name:"ProjectOverview",components:{TooltipIcon:we,SwitchInput:Z,NumberInput:me,ColorScaleInput:vt,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{mainDatasubset:null,datasubsets:null,headings:null,index:null,uidLinkedToBubble:"",datasubsetOrder:"",useWeightedResults:null,reverseTrendOrder:!1,displayResponseRate:!0,showBestQuestions:null,showWorstQuestions:null,displayDistributionCircle:null,distributionCircleCount:3,scaleSegmentsIncludedInWorstQuestions:[],scaleSegmentsIncludedInBestQuestions:[],maxNumTrends:2}},computed:{allowedLinkedReportTypesToBubbles(){return[ge.type,Ee.type]},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},colorScale(){return this.template.generalSettings.colorScale}},watch:{},created(){!this.elementData instanceof ut&&w.warn("WRONG ProjectOverview"),!this.elementData.mainDatasubset instanceof p&&w.warn("WRONG Main-Datasubsets of ProjectOverview"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of ProjectOverview"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of ProjectOverview"),!this.elementData.index instanceof p&&w.warn("WRONG Index of ProjectOverview"),this.setDefaultValues(),this.mainDatasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.mainDatasubset.replaceAttributes(this.elementData.mainDatasubset),this.index.replaceAttributes(this.elementData.index),this.headings.replaceAttributes(this.elementData.headings),this.uidLinkedToBubble=this.elementData.uidLinkedToBubble,this.datasubsetOrder=this.elementData.datasubsetOrder,this.maxNumTrends=this.elementData.maxNumTrends,this.reverseTrendOrder=this.elementData.reverseTrendOrder,this.displayResponseRate=this.elementData.displayResponseRate,this.useWeightedResults=this.elementData.useWeightedResults,this.showBestQuestions=this.elementData.showBestQuestions,this.showWorstQuestions=this.elementData.showWorstQuestions,this.displayDistributionCircle=this.elementData.displayDistributionCircle,this.distributionCircleCount=this.elementData.distributionCircleCount,this.scaleSegmentsIncludedInWorstQuestions=this.elementData.scaleSegmentsIncludedInWorstQuestions,this.scaleSegmentsIncludedInBestQuestions=this.elementData.scaleSegmentsIncludedInBestQuestions,this.elementData.scaleSegmentsIncludedInWorstQuestions.length===0&&(this.scaleSegmentsIncludedInWorstQuestions=[0]),this.elementData.scaleSegmentsIncludedInBestQuestions.length===0&&(this.scaleSegmentsIncludedInBestQuestions=[this.colorScale.segments.length-1])},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.mainDatasubset.replaceAttributes(this.mainDatasubset),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.headings.replaceAttributes(this.headings),this.elementData.uidLinkedToBubble=this.uidLinkedToBubble,this.elementData.index.replaceAttributes(this.index),this.elementData.datasubsetOrder=this.datasubsetOrder,this.elementData.maxNumTrends=this.maxNumTrends,this.elementData.reverseTrendOrder=this.reverseTrendOrder,this.elementData.displayResponseRate=this.displayResponseRate,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showBestQuestions=this.showBestQuestions,this.elementData.showWorstQuestions=this.showWorstQuestions,this.elementData.scaleSegmentsIncludedInWorstQuestions=this.scaleSegmentsIncludedInWorstQuestions,this.elementData.scaleSegmentsIncludedInBestQuestions=this.scaleSegmentsIncludedInBestQuestions,this.elementData.showEditDialog=!1,this.elementData.displayDistributionCircle=this.displayDistributionCircle,this.elementData.distributionCircleCount=this.distributionCircleCount,this.headings.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.heading.fromLoop=!0))},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ project_overview }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.mainDatasubset.isSet())if(this.elementData.mainDatasubset.isLoopEnabled())this.elementData.mainDatasubset.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);t.length>0&&(this.elementData.mainDatasubset.mutableParameter=t[0])}if(!this.elementData.datasubsets.isSet())if(this.elementData.datasubsets.isLoopEnabled())this.elementData.datasubsets.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0])}if(!this.elementData.headings.isSet())if(this.elementData.headings.isLoopEnabled())this.elementData.headings.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId);t.length>0&&(this.elementData.headings.mutableParameter=t[0])}if(!this.elementData.index.isSet())if(this.elementData.index.isLoopEnabled())this.elementData.index.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);t.length>0&&(this.elementData.index.mutableParameter=t[0])}if(!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("project_overview_explanation_1");
1n&&t.push(n);let D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation_hcm");D&&t.push(D);let a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("project_overview_explanation_2");a&&t.push(a),this.elementData.notes.notesText.immutableValue=t}}}},oi={class:"report-element-head"},ri={class:"one_line"},mi={style:{"margin-bottom":"0"}},di={class:"report-element-parameter-container pr-0"},ui={class:"label"},pi={class:"d-flex w-25"};function hi(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("report-element-input"),T=r("switch-input"),S=r("color-scale-input"),f=r("tooltip-icon"),E=r("number-input"),N=r("chart-notes"),_=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",oi,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=j=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"mainDatasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"]),V("div",ri,[t[20]||(t[20]=V("div",{class:"name_label"},"Stärken/Schwächen anzeigen: ",-1)),V("span",mi,m(e.elementData.showBestQuestions&&e.elementData.showWorstQuestions?"Stärken+Schwächen":e.elementData.showBestQuestions?"Nur Stärken":e.elementData.showWorstQuestions?"Nur Schwächen":"Nein"),1)]),l(_,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[19]||(t[19]=j=>e.elementData.showEditDialog=j),width:"800"},{title:s(()=>[h(m(e.$t("edit_project_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[18]||(t[18]=j=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=j=>a.datasubsets=j),label:e.$t("max_4_datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.mainDatasubset,"onUpdate:modelValue":t[2]||(t[2]=j=>a.mainDatasubset=j),label:e.$t("main_datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[3]||(t[3]=j=>a.index=j),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[4]||(t[4]=j=>a.headings=j),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.uidLinkedToBubble,"onUpdate:modelValue":t[5]||(t[5]=j=>a.uidLinkedToBubble=j),label:e.$t("report_element_linked_to_bubble"),"report-element-types-filter":i.allowedLinkedReportTypesToBubbles,"template-id":e.templateId},null,8,["modelValue","label","report-element-types-filter","template-id"]),l(T,{modelValue:a.showWorstQuestions,"onUpdate:modelValue":t[6]||(t[6]=j=>a.showWorstQuestions=j),label:e.$t("show_worst_questions")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showBestQuestions,"onUpdate:modelValue":t[7]||(t[7]=j=>a.showBestQuestions=j),label:e.$t("show_best_questions")+"?"},null,8,["modelValue","label"]),l(S,{modelValue:a.scaleSegmentsIncludedInWorstQuestions,"onUpdate:modelValue":t[8]||(t[8]=j=>a.scaleSegmentsIncludedInWorstQuestions=j),label:e.$t("include_in_worst"),segments:i.colorScale.segments,"selection-mode":"left-to-right"},null,8,["modelValue","label","segments"]),l(S,{modelValue:a.scaleSegmentsIncludedInBestQuestions,"onUpdate:modelValue":t[9]||(t[9]=j=>a.scaleSegmentsIncludedInBestQuestions=j),label:e.$t("include_in_best"),segments:i.colorScale.segments,"selection-mode":"right-to-left"},null,8,["modelValue","label","segments"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[V("div",di,[V("div",ui,[V("b",null,m(e.$t("datasubset_order"))+"?",1)]),l(O),V("div",pi,[l(ae,{modelValue:a.datasubsetOrder,"onUpdate:modelValue":t[10]||(t[10]=j=>a.datasubsetOrder=j)},{append:s(()=>[l(f,{tooltip:"Die Standard-Reihenfolge der Datensubsets ist: 0,1,2,3.<br>Geben Sie eine neue Reihenfolge z.B.: 0,2,3,1 an."})]),_:1},8,["modelValue"])])]),l(E,{modelValue:a.maxNumTrends,"onUpdate:modelValue":t[11]||(t[11]=j=>a.maxNumTrends=j),label:e.$t("max_num_trends")},null,8,["modelValue","label"]),l(T,{modelValue:a.displayResponseRate,"onUpdate:modelValue":t[12]||(t[12]=j=>a.displayResponseRate=j),label:e.$t("display_response_rate")},null,8,["modelValue","label"]),l(T,{modelValue:a.reverseTrendOrder,"onUpdate:modelValue":t[13]||(t[13]=j=>a.reverseTrendOrder=j),label:e.$t("reverse_trend_order")},null,8,["modelValue","label"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[14]||(t[14]=j=>a.useWeightedResults=j),label:e.$t("use_weighted_results")},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[15]||(t[15]=j=>e.display=j),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(T,{modelValue:a.displayDistributionCircle,"onUpdate:modelValue":t[16]||(t[16]=j=>a.displayDistributionCircle=j),label:e.$t("display_distribution_circle")+"?"},null,8,["modelValue","label"]),a.displayDistributionCircle?(g(),A(E,{key:0,modelValue:a.distributionCircleCount,"onUpdate:modelValue":t[17]||(t[17]=j=>a.distributionCircleCount=j),label:e.$t("split_distribution_circle_in_x_parts")},null,8,["modelValue","label"])):P("",!0)]),_:1})]),_:1})]),_:1}),l(N,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const It=U(ii,[["render",hi]]),bi={name:"ProjectOverviewTable",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{datasubsets:null,headings:null,index:null,useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof Qe&&w.warn("WRONG ProjectOverviewTable"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of ProjectOverviewTable"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of ProjectOverviewTable"),!this.elementData.index instanceof p&&w.warn("WRONG Index of ProjectOverviewTable"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.useWeightedResults=this.elementData.useWeightedResults,this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.headings.replaceAttributes(this.elementData.headings),this.index.replaceAttributes(this.elementData.index)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.headings.replaceAttributes(this.headings),this.elementData.index.replaceAttributes(this.index),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1,this.headings.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.heading.fromLoop=!0))},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ project_overview_table }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.datasubsets.isSet())if(this.elementData.datasubsets.isLoopEnabled())this.elementData.datasubsets.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0])}if(!this.elementData.headings.isSet())if(this.elementData.headings.isLoopEnabled())this.elementData.headings.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId);t.length>0&&(this.elementData.headings.mutableParameter=t[0])}if(!this.elementData.index.isSet())if(this.elementData.index.isLoopEnabled())this.elementData.index.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);t.length>0&&(this.elementData.index.mutableParameter=t[0])}}}},Di={class:"report-element-head"};function gi(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Di,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),l(u,{label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[7]||(t[7]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_project_overview_table")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[6]||(t[6]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubsets=f),label:e.$t("max_4_datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=f=>a.headings=f),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[3]||(t[3]=f=>a.index=f),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[4]||(t[4]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[5]||(t[5]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const $l=U(bi,[["render",gi]]),fi={name:"SortOrderInput",extends:Ue,components:{},data(){return{}},props:{modelValue:ue},emits:["update:modelValue"],computed:{SortOrder(){return ue}},methods:{change(e){this.$emit("update:modelValue",e.target.value)}},watch:{},mounted(){}},yi={class:"d-flex align-center"};function Vi(e,t,n,D,a,i){return g(),v("div",{class:B({"report-element-parameter-container":!0,"show-tooltip":this.$slots.tooltipIcon})},[e.label?(g(),v("div",{key:0,class:B({"small-label":e.smallLabel,label:!0})},[ce(e.$slots,"label",{},()=>[h(m(e.label),1)])],2)):P("",!0),l(O),V("div",yi,[l(El,{inline:!0,modelValue:n.modelValue,class:"flex-grow-0",density:"compact","hide-details":"",onInput:t[0]||(t[0]=b=>i.change(b))},{default:s(()=>[l(Ae,{label:e.$t("no_sort"),value:i.SortOrder.NO_SORT},null,8,["label","value"]),l(Ae,{label:e.$t("ascending"),value:i.SortOrder.ASCENDING},null,8,["label","value"]),l(Ae,{label:e.$t("descending"),value:i.SortOrder.DESCENDING},null,8,["label","value"])]),_:1},8,["modelValue"]),ce(e.$slots,"tooltipIcon")])],2)}const Ke=U(fi,[["render",Vi]]),ci={name:"AspectChart",components:{TooltipIcon:we,NumberInput:me,SwitchInput:Z,DialogCard:k,ReportElementParameterOutput:G,SortOrderInput:Ke,ChartHeader:z,ChartNotes:K,ReportElementParameter:L,ReportElementActions:M},extends:C,props:{},data(){return{datasubset:null,question:null,useWeightedResults:!1,sortByValue:ue.NO_SORT,sortByFrequency:ue.NO_SORT,isForChangeChart:!1,scaleDistributionSumTo100Percent:!1,scaleMultipleChoiceBarWidthToPercent:!1,showFillRate:!0,maxNumTrends:2,showTrendBars:!0,barsPerSlide:100}},computed:{SortOrder(){return ue}},watch:{},created(){!this.elementData instanceof ge&&w.warn("WRONG AspectChart"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of AspectChart"),!this.elementData.question instanceof p&&w.warn("WRONG Question of AspectChart"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question),this.useWeightedResults=this.elementData.useWeightedResults,this.maxNumTrends=this.elementData.maxNumTrends,this.showTrendBars=this.elementData.showTrendBars,this.sortByValue=this.elementData.sortByValue,this.sortByFrequency=this.elementData.sortByFrequency,this.isForChangeChart=this.elementData.isForChangeChart,this.scaleDistributionSumTo100Percent=this.elementData.scaleDistributionSumTo100Percent,this.scaleMultipleChoiceBarWidthToPercent=this.elementData.scaleMultipleChoiceBarWidthToPercent,this.show
1FillRate=this.elementData.showFillRate,this.barsPerSlide=this.elementData.barsPerSlide},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.maxNumTrends=this.maxNumTrends,this.elementData.showTrendBars=this.showTrendBars,this.elementData.sortByValue=this.sortByValue,this.elementData.sortByFrequency=this.sortByFrequency,this.elementData.isForChangeChart=this.isForChangeChart,this.elementData.scaleDistributionSumTo100Percent=this.scaleDistributionSumTo100Percent,this.elementData.scaleMultipleChoiceBarWidthToPercent=this.scaleMultipleChoiceBarWidthToPercent,this.elementData.showFillRate=this.showFillRate,this.elementData.barsPerSlide=this.barsPerSlide,this.elementData.header.title.immutableValue&&this.elementData.header.title.immutableValue.question.replaceAttributes(this.elementData.question),this.elementData.header.subtitle.immutableValue&&this.elementData.header.subtitle.immutableValue.datasubset.replaceAttributes(this.elementData.datasubset),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.elementData.parent;if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),t!==null&&t.type==="Loop"&&t.resultType.name===d.QUESTION.name?(this.elementData.header.title.immutableValue.question.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{question.shorttext}} | ${ aspect_list }"):this.elementData.header.title.immutableValue.string="${ aspect_chart }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.question.isSet()||t!==null&&t.type==="Loop"&&t.resultType.name===d.QUESTION.name&&(this.elementData.question.fromLoop=!0),!this.elementData.question.isSet())if(this.elementData.question.isLoopEnabled())this.elementData.question.fromLoop=!0;else{let n=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION,this.templateId);n.length>0&&(this.elementData.question.mutableParameter=n[0])}if(!this.elementData.notes.notesText.isSet()){let n=[],D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("aspect_chart_explanation_1");D&&n.push(D);let a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("aspect_chart_explanation_2");a&&n.push(a);let i=this.$store.getters["reporttemplate/getProjectTextelementByName"]("aspect_chart_explanation_fill_rate");i&&n.push(i),this.elementData.notes.notesText.immutableValue=n}}}},Ei={class:"report-element-head"},Ti={class:"report-element-parameter-container"},wi={class:"label"},Si={class:"d-flex w-25"};function vi(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("sort-order-input"),T=r("switch-input"),S=r("number-input"),f=r("tooltip-icon"),E=r("chart-notes"),N=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Ei,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=_=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(N,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[15]||(t[15]=_=>e.elementData.showEditDialog=_),width:"800"},{title:s(()=>[h(m(e.$t("edit_aspect_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[14]||(t[14]=_=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=_=>a.datasubset=_),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[2]||(t[2]=_=>a.question=_),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.sortByValue,"onUpdate:modelValue":t[3]||(t[3]=_=>a.sortByValue=_),label:e.$t("sort_by_value")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.sortByFrequency,"onUpdate:modelValue":t[4]||(t[4]=_=>a.sortByFrequency=_),label:e.$t("sort_by_frequency")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showFillRate,"onUpdate:modelValue":t[5]||(t[5]=_=>a.showFillRate=_),label:e.$t("show_fill_rate")},null,8,["modelValue","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>
1[l(T,{modelValue:a.isForChangeChart,"onUpdate:modelValue":t[6]||(t[6]=_=>a.isForChangeChart=_),label:e.$t("is_for_change_chart")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.scaleDistributionSumTo100Percent,"onUpdate:modelValue":t[7]||(t[7]=_=>a.scaleDistributionSumTo100Percent=_),label:e.$t("scale_distribution_sum_to_100_percent")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.scaleMultipleChoiceBarWidthToPercent,"onUpdate:modelValue":t[8]||(t[8]=_=>a.scaleMultipleChoiceBarWidthToPercent=_),label:e.$t("scale_mc_bar_width_to_percent")+"?"},null,8,["modelValue","label"]),l(S,{modelValue:a.maxNumTrends,"onUpdate:modelValue":t[9]||(t[9]=_=>a.maxNumTrends=_),label:e.$t("max_num_trends")},null,8,["modelValue","label"]),l(T,{modelValue:a.showTrendBars,"onUpdate:modelValue":t[10]||(t[10]=_=>a.showTrendBars=_),label:e.$t("show_trend_bars")},null,8,["modelValue","label"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[11]||(t[11]=_=>a.useWeightedResults=_),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),V("div",Ti,[V("div",wi,m(e.$t("bars_per_slide"))+"?",1),l(O),V("div",Si,[l(ae,{modelValue:a.barsPerSlide,"onUpdate:modelValue":t[12]||(t[12]=_=>a.barsPerSlide=_)},{append:s(()=>[l(f,{style:{"margin-right":"-16px"},tooltip:"Durch Beistrich getrennte Angabe wieviele Balken pro Folie angezeigt werden: 8,7,5"})]),_:1},8,["modelValue"])])]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[13]||(t[13]=_=>e.display=_),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(E,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Rt=U(ci,[["render",vi],["__scopeId","data-v-24df1bbb"]]),Ii={name:"NPS",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,SortOrderInput:Ke,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,question:null,useWeightedResults:!1,promotersText:null,detractorsText:null,indifferentText:null,descriptionText:null,showResponseRate:!0,showValuesInLegend:!0,promoterValues:"",indifferentValues:"",detractorValues:""}},computed:{SortOrder(){return ue}},watch:{},created(){!this.elementData instanceof Ge&&w.warn("WRONG NPS"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of NPS"),!this.elementData.question instanceof p&&w.warn("WRONG Question of NPS"),!this.elementData.promotersText instanceof p&&w.warn("WRONG PromotersText of NPS"),!this.elementData.detractorsText instanceof p&&w.warn("WRONG DetractorsText of NPS"),!this.elementData.indifferentText instanceof p&&w.warn("WRONG IndifferentText of NPS"),!this.elementData.descriptionText instanceof p&&w.warn("WRONG DescriptionText of NPS"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.promotersText=new p({reportElement:this.elementData,type:d.TEXT}),this.detractorsText=new p({reportElement:this.elementData,type:d.TEXT}),this.indifferentText=new p({reportElement:this.elementData,type:d.TEXT}),this.descriptionText=new p({reportElement:this.elementData,type:d.TEXT}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question),this.useWeightedResults=this.elementData.useWeightedResults,this.promotersText.replaceAttributes(this.elementData.promotersText),this.detractorsText.replaceAttributes(this.elementData.detractorsText),this.indifferentText.replaceAttributes(this.elementData.indifferentText),this.descriptionText.replaceAttributes(this.elementData.descriptionText),this.showResponseRate=this.elementData.showResponseRate,this.showValuesInLegend=this.elementData.showValuesInLegend,this.promoterValues=this.elementData.promoterValues,this.indifferentValues=this.elementData.indifferentValues,this.detractorValues=this.elementData.detractorValues},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.promotersText.replaceAttributes(this.promotersText),this.elementData.detractorsText.replaceAttributes(this.detractorsText),this.elementData.indifferentText.replaceAttributes(this.indifferentText),this.elementData.descriptionText.replaceAttributes(this.descriptionText),this.elementData.showResponseRate=this.showResponseRate,this.elementData.showValuesInLegend=this.showValuesInLegend,this.elementData.promoterValues=this.promoterValues,this.elementData.indifferentValues=this.indifferentValues,this.elementData.detractorValues=this.detractorValues,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),n=this.$store.getters["befragung/getQuestions"].filter(D=>D.antwortset.antworten.length===11);if(!this.elementData.header.title.isSet()&&n.length>0&&(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.title.immutableValue.string="${ nps }"),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),!this.elementData.detractorsText.isSet()){this.elementData.detractorsText.immutableValue=this.elementData.detractorsText.type.getEntity({reportElement:this});let D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("detractors");D&&(this.elementData.detractorsText.immutableValue=D)}
1if(!this.elementData.indifferentText.isSet()){this.elementData.indifferentText.immutableValue=this.elementData.indifferentText.type.getEntity({reportElement:this});let D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("indifferent");D&&(this.elementData.indifferentText.immutableValue=D)}if(!this.elementData.promotersText.isSet()){this.elementData.promotersText.immutableValue=this.elementData.promotersText.type.getEntity({reportElement:this});let D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("promoters");D&&(this.elementData.promotersText.immutableValue=D)}if(!this.elementData.descriptionText.isSet()&&n.length>0&&(this.elementData.descriptionText.immutableValue=this.elementData.descriptionText.type.getEntity({reportElement:this.elementData.header}),this.elementData.descriptionText.immutableValue.string="{{question.longtext}}",this.elementData.descriptionText.immutableValue.question.immutableValue=n[0]),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.question.isSet()||(this.elementData.question.isLoopEnabled()?this.elementData.question.fromLoop=!0:this.elementData.question.immutableValue=n[0]),!this.elementData.notes.notesText.isSet()){let D=[],a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("nps_explanation");a&&D.push(a),this.elementData.notes.notesText.immutableValue=D}}}},Ri={class:"report-element-head"},_i={class:"report-element-parameter-container"},Ni=["title"],Ci={class:"report-element-parameter-container"},Ai=["title"],Pi={class:"report-element-parameter-container"},Ui=["title"],$i={class:"report-element-parameter-container"},Bi=["title"],Oi={class:"report-element-parameter-container"},ki=["title"];function Li(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Ri,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[15]||(t[15]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_nps")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[14]||(t[14]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[2]||(t[2]=f=>a.question=f),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[3]||(t[3]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:a.detractorsText,"onUpdate:modelValue":t[4]||(t[4]=f=>a.detractorsText=f),label:e.$t("detractors_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.indifferentText,"onUpdate:modelValue":t[5]||(t[5]=f=>a.indifferentText=f),label:e.$t("indifferent_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.promotersText,"onUpdate:modelValue":t[6]||(t[6]=f=>a.promotersText=f),label:e.$t("promoters_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.descriptionText,"onUpdate:modelValue":t[7]||(t[7]=f=>a.descriptionText=f),label:e.$t("description_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),V("div",_i,[V("div",{title:e.$t("show_response_rate"),class:"label"},m(e.$t("show_response_rate")),9,Ni),l(J,{modelValue:a.showResponseRate,"onUpdate:modelValue":t[8]||(t[8]=f=>a.showResponseRate=f),color:"primary",density:"compact","hide-details":"",style:{margin:"0",padding:"0"}},null,8,["modelValue"])]),V("div",Ci,[V("div",{title:e.$t("show_values_in_legend"),class:"label"},m(e.$t("show_values_in_legend")),9,Ai),l(J,{modelValue:a.showValuesInLegend,"onUpdate:modelValue":t[9]||(t[9]=f=>a.showValuesInLegend=f),color:"primary",density:"compact","hide-details":"",style:{margin:"0",padding:"0"}},null,8,["modelValue"])]),V("div",Pi,[V("div",{title:e.$t("detractor_values"),class:"label"},m(e.$t("detractor_values")),9,Ui),l(ae,{modelValue:a.detractorValues,"onUpdate:modelValue":t[10]||(t[10]=f=>a.detractorValues=f)},null,8,["modelValue"])]),V("div",$i,[V("div",{title:e.$t("indifferent_values"),class:"label"},m(e.$t("indifferent_values")),9,Bi),l(ae,{modelValue:a.indifferentValues,"onUpdate:modelValue":t[11]||(t[11]=f=>a.indifferentValues=f)},null,8,["modelValue"])]),V("div",Oi,[V("div",{title:e.$t("promoter_values"),class:"label"},m(e.$t("promoter_values")),9,ki),l(ae,{modelValue:a.promoterValues,"onUpdate:modelValue":t[12]||(t[12]=f=>a.promoterValues=f)},null,8,["modelValue"])]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[13]||(t[13]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const _t=U(Ii,[["render",Li],["__scopeId","data-v-8b9d1d6a"]]),Wi={name:"NPSDetails",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,SortOrderInput:Ke,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,question:null,useWeightedResults:!1,showResponseRate:!0,sortByValue:ue.NO_SORT,sortByFrequency:ue.NO_SORT}},computed:{SortOrder(){return ue}},watch:{},created(){!this.elementData instanceof Me&&w.warn("WRONG NPSDetails"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of NPSDetails"),!this.elementData.question instanceof p&&w.warn("WRONG Question of NPSDetails"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question),this.useWeightedResults=this.elementData.useWeightedResults,this.showResponseRate=this.elementData.showResponseRate,this.sortByValue=this.elementData.sortByValue,this.sortByFrequency=this.elementData.sortByFrequency},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showResponseRate=this.showResponseRate,this.elementData.sortByValue=this.sortByValue,this.elementData.sortByFrequency=this.sortByFrequency,this.elementData.header.title.immutableValue&&this.elementData.header.title.immutableValue.question.replaceAttributes(this.elementData.question),this.elementData.header.subtitle.immutableValue&&this.elementData.header.subtitle.immutableValue.datasubset.replaceAttributes(this.elementData.datasubset),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),n=this.$store.getters["befragung/getQuestions"].filter(D=>D.antwortset.antworten.length===11);!this.elementData.header.title.isSet()&&n.length>0&&(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.title.immutableValue.string="${ nps } - ${ details }"),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.question.isSet()||(this.elementData.question.isLoopEnabled()?this.elementData.question.fromLoop=!0:this.elementData.question.immutableValue=n[0])}}},qi={class:"report-element-head"},Gi={class:"label"};function Mi(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("sort-order-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",qi,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[9]||(t[9]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_nps_details")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[8]||(t[8]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[V("div",Gi,m(e.$t("datasubset")),1),l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubset=E),"template-id":e.templateId},null,8,["modelValue","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[2]||(t[2]=E=>a.question=E),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.sortByValue,"onUpdate:modelValue":t[3]||(t[3]=E=>a.sortByValue=E),label:e.$t("sort_by_value")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.sortByFrequency,"onUpdate:modelValue":t[4]||(t[4]=E=>a.sortByFrequency=E),label:e.$t("sort_by_frequency")+"?"},null,8,["modelValue","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[5]||(t[5]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showResponseRate,"onUpdate:modelValue":t[6]||(t[6]=E=>a.showResponseRate=E),label:e.$t("show_response_rate")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[7]||(t[7]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}
1const Nt=U(Wi,[["render",Mi],["__scopeId","data-v-33077fa7"]]),Qi={name:"NPSComparison",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,SortOrderInput:Ke,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubsets:null,attributeDatasubsets:null,question:null,showTrend:null,useWeightedResults:!1,sortByValue:ue.NO_SORT,sortByFrequency:ue.NO_SORT}},computed:{SortOrder(){return ue}},watch:{},created(){!this.elementData instanceof rt&&w.warn("WRONG NPSComparison"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of NPSComparison"),!this.elementData.attributeDatasubsets instanceof p&&w.warn("WRONG Attribute-Datasubsets of TablesBarChart"),!this.elementData.question instanceof p&&w.warn("WRONG Question of NPSComparison"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.attributeDatasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.showTrend=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.attributeDatasubsets.replaceAttributes(this.elementData.attributeDatasubsets),this.question.replaceAttributes(this.elementData.question),this.showTrend.replaceAttributes(this.elementData.showTrend),this.useWeightedResults=this.elementData.useWeightedResults,this.sortByValue=this.elementData.sortByValue,this.sortByFrequency=this.elementData.sortByFrequency},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.attributeDatasubsets.replaceAttributes(this.attributeDatasubsets),this.elementData.question.replaceAttributes(this.question),this.elementData.showTrend.replaceAttributes(this.showTrend),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.sortByValue=this.sortByValue,this.elementData.sortByFrequency=this.sortByFrequency,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),n=this.$store.getters["befragung/getQuestions"].filter(D=>D.antwortset.antworten.length===11);if(!this.elementData.header.title.isSet()&&n.length>0&&(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.title.immutableValue.string="{{question.shorttext}} - Comparison",this.elementData.header.title.immutableValue.question.immutableValue=n[0]),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.datasubsets.isSet())if(this.elementData.datasubsets.isLoopEnabled())this.elementData.datasubsets.fromLoop=!0;else{let D=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);D.length>0&&(this.elementData.datasubsets.mutableParameter=D[0])}if(!this.elementData.attributeDatasubsets.isSet())if(this.elementData.attributeDatasubsets.isLoopEnabled())this.elementData.attributeDatasubsets.fromLoop=!0;else{let D=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);D.length>0&&(this.elementData.attributeDatasubsets.mutableParameter=D[0])}this.elementData.question.isSet()||(this.elementData.question.isLoopEnabled()?this.elementData.question.fromLoop=!0:this.elementData.question.immutableValue=n[0])}}},Fi={class:"report-element-head"};function Hi(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("sort-order-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Fi,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("attribute_datasubsets"),"report-element":e.elementData,"parameter-name":"attributeDatasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[10]||(t[10]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_nps_comparison")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[9]||(t[9]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubsets=E),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.attributeDatasubsets,"onUpdate:modelValue":t[2]||(t[2]=E=>a.attributeDatasubsets=E),label:e.$t("datasubsets_that_should_not_show_bars"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[3]||(t[3]=E=>a.question=E),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.sortByValue,"onUpdate:modelValue":t[4]||(t[4]=E=>a.sortByValue=E),label:e.$t("sort_by_value")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.sortByFrequency,"onUpdate:modelValue":t[5]||(t[5]=E=>a.sortByFrequency=E),label:e.$t("sort_by_frequency")+"?"},null,8,["modelValue","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:a.showTrend,"onUpdate:modelValue":t[6]||(t[6]=E=>a.showTrend=E),label:e.$t("show_trend_results")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Ct=U(Qi,[["render",Hi],["__scopeId","data-v-a7a0bd5c"]]),Xi={name:"EngagementIndex",components:{NumberInput:me,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{index:null,datasubset:null,minVal:!1,maxVal:null,minText:null,maxText:null}},computed:{},watch:{},created(){!this.elementData instanceof bt&&w.warn("WRONG EngagementIndex"),!this.elementData.index instanceof p&&w.warn("WRONG Index of EngagementIndex"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of EngagementIndex"),!this.elementData.minText instanceof p&&w.warn("WRONG Min Text of EngagementIndex"),!this.elementData.maxText instanceof p&&w.warn("WRONG Max Text of EngagementIndex"),this.setDefaultValues(),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.minText=new p({reportElement:this.elementData,type:d.TEXT}),this.maxText=new p({reportElement:this.elementData,type:d.TEXT}),this.index.replaceAttributes(this.elementData.index),this.datasubset.replaceAttributes(this.elementData.datasubset),this.minVal=this.elementData.minVal??0,this.maxVal=this.elementData.maxVal??100,this.minText.replaceAttributes(this.elementData.minText),this.maxText.replaceAttributes(this.elementData.maxText)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.index.replaceAttributes(this.index),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.minVal=this.minVal,this.elementData.maxVal=this.maxVal,this.elementData.minText.replaceAttributes(this.minText),this.elementData.maxText.replaceAttributes(this.maxText),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.title.immutableValue.string="Engagement Index"),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),this.elementData.minVal=0,this.elementData.maxVal=100,!this.elementData.minText.isSet()){this.elementData.minText.immutableValue=this.elementData.minText.type.getEntity({reportElement:this});let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("not_engaged");n&&(this.elementData.minText.immutableValue=n)}if(!this.elementData.maxText.isSet()){this.elementData.maxText.immutableValue=this.elementData.maxText.type.getEntity({reportElement:this});let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("engaged");n&&(this.elementData.maxText.immutableValue=n)}if(this.elementData.index.isSet()||t.length>0&&(this.elementData.index.mutableParameter=t[0]),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.notes.notesText.isSet()){let n=[],D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("engagement_index_explanation");D&&n.push(D),this.elementData.notes.notesText.immutableValue=n}}}},ji={class:"report-element-head"};function zi(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("number-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",ji,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[9]||(t[9]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>
1[h(m(e.$t("edit_engagement_index")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[8]||(t[8]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.index,"onUpdate:modelValue":t[1]||(t[1]=f=>a.index=f),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(q),l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[2]||(t[2]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(q),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.minVal,"onUpdate:modelValue":t[3]||(t[3]=f=>a.minVal=f),label:e.$t("min_value"),max:100,min:0,"step-size":10},null,8,["modelValue","label"]),l(y,{modelValue:a.maxVal,"onUpdate:modelValue":t[4]||(t[4]=f=>a.maxVal=f),label:e.$t("max_value"),max:100,min:0,"step-size":10},null,8,["modelValue","label"]),l(o,{modelValue:a.minText,"onUpdate:modelValue":t[5]||(t[5]=f=>a.minText=f),label:e.$t("min_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.maxText,"onUpdate:modelValue":t[6]||(t[6]=f=>a.maxText=f),label:e.$t("max_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[7]||(t[7]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Bl=U(Xi,[["render",zi],["__scopeId","data-v-6d74694b"]]),Yi={name:"ActionPortfolio",components:{ColorScaleInput:vt,NumberInput:me,SwitchInput:Z,TooltipIcon:we,ConfirmDialog:Le,DialogCard:k,InfoTooltip:$e,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K,ReportElementParameterOutput:G},extends:C,props:{},data(){return{datasubset:null,headings:null,isScaled:!1,isScaledGlobal:!1,showBestQuestions:!1,showWorstQuestions:!1,useWeightedResults:!1,showTrendResults:!1,includeXMostChangedResults:5,uidLinkedToBubble:"",sameScalingAsUid:"",scaleSegmentsIncludedInWorstQuestions:[],scaleSegmentsIncludedInBestQuestions:[],questionsConsideredForImportanceScale:null,maxOverlappingBubbles:24,displayIndexBubble:!1,useDefaultIndex:!1,index:null}},computed:{allowedLinkedReportTypesToBubbles(){return[Ve.type,ge.type,Ee.type,Pe.type,Ie.type,Te.type]},allowedSameScalingReportElementTypes(){return[de.type]},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},colorScale(){return this.template.generalSettings.colorScale}},watch:{},created(){!this.elementData instanceof de&&w.warn("WRONG ActionPortfolio"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of ActionPortfolio"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of ActionPortfolio"),!this.elementData.index instanceof p&&w.warn("WRONG Index of ActionPortfolio"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.questionsConsideredForImportanceScale=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.isScaled=this.elementData.isScaled,this.isScaledGlobal=this.elementData.isScaledGlobal,this.showBestQuestions=this.elementData.showBestQuestions,this.showWorstQuestions=this.elementData.showWorstQuestions,this.scaleSegmentsIncludedInWorstQuestions=al.isEmpty(this.elementData.scaleSegmentsIncludedInWorstQuestions)?[0]:this.elementData.scaleSegmentsIncludedInWorstQuestions,this.scaleSegmentsIncludedInBestQuestions=al.isEmpty(this.elementData.scaleSegmentsIncludedInBestQuestions)?[this.colorScale.segments.length-1]:this.elementData.scaleSegmentsIncludedInBestQuestions,this.useWeightedResults=this.elementData.useWeightedResults,this.showTrendResults=this.elementData.showTrendResults,this.includeXMostChangedResults=this.elementData.includeXMostChangedResults,this.uidLinkedToBubble=this.elementData.uidLinkedToBubble,this.sameScalingAsUid=this.elementData.sameScalingAsUid,this.datasubset.replaceAttributes(this.elementData.datasubset),this.headings.replaceAttributes(this.elementData.headings),this.questionsConsideredForImportanceScale.replaceAttributes(this.elementData.questionsConsideredForImportanceScale),this.maxOverlappingBubbles=this.elementData.maxOverlappingBubbles,this.displayIndexBubble=this.elementData.displayIndexBubble,this.useDefaultIndex=this.elementData.useDefaultIndex,this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.index.replaceAttributes(this.elementData.index)},methods:{openContextMenu(e){this.$emit("contextmenu",e)},save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.headings.replaceAttributes(this.headings),this.elementData.isScaled=this.isScaled,this.elementData.isScaledGlobal=this.isScaledGlobal,this.elementData.showBestQuestions=this.showBestQuestions,this.elementData.showWorstQuestions=this.showWorstQuestions,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showTrendResults=this.showTrendResults,this.elementData.includeXMostChangedResults=this.includeXMostChangedResults,this.elementData.uidLinkedToBubble=this.uidLinkedToBubble,this.elementData.sameScalingAsUid=this.sameScalingAsUid,this.elementData.scaleSegmentsIncludedInWorstQuestions=this.scaleSegmentsIncludedInWorstQuestions,this.elementData.scaleSegmentsIncludedInBestQuestions=this.scaleSegmentsIncludedInBestQuestions,this.elementData.questionsConsideredForImportanceScale=this.questionsConsideredForImportanceScale,this.elementData.maxOverlappingBubbles=this.maxOverlappingBubbles,this.elementData.displayIndexBubble=this.displayIndexBubble,this.elementData.useDefaultIndex=this.useDefaultIndex,this.elementData.index.replaceAttributes(this.index),this.headings.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.heading.fromLoop=!0)),this.elementData.header.subtitle.immutableValue&&this.elementData.header.subtitle.immutableValue.datasubset.replaceAttributes(this.elementData.datasubset),this.elementData.showEditDialog=!1},handleWorstSegmentsChange(e){if(e.length===0)this.scaleSegmentsIncludedInWorstQuestions=[];else{let t=Math.max(...e);this.scaleSegmentsIncludedInWorstQuestions=[];for(let n=0;n<=t;n++)this.scaleSegmentsIncludedInWorstQuestions.push(n)}},handleBestSegmentsChange(e){if(e.length===0)this.scaleSegmentsIncludedInBestQuestions=[];else{let t=Math.min(...e);this.scaleSegmentsIncludedInBestQuestions=[];for(let n=this.colorScale.segments.length;n>=t;n--)this.scaleSegmentsIncludedInBestQuestions.unshift(n)}},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type.n
1ame===d.HEADING_LIST.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ action_portfolio }"):this.elementData.header.title.immutableValue.string="${ action_portfolio }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.headings.isSet())if(this.elementData.headings.isLoopEnabled())this.elementData.headings.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId);t.length>0&&(this.elementData.headings.mutableParameter=t[0])}if(!this.elementData.notes.notesText.isSet()){let t=[];if(this.elementData.isScaled)if(this.elementData.headings.fromLoop){let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("action_portfolio_heading_explanation");
1n&&t.push(n)}else{let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("action_portfolio_scaled_explanation");n&&t.push(n)}else{let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("action_portfolio_explanation");n&&t.push(n)}if(this.elementData.showBestQuestions){let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_strengths_explanation");n&&t.push(n)}if(this.elementData.showWorstQuestions){let n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_weaknesses_explanation");n&&t.push(n)}this.elementData.notes.notesText.immutableValue=t}}}},Ki={class:"report-element-head"},Zi={key:0,class:"one_line",style:{display:"flex","align-items":"center"}},Ji={class:"name_label"},xi={class:"one_line"};function eo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("report-element-input"),T=r("switch-input"),S=r("tooltip-icon"),f=r("number-input"),E=r("color-scale-input"),N=r("info-tooltip"),_=r("chart-notes"),j=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Ki,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=W=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),e.elementData.isScaled?(g(),v("div",Zi,[V("div",Ji,m(e.$t("is_scaled"))+":",1),l(yt,{modelValue:e.elementData.isScaled,"onUpdate:modelValue":t[1]||(t[1]=W=>e.elementData.isScaled=W),disabled:""},null,8,["modelValue"])])):P("",!0),V("div",xi,[t[22]||(t[22]=V("div",{class:"name_label"},"Stärken/Schwächen anzeigen: ",-1)),V("div",null,m(e.elementData.showBestQuestions&&e.elementData.showWorstQuestions?"Stärken+Schwächen":e.elementData.showBestQuestions?"Nur Stärken":e.elementData.showWorstQuestions?"Nur Schwächen":"Nein"),1)]),l(j,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[21]||(t[21]=W=>e.elementData.showEditDialog=W),width:"800"},{title:s(()=>[h(m(e.$t("edit_actionportfolio_chart")),1)]),"actions-append":s(()=>[l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[2]||(t[2]=W=>a.datasubset=W),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[3]||(t[3]=W=>a.headings=W),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.uidLinkedToBubble,"onUpdate:modelValue":t[4]||(t[4]=W=>a.uidLinkedToBubble=W),label:e.$t("report_element_linked_to_bubble")+"?","report-element-types-filter":i.allowedLinkedReportTypesToBubbles,"template-id":e.templateId},null,8,["modelValue","label","report-element-types-filter","template-id"]),l(T,{modelValue:a.isScaled,"onUpdate:modelValue":t[5]||(t[5]=W=>a.isScaled=W),label:e.$t("is_scaled")+"?"},null,8,["modelValue","label"]),a.isScaled?(g(),A(T,{key:0,modelValue:a.isScaledGlobal,"onUpdate:modelValue":t[6]||(t[6]=W=>a.isScaledGlobal=W),label:e.$t("is_scaled_global"),"small-label":""},{tooltipIcon:s(()=>[l(S,{tooltip:e.$t("use_widest_range_of_all_action_portfolios_and_table_portfolios"),class:"ml-3"},null,8,["tooltip"])]),_:1},8,["modelValue","label"])):P("",!0),a.isScaled?(g(),A(y,{key:1,modelValue:a.sameScalingAsUid,"onUpdate:modelValue":t[7]||(t[7]=W=>a.sameScalingAsUid=W),label:e.$t("same_scaling_as"),"report-element-types-filter":i.allowedSameScalingReportElementTypes,"template-id":e.templateId},null,8,["modelValue","label","report-element-types-filter","template-id"])):P("",!0),l(T,{modelValue:a.showWorstQuestions,"onUpdate:modelValue":t[8]||(t[8]=W=>a.showWorstQuestions=W),label:e.$t("show_worst_questions")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showBestQuestions,"onUpdate:modelValue":t[9]||(t[9]=W=>a.showBestQuestions=W),label:e.$t("show_best_questions")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showTrendResults,"onUpdate:modelValue":t[10]||(t[10]=W=>a.showTrendResults=W),label:e.$t("show_trend_results")+"?"},null,8,["modelValue","label"]),a.showTrendResults?(g(),A(f,{key:2,modelValue:a.includeXMostChangedResults,"onUpdate:modelValue":t[11]||(t[11]=W=>a.includeXMostChangedResults=W),label:e.$t("include_x_most_changed_results"),"small-label":""},null,8,["modelValue","label"])):P("",!0),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(E,{modelValue:a.scaleSegmentsIncludedInWorstQuestions,"onUpdate:modelValue":t[12]||(t[12]=W=>a.scaleSegmentsIncludedInWorstQuestions=W),label:e.$t("include_in_
1worst"),segments:i.colorScale.segments,"selection-mode":"left-to-right"},null,8,["modelValue","label","segments"]),l(E,{modelValue:a.scaleSegmentsIncludedInBestQuestions,"onUpdate:modelValue":t[13]||(t[13]=W=>a.scaleSegmentsIncludedInBestQuestions=W),label:e.$t("include_in_best"),segments:i.colorScale.segments,"selection-mode":"right-to-left"},null,8,["modelValue","label","segments"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[14]||(t[14]=W=>a.useWeightedResults=W),label:e.$t("use_weighted_results")},null,8,["modelValue","label"]),l(o,{modelValue:a.questionsConsideredForImportanceScale,"onUpdate:modelValue":t[15]||(t[15]=W=>a.questionsConsideredForImportanceScale=W),label:e.$t("questions_considered_for_importance_scale"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(f,{modelValue:a.maxOverlappingBubbles,"onUpdate:modelValue":t[16]||(t[16]=W=>a.maxOverlappingBubbles=W),label:e.$t("max_overlapping_bubbles")},null,8,["modelValue","label"]),l(q),l(T,{modelValue:a.displayIndexBubble,"onUpdate:modelValue":t[17]||(t[17]=W=>a.displayIndexBubble=W),label:e.$t("display_index_bubble")+"?"},{tooltipIcon:s(()=>[l(N,null,{default:s(()=>[h(m(e.$t("display_index_bubble_in_the_right_upper_corner")),1)]),_:1})]),_:1},8,["modelValue","label"]),a.displayIndexBubble?(g(),A(T,{key:0,modelValue:a.useDefaultIndex,"onUpdate:modelValue":t[18]||(t[18]=W=>a.useDefaultIndex=W),label:e.$t("use_default_index")+"?"},{tooltipIcon:s(()=>[l(N,null,{default:s(()=>[h(m(e.$t("calculate_index_over_all_displayed_eucusa_questions")),1)]),_:1})]),_:1},8,["modelValue","label"])):P("",!0),a.displayIndexBubble&&!a.useDefaultIndex?(g(),A(o,{key:1,modelValue:a.index,"onUpdate:modelValue":t[19]||(t[19]=W=>a.index=W),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"])):P("",!0),l(q),l(o,{modelValue:e.display,"onUpdate:modelValue":t[20]||(t[20]=W=>e.display=W),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(_,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const At=U(Yi,[["render",eo],["__scopeId","data-v-d989393a"]]),to={name:"SliderInput",components:{},extends:Ue,props:{modelValue:Number,unit:{type:String,default:"%"},min:{type:Number,default:Number.MIN_VALUE},max:{type:Number,default:Number.MAX_VALUE},step:{type:Number,default:1},decimalPlaces:{type:Number,default:1}},emits:["update:modelValue"],data(){return{}},computed:{},watch:{},created(){},methods:{round(e,t=0){return e},change(e){this.$emit("update:modelValue",e)}}},lo={class:"d-flex"},ao={style:{width:"50px","min-width":"50px","padding-left":"10px",display:"flex","align-items":"center","justify-content":"flex-end"}};function so(e,t,n,D,a,i){return g(),v("div",{class:B({"report-element-parameter-container":!0,"show-tooltip":e.$slots.tooltipIcon})},[e.label?(g(),v("div",{key:0,class:B({"small-label":e.smallLabel,label:!0})},[ce(e.$slots,"label",{},()=>[h(m(e.label),1)])],2)):P("",!0),V("div",lo,[l(lt,{max:n.max,min:n.min,"model-value":n.modelValue,step:n.step,style:{width:"200px","max-width":"200px",float:"right"},"onUpdate:modelValue":i.change},null,8,["max","min","model-value","step","onUpdate:modelValue"]),V("div",ao,m(i.round(n.modelValue,n.decimalPlaces)+n.unit),1)]),ce(e.$slots,"tooltipIcon")],2)}const Ol=U(to,[["render",so]]),no={name:"ImpactPortfolio",components:{SliderInput:Ol,TooltipIcon:we,SwitchInput:Z,ReportElementActions:M,DialogCard:k,InfoTooltip:$e,ReportElementInput:x,ReportElementParameter:L,ChartHeader:z,ChartNotes:K,ReportElementParameterOutput:G},extends:C,props:{},data(){return{datasubset:null,regressandQuestion:null,regressorQuestions:[],isScaled:!1,isScaledGlobal:!1,useWeightedResults:!1,uidLinkedToBubble:"",sameScalingAsUid:"",stepwiseRegressionAlpha:.05,stepwiseRegressionCoefficientThreshold:.15}},computed:{allowedLinkedReportTypesToBubbles(){return[Ve.type,ge.type,Ee.type]},allowedSameScalingReportElementTypes(){return[de.type,Pe.type]},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},created(){!this.elementData instanceof Pe&&w.warn("WRONG ImpactPortfolio"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of ImpactPortfolio"),!this.elementData.regressandQuestion instanceof p&&w.warn("WRONG RegressandQuestion of ImpactPortfolio"),!this.elementData.regressorQuestions instanceof p&&w.warn("WRONG RegressorQuestions of ImpactPortfolio"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.regressandQuestion=new p({reportElement:this.elementData,type:d.QUESTION}),this.regressorQuestions=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.isScaled=this.elementData.isScaled,this.isScaledGlobal=this.elementData.isScaledGlobal,this.useWeightedResults=this.elementData.useWeightedResults,this.uidLinkedToBubble=this.elementData.uidLinkedToBubble,this.sameScalingAsUid=this.elementData.sameScalingAsUid,this.stepwiseRegressionAlpha=this.elementData.stepwiseRegressionAlpha,this.stepwiseRegressionCoefficientThreshold=this.elementData.stepwiseRegressionCoefficientThreshold,this.datasubset.replaceAttributes(this.elementData.datasubset),this.regressandQuestion.replaceAttributes(this.elementData.regressandQuestion),this.regressorQuestions.replaceAttributes(this.elementData.regressorQuestions)},methods:{calculateSimilarity(e,t){e=e.toLowerCase(),t=t.toLowerCase();let n=0;for(let D=0;D<e.length;D++)t.includes(e[D])&&n++;return n},findMostSimilarString(e,t){let n="",D=0;for(const a of e){const i=this.calculateSimilarity(t,a);i>
1D?(n=a,D=i):i===D&&Math.abs(t.length-a.length)<Math.abs(t.length-n.length)&&(n=a)}return n},save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.regressandQuestion.replaceAttributes(this.regressandQuestion),this.elementData.regressorQuestions.replaceAttributes(this.regressorQuestions),this.elementData.isScaled=this.isScaled,this.elementData.isScaledGlobal=this.isScaledGlobal,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.uidLinkedToBubble=this.uidLinkedToBubble,this.elementData.sameScalingAsUid=this.sameScalingAsUid,this.elementData.stepwiseRegressionAlpha=this.stepwiseRegressionAlpha,this.elementData.stepwiseRegressionCoefficientThreshold=this.stepwiseRegressionCoefficientThreshold,this.regressandQuestion.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.question.fromLoop=!0)),this.elementData.header.subtitle.immutableValue&&this.elementData.header.subtitle.immutableValue.datasubset.replaceAttributes(this.elementData.datasubset),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION_LIST,this.templateId),n=this.elementData.parent;if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),n!==null&&n.type==="Loop"&&n.resultType.name===d.QUESTION.name?(this.elementData.header.title.immutableValue.question.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{question.shorttext}} | ${ impact_portfolio }"):this.elementData.header.title.immutableValue.string="${ impact_portfolio }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.regressandQuestion.isSet()||n!==null&&n.type==="Loop"&&n.resultType.name===d.QUESTION.name&&(this.elementData.regressandQuestion.fromLoop=!0),!this.elementData.regressorQuestions.isSet()&&t.length>0){let D=t.map(i=>i.name),a=this.findMostSimilarString(D,"regressor");this.elementData.regressorQuestions.mutableParameter=t.filter(i=>i.name===a)[0]}if(!this.elementData.notes.notesText.isSet()){let D=[],a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("impact_portfolio_explanation");a&&D.push(a),this.elementData.notes.notesText.immutableValue=D}}}},io={class:"report-element-head"};function oo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("report-element-input"),T=r("switch-input"),S=r("tooltip-icon"),f=r("slider-input"),E=r("chart-notes"),N=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",io,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=_=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("regressand_question"),"report-element":e.elementData,"parameter-name":"regressandQuestion"},null,8,["label","report-element"]),l(u,{label:e.$t("regressor_questions"),"report-element":e.elementData,"parameter-name":"regressorQuestions"},null,8,["label","report-element"]),l(N,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[13]||(t[13]=_=>e.elementData.showEditDialog=_),width:"800"},{title:s(()=>[h(m(e.$t("edit_impact_portfolio")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[12]||(t[12]=_=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=_=>a.datasubset=_),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.regressandQuestion,"onUpdate:modelValue":t[2]||(t[2]=_=>a.regressandQuestion=_),label:e.$t("regressand_question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.regressorQuestions,"onUpdate:modelValue":t[3]||(t[3]=_=>a.regressorQuestions=_),label:e.$t("regressor_questions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.uidLinkedToBubble,"onUpdate:modelValue":t[4]||(t[4]=_=>a.uidLinkedToBubble=_),label:e.$t("report_element_linked_to_bubble"),"report-element-types-filter":i.allowedLinkedReportTypesToBubbles,"template-id":e.templateId},null,8,["modelValue","label","report-element-types-filter","template-id"]),l(T,{modelValue:a.isScaled,"onUpdate:modelValue":t[5]||(t[5]=_=>a.isScaled=_),label:e.$t("is_scaled")},null,8,["modelValue","label"]),a.isScaled?(g(),A(T,{key:0,modelValue:a.isScaledGlobal,"onUpdate:modelValue":t[6]||(t[6]=_=>a.isScaledGlobal=_),label:e.$t("is_scaled_global"),"small-label":""},{tooltipIcon:s(()=>[l(S,{tooltip:e.$t("use_widest_range_of_all_action_portfolios_and_table_portfolios"),class:"ml-3"},null,8,["tooltip"])]),_:1},8,["modelValue","label"])):P("",!0),a.isScaled?(g(),A(y,{key:1,modelValue:a.sameScalingAsUid,"onUpdate:modelValue":t[7]||(t[7]=_=>a.sameScalingAsUid=_),label:e.$t("same_scaling_as"),"report-element-types-filter":i.allowedSameScalingReportElementTypes,"template-id":e.templateId,"small-label":""},null,8,["modelValue","label","report-element-types-filter","template-id"])):P("",!0),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(f,{modelValue:a.stepwiseRegressionAlpha,"onUpdate:modelValue":t[8]||(t[8]=_=>a.stepwiseRegressionAlpha=_),"decimal-places":2,label:e.$t("stepwise_regression_alpha_value"),max:1,min:0,step:.
101,unit:""},null,8,["modelValue","label"]),l(f,{modelValue:a.stepwiseRegressionCoefficientThreshold,"onUpdate:modelValue":t[9]||(t[9]=_=>a.stepwiseRegressionCoefficientThreshold=_),"decimal-places":2,label:e.$t("stepwise_regression_coefficient_threshold"),max:1,min:0,step:.01,unit:""},null,8,["modelValue","label"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[10]||(t[10]=_=>a.useWeightedResults=_),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[11]||(t[11]=_=>e.display=_),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(E,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Pt=U(no,[["render",oo],["__scopeId","data-v-a9c990cd"]]),ro={name:"ExtremaPortfolio",components:{TooltipIcon:we,SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementInput:x,ReportElementParameter:L,ChartHeader:z,ChartNotes:K,ReportElementParameterOutput:G},extends:C,props:{},data(){return{datasubset:null,question:null,isScaled:!1,isScaledGlobal:!1,useWeightedResults:!1,uidLinkedToBubble:"",sameScalingAsUid:""}},computed:{allowedLinkedReportTypesToBubbles(){return[Ve.type,ge.type,Ee.type]},allowedSameScalingReportElementTypes(){return[de.type,tt.type]},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)}},watch:{},created(){!this.elementData instanceof tt&&w.warn("WRONG ExtremaPortfolio"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of ExtremaPortfolio"),!this.elementData.question instanceof p&&w.warn("WRONG Question of ExtremaPortfolio"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.isScaled=this.elementData.isScaled,this.isScaledGlobal=this.elementData.isScaledGlobal,this.useWeightedResults=this.elementData.useWeightedResults,this.uidLinkedToBubble=this.elementData.uidLinkedToBubble,this.sameScalingAsUid=this.elementData.sameScalingAsUid,this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question)},methods:{calculateSimilarity(e,t){e=e.toLowerCase(),t=t.toLowerCase();let n=0;for(let D=0;D<e.length;D++)t.includes(e[D])&&n++;return n},findMostSimilarString(e,t){let n="",D=0;for(const a of e){const i=this.calculateSimilarity(t,a);i>D?(n=a,D=i):i===D&&Math.abs(t.length-a.length)<Math.abs(t.length-n.length)&&(n=a)}return n},save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.isScaled=this.isScaled,this.elementData.isScaledGlobal=this.isScaledGlobal,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.uidLinkedToBubble=this.uidLinkedToBubble,this.elementData.sameScalingAsUid=this.sameScalingAsUid,this.question.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.question.fromLoop=!0)),this.elementData.header.subtitle.immutableValue&&this.elementData.header.subtitle.immutableValue.datasubset.replaceAttributes(this.elementData.datasubset),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.elementData.parent;if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),t!==null&&t.type==="Loop"&&t.resultType.name===d.QUESTION.name?(this.elementData.header.title.immutableValue.question.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{question.shorttext}} | ${ extrema_portfolio }"):this.elementData.header.title.immutableValue.string="${ extrema_portfolio }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.question.isSet()||t!==null&&t.type==="Loop"&&t.resultType.name===d.QUESTION.name&&(this.elementData.question.fromLoop=!0),!this.elementData.notes.notesText.isSet()){let n=[],D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("extrema_portfolio_explanation");D&&n.push(D),this.elementData.notes.notesText.immutableValue=n}}}},mo={class:"report-element-head"};function uo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("report-element-input"),T=r("switch-input"),S=r("tooltip-icon"),f=r("chart-notes"),E=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",mo,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=N=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(E,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[10]||(t[10]=N=>e.elementData.showEditDialog=N),width:"800"},{title:s(()=>[h(m(e.$t("edit_extrema_portfolio")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[9]||(t[9]=N=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=N=>a.datasubset=N),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[2]||(t[2]=N=>a.question=N),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.uidLinkedToBubble,"onUpdate:modelValue":t[3]||(t[3]=N=>a.uidLinkedToBubble=N),label:e.$t("report_element_linked_to_bubble"),"report-element-types-filter":i.allowedLinkedReportTypesToBubbles,"template-id":e.templateId},null,8,["modelValue","label","report-element-types-filter","template-id"]),l(T,{modelValue:a.isScaled,"onUpdate:modelValue":t[4]||(t[4]=N=>a.isScaled=N),label:e.$t("is_scaled")},null,8,["modelValue","label"]),a.isScaled?(g(),A(T,{key:0,modelValue:a.isScaledGlobal,"onUpdate:modelValue":t[5]||(t[5]=N=>a.isScaledGlobal=N),label:e.$t("is_scaled_global"),"small-label":""},{tooltipIcon:s(()=>[l(S,{tooltip:e.$t("use_widest_range_of_all_action_portfolios_and_table_portfolios"),class:"ml-3"},null,8,["tooltip"])]),_:1},8,["modelValue","label"])):P("",!0),a.isScaled?(g(),A(y,{key:1,modelValue:a.sameScalingAsUid,"onUpdate:modelValue":t[6]||(t[6]=N=>a.sameScalingAsUid=N),label:e.$t("same_scaling_as"),"report-element-types-filter":i.allowedSameScalingReportElementTypes,"template-id":e.templateId,"small-label":""},null,8,["modelValue","label","report-element-types-filter","template-id"])):P("",!0),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=N=>a.useWeightedResults=N),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=N=>e.display=N),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(f,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const kl=U(ro,[["render",uo],["__scopeId","data-v-0229772b"]]),po={name:"DimensionOverview",components:{SwitchInput:Z,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{datasubset:null,headings:null,useWeightedResults:!1,showTrendBars:!0}},computed:{},watch:{},created(){!this.elementData instanceof st&&w.warn("WRONG DimensionOverview"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of DimensionOverview"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of DimensionOverview"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.useWeightedResults=this.elementData.useWeightedResults,this.showTrendBars=this.elementData.showTrendBars,this.datasubset.replaceAttributes(this.elementData.datasubset),this.headings.replaceAttributes(this.elementData.headings)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.headings.replaceAttributes(this.headings),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showTrendBars=this.showTrendBars,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ dimensions }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.headings.isSet())if(this.elementData.headings.isLoopEnabled())this.elementData.headings.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId);t.length>0&&(this.elementData.headings.mutableParameter=t[0])}if(!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("dimension_overview_explanation");
1n&&t.push(n),this.elementData.notes.notesText.immutableValue=t}}}},ho={class:"report-element-head"};function bo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",ho,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[7]||(t[7]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_dimension_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[6]||(t[6]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=f=>a.headings=f),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[3]||(t[3]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.showTrendBars,"onUpdate:modelValue":t[4]||(t[4]=f=>a.showTrendBars=f),label:e.$t("show_trend_bars")},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[5]||(t[5]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Ut=U(po,[["render",bo]]),Do={name:"AspectResultList",components:{NumberInput:me,SwitchInput:Z,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{datasubset:null,heading:null,comparisonDatasubset:null,showLongtext:!1,resultsPerColumn:6,showHeadingResult:!1,useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof Ee&&w.warn("WRONG AspectResultList"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of AspectResultList"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of AspectResultList"),!this.elementData.comparisonDatasubset instanceof p&&w.warn("WRONG comparisonDatasubset of AspectResultList"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.comparisonDatasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.showLongtext=this.elementData.showLongtext,this.useWeightedResults=this.elementData.useWeightedResults,this.resultsPerColumn=this.elementData.resultsPerColumn,this.showHeadingResult=this.elementData.showHeadingResult,this.datasubset.replaceAttributes(this.elementData.datasubset),this.heading.replaceAttributes(this.elementData.heading),this.comparisonDatasubset.replaceAttributes(this.elementData.comparisonDatasubset)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.heading.replaceAttributes(this.heading),this.elementData.comparisonDatasubset.replaceAttributes(this.comparisonDatasubset),this.elementData.showLongtext=this.showLongtext,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.resultsPerColumn=this.resultsPerColumn,this.elementData.showHeadingResult=this.showHeadingResult,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type.n
1ame===d.HEADING_LIST.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ aspect_list }"):this.elementData.header.title.immutableValue.string="${ aspect_list }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.heading.isSet())if(this.elementData.heading.isLoopEnabled())this.elementData.heading.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING,this.templateId);t.length>0&&(this.elementData.heading.mutableParameter=t[0])}if(!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("aspect_list_explanation");
1n&&t.push(n),this.elementData.notes.notesText.immutableValue=t}}}},go={class:"report-element-head"};function fo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("number-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",go,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"]),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[10]||(t[10]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_aspect_result_list")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[9]||(t[9]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.heading,"onUpdate:modelValue":t[1]||(t[1]=E=>a.heading=E),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[2]||(t[2]=E=>a.datasubset=E),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.comparisonDatasubset,"onUpdate:modelValue":t[3]||(t[3]=E=>a.comparisonDatasubset=E),label:e.$t("comparison_datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.resultsPerColumn,"onUpdate:modelValue":t[4]||(t[4]=E=>a.resultsPerColumn=E),label:e.$t("show_X_results")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showLongtext,"onUpdate:modelValue":t[5]||(t[5]=E=>a.showLongtext=E),label:e.$t("show_longtext")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showHeadingResult,"onUpdate:modelValue":t[6]||(t[6]=E=>a.showHeadingResult=E),label:e.$t("show_heading_result")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const $t=U(Do,[["render",fo]]),yo={name:"IndexOverview",components:{InfoTooltip:$e,SwitchInput:Z,NumberInput:me,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{datasubset:null,index:null,reverseTrendOrder:!1,useWeightedResults:!1,useDefaultIndex:!1,allowMixedResultsPresentation:!1,forceQuestionPresentation:!1,displayN:!1,displayDistributionCircle:!1,distributionCircleCount:3,uidLinkedToBubble:"",maxNumTrends:2}},computed:{allowedLinkedReportTypesToBubbles(){return[ge.type,Ee.type,de.type]}},watch:{allowMixedResultsPresentation(e){e&&(this.forceQuestionPresentation=!1)},forceQuestionPresentation(e){e&&(this.allowMixedResultsPresentation=!1)}},created(){!this.elementData instanceof Qe&&w.warn("WRONG IndexOverview"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of IndexOverview"),!this.elementData.index instanceof p&&w.warn("WRONG Index of IndexOverview"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.useWeightedResults=this.elementData.useWeightedResults,this.reverseTrendOrder=this.elementData.reverseTrendOrder,this.maxNumTrends=this.elementData.maxNumTrends,this.useDefaultIndex=this.elementData.useDefaultIndex,this.allowMixedResultsPresentation=this.elementData.allowMixedResultsPresentation,this.forceQuestionPresentation=this.elementData.forceQuestionPresentation,this.distributionCircleCount=this.elementData.distributionCircleCount,this.displayN=this.elementData.displayN,this.displayDistributionCircle=this.elementData.displayDistributionCircle,this.uidLinkedToBubble=this.elementData.uidLinkedToBubble,this.datasubset.replaceAttributes(this.elementData.datasubset),this.index.replaceAttributes(this.elementData.index)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.index.replaceAttributes(this.index),this.elementData.useDefaultIndex=this.useDefaultIndex,this.elementData.reverseTrendOrder=this.reverseTrendOrder,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.maxNumTrends=this.maxNumTrends,this.elementData.allowMixedResultsPresentation=this.allowMixedResultsPresentation,this.elementData.forceQuestionPresentation=this.forceQuestionPresentation,this.elementData.displayN=this.displayN,this.elementData.displayDistributionCircle=this.displayDistributionCircle,this.elementData.distributionCircleCount=this.distributionCircleCount,this.elementData.showEditDialog=!1,this.elementData.uidLinkedToBubble=this.uidLinkedToBubble},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);if(this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type===d.INDEX_LIST?(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header.title}),this.elementData.header.title.immutableValue.index.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{index.name}}"):!this.elementData.header.title.isSet()&&t.length===0?this.elementData.header.title.immutableValue=new $({string:"${ index_overview }"}):!this.elementData.header.title.isSet()&&t.length>0&&(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header.title}),this.elementData.header.title.immutableValue.string="{{index.name}}",this.elementData.header.title.immutableValue.index.mutableParameter=t[0]),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.index.isSet())if(this.elementData.index.isLoopEnabled())this.elementData.index.fromLoop=!0;else{let n=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);n.length>0&&(this.elementData.index.mutableParameter=n[0])}if(!this.elementData.notes.notesText.isSet()){let n=[],D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation");D&&n.push(D);let a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation_2");a&&n.push(a);{let i=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation_hcm");i&&n.push(i)}this.elementData.notes.notesText.immutableValue=n}}}},Vo={class:"report-element-head"};function co(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("info-tooltip"),T=r("switch-input"),S=r("report-element-input"),f=r("number-input"),E=r("chart-notes"),N=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Vo,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=_=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"]),l(N,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[15]||(t[15]=_=>e.elementData.showEditDialog=_),width:"800"},{title:s(()=>[h(m(e.$t("edit_index_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[14]||(t[14]=_=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=_=>a.datasubset=_),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(T,{modelValue:a.useDefaultIndex,"onUpdate:modelValue":t[2]||(t[2]=_=>a.useDefaultIndex=_),label:e.$t("use_default_index")+"?"},{tooltipIcon:s(()=>[l(y,null,{default:s(()=>[h(m(e.$t("calculate_index_over_all_eucusa_questions")),1)]),_:1})]),_:1},8,["modelValue","label"]),a.useDefaultIndex?P("",!0):(g(),A(o,{key:0,modelValue:a.index,"onUpdate:modelValue":t[3]||(t[3]=_=>a.index=_),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"])),l(S,{modelValue:a.uidLinkedToBubble,"onUpdate:modelValue":t[4]||(t[4]=_=>a.uidLinkedToBubble=_),label:e.$t("report_element_linked_to_bubble")+"?","report-element-types-filter":i.allowedLinkedReportTypesToBubbles,"template-id":e.templateId},null,8,["modelValue","label","report-element-types-filter","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.displayN,"onUpdate:modelValue":t[5]||(t[5]=_=>a.displayN=_),label:e.$t("display_n")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.displayDistributionCircle,"onUpdate:modelValue":t[6]||(t[6]=_=>a.displayDistributionCircle=_),label:e.$t("display_distribution_circle")+"?"},null,8,["modelValue","label"]),a.displayDistributionCircle?(g(),A(f,{key:0,modelValue:a.distributionCircleCount,"onUpdate:modelValue":t[7]||(t[7]=_=>a.distributionCircleCount=_),label:e.$t("split_distribution_circle_in_x_parts")},null,8,["modelValue","label"])):P("",!0),l(T,{modelValue:a.allowMixedResultsPresentation,"onUpdate:modelValue":t[8]||(t[8]=_=>a.allowMixedResultsPresentation=_),label:e.$t("allow_mixed_presentation")+" ("+e.$t("questions_and_headings")+")?"},null,8,["modelValue","label"]),l(T,{modelValue:a.forceQuestionPresentation,"onUpdate:modelValue":t[9]||(t[9]=_=>a.forceQuestionPresentation=_),label:e.$t("force_question_presentation")+"?"},null,8,["modelValue","label"]),l(f,{modelValue:a.maxNumTrends,"onUpdate:modelValue":t[10]||(t[10]=_=>a.maxNumTrends=_),label:e.$t("max_num_trends")},null,8,["modelValue","label"]),l(T,{modelValue:a.reverseTrendOrder,"onUpdate:modelValue":t[11]||(t[11]=_=>a.reverseTrendOrder=_),label:e.$t("reverse_trend_order")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[12]||(t[12]=_=>a.useWeightedResults=_),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[13]||(t[13]=_=>e.display=_),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(E,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Bt=U(yo,[["render",co]]),Eo={name:"IndexIndexOverview",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{datasubset:null,index:null,indices:[],useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof rl&&w.warn("WRONG IndexIndexOverview"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of IndexIndexOverview"),!this.elementData.index instanceof p&&w.warn("WRONG Index of IndexIndexOverview"),!this.elementData.indices instanceof p&&w.warn("WRONG Indices of IndexIndexOverview"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.indices=new p({reportElement:this.elementData,type:d.INDEX_LIST}),this.useWeightedResults=this.elementData.useWeightedResults,this.datasubset.replaceAttributes(this.elementData.datasubset),this.index.replaceAttributes(this.elementData.index),this.indices.replaceAttributes(this.elementData.indices)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.index.replaceAttributes(this.index),this.elementData.indices.replaceAttributes(this.indices),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);if(this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type===d.INDEX_LIST?(this.elementData.header.title.immutableValue.index.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{index.name}}"):!this.elementData.header.title.isSet()&&t.length===0?this.elementData.header.title.immutableValue=new $({string:"${ index_overview }"}):!this.elementData.header.title.isSet()&&t.length>0&&(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header.title}),this.elementData.header.title.immutableValue.string="{{index.name}}",this.elementData.header.title.immutableValue.index.mutableParameter=t[0]),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.index.isSet())if(this.elementData.index.isLoopEnabled())this.elementData.index.fromLoop=!0;else{let n=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX,this.templateId);n.length>0&&(this.elementData.index.mutableParameter=n[0])}if(!this.elementData.notes.notesText.isSet()){let n=[],D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation");D&&n.push(D);let a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation_2");a&&n.push(a);{let i=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_overview_explanation_hcm");i&&n.push(i)}this.elementData.notes.notesText.immutableValue=n}}}},To={class:"report-element-head"};function wo(e,t,n,D,a,i){const b=r("char
1t-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",To,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("main_index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"]),l(u,{label:e.$t("indices"),"report-element":e.elementData,"parameter-name":"indices"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[7]||(t[7]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_index_index_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[6]||(t[6]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[2]||(t[2]=f=>a.index=f),label:e.$t("main_index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.indices,"onUpdate:modelValue":t[3]||(t[3]=f=>a.indices=f),label:e.$t("indices"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[4]||(t[4]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[5]||(t[5]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Ll=U(Eo,[["render",wo]]),So={name:"DatasubsetOutputInput",extends:Ue,components:{},data(){return{}},props:{modelValue:String,items:{type:Array,default:[{title:Be.global.t("use_selected_datasubsets"),value:ne.SELECTED_DATASUBSETS},{title:Be.global.t("use_parent_and_child_datasubsets"),value:ne.CHILD_DATASUBSETS}]}},emits:["update:modelValue"],computed:{DatasubsetOutput(){return ne}},watch:{},methods:{change(e){this.$emit("update:modelValue",e)}},created(){}},vo={class:"report-element-parameter-container"},Io={class:"label"};function Ro(e,t,n,D,a,i){return g(),v("div",vo,[V("div",Io,[ce(e.$slots,"label",{},()=>[V("b",null,m(e.label),1)])]),l(O),l(pe,{items:n.items,modelValue:n.modelValue,class:"mb-3","item-title":"title","item-value":"value","onUpdate:modelValue":i.change},null,8,["items","modelValue","onUpdate:modelValue"])])}const Ze=U(So,[["render",Ro]]),_o={name:"InternalBenchmarking",components:{SwitchInput:Z,DatasubsetOutputInput:Ze,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,datasubsets:null,heading:null,headings:null,indices:null,useWeightedResults:!1,datasubsetOutput:ne.SELECTED_DATASUBSETS}},computed:{SortOrder(){return SortOrder},DatasubsetOutput(){return ne}},watch:{},created(){!this.elementData instanceof _e&&w.warn("WRONG Internal benchmarking"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of Internal benchmarking"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubset of Internal benchmarking"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of Internal benchmarking"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of Internal benchmarking"),!this.elementData.indices instanceof p&&w.warn("WRONG Indices of Internal benchmarking"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.indices=new p({reportElement:this.elementData,type:d.INDEX_LIST}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.heading.replaceAttributes(this.elementData.heading),this.headings.replaceAttributes(this.elementData.headings),this.indices.replaceAttributes(this.elementData.indices),this.useWeightedResults=this.elementData.useWeightedResults,this.datasubsetOutput=this.elementData.datasubsetOutput},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.heading.replaceAttributes(this.heading),this.elementData.headings.replaceAttributes(this.headings),this.elementData.indices.replaceAttributes(this.indices),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.datasubsetOutput=this.datasubsetOutput,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type.n
1ame===d.HEADING_LIST.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ internal_benchmarking }"):this.elementData.header.title.immutableValue.string="${ internal_benchmarking }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.datasubsets.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0])}if(this.elementData.heading.isSet()||this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type.name===d.HEADING_LIST.name&&(this.elementData.heading.fromLoop=!0),!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("internal_benchmarking_explanation_1");n&&t.push(n);let D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("internal_benchmarking_explanation_2");D&&t.push(D),this.elementData.notes.notesText.immutableValue=t}}}},No={class:"report-element-head"};function Co(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("datasubset-output-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",No,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("benchmarking_datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),e.elementData.indices.isSet()||!e.elementData.isValid()?(g(),A(u,{key:0,label:e.$t("indices"),"report-element":e.elementData,"parameter-name":"indices"},null,8,["label","report-element"])):P("",!0),e.elementData.headings.isSet()||!e.elementData.isValid()?(g(),A(u,{key:1,label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"])):P("",!0),e.elementData.heading.isSet()||!e.elementData.isValid()?(g(),A(u,{key:2,label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"])):P("",!0),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[10]||(t[10]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_internal_benchmarking")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[9]||(t[9]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubset=E),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=E=>a.datasubsets=E),label:e.$t("benchmarking_datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.indices,"onUpdate:modelValue":t[3]||(t[3]=E=>a.indices=E),label:e.$t("indices"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[4]||(t[4]=E=>a.headings=E),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[5]||(t[5]=E=>a.heading=E),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[6]||(t[6]=E=>a.datasubsetOutput=E),items:[{title:e.$t("use_selected_datasubsets"),value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{title:e.$t("use_child_datasubsets"),value:i.DatasubsetOutput.CHILD_DATASUBSETS}],label:e.$t("datasubset_output")},null,8,["modelValue","items","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Ot=U(_o,[["render",Co],["__scopeId","data-v-5bd6d968"]]),Ao={name:"ExternalBenchmarking",components:{SwitchInput:Z,NumberInput:me,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,heading:null,useWeightedResults:!1,displayN:!0,minBenchmarks:1,greaterEqualsEmployees:100,greaterEqualsAnswersheets:0,greaterEqualsYear:0}},computed:{SortOrder(){return SortOrder}},watch:{}
1,created(){!this.elementData instanceof qe&&w.warn("WRONG External benchmarking"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of External benchmarking"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of External benchmarking"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.heading.replaceAttributes(this.elementData.heading),this.useWeightedResults=this.elementData.useWeightedResults,this.displayN=this.elementData.displayN,this.minBenchmarks=this.elementData.minBenchmarks,this.greaterEqualsAnswersheets=this.elementData.greaterEqualsAnswersheets,this.greaterEqualsYear=this.elementData.greaterEqualsYear,this.greaterEqualsEmployees=this.elementData.greaterEqualsEmployees},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.heading.replaceAttributes(this.heading),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.displayN=this.displayN,this.elementData.minBenchmarks=this.minBenchmarks,this.elementData.greaterEqualsEmployees=this.greaterEqualsEmployees,this.elementData.greaterEqualsAnswersheets=this.greaterEqualsAnswersheets,this.elementData.greaterEqualsYear=this.greaterEqualsYear,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type.name===d.HEADING_LIST.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ external_benchmarking }"):this.elementData.header.title.immutableValue.string="${ external_benchmarking }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.heading.isSet()||this.elementData.parent!==null&&this.elementData.parent.type==="Loop"&&this.elementData.parent.source.type.name===d.HEADING_LIST.name&&(this.elementData.heading.fromLoop=!0),!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("external_benchmarking_explanation_1");n&&t.push(n);let D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("external_benchmarking_explanation_2");D&&t.push(D);let a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("external_benchmarking_explanation_3");a&&t.push(a);let i=this.$store.getters["reporttemplate/getProjectTextelementByName"]("external_benchmarking_explanation_4");i&&t.push(i),this.elementData.notes.notesText.immutableValue=t}}}},Po={class:"report-element-head"};function Uo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("number-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Po,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"]),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[11]||(t[11]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_external_benchmarking")),1)]),actions:s(()=>
1[l(I,{color:"secondary",onClick:t[10]||(t[10]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubset=E),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[2]||(t[2]=E=>a.heading=E),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.greaterEqualsEmployees,"onUpdate:modelValue":t[3]||(t[3]=E=>a.greaterEqualsEmployees=E),label:">= "+e.$t("employees"),min:0,"step-size":100},null,8,["modelValue","label"]),l(y,{modelValue:a.greaterEqualsAnswersheets,"onUpdate:modelValue":t[4]||(t[4]=E=>a.greaterEqualsAnswersheets=E),label:">= "+e.$t("answersheets"),min:0,"step-size":100},null,8,["modelValue","label"]),l(y,{modelValue:a.greaterEqualsYear,"onUpdate:modelValue":t[5]||(t[5]=E=>a.greaterEqualsYear=E),label:">= "+e.$t("year"),min:0,"step-size":100},null,8,["modelValue","label"]),l(y,{modelValue:a.minBenchmarks,"onUpdate:modelValue":t[6]||(t[6]=E=>a.minBenchmarks=E),label:e.$t("min_benchmarks"),min:0,"step-size":100},null,8,["modelValue","label"]),l(T,{modelValue:a.displayN,"onUpdate:modelValue":t[7]||(t[7]=E=>a.displayN=E),label:e.$t("display_N")+"?"},null,8,["modelValue","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[8]||(t[8]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[9]||(t[9]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const kt=U(Ao,[["render",Uo],["__scopeId","data-v-466e0f7e"]]),$o={name:"TablesPortfolio",components:{NumberInput:me,TooltipIcon:we,DatasubsetOutputInput:Ze,SwitchInput:Z,ReportElementActions:M,DialogCard:k,InfoTooltip:$e,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,datasubsets:null,question:null,heading:null,index:null,useWeightedResults:!1,datasubsetOutput:ne.SELECTED_DATASUBSETS,isScaled:!1,isScaledGlobal:!1,maxOverlappingBubbles:24}},computed:{SortOrder(){return SortOrder},DatasubsetOutput(){return ne}},watch:{},created(){!this.elementData instanceof Ve&&w.warn("WRONG Tables Portfolio"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of Tables Portfolio"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubset of Tables Portfolio"),!this.elementData.question instanceof p&&w.warn("WRONG Question of Tables Portfolio"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of Tables Portfolio"),!this.elementData.index instanceof p&&w.warn("WRONG Index of Tables Portfolio"),this.setDefaultValues(),this.isScaled=this.elementData.isScaled,this.isScaledGlobal=this.elementData.isScaledGlobal,this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.question.replaceAttributes(this.elementData.question),this.heading.replaceAttributes(this.elementData.heading),this.index.replaceAttributes(this.elementData.index),this.useWeightedResults=this.elementData.useWeightedResults,this.datasubsetOutput=this.elementData.datasubsetOutput,this.maxOverlappingBubbles=this.elementData.maxOverlappingBubbles},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.question.replaceAttributes(this.question),this.elementData.heading.replaceAttributes(this.heading),this.elementData.index.replaceAttributes(this.index),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.datasubsetOutput=this.datasubsetOutput,this.elementData.isScaled=this.isScaled,this.elementData.isScaledGlobal=this.isScaledGlobal,this.elementData.maxOverlappingBubbles=this.maxOverlappingBubbles,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ tables_portfolio }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.datasubsets.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0])}}}},Bo={class:"report-element-head"};function Oo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("tooltip-icon"),S=r("datasubset-output-input"),f=r("number-input"),E=r("chart-notes"),N=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Bo,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=_=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),e.elementData.question.isSet()?(g(),A(u,{key:0,label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"])):P("",!0),e.elementData.heading.isSet()?(g(),A(u,{key:1,label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"])):P("",!0),e.elementData.index.isSet()?(g(),A(u,{key:2,label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"])):P("",!0),l(N,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[13]||(t[13]=_=>e.elementData.showEditDialog=_),width:"800"},{title:s(()=>[h(m(e.$t("edit_tables_portfolio")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[12]||(t[12]=_=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=_=>a.datasubset=_),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=_=>a.datasubsets=_),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[3]||(t[3]=_=>a.question=_),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[4]||(t[4]=_=>a.heading=_),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[5]||(t[5]=_=>a.index=_),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.isScaled,"onUpdate:modelValue":t[6]||(t[6]=_=>a.isScaled=_),label:e.$t("is_scaled")+"?"},null,8,["modelValue","label"]),a.isScaled?(g(),A(y,{key:0,modelValue:a.isScaledGlobal,"onUpdate:modelValue":t[7]||(t[7]=_=>a.isScaledGlobal=_),label:e.$t("is_scaled_global"),"small-label":""},{tooltipIcon:s(()=>[l(T,{tooltip:e.$t("use_widest_range_of_all_action_portfolios_and_table_portfolios"),class:"ml-3"},null,8,["tooltip"])]),_:1},8,["modelValue","label"])):P("",!0),l(S,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[8]||(t[8]=_=>a.datasubsetOutput=_),items:[{title:e.$t("use_selected_datasubsets"),value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{title:e.$t("use_child_datasubsets"),value:i.DatasubsetOutput.CHILD_DATASUBSETS}],label:e.$t("datasubset_output")},null,8,["modelValue","items","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(f,{modelValue:a.maxOverlappingBubbles,"onUpdate:modelValue":t[9]||(t[9]=_=>a.maxOverlappingBubbles=_),label:e.$t("max_overlapping_bubbles")},null,8,["modelValue","label"]),l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[10]||(t[10]=_=>a.useWeightedResults=_),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[11]||(t[11]=_=>e.display=_),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(E,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Lt=U($o,[["render",Oo],["__scopeId","data-v-0851aab5"]]),ko={name:"SemanticDifferential",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,questions:null,colorDescriptions:[],showNumberValues:!0,useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof it&&w.warn("WRONG SemanticDifferential"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of SemanticDifferential"),!this.elementData.questions instanceof p&&w.warn("WRONG Questions of SemanticDifferential"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.questions=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.colorDescriptions=new p({reportElement:this.elementData,type:d.TEXT_LIST}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.questions.replaceAttributes(this.elementData.questions),this.colorDescriptions.replaceAttributes(this.elementData.colorDescriptions),this.showNumberValues=this.elementData.showNumberValues,this.useWeightedResults=this.elementData.useWeightedResults},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.questions.replaceAttributes(this.questions),this.elementData.colorDescriptions.replaceAttributes(this.colorDescriptions),this.elementData.showNumberValues=this.showNumberValues,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ semantic_differential }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.datasubset.isSet()&&e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]);let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION_LIST,this.templateId);!this.elementData.questions.isSet()&&t.length>0&&(this.elementData.questions.mutableParameter=t[0])}}},Lo={class:"report-element-head"};function Wo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Lo,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("questions"),"report-element":e.elementData,"parameter-name":"questions"},null,8,["label","report-element"]),l(u,{label:e.$t("descriptions"),"report-element":e.elementData,"parameter-name":"colorDescriptions"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[8]||(t[8]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_semantic_differential")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[7]||(t[7]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.questions,"onUpdate:modelValue":t[2]||(t[2]=f=>a.questions=f),label:e.$t("questions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.colorDescriptions,"onUpdate:modelValue":t[3]||(t[3]=f=>a.colorDescriptions=f),label:e.$t("descriptions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.showNumberValues,"onUpdate:modelValue":t[4]||(t[4]=f=>a.showNumberValues=f),label:e.$t("show_number_values")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[5]||(t[5]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[6]||(t[6]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Wt=U(ko,[["render",Wo],["__scopeId","data-v-51935395"]]),qo={name:"TablesBarChart",components:{TooltipIcon:we,NumberInput:me,SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,datasubsets:null,attributeDatasubsets:null,question:null,heading:null,index:null,useWeightedResults:!1,displayTrend:!0,restrictDSByMainDS:!1,barsPerSlide:100,trendResultCount:0,trendYears:"
1",maximumDisplayedDatasubsets:1e3,sortByChange:!1}},computed:{SortOrder(){return SortOrder}},watch:{},created(){!this.elementData instanceof Ie&&w.warn("WRONG TablesBarChart"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of TablesBarChart"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of TablesBarChart"),!this.elementData.attributeDatasubsets instanceof p&&w.warn("WRONG Attribute-Datasubsets of TablesBarChart"),!this.elementData.question instanceof p&&w.warn("WRONG Question of TablesBarChart"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of TablesBarChart"),!this.elementData.index instanceof p&&w.warn("WRONG Index of TablesBarChart"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.attributeDatasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.attributeDatasubsets.replaceAttributes(this.elementData.attributeDatasubsets),this.question.replaceAttributes(this.elementData.question),this.heading.replaceAttributes(this.elementData.heading),this.index.replaceAttributes(this.elementData.index),this.useWeightedResults=this.elementData.useWeightedResults,this.displayTrend=this.elementData.displayTrend,this.barsPerSlide=this.elementData.barsPerSlide,this.trendResultCount=this.elementData.trendResultCount,this.trendYears=this.elementData.trendYears,this.restrictDSByMainDS=this.elementData.restrictDSByMainDS,this.maximumDisplayedDatasubsets=this.elementData.maximumDisplayedDatasubsets,this.sortByChange=this.elementData.sortByChange},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.attributeDatasubsets.replaceAttributes(this.attributeDatasubsets),this.elementData.question.replaceAttributes(this.question),this.elementData.heading.replaceAttributes(this.heading),this.elementData.index.replaceAttributes(this.index),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.displayTrend=this.displayTrend,this.elementData.barsPerSlide=this.barsPerSlide,this.elementData.trendResultCount=this.trendResultCount,this.elementData.trendYears=this.trendYears,this.elementData.restrictDSByMainDS=this.restrictDSByMainDS,this.elementData.maximumDisplayedDatasubsets=this.maximumDisplayedDatasubsets,this.elementData.sortByChange=this.sortByChange,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId),n=this.elementData.parent;if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),n!==null&&n.type==="Loop"&&n.resultType.name===d.QUESTION.name?(this.elementData.header.title.immutableValue.question.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{question.shorttext}} | ${ tables_bar_chart }"):n!==null&&n.type==="Loop"&&n.resultType.name===d.HEADING.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ tables_bar_chart }"):this.elementData.header.title.immutableValue.string="${ tables_bar_chart }"),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),!this.elementData.datasubset.isSet()&&e.length>0&&e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.datasubsets.isSet()&&t.length>0&&t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0]),this.elementData.question.isSet()||n!==null&&n.type==="Loop"&&n.resultType.name===d.QUESTION.name&&(this.elementData.question.fromLoop=!0),!this.elementData.heading.isSet()&&!this.elementData.question.isSet()&&n!==null&&n.type==="Loop"&&n.resultType.name===d.HEADING.name&&(this.elementData.heading.fromLoop=!0),!this.elementData.notes.notesText.isSet()){let D=[],a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("tables_bar_chart_explanation");a&&D.push(a),this.elementData.notes.notesText.immutableValue=D}}}},Go={class:"report-element-head"},Mo={class:"report-element-parameter-container"},Qo={class:"label"},Fo={class:"d-flex w-25"},Ho={class:"report-element-parameter-container pr-0"},Xo={class:"label"},jo={class:"d-flex w-25"};function zo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("tooltip-icon"),S=r("number-input"),f=r("chart-notes"),E=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Go,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=N=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("main_datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubsets_that_should_not_show_bars"),"report-element":e.elementData,"parameter-name":"attributeDatasubsets"},null,8,["label","report-element"]),e.elementData.index.isSet()||!e.elementData.isValid()?(g(),A(u,{key:0,label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"])):P("",!0),e.elementData.heading.isSet()||!e.elementData.isValid()?(g(),A(u,{key:1,label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"])):P("",!0),e.elementData.question.isSet()||!e.elementData.isValid()?(g(),A(u,{key:2,label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"])):P("",!0),l(E,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[17]||(t[17]=N=>
1e.elementData.showEditDialog=N),width:"800"},{title:s(()=>[h(m(e.$t("edit_tables_bar_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[16]||(t[16]=N=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=N=>a.datasubset=N),label:e.$t("main_datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=N=>a.datasubsets=N),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.attributeDatasubsets,"onUpdate:modelValue":t[3]||(t[3]=N=>a.attributeDatasubsets=N),label:e.$t("datasubsets_that_should_not_show_bars"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[4]||(t[4]=N=>a.index=N),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[5]||(t[5]=N=>a.heading=N),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[6]||(t[6]=N=>a.question=N),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.restrictDSByMainDS,"onUpdate:modelValue":t[7]||(t[7]=N=>a.restrictDSByMainDS=N),label:e.$t("restrict_datasubsets_by_main_datasubset")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.displayTrend,"onUpdate:modelValue":t[8]||(t[8]=N=>a.displayTrend=N),label:e.$t("display_trend")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[9]||(t[9]=N=>a.useWeightedResults=N),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),V("div",Mo,[V("div",Qo,m(e.$t("bars_per_slide"))+"?",1),l(O),V("div",Fo,[l(ae,{modelValue:a.barsPerSlide,"onUpdate:modelValue":t[10]||(t[10]=N=>a.barsPerSlide=N)},{append:s(()=>[l(T,{style:{"margin-right":"-16px"},tooltip:"Durch Beistrich getrennte Angabe wieviele Balken pro Folie angezeigt werden: 20,18,15"})]),_:1},8,["modelValue"])])]),l(S,{modelValue:a.trendResultCount,"onUpdate:modelValue":t[11]||(t[11]=N=>a.trendResultCount=N),label:e.$t("trend_result_count"),min:0},null,8,["modelValue","label"]),V("div",Ho,[V("div",Xo,[V("b",null,m(e.$t("trend_years")),1)]),l(O),V("div",jo,[l(ae,{modelValue:a.trendYears,"onUpdate:modelValue":t[12]||(t[12]=N=>a.trendYears=N)},{append:s(()=>[l(T,{tooltip:"Die Jahreszahlen die in Klammern angezeigt werden sollen. z.B.: '2024,2023' zeigt für den aktuellen Balken '2024' und beim Trend '2023' in Klammer an."})]),_:1},8,["modelValue"])])]),l(S,{modelValue:a.maximumDisplayedDatasubsets,"onUpdate:modelValue":t[13]||(t[13]=N=>a.maximumDisplayedDatasubsets=N),label:e.$t("maximum_displayed_datasubsets"),min:0},null,8,["modelValue","label"]),l(y,{modelValue:a.sortByChange,"onUpdate:modelValue":t[14]||(t[14]=N=>a.sortByChange=N),label:e.$t("sort_by_change"),min:0},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[15]||(t[15]=N=>e.display=N),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(f,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const qt=U(qo,[["render",zo],["__scopeId","data-v-68bcf519"]]),Yo={name:"TrendBarChart",components:{NumberInput:me,SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,question:null,heading:null,index:null,displayYear:null,maxNumTrends:100,useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof Ne&&w.warn("WRONG TrendBarChart"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of TrendBarChart"),!this.elementData.question instanceof p&&w.warn("WRONG Question of TrendBarChart"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of TrendBarChart"),!this.elementData.index instanceof p&&w.warn("WRONG Index of TrendBarChart"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.displayYear=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question),this.heading.replaceAttributes(this.elementData.heading),this.index.replaceAttributes(this.elementData.index),this.displayYear.replaceAttributes(this.elementData.displayYear),this.useWeightedResults=this.elementData.useWeightedResults,this.maxNumTrends=this.elementData.maxNumTrends},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.heading.replaceAttributes(this.heading),this.elementData.index.replaceAttributes(this.index),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.displayYear=this.displayYear,this.elementData.maxNumTrends=this.maxNumTrends,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.elementData.parent;if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),t!==null&&t.type==="Loop"&&t.resultType.name===d.QUESTION.name?(this.elementData.header.title.immutableValue.question.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{question.shorttext}} | ${ trend_bar_chart }"):t!==null&&t.type==="Loop"&&t.resultType.name===d.HEADING.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ trend_bar_chart }"):this.elementData.header.title.immutableValue.string="${ trend_bar_chart }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.question.isSet()||t!==null&&t.type==="Loop"&&t.resultType.name===d.QUESTION.name&&(this.elementData.question.fromLoop=!0),!this.elementData.heading.isSet()&&!this.elementData.question.isSet()&&t!==null&&t.type==="Loop"&&t.resultType.name===d.HEADING.name&&(this.elementData.heading.fromLoop=!0),!this.elementData.notes.notesText.isSet()){let n=[],D=this.$store.getters["reporttemplate/getProjectTextelementByName"]("trend_explanation");D&&n.push(D),this.elementData.notes.notesText.immutableValue=n}}}},Ko={class:"report-element-head"};function Zo(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("number-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Ko,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),e.elementData.index.isSet()||!e.elementData.isValid()?(g(),A(u,{key:0,label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"])):P("",!0),e.elementData.heading.isSet()||!e.elementData.isValid()?(g(),A(u,{key:1,label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"])):P("",!0),e.elementData.question.isSet()||!e.elementData.isValid()?(g(),A(u,{key:2,label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"])):P("",!0),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[10]||(t[10]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_trend_bar_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[9]||(t[9]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubset=E),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[2]||(t[2]=E=>a.index=E),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[3]||(t[3]=E=>a.heading=E),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[4]||(t[4]=E=>a.question=E),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:a.displayYear,"onUpdate:modelValue":t[5]||(t[5]=E=>a.displayYear=E),label:e.$t("display_year")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.maxNumTrends,"onUpdate:modelValue":t[6]||(t[6]=E=>a.maxNumTrends=E),label:e.$t("max_num_trends")},null,8,["modelValue","label"]),l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Gt=U(Yo,[["render",Zo],["__scopeId","data-v-6a976cfd"]]),Jo={name:"QuartileChart",components:{NumberInput:me,SwitchInput:Z,DatasubsetOutputInput:Ze,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,datasubsets:null,question:null,heading:null,index:null,useWeightedResults:!1,showBestWorstResults:!1,showXBestWorstResults:3,showResultTooltips:null,includeParentDatasubsetNameInTooltip:!1,includeParentParentDatasubsetNameInTooltip:!1,includeDatasubsetsInChartNotes:!0,datasubsetOutput:ne.SELECTED_DATASUBSETS}},computed:{SortOrder(){return SortOrder},DatasubsetOutput(){return ne}},watch:{},created(){!this.elementData instanceof Te&&w.warn("WRONG QuartileChart"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of QuartileChart"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubset of QuartileChart"),!this.elementData.question instanceof p&&w.warn("WRONG Question of QuartileChart"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of QuartileChart"),!this.elementData.index instanceof p&&w.warn("WRONG Index of QuartileChart"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.index=new p({reportElement:this.elementData,type:d.INDEX}),this.showResultTooltips=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.question.replaceAttributes(this.elementData.question),this.heading.replaceAttributes(this.elementData.heading),this.index.replaceAttributes(this.elementData.index),this.useWeightedResults=this.elementData.useWeightedResults,this.showBestWorstResults=this.elementData.showBestWorstResults,this.showXBestWorstResults=this.elementData.showXBestWorstResults,this.showResultTooltips.replaceAttributes(this.elementData.showResultTooltips),this.includeParentDatasubsetNameInTooltip=this.elementData.includeParentDatasubsetNameInTooltip,this.includeParentParentDatasubsetNameInTooltip=this.elementData.includeParentParentDatasubsetNameInTooltip,this.includeDatasubsetsInChartNotes=this.elementData.includeDatasubsetsInChartNotes,this.datasubsetOutput=this.elementData.datasubsetOutput},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.question.replaceAttributes(this.question),this.elementData.heading.replaceAttributes(this.heading),this.elementData.index.replaceAttributes(this.index),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showBestWorstResults=this.showBestWorstResults,this.elementData.showXBestWorstResults=this.showXBestWorstResults,this.elementData.showResultTooltips.replaceAttributes(this.showResultTooltips),this.elementData.includeParentDatasubsetNameInTooltip=this.includeParentDatasubsetNameInTooltip,this.elementData.includeParentParentDatasubsetNameInTooltip=this.includeParentParentDatasubsetNameInTooltip,this.elementData.includeDatasubsetsInChartNotes=this.includeDatasubsetsInChartNotes,this.elementData.datasubsetOutput=this.datasubsetOutput,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId),n=this.elementData.parent;if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),n!==null&&n.type==="Loop"&&n.resultType.name===d.QUESTION.name?(this.elementData.header.title.immutableValue.question.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{question.shorttext}} | ${ quartile_chart }"):n!==null&&n.type==="Loop"&&n.resultType.name===d.HEADING.name?(this.elementData.header.title.immutableValue.heading.fromLoop=!0,this.elementData.header.title.immutableValue.string="{{heading.name}} | ${ quartile_chart }"):this.elementData.header.title.immutableValue.string="${ quartile_chart }"),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),this.elementData.datasubsets.isSet()||t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0]),this.elementData.question.isSet()||n!==null&&n.type==="Loop"&&n.resul
1tType.name===d.QUESTION.name&&(this.elementData.question.fromLoop=!0),!this.elementData.heading.isSet()&&!this.elementData.question.isSet()&&n!==null&&n.type==="Loop"&&n.resultType.name===d.HEADING.name&&(this.elementData.heading.fromLoop=!0),!this.elementData.notes.notesText.isSet()){let D=[],a=this.$store.getters["reporttemplate/getProjectTextelementByName"]("quartile_chart_explanation_1");a&&D.push(a);let i=this.$store.getters["reporttemplate/getProjectTextelementByName"]("quartile_chart_explanation_2");i&&D.push(i),this.elementData.notes.notesText.immutableValue=D}}}},xo={class:"report-element-head"};function er(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("datasubset-output-input"),T=r("switch-input"),S=r("number-input"),f=r("chart-notes"),E=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",xo,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=N=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("main_datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),e.elementData.index.isSet()||!e.elementData.isValid()?(g(),A(u,{key:0,label:e.$t("index"),"report-element":e.elementData,"parameter-name":"index"},null,8,["label","report-element"])):P("",!0),e.elementData.heading.isSet()||!e.elementData.isValid()?(g(),A(u,{key:1,label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"])):P("",!0),e.elementData.question.isSet()||!e.elementData.isValid()?(g(),A(u,{key:2,label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"])):P("",!0),l(E,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[16]||(t[16]=N=>e.elementData.showEditDialog=N),width:"800"},{title:s(()=>[h(m(e.$t("edit_quartile_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[15]||(t[15]=N=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=N=>a.datasubset=N),label:e.$t("main_datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=N=>a.datasubsets=N),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.index,"onUpdate:modelValue":t[3]||(t[3]=N=>a.index=N),label:e.$t("index"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[4]||(t[4]=N=>a.heading=N),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[5]||(t[5]=N=>a.question=N),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[6]||(t[6]=N=>a.datasubsetOutput=N),items:[{title:e.$t("use_selected_datasubsets"),value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{title:e.$t("use_child_datasubsets"),value:i.DatasubsetOutput.CHILD_DATASUBSETS}],label:e.$t("datasubset_output")},null,8,["modelValue","items","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=N=>a.useWeightedResults=N),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.showBestWorstResults,"onUpdate:modelValue":t[8]||(t[8]=N=>a.showBestWorstResults=N),label:e.$t("show_best_and_worst_results")+"?"},null,8,["modelValue","label"]),a.showBestWorstResults?(g(),A(S,{key:0,modelValue:a.showXBestWorstResults,"onUpdate:modelValue":t[9]||(t[9]=N=>a.showXBestWorstResults=N),label:e.$t("show_X_best_worst_and_worst_results")+"?"},null,8,["modelValue","label"])):P("",!0),l(T,{modelValue:a.includeDatasubsetsInChartNotes,"onUpdate:modelValue":t[10]||(t[10]=N=>a.includeDatasubsetsInChartNotes=N),label:e.$t("include_datasubsets_in_chart_notes")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:a.showResultTooltips,"onUpdate:modelValue":t[11]||(t[11]=N=>a.showResultTooltips=N),label:e.$t("show_result_tooltips")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(T,{modelValue:a.includeParentDatasubsetNameInTooltip,"onUpdate:modelValue":t[12]||(t[12]=N=>a.includeParentDatasubsetNameInTooltip=N),label:e.$t("include_parent_datasubset_name_in_tooltip")+"?"},null,8,["modelValue","label"]),l(T,{modelValue:a.includeParentParentDatasubsetNameInTooltip,"onUpdate:modelValue":t[13]||(t[13]=N=>a.includeParentParentDatasubsetNameInTooltip=N),label:e.$t("include_parent_parent_datasubset_name_in_tooltip")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[14]||(t[14]=N=>e.display=N),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(f,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Mt=U(Jo,[["render",er],["__scopeId","data-v-9cb61749"]]),tr={name:"QuestionnaireOverview",components:{DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L,ReportElementActions:M,ChartHeader:z,ChartNotes:K},extends:C,props:{},data(){return{questionnaire:null}},computed:{},watch:{},created(){!this.elementData instanceof ml&&w.warn("WRONG QuestionnaireOverview"),!this.elementData.questionnaire instanceof p&&w.warn("WRONG Questionnaire of QuestionnaireOverview"),this.setDefaultValues(),this.questionnaire=new p({reportElement:this.elementData,type:d.QUESTIONNAIRE}),this.questionnaire.replaceAttributes(this.elementData.questionnaire)},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.questionnaire.replaceAttributes(this.questionnaire),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ questionnaire_overview }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]);let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTIONNAIRE,this.templateId);!this.elementData.questionnaire.isSet()&&t.length>0&&(this.elementData.questionnaire.mutableParameter=t[0])}}},lr={class:"report-element-head"};function ar(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("chart-notes"),T=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",lr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=S=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("questionnaire"),"report-element":e.elementData,"parameter-name":"questionnaire"},null,8,["label","report-element"]),l(T,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[4]||(t[4]=S=>e.elementData.showEditDialog=S),width:"800"},{title:s(()=>[h(m(e.$t("edit_questionnaire_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[3]||(t[3]=S=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.questionnaire,"onUpdate:modelValue":t[1]||(t[1]=S=>a.questionnaire=S),label:e.$t("questionnaire"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:e.display,"onUpdate:modelValue":t[2]||(t[2]=S=>e.display=S),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(y,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Qt=U(tr,[["render",ar]]),sr={name:"StrengthsAndWeaknessesTable",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementInput:x,ReportElementParameter:L,ChartHeader:z,ChartNotes:K,ReportElementParameterOutput:G},extends:C,props:{},data(){return{datasubset:null,headings:null,useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof dl&&w.warn("WRONG StrengthsAndWeaknessesTable"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of StrengthsAndWeaknessesTable"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of StrengthsAndWeaknessesTable"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.useWeightedResults=this.elementData.useWeightedResults,this.datasubset.replaceAttributes(this.elementData.datasubset),this.headings.replaceAttributes(this.elementData.headings)},methods:{save(){C.methods.save.call(this),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.headings.replaceAttributes(this.headings),this.elementData.useWeightedResults=this.useWeightedResults,this.headings.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.heading.fromLoop=!0)),this.elementData.header.subtitle.immutableValue&&this.elementData.header.subtitle.immutableValue.datasubset.replaceAttributes(this.elementData.datasubset),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ strengths_and_weaknesses_table }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.headings.isSet())if(this.elementData.headings.isLoopEnabled())this.elementData.headings.fromLoop=!0;else{let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId);t.length>0&&(this.elementData.headings.mutableParameter=t[0])}}}},nr={class:"report-element-head"};function ir(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",nr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=S=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),l(T,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[6]||(t[6]=S=>e.elementData.showEditDialog=S),width:"800"},{title:s(()=>[h(m(e.$t("edit_strengths_and_weaknesses_table")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[5]||(t[5]=S=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=S=>a.datasubset=S),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(q),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=S=>a.headings=S),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[3]||(t[3]=S=>a.useWeightedResults=S),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[4]||(t[4]=S=>e.display=S),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const or=U(sr,[["render",ir],["__scopeId","data-v-9004934b"]]),rr={name:"ResponserateChart",components:{SwitchInput:Z,NumberInput:me,DialogCard:k,ReportElementParameterOutput:G,EntityOutput:Ul,ChartHeader:z,ChartNotes:K,ReportElementParameter:L,ReportElementActions:M,DatasubsetOutputInput:Ze},extends:C,props:{},data(){return{datasubsets:null,datasubsetOutput:ne.SELECTED_DATASUBSETS,barsPerSlide:20,displayTrend:!1}},computed:{SortOrder(){return SortOrder},DatasubsetOutput(){return ne}},watch:{},created(){!this.elementData instanceof ot&&w.warn("WRONG ResponserateChart"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of ResponserateChart"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.datasubsetOutput=this.elementData.datasubsetOutput,this.barsPerSlide=this.elementData.barsPerSlide,this.displayTrend=this.elementData.displayTrend},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.datasubsetOutput=this.datasubsetOutput,this.elementData.barsPerSlide=this.barsPerSlide,this.elementData.displayTrend=this.displayTrend,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ response_rate }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[
10]),!this.elementData.datasubsets.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0])}if(!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_navigation_explanation_response_rate");n&&t.push(n),this.elementData.notes.notesText.immutableValue=t}}}},mr={class:"report-element-head"},dr={class:"one_line"},ur={class:"name_label"},pr={style:{"margin-bottom":"0"}};function hr(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("datasubset-output-input"),T=r("number-input"),S=r("switch-input"),f=r("chart-notes"),E=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",mr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=N=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),V("div",dr,[V("div",ur,m(e.$t("bars_per_slide"))+":Â ",1),V("span",pr,m(e.elementData.barsPerSlide),1)]),l(E,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[7]||(t[7]=N=>e.elementData.showEditDialog=N),width:"800"},{title:s(()=>[h(m(e.$t("edit_responserate_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[6]||(t[6]=N=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=N=>a.datasubsets=N),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.datasubsetOutput,"onUpdate:modelValue":t[2]||(t[2]=N=>a.datasubsetOutput=N),items:[{title:e.$t("use_selected_datasubsets"),value:i.DatasubsetOutput.SELECTED_DATASUBSETS},{title:e.$t("use_child_datasubsets"),value:i.DatasubsetOutput.CHILD_DATASUBSETS}],label:e.$t("datasubset_output")},null,8,["modelValue","items","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.barsPerSlide,"onUpdate:modelValue":t[3]||(t[3]=N=>a.barsPerSlide=N),label:e.$t("bars_per_slide"),min:0},null,8,["modelValue","label"]),l(S,{modelValue:a.displayTrend,"onUpdate:modelValue":t[4]||(t[4]=N=>a.displayTrend=N),label:e.$t("display_trend")},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[5]||(t[5]=N=>e.display=N),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(f,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Ft=U(rr,[["render",hr],["__scopeId","data-v-25a27eb5"]]),br={name:"HowToReadReport",components:{ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ReportElementParameter:L},extends:C,props:{},data(){return{}},computed:{},watch:{},created(){!this.elementData instanceof ul&&w.warn("WRONG HowToReadReport")},methods:{save(){C.methods.save.call(this),this.elementData.showEditDialog=!1}}},Dr={class:"report-element"},gr={class:"report-element-head"},fr={class:"report-element-name"};function yr(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("report-element-parameter"),u=r("dialog-card");return g(),v("div",Dr,[V("div",gr,[V("div",fr,m(e.elementData.name),1),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=o=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[3]||(t[3]=o=>e.elementData.showEditDialog=o),width:"800"},{title:s(()=>[h(m(e.$t("edit_how_to_read_a_report")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[2]||(t[2]=o=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(c,{modelValue:e.display,"onUpdate:modelValue":t[1]||(t[1]=o=>
1e.display=o),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Ht=U(br,[["render",yr]]),Vr={name:"Comments",components:{ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,question:null,horizontalWordsRatio100:90,useDefaultStopwords:!0,includedStopwords:"",excludedStopwords:""}},computed:{Fragetyp(){return Se}},watch:{},created(){!this.elementData instanceof gt&&w.warn("WRONG PPTX Comments"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of PPTX Comments"),!this.elementData.question instanceof p&&w.warn("WRONG Question of PPTX Comments"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question),this.horizontalWordsRatio100=this.elementData.horizontalWordsRatio*100,this.useDefaultStopwords=this.elementData.useDefaultStopwords,this.includedStopwords=this.elementData.includedStopwords,this.excludedStopwords=this.elementData.excludedStopwords},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.horizontalWordsRatio=this.horizontalWordsRatio100/100,this.elementData.useDefaultStopwords=this.useDefaultStopwords,this.elementData.includedStopwords=this.includedStopwords,this.elementData.excludedStopwords=this.excludedStopwords,this.elementData.showEditDialog=!1},setDefaultValues(){let e=[];
1if(this.elementData.datasubset.isSet()||(e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),e.length>0&&(this.elementData.datasubset.mutableParameter=e[0])),!this.elementData.question.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION,this.templateId);t.length>0&&(this.elementData.question.mutableParameter=t[0])}this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ comments }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.subtitle}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])}}},cr={class:"report-element-head"};function Er(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("chart-notes"),T=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",cr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=S=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(T,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[5]||(t[5]=S=>e.elementData.showEditDialog=S),width:"800"},{title:s(()=>[h(m(e.$t("edit_comments")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[4]||(t[4]=S=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=S=>a.datasubset=S),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[2]||(t[2]=S=>a.question=S),"additional-configuration":{includedQuestionTypes:[i.Fragetyp.TEXT]},label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","additional-configuration","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:e.display,"onUpdate:modelValue":t[3]||(t[3]=S=>e.display=S),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(y,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Tr=U(Vr,[["render",Er],["__scopeId","data-v-65d1ab32"]]),wr={name:"CommentsList",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{tableHeader:p,datasubsets:[],questions:[],showOriginalCommentAndTranslation:!1,includeParentDatasubsetName:!0,includeDatasubsetMetanameColumn:!0,showSurveyAccessCode:!1}},computed:{ReportFileType(){return R}},watch:{},created(){!this.elementData instanceof mt&&w.warn("WRONG CommentsList"),!this.elementData.tableHeader instanceof p&&w.warn("WRONG tableHeader of CommentsList"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of CommentsList"),!this.elementData.questions instanceof p&&w.warn("WRONG Questions of CommentsList"),this.setDefaultValues(),this.tableHeader=new p({reportElement:this.elementData,type:d.TEXT}),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.questions=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.tableHeader.replaceAttributes(this.elementData.tableHeader),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.questions.replaceAttributes(this.elementData.questions),this.showOriginalCommentAndTranslation=this.elementData.showOriginalCommentAndTranslation,this.showSurveyAccessCode=this.elementData.showSurveyAccessCode,this.includeParentDatasubsetName=this.elementData.includeParentDatasubsetName,this.includeDatasubsetMetanameColumn=this.elementData.includeDatasubsetMetanameColumn},methods:{save(){C.methods.save.call(this),this.elementData.tableHeader.replaceAttributes(this.tableHeader),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.questions.replaceAttributes(this.questions),this.elementData.showOriginalCommentAndTranslation=this.showOriginalCommentAndTranslation,this.elementData.showSurveyAccessCode=this.showSurveyAccessCode,this.elementData.includeParentDatasubsetName=this.includeParentDatasubsetName,this.elementData.includeDatasubsetMetanameColumn=this.includeDatasubsetMetanameColumn,this.elementData.showEditDialog=!1},setDefaultValues(){if(!this.elementData.datasubsets.isSet()){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);e.length>0&&(this.elementData.datasubsets.mutableParameter=e[0])}if(!this.elementData.questions.isSet()){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION_LIST,this.templateId);e.length>0&&(this.elementData.questions.mutableParameter=e[0])}}}},Sr={class:"report-element-head"},vr={class:"report-element-name"};function Ir(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("report-element-parameter-output"),u=r("report-element-parameter"),o=r("switch-input"),y=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Sr,[V("div",vr,m(e.elementData.name),1),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=T=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),e.template.generalSettings.reportFileType===i.ReportFileType.DOCUMENT?(g(),A(c,{key:0,label:e.$t("table_header"),"report-element":e.elementData,"parameter-name":"tableHeader"},null,8,["label","report-element"])):P("",!0),l(c,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(c,{label:e.$t("questions"),"report-element":e.elementData,"parameter-name":"questions"},null,8,["label","report-element"]),l(y,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[10]||(t[10]=T=>e.elementData.showEditDialog=T),width:"800"},{title:s(()=>[h(m(e.$t("edit_comments_list")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[9]||(t[9]=T=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[e.template.generalSettings.reportFileType===i.ReportFileType.DOCUMENT?(g(),A(u,{key:0,modelValue:a.tableHeader,"onUpdate:modelValue":t[1]||(t[1]=T=>a.tableHeader=T),label:e.$t("table_header"),"template-id":e.templateId},null,8,["modelValue","label","template-id"])):P("",!0),l(u,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=T=>a.datasubsets=T),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:a.questions,"onUpdate:modelValue":t[3]||(t[3]=T=>a.questions=T),label:e.$t("questions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:a.showOriginalCommentAndTranslation,"onUpdate:modelValue":t[4]||(t[4]=T=>a.showOriginalCommentAndTranslation=T),label:e.$t("show_original_comment_and_translation")+"?"},null,8,["modelValue","label"]),e.template.generalSettings.reportFileType===i.ReportFileType.XLSX?(g(),v(Y,{key:0},[l(o,{modelValue:a.includeParentDatasubsetName,"onUpdate:modelValue":t[5]||(t[5]=T=>a.includeParentDatasubsetName=T),label:e.$t("include_parent_datasubset_name")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:a.includeDatasubsetMetanameColumn,"onUpdate:modelValue":t[6]||(t[6]=T=>a.includeDatasubsetMetanameColumn=T),label:e.$t("include_datasubset_metaname_column")+"?"},null,8,["modelValue","label"])],64)):P("",!0),l(o,{modelValue:a.showSurveyAccessCode,"onUpdate:modelValue":t[7]||(t[7]=T=>a.showSurveyAccessCode=T),label:e.$t("show_survey_access_code")+"?"},null,8,["modelValue","label"]),l(u,{modelValue:e.display,"onUpdate:modelValue":t[8]||(t[8]=T=>e.display=T),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const Xt=U(wr,[["render",Ir],["__scopeId","data-v-217383e7"]]),Rr={name:"CommentCloud",components:{SwitchInput:Z,SliderInput:Ol,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,question:null,horizontalWordsRatio100:90,useDefaultStopwords:!0,includedStopwords:"",excludedStopwords:""}},computed:{Fragetyp(){return Se}},watch:{},created(){!this.elementData instanceof Dt&&w.warn("WRONG CommentCloud"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of CommentCloud"),!this.elementData.question instanceof p&&w.warn("WRONG Question of CommentCloud"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.question.replaceAttributes(this.elementData.question),this.horizontalWordsRatio100=this.elementData.horizontalWordsRatio*100,this.useDefaultStopwords=this.elementData.useDefaultStopwords,this.includedStopwords=this.elementData.includedStopwords,this.excludedStopwords=this.elementData.excludedStopwords},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.question.replaceAttributes(this.question),this.elementData.horizontalWordsRatio=this.horizontalWordsRatio100/100,this.elementData.useDefaultStopwords=this.useDefaultStopwords,this.elementData.includedStopwords=this.includedStopwords,this.elementData.excludedStopwords=this.excludedStopwords,this.elementData.showEditDialog=!1},setDefaultValues(){let e=[];
1if(this.elementData.datasubset.isSet()||(e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId),e.length>0&&(this.elementData.datasubset.mutableParameter=e[0])),!this.elementData.question.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION,this.templateId);t.length>0&&(this.elementData.question.mutableParameter=t[0])}this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ comment_cloud }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.subtitle}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])}}},_r={class:"report-element-head"},Nr={key:0,class:"report-element-parameter-container"},Cr={class:"label"},Ar={class:"report-element-parameter-container"},Pr={class:"label"};function Ur(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("slider-input"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",_r,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[9]||(t[9]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_comment_cloud")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[8]||(t[8]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubset=E),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[2]||(t[2]=E=>a.question=E),"additional-configuration":{includedQuestionTypes:[i.Fragetyp.TEXT]},label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","additional-configuration","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.horizontalWordsRatio100,"onUpdate:modelValue":t[3]||(t[3]=E=>a.horizontalWordsRatio100=E),"decimal-places":0,label:e.$t("horizontal_word_ratio")+"?",max:100,min:0,step:1},null,8,["modelValue","label"]),l(T,{modelValue:a.useDefaultStopwords,"onUpdate:modelValue":t[4]||(t[4]=E=>a.useDefaultStopwords=E),label:e.$t("use_default_stopwords")+"?"},null,8,["modelValue","label"]),a.useDefaultStopwords?(g(),v("div",Nr,[V("div",Cr,m(e.$t("excluded_stopwords"))+"?",1),l(ae,{modelValue:a.excludedStopwords,"onUpdate:modelValue":t[5]||(t[5]=E=>a.excludedStopwords=E)},null,8,["modelValue"])])):P("",!0),V("div",Ar,[V("div",Pr,m(e.$t("included_stopwords"))+"?",1),l(ae,{modelValue:a.includedStopwords,"onUpdate:modelValue":t[6]||(t[6]=E=>a.includedStopwords=E)},null,8,["modelValue"])]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[7]||(t[7]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const jt=U(Rr,[["render",Ur],["__scopeId","data-v-d8c3f735"]]),$r={name:"ChangeChart",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{headline:"",datasubset:null,questions:null,colorDescriptions:[],useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof dt&&w.warn("WRONG ChangeChart"),!this.elementData.headline instanceof p&&w.warn("WRONG Headline of ChangeChart"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of ChangeChart"),!this.elementData.questions instanceof p&&w.warn("WRONG Questions of ChangeChart"),this.setDefaultValues(),this.headline=new p({reportElement:this.elementData,type:d.TEXT}),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.questions=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.colorDescriptions=new p({reportElement:this.elementData,type:d.TEXT_LIST}),this.headline.replaceAttributes(this.elementData.headline),this.datasubset.replaceAttributes(this.elementData.datasubset),this.questions.replaceAttributes(this.elementData.questions),this.colorDescriptions.replaceAttributes(this.elementData.colorDescriptions),this.useWeightedResults=this.elementData.useWeightedResults},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.headline.replaceAttributes(this.headline),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.questions.replaceAttributes(this.questions),this.elementData.colorDescriptions.replaceAttributes(this.colorDescriptions),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=this.elementData.header.title.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.title.immutableValue=new $({string:"${ change_chart }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.questions.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION_LIST,this.templateId);t.length>0&&(this.elementData.questions.mutableParameter=t[0])}}}},Br={class:"report-element-head"};function Or(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Br,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("headline"),"report-element":e.elementData,"parameter-name":"headline"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("questions"),"report-element":e.elementData,"parameter-name":"questions"},null,8,["label","report-element"]),l(u,{label:e.$t("descriptions"),"report-element":e.elementData,"parameter-name":"colorDescriptions"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[8]||(t[8]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_change_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[7]||(t[7]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.headline,"onUpdate:modelValue":t[1]||(t[1]=f=>a.headline=f),label:e.$t("headline"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[2]||(t[2]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.questions,"onUpdate:modelValue":t[3]||(t[3]=f=>a.questions=f),label:e.$t("questions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.colorDescriptions,"onUpdate:modelValue":t[4]||(t[4]=f=>a.colorDescriptions=f),label:e.$t("descriptions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[5]||(t[5]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[6]||(t[6]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const zt=U($r,[["render",Or],["__scopeId","data-v-10c21046"]]),kr={name:"ForecastChart",components:{TooltipIcon:we,SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,forecastDatasubset:null,questions:null,colorDescriptions:[],useWeightedResults:!1,showZValues:!1}},computed:{},watch:{},created(){!this.elementData instanceof ht&&w.warn("WRONG ForecastChart"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of ForecastChart"),!this.elementData.forecastDatasubset instanceof p&&w.warn("WRONG Forecast-Datasubset of ForecastChart"),!this.elementData.questions instanceof p&&w.warn("WRONG Questions of ForecastChart"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.forecastDatasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.questions=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.colorDescriptions=new p({reportElement:this.elementData,type:d.TEXT_LIST}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.forecastDatasubset.replaceAttributes(this.elementData.forecastDatasubset),this.questions.replaceAttributes(this.elementData.questions),this.colorDescriptions.replaceAttributes(this.elementData.colorDescriptions),this.useWeightedResults=this.elementData.useWeightedResults,this.showZValues=this.elementData.showZValues},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.forecastDatasubset.replaceAttributes(this.forecastDatasubset),this.elementData.questions.replaceAttributes(this.questions),this.elementData.colorDescriptions.replaceAttributes(this.colorDescriptions),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showZValues=this.showZValues,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ forecast_chart }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.questions.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION_LIST,this.templateId);t.length>0&&(this.elementData.questions.mutableParameter=t[0])}}}},Lr={class:"report-element-head"};function Wr(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("tooltip-icon"),T=r("switch-input"),S=r("chart-notes"),f=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Lr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=E=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("forecast_datasubset"),"report-element":e.elementData,"parameter-name":"forecastDatasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("questions"),"report-element":e.elementData,"parameter-name":"questions"},null,8,["label","report-element"]),l(u,{label:e.$t("descriptions"),"report-element":e.elementData,"parameter-name":"colorDescriptions"},null,8,["label","report-element"]),l(f,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[9]||(t[9]=E=>e.elementData.showEditDialog=E),width:"800"},{title:s(()=>[h(m(e.$t("edit_forecast_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[8]||(t[8]=E=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=E=>a.datasubset=E),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.forecastDatasubset,"onUpdate:modelValue":t[2]||(t[2]=E=>a.forecastDatasubset=E),label:e.$t("forecast_datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.questions,"onUpdate:modelValue":t[3]||(t[3]=E=>a.questions=E),label:e.$t("questions"),"template-id":e.templateId},{hint:s(()=>[l(y,{tooltip:e.$t("select_questions_from_the_survey_of_the_datasubset")+"!",icon:"mdi:mdi-alert-outline",style:{"align-self":"flex-start","margin-top":"10px"}},null,8,["tooltip"])]),_:1},8,["modelValue","label","template-id"]),l(o,{modelValue:a.colorDescriptions,"onUpdate:modelValue":t[4]||(t[4]=E=>a.colorDescriptions=E),label:e.$t("descriptions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(T,{modelValue:a.showZValues,"onUpdate:modelValue":t[5]||(t[5]=E=>a.showZValues=E),label:e.$t("show_z_values")+"?"},null,8,["modelValue","label"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(T,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[6]||(t[6]=E=>a.useWeightedResults=E),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[7]||(t[7]=E=>e.display=E),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(S,{ref:"chartNote
1s","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Wl=U(kr,[["render",Wr],["__scopeId","data-v-072e8119"]]),qr={name:"TrafficLightScaleExplained",components:{DialogCard:k,ReportElementParameterOutput:G,ReportElementActions:M,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,question:null,bigText:"",smallText:""}},computed:{},watch:{},created(){!this.elementData instanceof pl&&w.warn("WRONG TrafficLightScaleExplained"),!this.elementData.bigText instanceof p&&w.warn("WRONG Big Text of TrafficLightScaleExplained"),!this.elementData.smallText instanceof p&&w.warn("WRONG Small Text of TrafficLightScaleExplained"),this.setDefaultValues(),this.bigText=new p({reportElement:this.elementData,type:d.TEXT}),this.smallText=new p({reportElement:this.elementData,type:d.TEXT}),this.bigText.replaceAttributes(this.elementData.bigText),this.smallText.replaceAttributes(this.elementData.smallText)},methods:{save(){C.methods.save.call(this),this.elementData.bigText.replaceAttributes(this.bigText),this.elementData.smallText.replaceAttributes(this.smallText),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ traffic_light_scale }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.bigText.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_traffic_light_description_long");t&&(this.elementData.bigText.immutableValue=t)}if(!this.elementData.smallText.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_traffic_light_description_short");t&&(this.elementData.smallText.immutableValue=t)}}}},Gr={class:"report-element-head"};function Mr(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Gr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=T=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("big_text"),"report-element":e.elementData,"parameter-name":"bigText"},null,8,["label","report-element"]),l(u,{label:e.$t("small_text"),"report-element":e.elementData,"parameter-name":"smallText"},null,8,["label","report-element"]),l(y,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[5]||(t[5]=T=>e.elementData.showEditDialog=T),width:"800"},{title:s(()=>[h(m(e.$t("edit_traffic_light_scale_explained")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[4]||(t[4]=T=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.bigText,"onUpdate:modelValue":t[1]||(t[1]=T=>a.bigText=T),label:e.$t("big_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.smallText,"onUpdate:modelValue":t[2]||(t[2]=T=>a.smallText=T),label:e.$t("small_text"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(o,{modelValue:e.display,"onUpdate:modelValue":t[3]||(t[3]=T=>e.display=T),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const ql=U(qr,[["render",Mr],["__scopeId","data-v-e1539561"]]),Qr={name:"ReportOverallExplained",components:{DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ReportElementParameter:L,ReportElementActions:M},extends:C,props:{},data(){return{text1:"",text2:"",text3:"",text4:"",text5:""}},computed:{},watch:{},created(){!this.elementData instanceof hl&&w.warn("WRONG ReportOverallExplained"),!this.elementData.text1 instanceof p&&w.warn("WRONG Text 1 of ReportOverallExplained"),!this.elementData.text2 instanceof p&&w.warn("WRONG Text 2 of ReportOverallExplained"),!this.elementData.text3 instanceof p&&w.warn("WRONG Text 3 of ReportOverallExplained"),!this.elementData.text4 instanceof p&&w.warn("WRONG Text 4 of ReportOverallExplained"),!this.elementData.text5 instanceof p&&w.warn("WRONG Text 5 of ReportOverallExplained"),this.setDefaultValues(),this.text1=new p({reportElement:this.elementData,type:d.TEXT}),this.text2=new p({reportElement:this.elementData,type:d.TEXT}),this.text3=new p({reportElement:this.elementData,type:d.TEXT}),this.text4=new p({reportElement:this.elementData,type:d.TEXT}),this.text5=new p({reportElement:this.elementData,type:d.TEXT}
1),this.text1.replaceAttributes(this.elementData.text1),this.text2.replaceAttributes(this.elementData.text2),this.text3.replaceAttributes(this.elementData.text3),this.text4.replaceAttributes(this.elementData.text4),this.text5.replaceAttributes(this.elementData.text5)},methods:{save(){C.methods.save.call(this),this.elementData.text1.replaceAttributes(this.text1),this.elementData.text2.replaceAttributes(this.text2),this.elementData.text3.replaceAttributes(this.text3),this.elementData.text4.replaceAttributes(this.text4),this.elementData.text5.replaceAttributes(this.text5),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ general_information }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.text1.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_overall_explained_text1");t&&(this.elementData.text1.immutableValue=t)}if(!this.elementData.text2.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_overall_explained_text2");t&&(this.elementData.text2.immutableValue=t)}if(!this.elementData.text3.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_overall_explained_text2");t&&(this.elementData.text3.immutableValue=t)}if(!this.elementData.text4.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_overall_explained_text2");t&&(this.elementData.text4.immutableValue=t)}if(!this.elementData.text5.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("report_overall_explained_text2");t&&(this.elementData.text5.immutableValue=t)}}}},Fr={class:"report-element-head"};function Hr(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Fr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[3]||(t[3]=y=>e.elementData.showEditDialog=y),title:e.$t("edit_report_overall_explained"),width:"800"},{title:s(()=>[h(m(e.$t("edit_report_overall_explained")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[2]||(t[2]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(u,{modelValue:e.display,"onUpdate:modelValue":t[1]||(t[1]=y=>e.display=y),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","title"])],2)}const Gl=U(Qr,[["render",Hr],["__scopeId","data-v-0da50cc1"]]),Xr={name:"ReportSymbolsExplained",components:{DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ReportElementParameter:L,ReportElementActions:M},extends:C,props:{},data(){return{datasubset:null,question:null,indexText:"",dimensionText:"",aspectText:""}},computed:{},watch:{},created(){!this.elementData instanceof bl&&w.warn("WRONG ReportSymbolsExplained"),!this.elementData.indexText instanceof p&&w.warn("WRONG Index Text of ReportSymbolsExplained"),!this.elementData.dimensionText instanceof p&&w.warn("WRONG Dimension Text of ReportSymbolsExplained"),!this.elementData.aspectText instanceof p&&w.warn("WRONG Aspect Text of ReportSymbolsExplained"),this.setDefaultValues(),this.indexText=new p({reportElement:this.elementData,type:d.TEXT}),this.dimensionText=new p({reportElement:this.elementData,type:d.TEXT}),this.aspectText=new p({reportElement:this.elementData,type:d.TEXT}),this.indexText.replaceAttributes(this.elementData.indexText),this.dimensionText.replaceAttributes(this.elementData.dimensionText),this.aspectText.replaceAttributes(this.elementData.aspectText)},methods:{save(){C.methods.save.call(this),this.elementData.indexText.replaceAttributes(this.indexText),this.elementData.dimensionText.replaceAttributes(this.dimensionText),this.elementData.aspectText.replaceAttributes(this.aspectText),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ report_symbols }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0]),!this.elementData.indexText.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("index_text");t&&(this.elementData.indexText.immutableValue=t)}if(!this.elementData.dimensionText.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("dimension_text");t&&(this.elementData.dimensionText.immutableValue=t)}
1if(!this.elementData.aspectText.isSet()){let t=this.$store.getters["reporttemplate/getProjectTextelementByName"]("aspect_text");t&&(this.elementData.aspectText.immutableValue=t)}}}},jr={class:"report-element-head"};function zr(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",jr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[3]||(t[3]=y=>e.elementData.showEditDialog=y),width:"800"},{title:s(()=>[h(m(e.$t("edit_report_symbols_explained")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[2]||(t[2]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(u,{modelValue:e.display,"onUpdate:modelValue":t[1]||(t[1]=y=>e.display=y),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const Ml=U(Xr,[["render",zr],["__scopeId","data-v-7af7dfc9"]]),Yr={name:"ReportNavigationExplained",components:{DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ReportElementParameter:L,ReportElementActions:M},extends:C,props:{},data(){return{datasubset:null,question:null}},computed:{},watch:{},created(){!this.elementData instanceof Dl&&w.warn("WRONG ReportNavigationExplained"),this.setDefaultValues()},methods:{save(){C.methods.save.call(this),this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ report_navigation }"})),!this.elementData.header.subtitle.isSet()&&e.length>0&&(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])}}},Kr={class:"report-element-head"};function Zr(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Kr,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[3]||(t[3]=y=>e.elementData.showEditDialog=y),width:"800"},{title:s(()=>[h(m(e.$t("edit_report_navigation_explained")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[2]||(t[2]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(u,{modelValue:e.display,"onUpdate:modelValue":t[1]||(t[1]=y=>e.display=y),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const Ql=U(Yr,[["render",Zr],["__scopeId","data-v-796f7053"]]),Jr={name:"BestAndWorstQuestions",components:{ColorScaleInput:vt,SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ReportElementInput:x,ReportElementParameter:L},extends:C,props:{},data(){return{datasubsets:null,headings:null,index:null,useWeightedResults:!1,scaleSegmentsIncludedInWorstQuestions:[],scaleSegmentsIncludedInBestQuestions:[]}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},colorScale(){return this.template.generalSettings.colorScale}},watch:{},created(){!this.elementData instanceof gl&&w.warn("WRONG BestAndWorstQuestions"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of BestAndWorstQuestions"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of BestAndWorstQuestions"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.useWeightedResults=this.elementData.useWeightedResults,this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.headings.replaceAttributes(this.elementData.headings),this.scaleSegmentsIncludedInWorstQuestions=this.elementData.scaleSegmentsIncludedInWorstQuestions.length===0?[0]:this.elementData.scaleSegmentsIncludedInWorstQuestions,this.scaleSegmentsIncludedInBestQuestions=this.elementData.scaleSegmentsIncludedInBestQuestions.length===0?[this.colorScale.segments.length-1]:this.elementData.scaleSegmentsIncludedInBestQuestions},methods:{save(){C.methods.save.call(this),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.headings.replaceAttributes(this.headings),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1,this.elementData.scaleSegmentsIncludedInWorstQuestions=this.scaleSegmentsIncludedInWorstQuestions,this.elementData.scaleSegmentsIncludedInBestQuestions=this.scaleSegmentsIncludedInBestQuestions,this.headings.fromLoop&&this.elementData.header.title.immutableValue&&(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue.heading.fromLoop=!0))},handleWorstSegmentsChange(e){if(e.length===0)this.scaleSegmentsIncludedInWorstQuestions=[];else{let t=Math.max(...e);this.scaleSegmentsIncludedInWorstQuestions=[];for(let n=0;n<=t;n++)this.scaleSegmentsIncludedInWorstQuestions.push(n)}},handleBestSegmentsChange(e){if(e.length===0)this.scaleSegmentsIncludedInBestQuestions=[];else{let t=Math.min(...e);this.scaleSegmentsIncludedInBestQuestions=[];for(let n=this.colorScale.segments.length-1;n>=t;n--)this.scaleSegmentsIncludedInBestQuestions.unshift(n)}},setDefaultValues(){if(!this.elementData.datasubsets.isSet())if(this.elementData.datasubsets.isLoopEnabled())this.elementData.datasubsets.fromLoop=!0;else{let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);e.length>0&&(this.elementData.datasubsets.mutableParameter=e[0])}if(!this.elementData.headings.isSet())if(this.elementData.headings.isLoopEnabled())this.elementData.headings.fromLoop=!0;else{let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId);e.length>0&&(this.elementData.headings.mutableParameter=e[0])}}}},xr={class:"report-element-head"},em={class:"chart-header"},tm={class:"report-element-header"},lm={class:"report-element-name"};function am(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("report-element-parameter-output"),u=r("report-element-parameter"),o=r("switch-input"),y=r("color-scale-input"),T=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",xr,[V("div",em,[V("div",tm,[V("div",lm,m(e.elementData.name),1)])]),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=S=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(c,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(c,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),l(T,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[7]||(t[7]=S=>e.elementData.showEditDialog=S),width:"800"},{title:s(()=>[h(m(e.$t("edit_best_and_worst_questions")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[6]||(t[6]=S=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(u,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=S=>a.datasubsets=S),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(u,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=S=>a.headings=S),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[3]||(t[3]=S=>a.useWeightedResults=S),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.scaleSegmentsIncludedInWorstQuestions,"onUpdate:modelValue":t[4]||(t[4]=S=>a.scaleSegmentsIncludedInWorstQuestions=S),label:e.$t("include_in_
1worst"),segments:i.colorScale.segments,"selection-mode":"left-to-right"},null,8,["modelValue","label","segments"]),l(y,{modelValue:a.scaleSegmentsIncludedInBestQuestions,"onUpdate:modelValue":t[5]||(t[5]=S=>a.scaleSegmentsIncludedInBestQuestions=S),label:e.$t("include_in_best"),segments:i.colorScale.segments,"selection-mode":"right-to-left"},null,8,["modelValue","label","segments"])]),_:1},8,["modelValue"])],2)}const Yt=U(Jr,[["render",am]]),sm={name:"Heatmap",components:{NumberInput:me,SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementInput:x,ReportElementParameter:L,ReportElementParameterOutput:G},extends:C,props:{},data(){return{datasubsets:null,indices:null,headings:null,questions:null,showValues:null,showChange:null,useWeightedResults:!1,showExternalBenchmarking:!1,minBenchmarks:1,greaterEqualsEmployees:100,greaterEqualsAnswersheets:0,greaterEqualsYear:0}},computed:{},watch:{},created(){!this.elementData instanceof fl&&w.warn("WRONG Heatmap"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of Heatmap"),!this.elementData.indices instanceof p&&w.warn("WRONG Indices of Heatmap"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of Heatmap"),!this.elementData.questions instanceof p&&w.warn("WRONG Questions of Heatmap"),!this.elementData.showChange instanceof p&&w.warn("WRONG showChange of Heatmap"),this.setDefaultValues(),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.indices=new p({reportElement:this.elementData,type:d.INDEX_LIST}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.questions=new p({reportElement:this.elementData,type:d.QUESTION_LIST}),this.showValues=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.showChange=new p({reportElement:this.elementData,type:d.BOOLEAN}),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.indices.replaceAttributes(this.elementData.indices),this.headings.replaceAttributes(this.elementData.headings),this.questions.replaceAttributes(this.elementData.questions),this.showValues=this.elementData.showValues,this.showChange=this.elementData.showChange,this.useWeightedResults=this.elementData.useWeightedResults,this.showExternalBenchmarking=this.elementData.showExternalBenchmarking,this.minBenchmarks=this.elementData.minBenchmarks,this.greaterEqualsAnswersheets=this.elementData.greaterEqualsAnswersheets,this.greaterEqualsEmployees=this.elementData.greaterEqualsEmployees,this.greaterEqualsYear=this.elementData.greaterEqualsYear},methods:{save(){C.methods.save.call(this),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.indices.replaceAttributes(this.indices),this.elementData.headings.replaceAttributes(this.headings),this.elementData.questions.replaceAttributes(this.questions),this.elementData.showValues=this.showValues,this.elementData.showChange=this.showChange,this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showExternalBenchmarking=this.showExternalBenchmarking,this.elementData.minBenchmarks=this.minBenchmarks,this.elementData.greaterEqualsEmployees=this.greaterEqualsEmployees,this.elementData.greaterEqualsAnswersheets=this.greaterEqualsAnswersheets,this.elementData.greaterEqualsYear=this.greaterEqualsYear,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId),t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.INDEX_LIST,this.templateId),n=this.$store.getters["reporttemplate/getMutableParametersByType"](d.HEADING_LIST,this.templateId),D=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION_LIST,this.templateId);this.elementData.datasubsets.isSet()||e.length>0&&(this.elementData.datasubsets.mutableParameter=e[0]),this.elementData.indices.isSet()||t.length>0&&(this.elementData.indices.mutableParameter=t[0]),this.elementData.headings.isSet()||n.length>0&&(this.elementData.headings.mutableParameter=n[0]),this.elementData.questions.isSet()||D.length>0&&(this.elementData.questions.mutableParameter=D[0])}}},nm={class:"report-element-head"},im={class:"report-element-name"},om={class:"name_label"},rm={class:"isNotInterpolated"},mm={class:"name_label"},dm={class:"isNotInterpolated"};function um(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("report-element-parameter-output"),u=r("font-awesome-icon"),o=r("report-element-parameter"),y=r("switch-input"),T=r("number-input"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",nm,[V("div",im,m(e.elementData.name),1),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(c,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(c,{label:e.$t("indices"),"report-element":e.elementData,"parameter-name":"indices"},null,8,["label","report-element"]),l(c,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),l(c,{label:e.$t("questions"),"report-element":e.elementData,"parameter-name":"questions"},null,8,["label","report-element"]),V("div",null,[V("span",om,m(e.$t("show_values"))+":",1),l(ie,{class:"output_tag",size:"small",type:"info"},{default:s(()=>[V("span",rm,[a.showValues?(g(),A(u,{key:0,icon:"square-check"})):(g(),A(u,{key:1,icon:["far","square"]}))])]),_:1})]),V("div",null,[V("span",mm,m(e.$t("show_change"))+":",1),l(ie,{class:"output_tag",size:"small",type:"info"},{default:s(()=>[V("span",dm,[a.showChange?(g(),A(u,{key:0,icon:"square-check"})):(g(),A(u,{key:1,icon:["far","square"]}))])]),_:1})]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[15]||(t[15]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_heat_map")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[14]||(t[14]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubsets=f),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.indices,"onUpdate:modelValue":t[2]||(t[2]=f=>a.indices=f),label:e.$t("indices"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[3]||(t[3]=f=>a.headings=f),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.questions,"onUpdate:modelValue":t[4]||(t[4]=f=>a.questions=f),label:e.$t("questions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(y,{modelValue:a.showValues,"onUpdate:modelValue":t[5]||(t[5]=f=>a.showValues=f),label:e.$t("show_values")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.showChange,"onUpdate:modelValue":t[6]||(t[6]=f=>a.showChange=f),label:e.$t("show_change")+"?"},null,8,["modelValue","label"]),l(H,null,{default:s(()=>[l(Q,{style:{"margin-top":"15px"}},{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[7]||(t[7]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(y,{modelValue:a.showExternalBenchmarking,"onUpdate:modelValue":t[8]||(t[8]=f=>a.showExternalBenchmarking=f),label:e.$t("show_external_benchmarking")+"?"},null,8,["modelValue","label"]),a.showExternalBenchmarking?(g(),v(Y,{key:0},[l(q,{class:"mb-2"}),l(T,{modelValue:a.greaterEqualsEmployees,"onUpdate:modelValue":t[9]||(t[9]=f=>a.greaterEqualsEmployees=f),label:">= "+e.$t("employees"),step:100},null,8,["modelValue","label"]),l(T,{modelValue:a.greaterEqualsAnswersheets,"onUpdate:modelValue":t[10]||(t[10]=f=>a.greaterEqualsAnswersheets=f),label:">= "+e.$t("answersheets"),step:100},null,8,["modelValue","label"]),l(T,{modelValue:a.greaterEqualsYear,"onUpdate:modelValue":t[11]||(t[11]=f=>a.greaterEqualsYear=f),label:">= "+e.$t("year")},null,8,["modelValue","label"]),l(T,{modelValue:a.minBenchmarks,"onUpdate:modelValue":t[12]||(t[12]=f=>a.minBenchmarks=f),label:e.$t("min_benchmarks")},null,8,["modelValue","label"])],64)):P("",!0),l(o,{modelValue:e.display,"onUpdate:modelValue":t[13]||(t[13]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const pm=U(sm,[["render",um],["__scopeId","data-v-bce13494"]]),hm={name:"ScaleQuestionDetail
1sChart",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{mainDatasubset:null,datasubsets:null,attributeDatasubsets:null,question:null,colorDescriptions:[],useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof pt&&w.warn("WRONG ScaleQuestionDetailsChart"),!this.elementData.mainDatasubset instanceof p&&w.warn("WRONG Main Datasubset of ScaleQuestionDetailsChart"),!this.elementData.datasubsets instanceof p&&w.warn("WRONG Datasubsets of ScaleQuestionDetailsChart"),!this.elementData.attributeDatasubsets instanceof p&&w.warn("WRONG Attribute-Datasubsets of ScaleQuestionDetailsChart"),!this.elementData.question instanceof p&&w.warn("WRONG Question of ScaleQuestionDetailsChart"),this.setDefaultValues(),this.mainDatasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.datasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.attributeDatasubsets=new p({reportElement:this.elementData,type:d.DATASUBSET_LIST}),this.question=new p({reportElement:this.elementData,type:d.QUESTION}),this.colorDescriptions=new p({reportElement:this.elementData,type:d.TEXT_LIST}),this.mainDatasubset.replaceAttributes(this.elementData.mainDatasubset),this.datasubsets.replaceAttributes(this.elementData.datasubsets),this.attributeDatasubsets.replaceAttributes(this.elementData.attributeDatasubsets),this.question.replaceAttributes(this.elementData.question),this.colorDescriptions.replaceAttributes(this.elementData.colorDescriptions),this.useWeightedResults=this.elementData.useWeightedResults},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.mainDatasubset.replaceAttributes(this.mainDatasubset),this.elementData.datasubsets.replaceAttributes(this.datasubsets),this.elementData.attributeDatasubsets.replaceAttributes(this.attributeDatasubsets),this.elementData.question.replaceAttributes(this.question),this.elementData.colorDescriptions.replaceAttributes(this.colorDescriptions),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ scale_question_details_chart }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.mainDatasubset.isSet()||e.length>0&&(this.elementData.mainDatasubset.mutableParameter=e[0]),!this.elementData.datasubsets.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId);t.length>0&&(this.elementData.datasubsets.mutableParameter=t[0])}if(this.elementData.attributeDatasubsets.isSet()||this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET_LIST,this.templateId).length>0,!this.elementData.question.isSet()){let t=this.$store.getters["reporttemplate/getMutableParametersByType"](d.QUESTION,this.templateId);t.length>0&&(this.elementData.question.mutableParameter=t[0])}}}},bm={class:"report-element-head"};function Dm(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",bm,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("main_datasubset"),"report-element":e.elementData,"parameter-name":"mainDatasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("datasubsets"),"report-element":e.elementData,"parameter-name":"datasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("attribute_datasubsets"),"report-element":e.elementData,"parameter-name":"attributeDatasubsets"},null,8,["label","report-element"]),l(u,{label:e.$t("question"),"report-element":e.elementData,"parameter-name":"question"},null,8,["label","report-element"]),l(u,{label:e.$t("descriptions"),"report-element":e.elementData,"parameter-name":"colorDescriptions"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[9]||(t[9]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_scale_question_details_chart")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[8]||(t[8]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.mainDatasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.mainDatasubset=f),label:e.$t("main_datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.datasubsets,"onUpdate:modelValue":t[2]||(t[2]=f=>a.datasubsets=f),label:e.$t("datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.attributeDatasubsets,"onUpdate:modelValue":t[3]||(t[3]=f=>a.attributeDatasubsets=f),label:e.$t("attribute_datasubsets"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.question,"onUpdate:modelValue":t[4]||(t[4]=f=>a.question=f),label:e.$t("question"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.colorDescriptions,"onUpdate:modelValue":t[5]||(t[5]=f=>a.colorDescriptions=f),label:e.$t("descriptions"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[6]||(t[6]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[7]||(t[7]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Kt=U(hm,[["render",Dm],["__scopeId","data-v-e097b73f"]]),gm={name:"ExternalSlides",components:{FileInputDragDrop:ya,ReportElementActions:M,DialogCard:k,ReportElementInput:x,ReportElementParameter:L,ReportElementParameterOutput:G},extends:C,props:{},data(){return{externalSlidesDescription:"",externalSlidesFilename:"",externalSlidesPreviewFilename:"",externalSlidesPreviewURL:"",isLoading:!1}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},uploadSlidesURL(){return getBaseUri()+"modules/reportsystem/api/uploadCustomSlidesAJAX/projekt/"+this.$store.getters["projekt/getProjekt"]().id}},watch:{}
1,created(){!this.elementData instanceof yl&&w.warn("WRONG ExternalSlides"),this.setDefaultValues(),this.externalSlidesDescription=this.elementData.externalSlidesDescription,this.externalSlidesPreviewFilename=this.elementData.externalSlidesPreviewFilename,this.externalSlidesPreviewURL=this.elementData.externalSlidesPreviewURL,this.externalSlidesFilename=this.elementData.externalSlidesFilename},methods:{save(){C.methods.save.call(this),this.elementData.externalSlidesDescription=this.externalSlidesDescription,this.elementData.externalSlidesFilename=this.externalSlidesFilename,this.elementData.externalSlidesPreviewFilename=this.externalSlidesPreviewFilename,this.elementData.externalSlidesPreviewURL=this.externalSlidesPreviewURL,this.elementData.showEditDialog=!1},setDefaultValues(){},handleFileSelect(e){this.isLoading=!0;let t=new FormData;t.append("file",e),Zl.post("modules/reportsystem/api/uploadCustomSlidesAJAX/projekt/"+this.$store.getters["projekt/getProjekt"]().id,t).then(n=>{this.isLoading=!1,this.externalSlidesFilename=n.data.filename,this.externalSlidesPreviewURL=n.data.imageURL,this.externalSlidesPreviewFilename=n.data.previewImageFilename}).catch(n=>{w.error(new Error(n)),this.isLoading=!1})}}},fm={class:"report-element-head"},ym={class:"report-element-name"},Vm={class:"one_line"},cm={class:"name_label"},Em={class:"d-flex",style:{height:"100px",width:"100%"}},Tm=["src"],wm={class:"report-element-parameter-container"},Sm=["title"],vm={class:"report-element-parameter-container"},Im=["src"];function Rm(e,t,n,D,a,i){const b=r("report-element-actions"),c=r("file-input-drag-drop"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",fm,[V("div",ym,m(e.elementData.name),1),l(O),l(b,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),V("div",Vm,[V("div",cm,m(e.$t("description"))+":Â "+m(e.elementData.externalSlidesDescription),1),V("div",Em,[e.elementData.externalSlidesPreviewURL?(g(),v("img",{key:0,src:e.elementData.externalSlidesPreviewURL,class:"img-responsive"},null,8,Tm)):P("",!0)])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[4]||(t[4]=y=>e.elementData.showEditDialog=y),width:"800"},{title:s(()=>[h(m(e.$t("edit_external_slides")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[3]||(t[3]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[V("div",wm,[V("div",{title:e.$t("description"),class:"label"},m(e.$t("description"))+"?",9,Sm),l(ae,{modelValue:a.externalSlidesDescription,"onUpdate:modelValue":t[1]||(t[1]=y=>a.externalSlidesDescription=y)},null,8,["modelValue"])]),V("div",vm,[l(c,{hint:e.$t("drop_pptx_file_here_or_click_to_upload"),loading:a.isLoading,onChange:i.handleFileSelect},null,8,["hint","loading","onChange"]),a.externalSlidesPreviewURL?(g(),v("img",{key:0,src:a.externalSlidesPreviewURL,class:"img",style:{"max-width":"100%",height:"auto"}},null,8,Im)):P("",!0)]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(u,{modelValue:e.display,"onUpdate:modelValue":t[2]||(t[2]=y=>e.display=y),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)}const Zt=U(gm,[["render",Rm],["__scopeId","data-v-740d7c7f"]]),_m={name:"TrendOverview",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ChartHeader:z,ChartNotes:K,ReportElementParameter:L},extends:C,props:{},data(){return{datasubset:null,indices:null,headings:null,heading:null,useWeightedResults:!1}},computed:{SortOrder(){return SortOrder}},watch:{},created(){!this.elementData instanceof Ce&&w.warn("WRONG Trend Overview"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of Trend Overview"),!this.elementData.indices instanceof p&&w.warn("WRONG Indices of Trend Overview"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of Trend Overview"),!this.elementData.heading instanceof p&&w.warn("WRONG Heading of Trend Overview"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.indices=new p({reportElement:this.elementData,type:d.INDEX_LIST}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.heading=new p({reportElement:this.elementData,type:d.HEADING}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.indices.replaceAttributes(this.elementData.indices),this.headings.replaceAttributes(this.elementData.headings),this.heading.replaceAttributes(this.elementData.heading),this.useWeightedResults=this.elementData.useWeightedResults},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.indices.replaceAttributes(this.indices),this.elementData.headings.replaceAttributes(this.headings),this.elementData.heading.replaceAttributes(this.heading),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);if(this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ trend_overview }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0]),!this.elementData.notes.notesText.isSet()){let t=[],n=this.$store.getters["reporttemplate/getProjectTextelementByName"]("trend_overview_explanation");
1n&&t.push(n),this.elementData.notes.notesText.immutableValue=t}}}},Nm={class:"report-element-head"};function Cm(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Nm,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),e.elementData.indices.isSet()||!e.elementData.isValid()?(g(),A(u,{key:0,label:e.$t("indices"),"report-element":e.elementData,"parameter-name":"indices"},null,8,["label","report-element"])):P("",!0),e.elementData.headings.isSet()||!e.elementData.isValid()?(g(),A(u,{key:1,label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"])):P("",!0),e.elementData.heading.isSet()||!e.elementData.isValid()?(g(),A(u,{key:2,label:e.$t("heading"),"report-element":e.elementData,"parameter-name":"heading"},null,8,["label","report-element"])):P("",!0),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[8]||(t[8]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_trend_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[7]||(t[7]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.indices,"onUpdate:modelValue":t[2]||(t[2]=f=>a.indices=f),label:e.$t("indices"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[3]||(t[3]=f=>a.headings=f),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.heading,"onUpdate:modelValue":t[4]||(t[4]=f=>a.heading=f),label:e.$t("heading"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[5]||(t[5]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[6]||(t[6]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const Jt=U(_m,[["render",Cm],["__scopeId","data-v-e0edcbc3"]]),Am={name:"ImportanceOverview",components:{SwitchInput:Z,ReportElementActions:M,DialogCard:k,ChartHeader:z,ChartNotes:K,ReportElementParameter:L,ReportElementParameterOutput:G},extends:C,props:{},data(){return{datasubset:null,headings:null,useWeightedResults:!1}},computed:{},watch:{},created(){!this.elementData instanceof Vl&&w.warn("WRONG Importance Overview"),!this.elementData.datasubset instanceof p&&w.warn("WRONG Datasubset of Importance Overview"),!this.elementData.headings instanceof p&&w.warn("WRONG Headings of Importance Overview"),this.setDefaultValues(),this.datasubset=new p({reportElement:this.elementData,type:d.DATASUBSET}),this.headings=new p({reportElement:this.elementData,type:d.HEADING_LIST}),this.datasubset.replaceAttributes(this.elementData.datasubset),this.headings.replaceAttributes(this.elementData.headings),this.useWeightedResults=this.elementData.useWeightedResults},methods:{save(){C.methods.save.call(this),this.$refs.chartNotes.save(),this.elementData.datasubset.replaceAttributes(this.datasubset),this.elementData.headings.replaceAttributes(this.headings),this.elementData.useWeightedResults=this.useWeightedResults,this.elementData.showEditDialog=!1},setDefaultValues(){let e=this.$store.getters["reporttemplate/getMutableParametersByType"](d.DATASUBSET,this.templateId);this.elementData.header.title.isSet()||(this.elementData.header.title.immutableValue=new $({string:"${ importance_overview }"})),this.elementData.header.subtitle.isSet()||(this.elementData.header.subtitle.immutableValue=this.elementData.header.subtitle.type.getEntity({reportElement:this.elementData.header}),this.elementData.header.subtitle.immutableValue.string="{{datasubset.name}}",e.length>0&&(this.elementData.header.subtitle.immutableValue.datasubset.mutableParameter=e[0])),this.elementData.datasubset.isSet()||e.length>0&&(this.elementData.datasubset.mutableParameter=e[0])}}},Pm={class:"report-element-head"};function Um(e,t,n,D,a,i){const b=r("chart-header"),c=r("report-element-actions"),u=r("report-element-parameter-output"),o=r("report-element-parameter"),y=r("switch-input"),T=r("chart-notes"),S=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Pm,[l(b,{"parent-data":e.elementData,"template-id":e.templateId,uid:e.elementData.header.uid},null,8,["parent-data","template-id","uid"]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=f=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(u,{label:e.$t("datasubset"),"report-element":e.elementData,"parameter-name":"datasubset"},null,8,["label","report-element"]),l(u,{label:e.$t("headings"),"report-element":e.elementData,"parameter-name":"headings"},null,8,["label","report-element"]),l(S,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[6]||(t[6]=f=>e.elementData.showEditDialog=f),width:"800"},{title:s(()=>[h(m(e.$t("edit_importance_overview")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[5]||(t[5]=f=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[l(o,{modelValue:a.datasubset,"onUpdate:modelValue":t[1]||(t[1]=f=>a.datasubset=f),label:e.$t("datasubset"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(o,{modelValue:a.headings,"onUpdate:modelValue":t[2]||(t[2]=f=>a.headings=f),label:e.$t("headings"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(q),l(H,null,{default:s(()=>[l(Q,null,{default:s(()=>[l(X,null,{default:s(()=>[h(m(e.$t("advanced_options")),1)]),_:1}),l(F,null,{default:s(()=>[l(y,{modelValue:a.useWeightedResults,"onUpdate:modelValue":t[3]||(t[3]=f=>a.useWeightedResults=f),label:e.$t("use_weighted_results")+"?"},null,8,["modelValue","label"]),l(o,{modelValue:e.display,"onUpdate:modelValue":t[4]||(t[4]=f=>e.display=f),label:e.$t("display")+"?","template-id":e.templateId},null,8,["modelValue","label","template-id"])]),_:1})]),_:1})]),_:1}),l(T,{ref:"chartNotes","template-id":e.templateId,uid:e.elementData.notes.uid},null,8,["template-id","uid"])]),_:1},8,["modelValue"])],2)}const xt=U(Am,[["render",Um],["__scopeId","data-v-494af191"]]),$m={name:"Condition",components:{ReportElementActions:M,DialogCard:k,ReportElementParameterOutput:G,ReportElementParameter:L,ReportElement:C,ProjectOverview:It,DraggableReportElement:Vt,Placeholder:Et,Loop:()=>Jl(()=>Promise.resolve().then(()=>id),void 0,import.meta.url),AspectChart:Rt,ActionPortfolio:At,ImpactPortfolio:Pt,InternalBenchmarking:Ot,ExternalBenchmarking:kt,TablesPortfolio:Lt,HeadingSlide:Tt,CoverPage:wt,TableOfContents:St,DimensionOverview:Ut,AspectResultList:$t,SemanticDifferential:Wt,IndexOverview:Bt,QuestionnaireOverview:Qt,QuartileChart:Mt,ResponserateChart:Ft,TablesBarChart:qt,TrendBarChart:Gt,HowToReadReport:Ht,CommentsList:Xt,CommentCloud:jt,BestAndWorstQuestions:Yt,ScaleQuestionDetail
1sChart:Kt,ChangeChart:zt,NPS:_t,NPSComparison:Ct,NPSDetails:Nt,ExternalSlides:Zt,TrendOverview:Jt,ImportanceOverview:xt},extends:C,props:{},data(){return{selectedSourceTypeName:"",condition:le.NONE,negateCondition:!1,conditionOptions:[{title:this.$t(le.IS_TRUE),value:le.IS_TRUE,sourceTypes:[d.BOOLEAN]},{title:this.$t(le.IS_FALSE),value:le.IS_FALSE,sourceTypes:[d.BOOLEAN]},{title:this.$t(le.HAS_TREND),value:le.HAS_TREND,sourceTypes:[d.DATASUBSET]},{title:this.$t(le.IS_NPS),value:le.IS_NPS,sourceTypes:[d.QUESTION]},{title:this.$t(le.IS_ABOVE_ANONYMITY_LIMIT),value:le.IS_ABOVE_ANONYMITY_LIMIT,sourceTypes:[d.DATASUBSET]},{title:this.$t(le.IS_LEAF),value:le.IS_LEAF,sourceTypes:[d.DATASUBSET]},{title:this.$t(le.IS_NOT_COMPUTED),value:le.IS_NOT_COMPUTED,sourceTypes:[d.DATASUBSET]},{title:this.$t(le.IS_COMPUTED),value:le.IS_COMPUTED,sourceTypes:[d.DATASUBSET]},{title:this.$t(le.HAS_EUCUSA_QUESTIONS),value:le.HAS_EUCUSA_QUESTIONS,sourceTypes:[d.HEADING]},{title:this.$t(le.HAS_EUCUSA_QUESTIONS),value:le.HAS_EUCUSA_QUESTIONS,sourceTypes:[d.SURVEY]},{title:this.$t(le.HAS_EUCUSA_QUESTIONS),value:le.HAS_EUCUSA_QUESTIONS,sourceTypes:[d.QUESTIONNAIRE]}],source:null}},computed:{sourceTypes(){return d.getTypesThatCanBeUsedAsConditionSource()},ParameterTypes(){return d},ReportElementCondition(){return le},filteredConditionOptions(){return this.conditionOptions.filter(e=>{var t;return e.sourceTypes.includes((t=this.source)==null?void 0:t.type)})}},watch:{selectedSourceTypeName(e,t){this.source.type=d.getByName(this.selectedSourceTypeName),t!==""&&(this.source.fromLoop=!1,this.source.immutableValue=null,this.source.mutableParameter=null)}},created(){this.source=new p({reportElement:this.elementData,type:this.elementData.source.type?d.getByName(this.elementData.source.type.name):null}),this.source.replaceAttributes(this.elementData.source),this.selectedSourceTypeName=this.elementData.source.type?this.elementData.source.type.name:"",this.condition=this.elementData.condition,this.negateCondition=this.elementData.negateCondition},methods:{save(){C.methods.save.call(this),this.elementData.source.replaceAttributes(this.source),this.elementData.condition=this.condition,this.elementData.negateCondition=this.negateCondition,this.elementData.showEditDialog=!1}}},Bm={class:"report-element-head"},Om={class:"chart-header"},km={class:"report-element-header"},Lm={class:"report-element-name",style:{display:"flex","flex-flow":"row nowrap"}},Wm={key:0},qm={class:"report-element-parameter-container"},Gm={class:"label"},Mm={class:"report-element-parameter-container"},Qm={class:"label"},Fm={class:"condition-child"};function Hm(e,t,n,D,a,i){var y,T,S,f,E,N,_,j;const b=r("report-element-parameter-output"),c=r("report-element-actions"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",Bm,[V("div",Om,[V("div",km,[V("div",Lm,[h(m(e.elementData.name)+" Â ",1),l(b,{"parameter-name":(T=(y=e.elementData)==null?void 0:y.source)!=null&&T.type?e.$t((E=(f=(S=e.elementData)==null?void 0:S.source)==null?void 0:f.type)==null?void 0:E.translationKey):"","report-element":e.elementData,"show-label":!1,label:"source_type"},null,8,["parameter-name","report-element"]),((j=(_=(N=e.elementData)==null?void 0:N.source)==null?void 0:_.type)==null?void 0:j.name)===i.ParameterTypes.BOOLEAN.name?(g(),v("div",Wm,"=")):P("",!0),l(b,{"parameter-name":e.elementData.condition,"show-label":!1,label:"condition"},null,8,["parameter-name"])])])]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=W=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[6]||(t[6]=W=>e.elementData.showEditDialog=W),width:"800"},{title:s(()=>[h(m(e.$t("edit_condition")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[5]||(t[5]=W=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[V("div",qm,[V("div",Gm,m(e.$t("source_type")),1),l(pe,{modelValue:a.selectedSourceTypeName,"onUpdate:modelValue":t[1]||(t[1]=W=>a.selectedSourceTypeName=W),disabled:!1,items:i.sourceTypes,label:e.$t("t
1ype"),clearable:"","item-title":"translation","item-value":"name",placeholder:"SourceType"},null,8,["modelValue","items","label"])]),a.selectedSourceTypeName?(g(),v(Y,{key:0},[l(q),l(u,{modelValue:a.source,"onUpdate:modelValue":t[2]||(t[2]=W=>a.source=W),label:e.$t("source"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),l(q),V("div",Mm,[V("div",Qm,m(e.$t("condition")),1),l(pe,{modelValue:a.condition,"onUpdate:modelValue":t[3]||(t[3]=W=>a.condition=W),items:i.filteredConditionOptions,"item-title":"title","item-value":"value"},null,8,["modelValue","items"])]),l(yt,{modelValue:a.negateCondition,"onUpdate:modelValue":t[4]||(t[4]=W=>a.negateCondition=W),label:e.$t("negate_condition")},null,8,["modelValue","label"])],64)):P("",!0)]),_:1},8,["modelValue"]),(g(!0),v(Y,null,oe(e.elementData.elements,W=>(g(),v("div",Fm,[(g(),A(We(W.type),{"template-id":e.templateId,uid:W.uid},null,8,["template-id","uid"]))]))),256))],2)}const Fl=U($m,[["render",Hm],["__scopeId","data-v-e41cefe1"]]),Xm={name:"Loop",components:{DialogCard:k,ReportElementParameterOutput:G,ReportElementParameter:L,ReportElementActions:M,ReportElement:C,ChartHeader:z,ReportOverallExplained:Gl,TrafficLightScaleExplained:ql,ReportSymbolsExplained:Ml,ReportNavigationExplained:Ql,ProjectOverview:It,ProjectOverviewTable:$l,DraggableReportElement:Vt,Placeholder:Et,AspectChart:Rt,ActionPortfolio:At,ImpactPortfolio:Pt,ExtremaPortfolio:kl,InternalBenchmarking:Ot,ExternalBenchmarking:kt,TablesPortfolio:Lt,HeadingSlide:Tt,CoverPage:wt,TableOfContents:St,DimensionOverview:Ut,AspectResultList:$t,SemanticDifferential:Wt,IndexOverview:Bt,IndexIndexOverview:Ll,EngagementIndex:Bl,QuestionnaireOverview:Qt,QuartileChart:Mt,ResponserateChart:Ft,TablesBarChart:qt,TrendBarChart:Gt,HowToReadReport:Ht,CommentsList:Xt,CommentCloud:jt,BestAndWorstQuestions:Yt,ScaleQuestionDetailsChart:Kt,ChangeChart:zt,ForecastChart:Wl,NPS:_t,NPSComparison:Ct,NPSDetails:Nt,ExternalSlides:Zt,TrendOverview:Jt,ImportanceOverview:xt,Condition:Fl},extends:C,props:{},data(){return{selectedSourceTypeName:"",selectedResultTypeName:"",source:null,questionTypes:[{value:Se.EUCUSA,title:"EUCUSA"},{value:Se.SKALA,title:"Skala"},{value:Se.SINGLE,title:"Single Choice"},{value:Se.MULTIPLE,title:"Multiple Choice"},{value:Se.TEXT,title:"Text"}],questionTypeFilter:[]}},computed:{sourceTypes(){return d.getTypesThatCanBeUsedAsLoopSource()},ParameterTypes(){return d},questionTypeFilterAsString(){return this.questionTypes.filter(n=>this.questionTypeFilter.includes(n.value)).map(n=>n.title).join(",")}},watch:{selectedSourceTypeName(e,t){this.source.type=d.getByName(this.selectedSourceTypeName),t!==""&&(this.source.immutableValue=null,this.source.mutableParameter=null,this.selectedResultTypeName="")}},created(){this.source=new p({reportElement:this.elementData,type:this.elementData.source.type?d.getByName(this.elementData.source.type.name):null}),this.source.replaceAttributes(this.elementData.source),this.selectedSourceTypeName=this.elementData.source.type?this.elementData.source.type.name:"",this.selectedResultTypeName=this.elementData.resultType?this.elementData.resultType.name:"";for(let e of this.elementData.questionTypeFilter)this.questionTypeFilter.push(e)},methods:{save(){C.methods.save.call(this),this.elementData.source.replaceAttributes(this.source),this.elementData.questionTypeFilter=this.questionTypeFilter,this.elementData.resultType=d.getByName(this.selectedResultTypeName),this.elementData.showEditDialog=!1}}},jm={class:"report-element-head"},zm={class:"chart-header"},Ym={class:"report-element-header"},Km={key:0,class:"report-element-name",style:{display:"flex","flex-flow":"row nowrap"}},Zm={key:0,style:{display:"flex","align-items":"center","font-size":"0.9em"}},Jm={class:"report-element-parameter-container"},xm={class:"label"},ed={class:"report-element-parameter-container"},td={class:"label"},ld={key:0,class:"report-element-parameter-container"},ad={class:"label"},sd={class:"loop-child"};function nd(e,t,n,D,a,i){const b=r("report-element-parameter-output"),c=r("report-element-actions"),u=r("report-element-parameter"),o=r("dialog-card");return g(),v("div",{class:B([{"not-valid":!e.elementData.isValid(),highlighted:e.isHighlighted},"report-element"])},[V("div",jm,[V("div",zm,[V("div",Ym,[e.elementData.resultType?(g(),v("div",Km,[h(m(e.elementData.name)+" über "+m(e.$t(e.elementData.source.type.translationKey))+": ",1),l(b,{editable:!1,label:e.$t("source"),"report-element":e.elementData,"show-label":!1,"parameter-name":"source"}
1,null,8,["label","report-element"]),t[7]||(t[7]=h("  â ")),l(b,{editable:!1,"parameter-name":e.elementData.resultType?e.$t(e.elementData.resultType.translationKey):"","show-label":!1,label:"result_type"},null,8,["parameter-name"]),a.questionTypeFilter.length>0?(g(),v("div",Zm,[l(ee,{icon:"mdi:mdi-filter"}),h(" "+m(i.questionTypeFilterAsString),1)])):P("",!0)])):P("",!0)])]),l(O),l(c,{"report-element":e.elementData,onCopyReportElement:e.copyReportElement,onDeleteReportElement:e.deleteReportElement,onShowEditDialog:t[0]||(t[0]=y=>e.elementData.showEditDialog=!0)},null,8,["report-element","onCopyReportElement","onDeleteReportElement"])]),l(o,{modelValue:e.elementData.showEditDialog,"onUpdate:modelValue":t[6]||(t[6]=y=>e.elementData.showEditDialog=y),width:"800"},{title:s(()=>[h(m(e.$t("edit_loop")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[5]||(t[5]=y=>e.elementData.showEditDialog=!1)},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:1}),l(I,{color:"primary",onClick:i.save},{default:s(()=>[h(m(e.$t("save")),1)]),_:1},8,["onClick"])]),default:s(()=>[V("div",Jm,[V("div",xm,m(e.$t("source_type")),1),l(pe,{modelValue:a.selectedSourceTypeName,"onUpdate:modelValue":t[1]||(t[1]=y=>a.selectedSourceTypeName=y),items:i.sourceTypes,label:e.$t("source_type"),clearable:"","item-title":"translation","item-value":"name",style:{"max-width":"500px"}},null,8,["modelValue","items","label"])]),a.selectedSourceTypeName?(g(),v(Y,{key:0},[l(u,{modelValue:a.source,"onUpdate:modelValue":t[2]||(t[2]=y=>a.source=y),"additional-configuration":{inlined:!0},label:e.$t("source"),"template-id":e.templateId},null,8,["modelValue","label","template-id"]),V("div",ed,[V("div",td,m(e.$t("result_type")),1),l(pe,{modelValue:a.selectedResultTypeName,"onUpdate:modelValue":t[3]||(t[3]=y=>a.selectedResultTypeName=y),items:a.source.type.loopResultTypes,label:e.$t("result_type"),clearable:"","item-title":"translation","item-value":"name",style:{"max-width":"500px"}},null,8,["modelValue","items","label"])]),[i.ParameterTypes.QUESTION.name,i.ParameterTypes.HEADING.name,i.ParameterTypes.QUESTION_LIST.name,i.ParameterTypes.HEADING_LIST.name].includes(a.selectedResultTypeName)?(g(),v("div",ld,[V("div",ad,m(e.$t("question_type_filter")),1),l(pe,{modelValue:a.questionTypeFilter,"onUpdate:modelValue":t[4]||(t[4]=y=>a.questionTypeFilter=y),items:a.questionTypes,clearable:"","item-title":"title","item-value":"value",multiple:"",style:{"max-width":"500px"}},null,8,["modelValue","items"])])):P("",!0)],64)):P("",!0)]),_:1},8,["modelValue"]),(g(!0),v(Y,null,oe(e.elementData.elements,y=>(g(),v("div",sd,[(g(),A(We(y.type),{"template-id":e.templateId,uid:y.uid},null,8,["template-id","uid"]))]))),256))],2)}const Hl=U(Xm,[["render",nd],["__scopeId","data-v-013e29d0"]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"})),od={name:"NavigationGroup",components:{ReportElementInput:x},props:{navigationGroups:{type:Array,default(){return[]}},index:{type:[String,Number],default:0},templateId:{type:Number,default:0}},emits:["addNavigationGroupAfter","removeNavigationGroup","addNavigationGroupBefore"],data(){return{}},computed:{HeadingSlide(){return re},navigationGroup(){return this.navigationGroups[this.index]}},watch:{},created(){},methods:{}},rd={style:{display:"flex","flex-flow":"column","justify-content":"space-between",width:"50px"}},md={key:0},dd={key:1},ud={class:"navigation-group-container w-100"},pd={class:"d-flex flex-row ga-1"},hd={class:"d-flex ga-2"},bd={class:"d-flex justify-space-between"};function Dd(e,t,n,D,a,i){const b=r("font-awesome-icon"),c=r("report-element-input");return g(),v(Y,null,[V("div",rd,[l(I,{color:"primary",icon:"",size:"small",style:{transform:"translate(0%, calc(-50% - 5px))"},onClick:t[0]||(t[0]=u=>e.$emit("addNavigationGroupBefore"))},{default:s(()=>[l(b,{icon:"plus"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[n.index===0?(g(),v("span",md,m(e.$t("add_navigation_group_before")),1)):(g(),v("span",dd,m(e.$t("add_navigation_group")),1))]),_:1})]),_:1}),l(O),l(I,{disabled:n.navigationGroups.length===0,icon:"",size:"small",onClick:t[1]||(t[1]=u=>e.$emit("removeNavigationGroup"))},{default:s(()=>[l(ee,{icon:"far fa-trash-alt",color:"error"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("remove_navigation_group")),1)]),_:1})]),_:1},8,["disabled"]),l(O),n.index===n.navigationGroups.length-1?(g(),A(I,{key:0,color:"primary",icon:"",size:"small",style:{transform:"translate(0%, calc(50% + 5px))"},onClick:t[2]||(t[2]=u=>e.$emit("addNavigationGroupAfter"))},{default:s(()=>[l(b,{icon:"plus"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("add_navigation_group_after")),1)]),_:1})]),_:1})):(g(),A(O,{key:1}))]),l(q,{class:"mr-3",vertical:""}),V("div",ud,[V("div",pd,[l(ae,{modelValue:i.navigationGroup.title,"onUpdate:modelValue":t[3]||(t[3]=u=>i.navigationGroup.title=u),label:e.$t("title"),class:"flex-1-1-0"},null,8,["modelValue","label"]),l(ae,{modelValue:i.navigationGroup.subtitle,"onUpdate:modelValue":t[4]||(t[4]=u=>i.navigationGroup.subtitle=u),label:e.$t("subtitle"),class:"flex-1-1-0"},null,8,["modelValue","label"]),l(c,{modelValue:i.navigationGroup.elementUids,"onUpdate:modelValue":t[5]||(t[5]=u=>i.navigationGroup.elementUids=u),label:e.$t("navigation_element_options")+"?","report-element-filter-function":u=>u instanceof i.HeadingSlide||u.canBeInNavigationGroup,"template-id":n.templateId,class:"flex-1-1-0","hide-label":"",multiple:""},null,8,["modelValue","label","report-element-filter-function","template-id"])]),V("div",hd,[l(J,{modelValue:i.navigationGroup.useAppendix,"onUpdate:modelValue":t[6]||(t[6]=u=>i.navigationGroup.useAppendix=u),label:e.$t("use_appendix"),color:"primary"},null,8,["modelValue","label"]),i.navigationGroup.useAppendix?(g(),A(ae,{key:0,modelValue:i.navigationGroup.appendix,"onUpdate:modelValue":t[7]||(t[7]=u=>i.navigationGroup.appendix=u),label:e.$t("appendix")},null,8,["modelValue","label"])):P("",!0)]),V("div",bd,[l(J,{modelValue:i.navigationGroup.useInHeader,"onUpdate:modelValue":t[8]||(t[8]=u=>i.navigationGroup.useInHeader=u),label:e.$t("use_in_header"),color:"primary"},null,8,["modelValue","label"]),l(J,{modelValue:i.navigationGroup.useInTableOfContents,"onUpdate:modelValue":t[9]||(t[9]=u=>i.navigationGroup.useInTableOfContents=u),label:e.$t("use_in_table_of_contents"),color:"primary"},null,8,["modelValue","label"])])])],64)}const gd=U(od,[["render",Dd],["__scopeId","data-v-0773521c"]]),fd={name:"ReportNavigationWizard",components:{NavigationGroup:gd,ConfirmDialog:Le,DialogCard:k,NavigationElement:Ye},props:{templateId:{type:Number,default:0}},data(){return{showReportNavigationWizard:!1,navigationElements:[]}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},elements(){return this.template?this.template.elements:[]}},mounted(){this.addNavigationElementAfter(0)},methods:{generateNavigationGroups(){var i;this.resetReportNavigation(),this.template.navigationGroups=[];const e=this.template.getElementsFlat().filter(b=>b.canBeInNavigationGroup||b instanceof re);let t=null,n=null,D=[];for(const b of e){if(b.type===de.type&&(!b.isScaled||b.showBestQuestions||b.showWorstQuestions||(i=b.headings)!=null&&i.fromLoop))continue;let c=b.canBeInNavigationGroup&&n!==b.navigationGroupCategory&&n!==re.type;if(b instanceof re||c){t=new xe;const u=b.title&&b.title.immutableValue?b.title.immutableValue.string.trim():"",o=b.subtitle&&b.subtitle.immutableValue?b.subtitle.immutableValue.string.trim():"";t.title=u+(o?" - "+o:""),t.subtitle=o,n=b.navigationGroupCategory,n===nt.type&&(t.useInTableOfContents=!1),D.push(t)}n===re.type&&(n=b.navigationGroupCategory),t&&b.canBeInNavigationGroup&&(t.title||(t.title="${ "+b.translationKey+" }",n===ge.type&&(t.title=t.title.replace("${ aspect_chart }","${ aspect_charts }
1"))),t.elementUids.push(b.uid))}D=D.filter(b=>b.elementUids.length>0);const a={};for(const b of D){const u=e.find(o=>o.uid===b.elementUids[0]).type;a.hasOwnProperty(u)||(a[u]=[]),a[u].push(b)}for(const b in a){const c=a[b];if(c.length>1){const u={};for(const o of c){if(o.title==="${ aspect_charts }"&&o.subtitle==="")continue;let y="";if(o.title){let T=o.title,S=o.subtitle;T.trim().startsWith("${")&&T.trim().endsWith("}")&&(T=o.title.match("(?<=\\{).+?(?=\\})")[0].trim()),S.trim().startsWith("${")&&S.trim().endsWith("}")&&(S=o.subtitle.match("(?<=\\{).+?(?=\\})")[0].trim()),y=S?(S+"").substring(0,1).toUpperCase():(T+"").substring(0,1).toUpperCase(),o.useAppendix=!0}o.appendix=y,u.hasOwnProperty(y)||(u[y]=[]),u[y].push(o)}for(const o in u){const y=u[o];if(y.length>1){let T=1;for(const S of y)S.useAppendix=!0,S.appendix+=T.toString(),T++}}}}this.template.navigationGroups=D},resetReportNavigation(){var t;let e=this.getAllChartElements(this.elements);for(let n of e)(t=n==null?void 0:n.navigation)!=null&&t.length&&n.navigation.splice(0,n.navigation.length),n.header.navigation.length>0&&n.header.navigation.splice(0,n.header.navigation.length);this.$toast.success(this.$t("navigation_elements_reset"),{duration:4500})},addNavigationElementsToAllReportElements(){if(this.$refs.navigationElement)for(let t of this.$refs.navigationElement)t.save();let e=this.getAllChartElements(this.elements);for(let t of e)for(let n of this.navigationElements)if(n.linkedEntity&&n.linkedEntity.fromLoop){let D=n.linkedEntity.type,a=!1,i=t;for(;i;)i.resultType&&(i.resultType.name===D.name||D.isList&&D.listItemType&&i.resultType.name===D.listItemType.name)&&(a=!0),i=i.parent;if(a){let b=new De(n);b.uid=Oe(),t.header.navigation.push(b)}}else{let D=new De(n);D.uid=Oe(),D.parent=t,t.header.navigation.push(D)}this.$toast.success(this.$t("navigation_elements_added"),{duration:4500}),this.showReportNavigationWizard=!1},getAllChartElements(e){let t=[];for(let n of e)if(n instanceof xl&&t.push(n),n instanceof se){let D=this.getAllChartElements(n.elements);for(let a of D)t.push(a)}return t},addNavigationElementAfter(e){let t=new De({});t.alwaysEnableLoop=!0,this.navigationElements.splice(e+1,0,t)},addNavigationElementBefore(e){let t=new De({});t.alwaysEnableLoop=!0,this.navigationElements.splice(e,0,t)},removeNavigationElement(e){let t=this.navigationElements.indexOf(e);this.navigationElements.splice(t,1)},addNavigationGroupAfter(e){let t=new xe({});this.template.navigationGroups.splice(e+1,0,t)},addNavigationGroupBefore(e){let t=new xe({});this.template.navigationGroups.splice(e,0,t)},removeNavigationGroup(e){let t=this.template.navigationGroups.indexOf(e);this.template.navigationGroups.splice(t,1)}}},yd={class:"label"};function Vd(e,t,n,D,a,i){const b=r("font-awesome-icon"),c=r("navigation-group"),u=r("dialog-card"),o=r("confirm-dialog");return g(),v(Y,null,[l(I,{icon:""},{default:s(()=>[l(b,{icon:"far fa-hat-wizard"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("report_navigation_wizard")),1)]),_:1}),l(u,{modelValue:a.showReportNavigationWizard,"onUpdate:modelValue":t[2]||(t[2]=y=>a.showReportNavigationWizard=y),activator:"parent",width:"1280"},{title:s(()=>[h(m(e.$t("report_navigation_wizard")),1)]),actions:s(()=>[l(I,{color:"secondary",onClick:t[0]||(t[0]=y=>a.showReportNavigationWizard=!1)},{default:s(()=>[h(m(e.$t("close")),1)]),_:1}),l(I,{color:"primary",onClick:t[1]||(t[1]=y=>a.showReportNavigationWizard=!1)},{default:s(()=>[h(m(e.$t("save")),1)]),_:1})]),default:s(()=>[V("p",yd,[V("b",null,m(e.$t("generate_automatic_report_navigation")),1)]),V("p",null,m(e.$t("generate_automatic_report_navigation_description")),1),V("p",null,m(e.$t("generate_automatic_report_navigation_alert")),1),l(I,{color:"primary",onClick:i.generateNavigationGroups},{default:s(()=>[h(m(e.$t("generate_automatic_report_navigation")),1)]),_:1},8,["onClick"]),(g(!0),v(Y,null,oe(i.template.navigationGroups,(y,T)=>(g(),v("div",{key:"nav_group"+T,class:"d-flex w-100 mb-10 mt-10"},[l(c,{index:T,"navigation-groups":i.template.navigationGroups,"template-id":n.templateId,onAddNavigationGroupAfter:S=>i.addNavigationGroupAfter(T),onAddNavigationGroupBefore:S=>i.addNavigationGroupBefore(T),onRemoveNavigationGroup:S=>i.removeNavigationGroup(y)},null,8,["index","navigation-groups","template-id","onAddNavigationGroupAfter","onAddNavigationGroupBefore","onRemoveNavigationGroup"])]))),128))]),_:1},8,["modelValue"])]),_:1}),l(I,{icon:""},{default:s(()=>[l(b,{icon:"far fa-rotate-left"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("reset_report_navigation")),1)]),_:1}),l(o,{onConfirm:i.resetReportNavigation},null,8,["onConfirm"])]),_:1})],64)}const Xl=U(fd,[["render",Vd]]),cd={name:"EditGeneralSettings",components:{ColorPickerInput:Va,ImageInput:ft,NumberInput:me,ReportNavigationWizard:Xl},props:{templateId:{type:Number,default:0}},data(){return{selectedLanguageId:0,selectedColorScaleId:0,generalSettingColors:{primaryColor:{name:"primaryColor",label:"Primary Color",editDialogVisible:!1},onPrimaryColor:{name:"onPrimaryColor",label:"On Primary Color",editDialogVisible:!1},secondaryColor:{name:"secondaryColor",label:"Secondary Color",editDialogVisible:!1},onSecondaryColor:{name:"onSecondaryColor",label:"On Secondary Color",editDialogVisible:!1},fontColor:{name:"fontColor",label:"Font Color",editDialogVisible:!1}},colorToEdit:null,colorDialogVisible:!1}},computed:{template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},generalSettings(){return this.template.generalSettings},ZAusgabe(){return tl},colorScales(){return this.$store.getters["reporttemplate/getColorScales"]()},ReportFileType(){return R},languages(){return this.$store.getters["reporttemplate/getLanguages"]()}},watch:{selectedLanguageId(e){e&&(this.generalSettings.defaultLanguage=this.languages[e])},selectedColorScaleId(e){e&&(this.generalSettings.colorScale=this.colorScales[e])},"generalSettings.zAusgabe"(e){e===tl.Z_ROUND?(this.generalSettings.decimalPoints=1,this.selectedColorScaleId===2?this.selectedColorScaleId=1:this.selectedColorScaleId===4&&(this.selectedColorScaleId=3)):(this.generalSettings.decimalPoints=0,this.selectedColorScaleId===1?this.selectedColorScaleId=2:this.selectedColorScaleId===3&&(this.selectedColorScaleId=4))}},created(){this.selectedLanguageId=this.generalSettings.defaultLanguage.id,this.selectedColorScaleId=this.generalSettings.colorScale.id},methods:{}},Ed={style:{display:"flex","flex-flow":"row nowrap","align-items":"center"}},Td={style:{width:"180px"}},wd=["onClick"],Sd={key:0,style:{display:"flex","align-items":"center",width:"100px"}},vd={class:"ml-2 mr-2"},Id={key:1,style:{display:"flex","align-items":"center",width:"100px"}},Rd={class:"ml-2 mr-2"},_d={class:"d-flex"};function Nd(e,t,n,D,a,i){const b=r("report-navigation-wizard"),c=r("number-input"),u=r("image-input");return g(),v("div",null,[l(be,null,{default:s(()=>[l(ye,{class:"template-header d-flex",cols:"12",style:{margin:"0",padding:"10px",gap:"1rem"}},{default:s(()=>[l(pe,{modelValue:i.generalSettings.zAusgabe,"onUpdate:modelValue":t[0]||(t[0]=o=>i.generalSettings.zAusgabe=o),items:[{title:e.$t("points")+" (0 - 100)",value:i.ZAusgabe.PERCENT_ROUND},{title:e.$t("index")+" (6 - 1)",value:i.ZAusgabe.Z_ROUND}],label:e.$t("z_values")},null,8,["modelValue","items","label"]),l(ae,{modelValue:i.generalSettings.decimalPoints,"onUpdate:modelValue":t[1]||(t[1]=o=>i.generalSettings.decimalPoints=o),label:e.$t("decimal_points"),type:"number"},null,8,["modelValue","label"]),l(pe,{modelValue:a.selectedColorScaleId,"onUpdate:modelValue":t[2]||(t[2]=o=>a.selectedColorScaleId=o),items:Object.values(i.colorScales),label:e.$t("color_scale"),"item-title":"description","item-value":"id"},null,8,["modelValue","items","label"]),l(pe,{modelValue:a.selectedLanguageId,"onUpdate:modelValue":t[3]||(t[3]=o=>a.selectedLanguageId=o),items:Object.values(i.languages),label:e.$t("default_language"),"item-title":"name","
1item-value":"id"},null,8,["modelValue","items","label"]),l(ae,{modelValue:i.generalSettings.anonymityLimit,"onUpdate:modelValue":t[4]||(t[4]=o=>i.generalSettings.anonymityLimit=o),label:e.$t("anonymity_limit"),type:"number"},null,8,["modelValue","label"]),l(b,{"template-id":n.templateId},null,8,["template-id"])]),_:1}),l(ye,{class:"template-header d-flex",cols:"12",style:{margin:"0",padding:"10px",gap:"1rem"}},{default:s(()=>[l(be,null,{default:s(()=>[l(c,{modelValue:i.generalSettings.maxNumTrends,"onUpdate:modelValue":t[5]||(t[5]=o=>i.generalSettings.maxNumTrends=o),label:e.$t("max_num_trends"),style:{"max-height":"40px"}},null,8,["modelValue","label"])]),_:1}),l(be,null,{default:s(()=>[l(yt,{modelValue:i.generalSettings.showSlideNumbers,"onUpdate:modelValue":t[6]||(t[6]=o=>i.generalSettings.showSlideNumbers=o),label:e.$t("show_slide_numbers"),"hide-details":""},null,8,["modelValue","label"])]),_:1}),l(be,null,{default:s(()=>[l(u,{modelValue:i.generalSettings.headerLogo,"onUpdate:modelValue":t[7]||(t[7]=o=>i.generalSettings.headerLogo=o),label:e.$t("header_logo")},null,8,["modelValue","label"])]),_:1}),l(be,null,{default:s(()=>[l(u,{modelValue:i.generalSettings.footerLogoRight,"onUpdate:modelValue":t[8]||(t[8]=o=>i.generalSettings.footerLogoRight=o),label:e.$t("footer_logo_right"),clearable:""},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),(g(!0),v(Y,null,oe(a.generalSettingColors,o=>(g(),A(be,null,{default:s(()=>[V("div",Ed,[V("div",Td,m(o.label),1),l(ae,{modelValue:i.generalSettings[o.name],"onUpdate:modelValue":y=>i.generalSettings[o.name]=y,style:{width:"100px"},class:"designer__color-value",variant:"outlined"},null,8,["modelValue","onUpdate:modelValue"]),V("div",{style:ve({backgroundColor:i.generalSettings[o.name],borderRadius:"5px"}),class:"color-picker-preview",onClick:y=>o.editDialogVisible=!0},[l(te,{activator:"parent"},{default:s(()=>[h(m(e.$t("open_color_picker")),1)]),_:1})],12,wd),o.name==="primaryColor"?(g(),v("div",Sd,[V("div",vd,m(e.$t("transparency"))+":",1),l(ae,{modelValue:i.generalSettings.primaryColorTransparency,"onUpdate:modelValue":t[9]||(t[9]=y=>i.generalSettings.primaryColorTransparency=y),style:{"min-width":"100px"},variant:"outlined"},{"append-inner":s(()=>t[11]||(t[11]=[h("%")])),_:1},8,["modelValue"])])):P("",!0),o.name==="secondaryColor"?(g(),v("div",Id,[V("div",Rd,m(e.$t("transparency"))+":",1),l(ae,{modelValue:i.generalSettings.secondaryColorTransparency,"onUpdate:modelValue":t[10]||(t[10]=y=>i.generalSettings.secondaryColorTransparency=y),style:{"min-width":"100px"},variant:"outlined"},{"append-inner":s(()=>t[12]||(t[12]=[h("%")])),_:1},8,["modelValue"])])):P("",!0)]),l(at,{modelValue:o.editDialogVisible,"onUpdate:modelValue":y=>o.editDialogVisible=y,width:"300px"},{default:s(()=>[l(ba,{modelValue:i.generalSettings[o.name],"onUpdate:modelValue":y=>i.generalSettings[o.name]=y,modes:["rgb"]},null,8,["modelValue","onUpdate:modelValue"]),V("div",_d,[l(I,{rounded:0,class:"w-50",onClick:y=>o.editDialogVisible=!1},{default:s(()=>[h(m(e.$t("cancel")),1)]),_:2},1032,["onClick"]),l(I,{rounded:0,class:"w-50",onClick:y=>o.editDialogVisible=!1},{default:s(()=>[h(m(e.$t("save")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024))),256))])}const Cd=U(cd,[["render",Nd],["__scopeId","data-v-efe6cdb9"]]),Ad={name:"CreateOrEdit",directives:{elementVisibility:ca},components:{ReportElementContextMenu:za,ReportNavigationWizard:Xl,EditGeneralSettings:Cd,ReportElement:C,ReportElementActions:M,DraggableReportElement:Vt,MutableParametersContainer:Ha,Placeholder:Et,Loop:Hl,Condition:Fl,HeadingSlide:Tt,CoverPage:wt,TableOfContents:St,ProjectOverview:It,ProjectOverviewTable:$l,AspectChart:Rt,NPS:_t,NPSDetails:Nt,NPSComparison:Ct,EngagementIndex:Bl,ActionPortfolio:At,ExtremaPortfolio:kl,ImpactPortfolio:Pt,InternalBenchmarking:Ot,ExternalBenchmarking:kt,TablesPortfolio:Lt,SemanticDifferential:Wt,DimensionOverview:Ut,AspectResultList:$t,IndexOverview:Bt,IndexIndexOverview:Ll,TablesBarChart:qt,TrendBarChart:Gt,QuartileChart:Mt,QuestionnaireOverview:Qt,StrengthsAndWeaknessesTable:or,ResponserateChart:Ft,HowToReadReport:Ht,Comments:Tr,CommentsList:Xt,CommentCloud:jt,ChangeChart:zt,ForecastChart:Wl,ScaleQuestionDetail
1sChart:Kt,TrafficLightScaleExplained:ql,ReportOverallExplained:Gl,ReportSymbolsExplained:Ml,ReportNavigationExplained:Ql,ExternalSlides:Zt,TrendOverview:Jt,ImportanceOverview:xt,BestAndWorstQuestions:Yt,Heatmap:pm},props:{templateId:{type:Number,default:0},format:{type:Number,default:Tl.PPTX}},data(){return{availableReportElements:[{name:"cover_page",classReference:ol,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"report_overall_explained",classReference:hl,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"traffic_light_scale_explained",classReference:pl,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"report_symbols_explained",classReference:bl,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"report_navigation_explained",classReference:Dl,supportedFileTypes:[R.PRESENTATION,R.DOCUMENT]},{name:"table_of_contents",classReference:nt,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"project_overview",classReference:ut,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"project_overview_table",classReference:ea,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"heading",classReference:re,supportedFileTypes:[R.DOCUMENT]},{name:"heading_slide",classReference:re,supportedFileTypes:[R.PRESENTATION]},{name:"loop",classReference:se,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.XLSX,R.WEB]},{name:"condition",classReference:ta,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.XLSX,R.WEB]},{name:"questionnaire_overview",classReference:ml,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"responserate_chart",classReference:ot,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"strengths_and_weaknesses_table",classReference:dl,supportedFileTypes:[R.DOCUMENT]},{name:"index_overview",classReference:Qe,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"index_index_overview",classReference:rl,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]}
1,{name:"dimension_overview",classReference:st,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"aspect_result_list",classReference:Ee,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"action_portfolio",classReference:de,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"impact_portfolio",classReference:Pe,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"extrema_portfolio",classReference:tt,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"aspect_chart",classReference:ge,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"nps",classReference:Ge,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"nps_details",classReference:Me,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"nps_comparison",classReference:rt,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"engagement_index",classReference:bt,supportedFileTypes:[R.PRESENTATION]},{name:"semantic_differential",classReference:it,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"tables_bar_chart",classReference:Ie,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"quartile_chart",classReference:Te,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"internal_benchmarking",classReference:_e,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"external_benchmarking",classReference:qe,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"tables_portfolio",classReference:Ve,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"trend_bar_chart",classReference:Ne,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION,R.WEB]},{name:"how_to_read_a_report",classReference:ul,supportedFileTypes:[R.DOCUMENT]},{name:"comments",classReference:gt,supportedFileTypes:[R.PRESENTATION]},{name:"comments_list",classReference:mt,supportedFileTypes:[R.DOCUMENT,R.XLSX]},{name:"comment_cloud",classReference:Dt,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"change_chart",classReference:dt,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"forecast_chart",classReference:ht,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"scale_question_details_chart",classReference:pt,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"best_and_worst_questions",classReference:gl,supportedFileTypes:[R.XLSX]},{name:"heat_map",classReference:fl,supportedFileTypes:[R.XLSX]},{name:"external_slides",classReference:yl,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"trend_overview",classReference:Ce,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"importance_overview",classReference:Vl,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]}],availableModules:[{name:"action_portfolio_and_aspect_charts",moduleName:wl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"quartile_chart",moduleName:Sl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"internal_benchmarking",moduleName:vl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"trend_bar_chart",moduleName:Il.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"trend_overview",moduleName:Rl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"tables_bar_chart",moduleName:_l.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"tables_portfolio",moduleName:Nl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"external_benchmarking",moduleName:Cl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"impact_portfolio",moduleName:Al.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]},{name:"nps",moduleName:Pl.name,supportedFileTypes:[R.DOCUMENT,R.PRESENTATION]}],isSaving:!1,elementSearchString:"",contextMenuEvent:null,contextMenuElement:null,contextMenuShow:!1,contextMenuXPos:0,contextMenuYPos:0,generalSettingsVisible:!1,leftSidebarContent:"overview",rightSidebarKey:"parameters",sideBarItems:[{key:"elements",title:this.$t("elements"),props:{prependIcon:"far fa-list-dropdown"}},{key:"parameters",title:this.$t("mutable_parameters"),props:{prependIcon:"far fa-toggle-off"}}],visibleReportElements:new Map,deleteFlag:null}},computed:{ReportFileType(){return R},reportFileType(){return this.template.generalSettings.reportFileType},template(){return this.$store.getters["reporttemplate/getTemplateById"](this.templateId)},elements(){return this.template?this.template.elements:[]},isLoaded(){return this.template?this.template.isLoaded:!1},filteredAvailableReportElements(){var t,n;let e=(n=(t=this.elementSearchString)==null?void 0:t.trim())==null?void 0:n.toLowerCase();return e?this.availableReportElements.filter(D=>this.$t(D.name).toLowerCase().includes(e)):this.availableReportElements},filteredAvailableModules(){var t,n;let e=(n=(t=this.elementSearchString)==null?void 0:t.trim())==null?void 0:n.toLowerCase();return e?this.availableModules.filter(D=>this.$t(D.name).toLowerCase().includes(e)):this.availableModules}},created(){this.$store.dispatch("projekt/loadProjects").then(()=>{this.templateId===0?this.$store.dispatch("reporttemplate/loadNeededDataForTemplates").then(()=>{this.$store.commit("reporttemplate/addTemplate",{}),this.$store.commit("reporttemplate/addPlaceholder",{}),this.template.isLoaded=!0}):this.loadTemplateById(this.templateId)}).catch(e=>{w.error(new Error(e))})},methods:{selectSidebarItem(e){console.log(e.key),this.rightSidebarKey=e.key},setReportElementVisibility(e,t){this.visibleReportElements.set(t,e)},scrollTo(e){var t;(t=document.getElementsByClassName(e)[0])==null||t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),this.setReportElementVisibility("visible",e)},save(){if(!this.template.name)return this.$toast.error(this.$t("template_is_missing_name"),{duration:4500});if(!this.template.isValid())return this.$toast.error(this.$t("template_is_missing_parameters"),{duration:4500});this.isSaving=!0,this.$store.dispatch("reporttemplate/saveTemplate",{reportTemplateId:this.templateId}).then(()=>{this.$toast.success(this.$t("template_saved"),{duration:4500}),this.isSaving=!1}
1).catch(e=>{w.error(new Error(e)),this.isSaving=!1})},openContextMenu(e,t){e.preventDefault(),this.contextMenuShow=!1,this.contextMenuXPos=e.clientX,this.contextMenuYPos=e.clientY,this.contextMenuEvent=e,this.contextMenuElement=t,this.$nextTick(()=>{this.contextMenuShow=!0})},loadTemplateById(e){this.$store.dispatch("reporttemplate/loadTemplateById",{projektId:this.$store.getters["projekt/getProjekt"]().id,reportTemplateId:e}).then(t=>{this.template.isLoaded=!0}).catch(t=>{w.error(new Error(t))})}}},Pd={class:"createOrEditView",style:{display:"flex","flex-flow":"column nowrap"}},Ud={class:"left-column"},$d={class:"mid-column"},Bd={class:"template-container w-100"},Od={key:1,style:{height:"calc(100vh - 70px)",display:"flex","justify-content":"center","align-items":"center"}},kd={class:"right-column"},Ld={class:"report-elements-container",style:{"background-color":"white"}},Wd={key:0,class:"report-elements"},qd={class:"elements-container pa-3"};function Gd(e,t,n,D,a,i){const b=r("font-awesome-icon"),c=r("edit-general-settings"),u=r("report-element-context-menu"),o=r("draggable-report-element"),y=r("mutable-parameters-container"),T=sa("element-visibility");return g(),v("div",Pd,[l(ye,{class:"template-header",style:{padding:"0",margin:"0","background-color":"white"}},{default:s(()=>[i.isLoaded?(g(),A(be,{key:0,style:{margin:"0",padding:"10px",gap:"1rem"}},{default:s(()=>[l(ae,{modelValue:i.template.name,"onUpdate:modelValue":t[0]||(t[0]=S=>i.template.name=S),label:e.$t("name"),style:{"max-width":"300px"}},null,8,["modelValue","label"]),l(ae,{modelValue:i.template.generalSettings.filenamePattern,"onUpdate:modelValue":t[1]||(t[1]=S=>i.template.generalSettings.filenamePattern=S),label:e.$t("filename")},{"prepend-inner":s(()=>[l(b,{icon:"fas fa-file"})]),_:1},8,["modelValue","label"]),l(pe,{modelValue:i.template.generalSettings.reportFileType,"onUpdate:modelValue":t[2]||(t[2]=S=>i.template.generalSettings.reportFileType=S),items:[{title:e.$t("presentation"),value:i.ReportFileType.PRESENTATION},{title:e.$t("document"),value:i.ReportFileType.DOCUMENT},{title:e.$t("XLSX"),value:i.ReportFileType.XLSX},{title:e.$t("web"),value:i.ReportFileType.WEB}],label:e.$t("report_file_type"),style:{"max-width":"300px"}},null,8,["modelValue","items","label"]),l(I,{icon:"",onClick:t[3]||(t[3]=S=>a.generalSettingsVisible?a.generalSettingsVisible=!1:a.generalSettingsVisible=!0)},{default:s(()=>[l(b,{icon:a.generalSettingsVisible?"chevron-up":"gear"},null,8,["icon"]),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(a.generalSettingsVisible?e.$t("hide_general_settings"):e.$t("open_general_settings")),1)]),_:1})]),_:1}),l(I,{loading:a.isSaving,color:"primary",icon:"",onClick:i.save},{default:s(()=>[l(b,{icon:"floppy-disk"}),l(te,{activator:"parent",location:"top"},{default:s(()=>[h(m(e.$t("save")),1)]),_:1})]),_:1},8,["loading","onClick"])]),_:1})):P("",!0),i.isLoaded&&a.generalSettingsVisible?(g(),A(c,{key:1,"template-id":n.templateId},null,8,["template-id"])):P("",!0)]),_:1}),l(ye,{class:"template-content",style:{display:"flex","flex-flow":"row nowrap",padding:"0",margin:"0","background-color":"white"}},{default:s(()=>[V("div",Ud,[i.isLoaded?(g(),A(ga,{key:0,modelValue:a.leftSidebarContent,"onUpdate:modelValue":t[4]||(t[4]=S=>a.leftSidebarContent=S),class:"sticky","fixed-tabs":""},{default:s(()=>[l(Da,{value:"overview"},{default:s(()=>[h(m(e.$t("overview")),1)]),_:1})]),_:1},8,["modelValue"])):P("",!0),l(nl,{modelValue:a.leftSidebarContent,"onUpdate:modelValue":t[5]||(t[5]=S=>a.leftSidebarContent=S)},{default:s(()=>[l(et,{style:{"background-color":"white"},value:"overview"},{default:s(()=>[(g(!0),v(Y,null,oe(i.elements,S=>(g(),v(Y,null,[S.type!=="Placeholder"?(g(),A(I,{key:0,color:S.isValid()?a.visibleReportElements.has(S.uid)&&a.visibleReportElements.get(S.uid)?"primary":"default":"error",style:{width:"100%",margin:"0 0 5px 0","font-size":"0.7rem","text-align":"left","text-transform":"none"},onClick:f=>i.scrollTo(S.uid)},{default:s(()=>[h(m(S.name),1)]),_:2},1032,["color","onClick"])):P("",!0)],64))),256))]),_:1})]),_:1},8,["modelValue"])]),V("div",$d,[i.isLoaded?(g(),A(Re,{key:0,class:"template-card",flat:"",style:{display:"flex","flex-flow":"row nowrap"}},{default:s(()=>[V("div",Bd,[(g(!0),v(Y,null,oe(i.elements,S=>la((g(),A(We(S.type),{key:S.uid,class:B({[S.uid]:!0,deleted:S.uid===a.deleteFlag,"heading-slide":S.type==="HeadingSlide"}),"template-id":n.templateId,uid:S.uid,onSetDeleteFlag:f=>a.deleteFlag=S.uid,onContextmenu:fe(f=>i.openContextMenu(f,S),["prevent"])},null,40,["class","template-id","uid","onSetDeleteFlag","onContextmenu"])),[[T,f=>i.setReportElementVisibility(f,S.uid)]])),128)),a.contextMenuShow?(g(),A(u,{key:0,element:a.contextMenuElement,event:a.contextMenuEvent,"template-id":n.templateId,x:a.contextMenuXPos,y:a.contextMenuYPos},null,8,["element","event","template-id","x","y"])):P("",!0)])]),_:1})):(g(),v("div",Od,[l(fa,{size:50,color:"#48c1b8",indeterminate:""})]))]),V("div",kd,[l(Re,{class:"mutable-parameters sticky",flat:"",width:"100%"},{default:s(()=>[l(He,{class:"d-flex justify-center align-center"},{default:s(()=>[l(Fe,null,{activator:s(({props:S}
1)=>[l(I,aa({class:"mr-2",icon:"far fa-chevron-down",size:"small"},S),null,16)]),default:s(()=>[l(Xe,{items:a.sideBarItems,density:"compact"},{default:s(()=>[(g(!0),v(Y,null,oe(a.sideBarItems,S=>(g(),A(je,{"prepend-icon":S.props.prependIcon,onClick:f=>i.selectSidebarItem(S)},{default:s(()=>[h(m(S.title),1)]),_:2},1032,["prepend-icon","onClick"]))),256))]),_:1},8,["items"])]),_:1}),h(" "+m(e.$t(a.rightSidebarKey))+" ",1),l(O),a.rightSidebarKey==="parameters"?(g(),A(I,{key:0,color:"primary",icon:"mdi-plus",size:"small",onClick:t[6]||(t[6]=S=>e.$refs.mutableParameterContainer.openSelectParameterTypeDialog())},{default:s(()=>[l(ee,{icon:"mdi:mdi-plus"})]),_:1})):P("",!0)]),_:1})]),_:1}),l(nl,{modelValue:a.rightSidebarKey,"onUpdate:modelValue":t[8]||(t[8]=S=>a.rightSidebarKey=S)},{default:s(()=>[l(et,{style:{"background-color":"white"},value:"elements"},{default:s(()=>[V("div",Ld,[i.isLoaded?(g(),v("div",Wd,[l(ae,{modelValue:a.elementSearchString,"onUpdate:modelValue":t[7]||(t[7]=S=>a.elementSearchString=S),class:"ml-2 mr-2 pt-0",clearable:"",placeholder:"Berichtselemente suchen",variant:"underlined"},{"append-inner":s(()=>[l(b,{icon:"search"})]),_:1},8,["modelValue"]),V("div",qd,[l(H,{"model-value":[0,1],color:"secondary",multiple:""},{default:s(()=>[l(Q,{rounded:0,value:0},{title:s(()=>[h(m(e.$t("modules")),1)]),default:s(()=>[l(F,null,{default:s(()=>[(g(!0),v(Y,null,oe(i.filteredAvailableModules,(S,f)=>(g(),v(Y,null,[i.isLoaded&&S.supportedFileTypes.includes(i.reportFileType)?(g(),A(o,{key:"draggableReportElement"+f,"module-reference":S,"template-id":n.templateId,title:S.name},null,8,["module-reference","template-id","title"])):P("",!0)],64))),256))]),_:1})]),_:1}),l(Q,{rounded:0,value:1},{title:s(()=>[h(m(e.$t("single_elements")),1)]),default:s(()=>[l(F,null,{default:s(()=>[(g(!0),v(Y,null,oe(i.filteredAvailableReportElements,(S,f)=>(g(),v(Y,null,[i.isLoaded&&S.supportedFileTypes.includes(i.reportFileType)?(g(),A(o,{key:"draggableReportElement"+f,"class-reference":S.classReference,"template-id":n.templateId,title:S.name},null,8,["class-reference","template-id","title"])):P("",!0)],64))),256))]),_:1})]),_:1})]),_:1})])])):P("",!0)])]),_:1}),l(et,{style:{"background-color":"white"},value:"parameters"},{default:s(()=>[i.isLoaded?(g(),A(y,{key:0,ref:"mutableParameterContainer","show-title":!1,"template-id":n.templateId,class:"h-100"},null,8,["template-id"])):P("",!0)]),_:1})]),_:1},8,["modelValue"])])]),_:1})])}const ru=U(Ad,[["render",Gd]]);export{ru as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.