comand-component-library 4.0.34 → 4.0.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
- (function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b["comand-component-library"]={},b.Vue))})(this,function(b,e){"use strict";var jg=Object.defineProperty;var Ug=(b,e,Q)=>e in b?jg(b,e,{enumerable:!0,configurable:!0,writable:!0,value:Q}):b[e]=Q;var Ie=(b,e,Q)=>Ug(b,typeof e!="symbol"?e+"":e,Q);const Q=/^[a-z0-9]+(-[a-z0-9]+)*$/,Fe=(t,n,o,a="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;a=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const r=i.pop(),c=i.pop(),h={provider:i.length>0?i[0]:a,prefix:c,name:r};return n&&!Oe(h)?null:h}const l=i[0],s=l.split("-");if(s.length>1){const r={provider:a,prefix:s.shift(),name:s.join("-")};return n&&!Oe(r)?null:r}if(o&&a===""){const r={provider:a,prefix:"",name:l};return n&&!Oe(r,o)?null:r}return null},Oe=(t,n)=>t?!!((t.provider===""||t.provider.match(Q))&&(n&&t.prefix===""||t.prefix.match(Q))&&t.name.match(Q)):!1,At=Object.freeze({left:0,top:0,width:16,height:16}),Me=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),De=Object.freeze({...At,...Me}),Xe=Object.freeze({...De,body:"",hidden:!1});function In(t,n){const o={};!t.hFlip!=!n.hFlip&&(o.hFlip=!0),!t.vFlip!=!n.vFlip&&(o.vFlip=!0);const a=((t.rotate||0)+(n.rotate||0))%4;return a&&(o.rotate=a),o}function qt(t,n){const o=In(t,n);for(const a in Xe)a in Me?a in t&&!(a in o)&&(o[a]=Me[a]):a in n?o[a]=n[a]:a in t&&(o[a]=t[a]);return o}function Fn(t,n){const o=t.icons,a=t.aliases||{},i=Object.create(null);function l(s){if(o[s])return i[s]=[];if(!(s in i)){i[s]=null;const r=a[s]&&a[s].parent,c=r&&l(r);c&&(i[s]=[r].concat(c))}return i[s]}return Object.keys(o).concat(Object.keys(a)).forEach(l),i}function On(t,n,o){const a=t.icons,i=t.aliases||{};let l={};function s(r){l=qt(a[r]||i[r],l)}return s(n),o.forEach(s),qt(t,l)}function Ht(t,n){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(i=>{n(i,null),o.push(i)});const a=Fn(t);for(const i in a){const l=a[i];l&&(n(i,On(t,i,l)),o.push(i))}return o}const Mn={provider:"",aliases:{},not_found:{},...At};function Qe(t,n){for(const o in n)if(o in t&&typeof t[o]!=typeof n[o])return!1;return!0}function zt(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!Qe(t,Mn))return null;const o=n.icons;for(const i in o){const l=o[i];if(!i.match(Q)||typeof l.body!="string"||!Qe(l,Xe))return null}const a=n.aliases||{};for(const i in a){const l=a[i],s=l.parent;if(!i.match(Q)||typeof s!="string"||!o[s]&&!a[s]||!Qe(l,Xe))return null}return n}const Rt=Object.create(null);function Dn(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function ie(t,n){const o=Rt[t]||(Rt[t]=Object.create(null));return o[n]||(o[n]=Dn(t,n))}function $e(t,n){return zt(n)?Ht(n,(o,a)=>{a?t.icons[o]=a:t.missing.add(o)}):[]}function Ln(t,n,o){try{if(typeof o.body=="string")return t.icons[n]={...o},!0}catch{}return!1}let ue=!1;function jt(t){return typeof t=="boolean"&&(ue=t),ue}function Pn(t){const n=typeof t=="string"?Fe(t,!0,ue):t;if(n){const o=ie(n.provider,n.prefix),a=n.name;return o.icons[a]||(o.missing.has(a)?null:void 0)}}function An(t,n){const o=Fe(t,!0,ue);if(!o)return!1;const a=ie(o.provider,o.prefix);return Ln(a,o.name,n)}function Ut(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),ue&&!n&&!t.prefix){let i=!1;return zt(t)&&(t.prefix="",Ht(t,(l,s)=>{s&&An(l,s)&&(i=!0)})),i}const o=t.prefix;if(!Oe({provider:n,prefix:o,name:"a"}))return!1;const a=ie(n,o);return!!$e(a,t)}const Wt=Object.freeze({width:null,height:null}),Gt=Object.freeze({...Wt,...Me}),qn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Hn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Jt(t,n,o){if(n===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*n*o)/o;if(typeof t!="string")return t;const a=t.split(qn);if(a===null||!a.length)return t;const i=[];let l=a.shift(),s=Hn.test(l);for(;;){if(s){const r=parseFloat(l);isNaN(r)?i.push(l):i.push(Math.ceil(r*n*o)/o)}else i.push(l);if(l=a.shift(),l===void 0)return i.join("");s=!s}}function zn(t,n){const o={...De,...t},a={...Gt,...n},i={left:o.left,top:o.top,width:o.width,height:o.height};let l=o.body;[o,a].forEach(f=>{const u=[],y=f.hFlip,k=f.vFlip;let C=f.rotate;y?k?C+=2:(u.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),u.push("scale(-1 1)"),i.top=i.left=0):k&&(u.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),u.push("scale(1 -1)"),i.top=i.left=0);let S;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:S=i.height/2+i.top,u.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:u.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,u.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}C%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),u.length&&(l='<g transform="'+u.join(" ")+'">'+l+"</g>")});const s=a.width,r=a.height,c=i.width,h=i.height;let d,m;return s===null?(m=r===null?"1em":r==="auto"?h:r,d=Jt(m,c/h)):(d=s==="auto"?c:s,m=r===null?Jt(d,h/c):r==="auto"?h:r),{attributes:{width:d.toString(),height:m.toString(),viewBox:i.left.toString()+" "+i.top.toString()+" "+c.toString()+" "+h.toString()},body:l}}const Rn=/\sid="(\S+)"/g,jn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Un=0;function Wn(t,n=jn){const o=[];let a;for(;a=Rn.exec(t);)o.push(a[1]);return o.length&&o.forEach(i=>{const l=typeof n=="function"?n(i):n+(Un++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+l+"$3")}),t}const ve=Object.create(null);function Gn(t,n){ve[t]=n}function et(t){return ve[t]||ve[""]}function tt(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ot=Object.create(null),pe=["https://api.simplesvg.com","https://api.unisvg.com"],Le=[];for(;pe.length>0;)pe.length===1||Math.random()>.5?Le.push(pe.shift()):Le.push(pe.pop());ot[""]=tt({resources:["https://api.iconify.design"].concat(Le)});function Jn(t,n){const o=tt(n);return o===null?!1:(ot[t]=o,!0)}function nt(t){return ot[t]}let Kt=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Kn(t,n){const o=nt(t);if(!o)return 0;let a;if(!o.maxURL)a=0;else{let i=0;o.resources.forEach(s=>{i=Math.max(i,s.length)});const l=n+".json?icons=";a=o.maxURL-i-o.path.length-l.length}return a}function Zn(t){return t===404}const Yn=(t,n,o)=>{const a=[],i=Kn(t,n),l="icons";let s={type:l,provider:t,prefix:n,icons:[]},r=0;return o.forEach((c,h)=>{r+=c.length+1,r>=i&&h>0&&(a.push(s),s={type:l,provider:t,prefix:n,icons:[]},r=c.length),s.icons.push(c)}),a.push(s),a};function Xn(t){if(typeof t=="string"){const n=nt(t);if(n)return n.path}return"/"}const Qn={prepare:Yn,send:(t,n,o)=>{if(!Kt){o("abort",424);return}let a=Xn(n.provider);switch(n.type){case"icons":{const l=n.prefix,r=n.icons.join(","),c=new URLSearchParams({icons:r});a+=l+".json?"+c.toString();break}case"custom":{const l=n.uri;a+=l.slice(0,1)==="/"?l.slice(1):l;break}default:o("abort",400);return}let i=503;Kt(t+a).then(l=>{const s=l.status;if(s!==200){setTimeout(()=>{o(Zn(s)?"abort":"next",s)});return}return i=501,l.json()}).then(l=>{if(typeof l!="object"||l===null){setTimeout(()=>{o("next",i)});return}setTimeout(()=>{o("success",l)})}).catch(()=>{o("next",i)})}};function $n(t){const n={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((i,l)=>i.provider!==l.provider?i.provider.localeCompare(l.provider):i.prefix!==l.prefix?i.prefix.localeCompare(l.prefix):i.name.localeCompare(l.name));let a={provider:"",prefix:"",name:""};return t.forEach(i=>{if(a.name===i.name&&a.prefix===i.prefix&&a.provider===i.provider)return;a=i;const l=i.provider,s=i.prefix,r=i.name,c=o[l]||(o[l]=Object.create(null)),h=c[s]||(c[s]=ie(l,s));let d;r in h.icons?d=n.loaded:s===""||h.missing.has(r)?d=n.missing:d=n.pending;const m={provider:l,prefix:s,name:r};d.push(m)}),n}function Zt(t,n){t.forEach(o=>{const a=o.loaderCallbacks;a&&(o.loaderCallbacks=a.filter(i=>i.id!==n))})}function vn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let o=!1;const a=t.provider,i=t.prefix;n.forEach(l=>{const s=l.icons,r=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==i)return!0;const h=c.name;if(t.icons[h])s.loaded.push({provider:a,prefix:i,name:h});else if(t.missing.has(h))s.missing.push({provider:a,prefix:i,name:h});else return o=!0,!0;return!1}),s.pending.length!==r&&(o||Zt([t],l.id),l.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),l.abort))})}))}let el=0;function tl(t,n,o){const a=el++,i=Zt.bind(null,o,a);if(!n.pending.length)return i;const l={id:a,icons:n,callback:t,abort:i};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(l)}),i}function ol(t,n=!0,o=!1){const a=[];return t.forEach(i=>{const l=typeof i=="string"?Fe(i,n,o):i;l&&a.push(l)}),a}var nl={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ll(t,n,o,a){const i=t.resources.length,l=t.random?Math.floor(Math.random()*i):t.index;let s;if(t.random){let x=t.resources.slice(0);for(s=[];x.length>1;){const T=Math.floor(Math.random()*x.length);s.push(x[T]),x=x.slice(0,T).concat(x.slice(T+1))}s=s.concat(x)}else s=t.resources.slice(l).concat(t.resources.slice(0,l));const r=Date.now();let c="pending",h=0,d,m=null,p=[],f=[];typeof a=="function"&&f.push(a);function u(){m&&(clearTimeout(m),m=null)}function y(){c==="pending"&&(c="aborted"),u(),p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function k(x,T){T&&(f=[]),typeof x=="function"&&f.push(x)}function C(){return{startTime:r,payload:n,status:c,queriesSent:h,queriesPending:p.length,subscribe:k,abort:y}}function S(){c="failed",f.forEach(x=>{x(void 0,d)})}function w(){p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function _(x,T,M){const q=T!=="success";switch(p=p.filter(L=>L!==x),c){case"pending":break;case"failed":if(q||!t.dataAfterTimeout)return;break;default:return}if(T==="abort"){d=M,S();return}if(q){d=M,p.length||(s.length?F():S());return}if(u(),w(),!t.random){const L=t.resources.indexOf(x.resource);L!==-1&&L!==t.index&&(t.index=L)}c="completed",f.forEach(L=>{L(M)})}function F(){if(c!=="pending")return;u();const x=s.shift();if(x===void 0){if(p.length){m=setTimeout(()=>{u(),c==="pending"&&(w(),S())},t.timeout);return}S();return}const T={status:"pending",resource:x,callback:(M,q)=>{_(T,M,q)}};p.push(T),h++,m=setTimeout(F,t.rotate),o(x,n,T.callback)}return setTimeout(F),C}function Yt(t){const n={...nl,...t};let o=[];function a(){o=o.filter(r=>r().status==="pending")}function i(r,c,h){const d=ll(n,r,c,(m,p)=>{a(),h&&h(m,p)});return o.push(d),d}function l(r){return o.find(c=>r(c))||null}return{query:i,find:l,setIndex:r=>{n.index=r},getIndex:()=>n.index,cleanup:a}}function Xt(){}const lt=Object.create(null);function il(t){if(!lt[t]){const n=nt(t);if(!n)return;const o=Yt(n),a={config:n,redundancy:o};lt[t]=a}return lt[t]}function al(t,n,o){let a,i;if(typeof t=="string"){const l=et(t);if(!l)return o(void 0,424),Xt;i=l.send;const s=il(t);s&&(a=s.redundancy)}else{const l=tt(t);if(l){a=Yt(l);const s=t.resources?t.resources[0]:"",r=et(s);r&&(i=r.send)}}return!a||!i?(o(void 0,424),Xt):a.query(n,i,o)().abort}const Qt="iconify2",ge="iconify",$t=ge+"-count",vt=ge+"-version",eo=36e5,sl=168;function it(t,n){try{return t.getItem(n)}catch{}}function at(t,n,o){try{return t.setItem(n,o),!0}catch{}}function to(t,n){try{t.removeItem(n)}catch{}}function st(t,n){return at(t,$t,n.toString())}function rt(t){return parseInt(it(t,$t))||0}const Pe={local:!0,session:!0},oo={local:new Set,session:new Set};let ct=!1;function rl(t){ct=t}let Ae=typeof window>"u"?{}:window;function no(t){const n=t+"Storage";try{if(Ae&&Ae[n]&&typeof Ae[n].length=="number")return Ae[n]}catch{}Pe[t]=!1}function lo(t,n){const o=no(t);if(!o)return;const a=it(o,vt);if(a!==Qt){if(a){const r=rt(o);for(let c=0;c<r;c++)to(o,ge+c.toString())}at(o,vt,Qt),st(o,0);return}const i=Math.floor(Date.now()/eo)-sl,l=r=>{const c=ge+r.toString(),h=it(o,c);if(typeof h=="string"){try{const d=JSON.parse(h);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>i&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&n(d,r))return!0}catch{}to(o,c)}};let s=rt(o);for(let r=s-1;r>=0;r--)l(r)||(r===s-1?(s--,st(o,s)):oo[t].add(r))}function io(){if(!ct){rl(!0);for(const t in Pe)lo(t,n=>{const o=n.data,a=n.provider,i=o.prefix,l=ie(a,i);if(!$e(l,o).length)return!1;const s=o.lastModified||-1;return l.lastModifiedCached=l.lastModifiedCached?Math.min(l.lastModifiedCached,s):s,!0})}}function cl(t,n){const o=t.lastModifiedCached;if(o&&o>=n)return o===n;if(t.lastModifiedCached=n,o)for(const a in Pe)lo(a,i=>{const l=i.data;return i.provider!==t.provider||l.prefix!==t.prefix||l.lastModified===n});return!0}function dl(t,n){ct||io();function o(a){let i;if(!Pe[a]||!(i=no(a)))return;const l=oo[a];let s;if(l.size)l.delete(s=Array.from(l).shift());else if(s=rt(i),!st(i,s+1))return;const r={cached:Math.floor(Date.now()/eo),provider:t.provider,data:n};return at(i,ge+s.toString(),JSON.stringify(r))}n.lastModified&&!cl(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),o("local")||o("session"))}function ao(){}function ml(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,vn(t)}))}function hl(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:a}=t,i=t.iconsToLoad;delete t.iconsToLoad;let l;if(!i||!(l=et(o)))return;l.prepare(o,a,i).forEach(r=>{al(o,r,(c,h)=>{if(typeof c!="object"){if(h!==404)return;r.icons.forEach(d=>{t.missing.add(d)})}else try{const d=$e(t,c);if(!d.length)return;const m=t.pendingIcons;m&&d.forEach(p=>{m.delete(p)}),dl(t,c)}catch(d){console.error(d)}ml(t)})})}))}const fl=(t,n)=>{const o=ol(t,!0,jt()),a=$n(o);if(!a.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(a.loaded,a.missing,a.pending,ao)}),()=>{c=!1}}const i=Object.create(null),l=[];let s,r;return a.pending.forEach(c=>{const{provider:h,prefix:d}=c;if(d===r&&h===s)return;s=h,r=d,l.push(ie(h,d));const m=i[h]||(i[h]=Object.create(null));m[d]||(m[d]=[])}),a.pending.forEach(c=>{const{provider:h,prefix:d,name:m}=c,p=ie(h,d),f=p.pendingIcons||(p.pendingIcons=new Set);f.has(m)||(f.add(m),i[h][d].push(m))}),l.forEach(c=>{const{provider:h,prefix:d}=c;i[h][d].length&&hl(c,i[h][d])}),n?tl(n,a,l):ao};function ul(t,n){const o={...t};for(const a in n){const i=n[a],l=typeof i;a in Wt?(i===null||i&&(l==="string"||l==="number"))&&(o[a]=i):l===typeof o[a]&&(o[a]=a==="rotate"?i%4:i)}return o}const pl=/[\s,]+/;function gl(t,n){n.split(pl).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function yl(t,n=0){const o=t.replace(/^-?[0-9.]*/,"");function a(i){for(;i<0;)i+=4;return i%4}if(o===""){const i=parseInt(t);return isNaN(i)?0:a(i)}else if(o!==t){let i=0;switch(o){case"%":i=25;break;case"deg":i=90}if(i){let l=parseFloat(t.slice(0,t.length-o.length));return isNaN(l)?0:(l=l/i,l%1===0?a(l):0)}}return n}function kl(t,n){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in n)o+=" "+a+'="'+n[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function Cl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function bl(t){return'url("data:image/svg+xml,'+Cl(t)+'")'}const so={...Gt,inline:!1},Bl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},wl={display:"inline-block"},dt={backgroundColor:"currentColor"},ro={backgroundColor:"transparent"},co={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},mo={webkitMask:dt,mask:dt,background:ro};for(const t in mo){const n=mo[t];for(const o in co)n[t+o]=co[o]}const qe={};["horizontal","vertical"].forEach(t=>{const n=t.slice(0,1)+"Flip";qe[t+"-flip"]=n,qe[t.slice(0,1)+"-flip"]=n,qe[t+"Flip"]=n});function ho(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const fo=(t,n)=>{const o=ul(so,n),a={...Bl},i=n.mode||"svg",l={},s=n.style,r=typeof s=="object"&&!(s instanceof Array)?s:{};for(let y in n){const k=n[y];if(k!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[y]=k===!0||k==="true"||k===1;break;case"flip":typeof k=="string"&&gl(o,k);break;case"color":l.color=k;break;case"rotate":typeof k=="string"?o[y]=yl(k):typeof k=="number"&&(o[y]=k);break;case"ariaHidden":case"aria-hidden":k!==!0&&k!=="true"&&delete a["aria-hidden"];break;default:{const C=qe[y];C?(k===!0||k==="true"||k===1)&&(o[C]=!0):so[y]===void 0&&(a[y]=k)}}}const c=zn(t,o),h=c.attributes;if(o.inline&&(l.verticalAlign="-0.125em"),i==="svg"){a.style={...l,...r},Object.assign(a,h);let y=0,k=n.id;return typeof k=="string"&&(k=k.replace(/-/g,"_")),a.innerHTML=Wn(c.body,k?()=>k+"ID"+y++:"iconifyVue"),e.h("svg",a)}const{body:d,width:m,height:p}=t,f=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),u=kl(d,{...h,width:m+"",height:p+""});return a.style={...l,"--svg":bl(u),width:ho(h.width),height:ho(h.height),...wl,...f?dt:ro,...r},e.h("span",a)};if(jt(!0),Gn("",Qn),typeof document<"u"&&typeof window<"u"){io();const t=window;if(t.IconifyPreload!==void 0){const n=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(a=>{try{(typeof a!="object"||a===null||a instanceof Array||typeof a.icons!="object"||typeof a.prefix!="string"||!Ut(a))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let o in n){const a="IconifyProviders["+o+"] is invalid.";try{const i=n[o];if(typeof i!="object"||!i||i.resources===void 0)continue;Jn(o,i)||console.error(a)}catch{console.error(a)}}}}const _l={...De,body:""},xl=e.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Fe(t,!1,!0))===null)return this.abortLoading(),null;const a=Pn(o);if(!a)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",a!==null&&(this._loadingIcon={name:t,abort:fl([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,n&&n(t));const i=["iconify"];return o.prefix!==""&&i.push("iconify--"+o.prefix),o.provider!==""&&i.push("iconify--"+o.provider),{data:a,classes:i}}},render(){this.counter;const t=this.$attrs,n=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!n)return fo(_l,t);let o=t;return n.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+n.classes.join(" ")}),fo({...De,...n.data},o)}}),B=(t,n)=>{const o=t.__vccOpts||t;for(const[a,i]of n)o[a]=i;return o},El={name:"CmdIcon",components:{Icon:xl},props:{type:{type:String,default:"auto",validator(t){return t==="auto"||t==="iconify"}},iconClass:{type:String,required:!0},tooltip:{type:String,required:!1}},computed:{isIconify(){return this.type==="iconify"?!0:this.type==="auto"?this.iconClass.includes(":"):!1}}},Sl=["title"];function Vl(t,n,o,a,i,l){const s=e.resolveComponent("Icon");return l.isIconify?(e.openBlock(),e.createBlock(s,{key:0,icon:o.iconClass,title:o.tooltip,class:e.normalizeClass(t.$attrs.class)},null,8,["icon","title","class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([o.iconClass,t.$attrs.class]),title:o.tooltip},null,10,Sl))}const N=B(El,[["render",Vl]]);function v(t,n){return He(t,"EditComponentWrapper",n)}function Tl(t){return He(t,"EditModeSettingsSidebar")}function Nl(t){return He(t,"EditModeMainSidebar")}function He(t,n,o){var a;return((a=t==null?void 0:t.$options)==null?void 0:a.name)===n&&(o==null||o(t))?t:t!=null&&t.$parent?He(t.$parent,n,o):null}function ee(t,...n){const o=[];for(let a=v(t);a;a=v(a.$parent))a.componentPath&&o.unshift(...a.componentPath);return o.push(...n),o}function Il(t){return Array.isArray(t)&&t.length>0?JSON.stringify(t):""}function z(t,n){var o;return(o=t==null?void 0:t.$options)!=null&&o.name?{name:t.$options.name,...n}:n}const Fl={name:"EditComponentWrapper",inject:{editModeContext:{default:null}},props:{allowedComponentTypes:{type:Array},componentName:{type:String},componentProps:{type:Object},componentPath:{type:Array,required:!0},allowAddComponent:{type:Boolean},allowDeleteComponent:{type:Boolean,default:!0},showComponentName:{type:Boolean,default:!0},componentTag:{type:String},itemProvider:{type:Function}},data(){return{componentIdentifier:"",editStateListeners:[],updateHandlerProviders:[],addHandlerProvider:null,showComponentSelection:!1,showAddComponentButtons:!1,addComponentLevel:""}},computed:{isOuterComponent(){return!v(this.$parent,t=>(t==null?void 0:t.componentName)!=="CmdContainer")},active(){return this.editModeContext?v(this.$parent,n=>(n==null?void 0:n.componentName)!=="CmdContainer")?!!this.editModeContext.system.isActiveChildComponent(G(this)):!!this.editModeContext.system.isActiveComponent(G(this)):!1},editing(){var t;return(t=this.editModeContext)==null?void 0:t.content.isEditing(this.componentIdentifier)},hasSettings(){const t=`${this.componentName}Settings`;return!!e.getCurrentInstance().appContext.components[t]}},methods:{addHighlightRelatedComponent(t){t.target.parentNode.classList.add("highlight")},removeHighlightRelatedComponent(t){t.target.parentNode.classList.remove("highlight")},showActionButtons(){const t=v(this.$parent,n=>(n==null?void 0:n.componentName)!=="CmdContainer");this.editModeContext.system.setActiveComponent(G(t),G(this))},deleteComponent(){var t;!this.editing&&this.allowDeleteComponent&&confirm("Delete this component and its content?")&&((t=this.editModeContext)==null||t.store.deleteContent(G(this)),this.editModeContext.settings.stopEditing())},deleteInnerComponent(){this.editModeContext.store.deleteContent(G(this)),this.editModeContext.settings.stopEditing()},cancelComponent(t){this.editing&&(t.stopPropagation(),this.editModeContext.content.stopEditing())},editComponent(t){t==null||t.stopPropagation(),t||this.showActionButtons();const n=this.$refs.editComponent;this.editModeContext.content.startEditing(this.componentIdentifier),this.$nextTick(()=>{var o;return(o=n.querySelector("input"))==null?void 0:o.focus()})},saveComponent(){this.editModeContext.store.updateContent(G(this),this.updateHandlerProviders.map(t=>t())),this.editModeContext.content.stopEditing()},editSettings(t,n){t.stopPropagation(),!this.editing&&this.hasSettings&&this.editModeContext.settings.startEditing(this.componentIdentifier,this.componentName,this.componentProps,this.allowedComponentTypes,G(this),this.saveSettings,this.deleteInnerComponent,n||"edit")},addEntry(t){this.itemProvider?this.editModeContext.content.addContent(G(this),this.itemProvider):this.editSettings(t,"add")},saveSettings(t){this.editModeContext.store.updateSettings(G(this),t),this.editModeContext.settings.stopEditing()},addEditStateListener(t){this.editStateListeners.push(t),t(this.editing)},addUpdateHandlerProvider(t){this.updateHandlerProviders.push(t)},setAddHandlerProvider(t){t&&(this.addHandlerProvider=t)}},watch:{componentPath:{handler(){this.componentIdentifier=Il(G(this))},immediate:!0,deep:!0},editing(t){this.editStateListeners.forEach(n=>n(t))}}};function G(t){const n=[];for(let o=t;o;o=v(o.$parent))o.componentPath&&n.unshift(...o.componentPath);return n}const Ol={key:0,class:"action-buttons-wrapper"},Ml=["data-component"],Dl=["title"],Ll=["href"],Pl={key:0},Al={key:1},ql={key:0,class:"component-name"},Hl=["data-component"],zl=["title"],Rl=["href","title"],jl=["title"],Ul={key:0},Wl={key:1},Gl=["title"],Jl=["title"];function Kl(t,n,o,a,i,l){const s=N;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.componentTag||"div"),{class:e.normalizeClass(["edit-component-wrapper",{active:l.active}]),tabindex:"0",onClick:e.withModifiers(l.showActionButtons,["stop"]),ref:"editComponent",title:l.active?"Select an action from the buttons in the top-left corner":"Click to select this element","data-identifier":i.componentIdentifier},{default:e.withCtx(()=>[o.componentTag==="ul"?(e.openBlock(),e.createElementBlock("li",Ol,[e.withDirectives(e.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":o.componentName},[e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon button confirm",{disabled:!i.addHandlerProvider&&!o.itemProvider&&!o.allowAddComponent}]),href:"#",onClick:n[0]||(n[0]=e.withModifiers(r=>l.addEntry(r),["prevent"])),title:l.isOuterComponent?"Add new component":"Add new item/entry"},[e.createVNode(s,{iconClass:(l.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,Dl)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon button primary",{disabled:l.editing||!l.hasSettings}]),href:l.editing?null:"#",onClick:n[1]||(n[1]=e.withModifiers((...r)=>l.editSettings&&l.editSettings(...r),["prevent"])),title:"Edit settings of this component"},[e.createVNode(s,{iconClass:l.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,Ll)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:"icon-hexagon button-delete",href:"#",onClick:n[2]||(n[2]=e.withModifiers((...r)=>l.deleteComponent&&l.deleteComponent(...r),["prevent"])),title:"Delete this component (and its content)"},[e.createVNode(s,{iconClass:"icon-trash"})])]),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Pl,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon button-cancel",{disabled:!l.editing}]),href:"#",onClick:n[3]||(n[3]=e.withModifiers((...r)=>l.cancelComponent&&l.cancelComponent(...r),["prevent"])),title:"Cancel editing (changes will not be saved)"},[e.createVNode(s,{iconClass:"icon-cancel"})],2)])),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Al,[l.editing?(e.openBlock(),e.createElementBlock("a",{key:0,class:"icon-hexagon button-save",href:"#",onClick:n[4]||(n[4]=e.withModifiers((...r)=>l.saveComponent&&l.saveComponent(...r),["prevent"])),title:"Save changes of this component"},[e.createVNode(s,{iconClass:"icon-check"})])):(e.openBlock(),e.createElementBlock("a",{key:1,class:e.normalizeClass(["icon-hexagon button",{disabled:l.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:n[5]||(n[5]=e.withModifiers((...r)=>l.editComponent&&l.editComponent(...r),["prevent"])),title:"Edit content of this component"},[e.createVNode(s,{iconClass:"icon-edit"})],2))]))],8,Ml),[[e.vShow,l.active]])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isOuterComponent?(e.openBlock(),e.createElementBlock("p",ql,e.toDisplayString(o.componentName),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":o.componentName,onMouseenter:n[12]||(n[12]=(...r)=>l.addHighlightRelatedComponent&&l.addHighlightRelatedComponent(...r)),onMouseleave:n[13]||(n[13]=(...r)=>l.removeHighlightRelatedComponent&&l.removeHighlightRelatedComponent(...r))},[e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:!i.addHandlerProvider&&!o.itemProvider&&!o.allowAddComponent}]),href:"#",onClick:n[6]||(n[6]=e.withModifiers((...r)=>l.addEntry&&l.addEntry(...r),["prevent"])),title:l.isOuterComponent?"Add new component":"Add new item/entry"},[e.createVNode(s,{iconClass:(l.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,zl)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button primary",{disabled:l.editing||!l.hasSettings}]),href:l.editing?null:"#",onClick:n[7]||(n[7]=e.withModifiers((...r)=>l.editSettings&&l.editSettings(...r),["prevent"])),title:"Edit settings for "+o.componentName},[e.createVNode(s,{iconClass:l.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,Rl)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button button-delete",{disabled:l.editing||!o.allowDeleteComponent}]),href:"#",onClick:n[8]||(n[8]=e.withModifiers((...r)=>l.deleteComponent&&l.deleteComponent(...r),["prevent"])),title:"Delete "+o.componentName+" (and its content)"},[e.createVNode(s,{iconClass:"icon-trash"})],10,jl)]),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Ul,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button cancel",{disabled:!l.editing}]),href:"#",onClick:n[9]||(n[9]=e.withModifiers((...r)=>l.cancelComponent&&l.cancelComponent(...r),["prevent"])),title:"Cancel editing (changes will not be saved)"},[e.createVNode(s,{iconClass:"icon-cancel"})],2)])),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Wl,[l.editing?(e.openBlock(),e.createElementBlock("a",{key:0,class:"icon-hexagon use-icon-as-background button confirm",href:"#",onClick:n[10]||(n[10]=e.withModifiers((...r)=>l.saveComponent&&l.saveComponent(...r),["prevent"])),title:"Save changes of "+o.componentName},[e.createVNode(s,{iconClass:"icon-check"})],8,Gl)):(e.openBlock(),e.createElementBlock("a",{key:1,class:e.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:l.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:n[11]||(n[11]=e.withModifiers((...r)=>l.editComponent&&l.editComponent(...r),["prevent"])),title:"Edit content for "+o.componentName},[e.createVNode(s,{iconClass:"icon-edit"})],10,Jl))]))],40,Hl),[[e.vShow,l.active]])],64)),e.renderSlot(t.$slots,"default",{editing:l.editing})]),_:3},8,["class","onClick","title","data-identifier"])}const te=B(Fl,[["render",Kl]]),P={inject:{editModeContext:{default:null}},props:{componentPath:{type:Array},editModeConfig:{type:Object}},data(){return{editing:!1,settingsContext:!1,mainSidebarContext:!1}},mounted(){this.initializeEditMode()},methods:{initializeEditMode(){var t;if(this.$refs.editComponentWrapper)(t=this.$refs.editComponentWrapper)==null||t.addUpdateHandlerProvider(this.updateHandlerProvider);else{const n=v(this.$parent);n&&(n.addEditStateListener(o=>this.editing=o),n.addUpdateHandlerProvider(this.updateHandlerProvider),n.setAddHandlerProvider(this.addHandlerProvider))}this.mainSidebarContext=!!Nl(this),this.settingsContext=!!Tl(this)},updateHandlerProvider(){return{}}}},Zl={name:"CmdHeadline",mixins:[P],data(){return{editableHeadlineText:null,editablePreHeadlineText:null}},props:{headlineText:{type:String,required:!1},headlineLevel:{type:[String,Number],default:"2"},preHeadlineText:{type:String,required:!1},headlineIcon:{type:Object,required:!1},textAlign:{type:String,default:null,validator(t){return t==="left"||t==="center"||t==="right"}}},computed:{componentActive(){var t;return(t=this.editModeContext)==null?void 0:t.system.isActiveComponent(ee(v(this)))},headlineComponentPath(){return this.componentPath||["props","cmdHeadline"]},headlineTag(){return this.headlineLevel?"h"+this.headlineLevel:""},getTextAlign(){return this.textAlign?"text-"+this.textAlign:""}},methods:{updateHandlerProvider(){const t=this.editableHeadlineText,n=this.editablePreHeadlineText,o=this.headlineLevel;return z(this,{update(a){a.headlineText=t,a.preHeadlineText=n,a.headlineLevel=o}})},onAddItem(){this.$refs.editComponentWrapper.editComponent()}},watch:{headlineText:{handler(){this.editableHeadlineText=this.headlineText},immediate:!0},preHeadlineText:{handler(){this.editablePreHeadlineText=this.preHeadlineText},immediate:!0}}},Yl={class:"pre-headline-text-wrapper"},Xl={class:"pre-headline-text"},Ql={class:"pre-headline-text"},$l=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new headline",-1)];function vl(t,n,o,a,i,l){var h;const s=N,r=A,c=te;return!t.editModeContext||t.settingsContext||t.mainSidebarContext?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cmd-headline",{"has-pre-headline-text":o.preHeadlineText,"has-icon":(h=o.headlineIcon)==null?void 0:h.iconClass},l.getTextAlign])},[o.preHeadlineText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.headlineText?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:0},{default:e.withCtx(()=>{var d,m;return[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(d=o.headlineIcon)==null?void 0:d.iconClass,type:(m=o.headlineIcon)==null?void 0:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",Yl,[e.createElementVNode("span",Xl,e.toDisplayString(o.preHeadlineText),1),e.createElementVNode("span",null,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])])])]}),_:3})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:1},{default:e.withCtx(()=>{var d,m;return[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(d=o.headlineIcon)==null?void 0:d.iconClass,type:(m=o.headlineIcon)==null?void 0:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])])]}),_:3}))],2)):(e.openBlock(),e.createBlock(c,{key:1,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdHeadline",componentProps:{headlineText:o.headlineText,headlineLevel:o.headlineLevel},componentPath:l.headlineComponentPath,allowDeleteComponent:!!o.headlineText},{default:e.withCtx(d=>{var m,p;return[d.editing?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:"text",class:e.normalizeClass(["edit-mode","headline","h"+o.headlineLevel,l.getTextAlign]),labelText:"Headline",showLabel:!1,placeholder:"Headline",modelValue:i.editableHeadlineText,"onUpdate:modelValue":n[0]||(n[0]=f=>i.editableHeadlineText=f)},null,8,["class","modelValue"])):o.headlineText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(m=o.headlineIcon)==null?void 0:m.iconClass,type:(p=o.headlineIcon)==null?void 0:p.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.preHeadlineText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headlineText?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:0},{default:e.withCtx(()=>{var f,u;return[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(f=o.headlineIcon)==null?void 0:f.iconClass,type:(u=o.headlineIcon)==null?void 0:u.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",Ql,e.toDisplayString(o.preHeadlineText),1),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])]}),_:3})):e.createCommentVNode("",!0)],64)):o.headlineText?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:2},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])]),_:3})):e.createCommentVNode("",!0)],64)):l.componentActive?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"button confirm",onClick:n[1]||(n[1]=(...f)=>l.onAddItem&&l.onAddItem(...f))},$l)):e.createCommentVNode("",!0)]}),_:3},8,["componentProps","componentPath","allowDeleteComponent"]))}const O=B(Zl,[["render",vl]]),ei={name:"CmdTooltip",data(){return{tooltipVisibility:!1,pointerX:0,pointerY:0}},props:{cmdHeadline:{type:Object,default(){}},tooltipText:{type:String,required:!1},delayToShowTooltip:{type:Number,default:0},relatedId:{type:String,required:!1},validationStatus:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},scrollContainer:{type:String,default:".page-wrapper"},iconClose:{type:Object,default(){return{show:!0,iconClass:"icon-cancel",tooltip:"Close this tooltip!"}}},toggleVisibilityByClick:{type:Boolean,default:!1}},mounted(){if(this.relatedId){const t=document.getElementById(this.relatedId);t&&(document.querySelector(this.scrollContainer).addEventListener("scroll",this.hideTooltip),document.addEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?t.addEventListener("click",this.toggleTooltipVisibility):(t.addEventListener("mouseenter",this.showTooltip),t.addEventListener("mouseleave",this.hideTooltip)))}},methods:{toggleTooltipVisibility(t){this.getPointerPosition(t),this.tooltipVisibility=!this.tooltipVisibility},showTooltip(t){this.delayToShowTooltip>0?setTimeout(()=>{this.toggleVisibility(t)},this.delayToShowTooltip):this.toggleVisibility(t)},toggleVisibility(t){this.toggleVisibilityByClick||(this.tooltipVisibility=!0),this.getPointerPosition(t)},hideTooltipOnEsc(t){this.allowEscapeKey&&(t.key==="Escape"||t.key==="Esc")&&this.hideTooltip()},hideTooltip(){this.tooltipVisibility=!1},getPointerPosition(t){this.pointerX=t.clientX,this.pointerY=t.clientY}},unmounted(){if(this.relatedId){const t=document.getElementById(this.relatedId);t&&(document.removeEventListener("scroll",this.hideTooltip),document.removeEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?t.removeEventListener("click",this.toggleTooltipVisibility):(t.removeEventListener("mouseenter",this.showTooltip),t.removeEventListener("mouseleave",this.showTooltip)))}},watch:{tooltipVisibility(){this.tooltipVisibility&&this.$nextTick(()=>{this.$refs.tooltip.style.left=this.pointerX/10+"rem",this.$refs.tooltip.style.top=(this.pointerY+25)/10+"rem"})}}},ti={key:0,class:"headline-wrapper"},oi=["title"];function ni(t,n,o,a,i,l){const s=O,r=N;return i.tooltipVisibility?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cmd-tooltip",o.validationStatus]),ref:"tooltip"},[o.cmdHeadline||o.iconClose.show?(e.openBlock(),e.createElementBlock("div",ti,[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.cmdHeadline.iconClass,preHeadline:o.cmdHeadline.preHeadline,headlineLevel:o.cmdHeadline.headlineLevel,headlineText:o.cmdHeadline.headlineText},null,8,["iconClass","preHeadline","headlineLevel","headlineText"])):e.createCommentVNode("",!0),o.iconClose.show&&o.toggleVisibilityByClick?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.hideTooltip&&l.hideTooltip(...c),["prevent"])),title:o.iconClose.tooltip},[e.createVNode(r,{iconClass:o.iconClose.iconClass,type:o.iconClose.iconType},null,8,["iconClass","type"])],8,oi)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.tooltipText),1)])],2)):e.createCommentVNode("",!0)}const uo=B(ei,[["render",ni]]),j={props:{i18n:{type:[Object,Function],default:()=>({})}},methods:{getMessage(t,...n){if(!t)return"";let o=this.i18n;if(typeof this.i18n=="function"&&(o=this.i18n.call(this,t,n),typeof o!="object"))return o;let a=o[t]||this.getDefaultMessageProperty(t)||t;return typeof a=="function"?a.call(this,n||[]):(Array.isArray(n)&&n.length&&n.forEach((i,l)=>a=a.replace("{"+l+"}",i)),a)},getDefaultMessageProperty(t){var o;if(Object.hasOwn(this,"defaultMessageProperties")&&this.defaultMessageProperties&&this.defaultMessageProperties[t])return this.defaultMessageProperties[t];const n=Object.hasOwn(this,"fieldValidationDefaultMessageProperties")?"fieldValidationDefaultMessageProperties":null;return n&&((o=this[n])!=null&&o[t])?this[n][t]:null}}},li={name:"CmdListOfRequirements",mixins:[j,{data(){return{defaultMessageProperties:{"cmdlistofrequirements.headline.requirement_for_input":"Requirement for input","cmdlistofrequirements.headline.requirements_for_input":"Requirements for input"}}}}],props:{inputModelValue:{type:[String,Boolean,Array,Number],default:""},inputAttributes:{type:Object,required:!0},labelText:{type:String,required:!1},inputRequirements:{type:Array,required:!0},helplink:{type:Object,required:!1},iconSuccess:{type:Object,default(){return{iconClass:"icon-check-circle",tooltip:"success"}}},iconError:{type:Object,default(){return{iconClass:"icon-error-circle",tooltip:"error"}}},showHeadline:{type:Boolean,default:!0},cmdHeadline:{type:Object,default(){return{headlineLevel:6}}}},computed:{headlineRequirements(){return this.inputRequirements.length>1?this.getMessage("cmdlistofrequirements.headline.requirements_for_input"):this.getMessage("cmdlistofrequirements.headline.requirement_for_input")}}},ii={class:"cmd-list-of-requirements"},ai=e.createElementVNode("br",null,null,-1),si=e.createElementVNode("hr",null,null,-1),ri=["href","target"],ci={key:1};function di(t,n,o,a,i,l){var c,h,d;const s=O,r=N;return e.openBlock(),e.createElementBlock("div",ii,[o.showHeadline?(e.openBlock(),e.createBlock(s,{key:0,"headline-level":o.cmdHeadline.headlineLevel},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.headlineRequirements),1),o.labelText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ai,e.createElementVNode("em",null,e.toDisplayString(o.labelText),1)],64)):e.createCommentVNode("",!0)]),_:1},8,["headline-level"])):e.createCommentVNode("",!0),e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.inputRequirements,(m,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[e.createElementVNode("dt",{"aria-live":"assertive",class:e.normalizeClass(m.valid(o.inputModelValue,o.inputAttributes)?"success":"error")},e.toDisplayString(m.message)+":",3),e.createElementVNode("dd",{class:e.normalizeClass(m.valid(o.inputModelValue,o.inputAttributes)?"success":"error")},[e.createVNode(r,{"aria-live":"assertive",iconClass:m.valid(o.inputModelValue,o.inputAttributes)?o.iconSuccess.iconClass:o.iconError.iconClass,type:m.valid(o.inputModelValue,o.inputAttributes)?o.iconSuccess.iconType:o.iconError.iconType,title:m.valid(o.inputModelValue,o.inputAttributes)?o.iconSuccess.tooltip:o.iconError.tooltip},null,8,["iconClass","type","title"])],2)],64))),128))]),o.helplink&&o.helplink.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[si,o.helplink.url?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.helplink.url,target:o.helplink.target,onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"]))},[(c=o.helplink.icon)!=null&&c.iconClass?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass((h=o.helplink.icon)==null?void 0:h.iconClass),title:(d=o.helplink.icon)==null?void 0:d.tooltip},null,8,["class","title"])):e.createCommentVNode("",!0),o.helplink.text?(e.openBlock(),e.createElementBlock("span",ci,e.toDisplayString(o.helplink.text),1)):e.createCommentVNode("",!0)],8,ri)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])}const mi=B(li,[["render",di]]),hi={name:"CmdTooltipForFormElements",props:{relatedId:{type:String,default:""},validationStatus:{type:String,default:"",validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},cmdListOfRequirements:{type:Object,default(){return{showRequirements:!0,validationTooltip:"",inputRequirements:[],inputAttributes:{},showHeadline:!0,inputModelValue:"",helplink:{},labelText:""}}}},methods:{hideTooltip(){this.$refs.tooltip.hideTooltip()}}};function fi(t,n,o,a,i,l){const s=mi,r=uo;return e.openBlock(),e.createBlock(r,{ref:"tooltip",class:e.normalizeClass(["box cmd-tooltip-for-form-elements",o.validationStatus]),relatedId:o.relatedId,"toggle-visibility-by-click":!0},{default:e.withCtx(()=>[o.cmdListOfRequirements.showRequirements?(e.openBlock(),e.createBlock(s,{key:0,showHeadline:o.cmdListOfRequirements.showHeadline,inputRequirements:o.cmdListOfRequirements.inputRequirements,helplink:o.cmdListOfRequirements.helplink,inputModelValue:o.cmdListOfRequirements.inputModelValue,inputAttributes:o.cmdListOfRequirements.inputAttributes,labelText:o.cmdListOfRequirements.labelText},null,8,["showHeadline","inputRequirements","helplink","inputModelValue","inputAttributes","labelText"])):e.createCommentVNode("",!0)]),_:1},8,["class","relatedId"])}const mt=B(hi,[["render",fi]]),ht={data(){return{defaultMessageProperties:{"cmdformelement.headline.requirements_for_input":"Requirements for input","cmdformelement.validationTooltip.an_error_occurred":"An error occurred!","cmdformelement.validationTooltip.information_is_filled_correctly":"This information is filled correctly!","cmdformelement.validationTooltip.caps_lock_is_activated":"Attention: Caps lock is activated!","cmdformelement.validationTooltip.open_field_requirements":"Open field requirements!","cmdformelement.validationTooltip.is_valid_email":"Is valid e-mail-address"}}}},ze={data(){return{validationStatus:"",capsLockActivated:!1}},mixins:[j,{data(){return{fieldValidationDefaultMessageProperties:{"cmdfieldvalidation.open_detailed_help":"Open detailed help!","cmdfieldvalidation.information_not_filled_correctly":"This information is not filled correctly!","cmdfieldvalidation.information_filled_correctly":"This information is filled correctly!","cmdfieldvalidation.caps_lock_is_activated":"Attention: Caps lock is activated!","cmdfieldvalidation.required_field_is_filled":"Required field is filled!","cmdfieldvalidation.field_contains_special_character":"Field contains special character","cmdfieldvalidation.input_has_minimum_length":"Input has minimum length"}}}}],props:{validationMessage:{type:String,required:!1},helplink:{type:Object,default(){return{show:!0,url:"helpurl",target:"help",text:"Open help",icon:{iconClass:"icon-questionmark-circle",tooltip:"Open help in new tab",iconType:"auto"}}}},customRequirements:{type:Array,required:!1},showRequirements:{type:Boolean,default:!0},iconHasStateError:{type:Object,default(){return{iconClass:"icon-error-circle",tooltip:"Error",iconType:"auto"}}},iconHasStateWarning:{type:Object,default(){return{iconClass:"icon-exclamation-circle",tooltip:"Warning",iconType:"auto"}}},iconHasStateSuccess:{type:Object,default(){return{iconClass:"icon-check-circle",tooltip:"Success",iconType:"auto"}}},iconHasStateInfo:{type:Object,default(){return{iconClass:"icon-info-circle",tooltip:"Info",iconType:"auto"}}},iconCapsLock:{type:Object,default(){return{iconClass:"icon-caps-lock-circle",iconType:"auto"}}},iconPasswordVisible:{type:Object,default(){return{iconClass:"icon-visible",tooltip:"Show password",iconType:"auto"}}},iconPasswordInvisible:{type:Object,default(){return{iconClass:"icon-not-visible",iconType:"auto"}}},cmdListOfRequirements:{type:Object,required:!1}},computed:{listOfRequirements(){return this.cmdListOfRequirements==null?{showRequirements:!0,showHeadline:!0,validationTooltip:this.validationTooltip,inputRequirements:this.inputRequirements,inputAttributes:this.$attrs,inputModelValue:this.modelValue,helplink:{},labelText:this.labelText}:this.cmdListOfRequirements},getValidationMessage(){if(this.validationStatus!==""){if(this.validationStatus==="error")return this.validationMessage?this.validationMessage:this.getMessage("cmdfieldvalidation.information_not_filled_correctly");if(this.validationStatus==="warning"&&this.capsLockActivated)return this.getMessage("cmdfieldvalidation.caps_lock_is_activated");if(this.validationStatus==="success")return this.getMessage("cmdfieldvalidation.information_filled_correctly")}return null},getStatusIconClass(){return this.validationStatus!==""?this.capsLockActivated?this.iconCapsLock.iconClass:this.validationStatus==="error"?this.iconHasStateError.iconClass:this.validationStatus==="warning"?this.iconHasStateWarning.iconClass:this.validationStatus==="success"?this.iconHasStateSuccess.iconClass:this.iconHasStateInfo.iconClass:this.helplink.icon.iconClass},inputRequirements(){const t=[];if(this.$attrs.required||Object.hasOwn(this,"required")&&this.required){const n=Object.hasOwn(this,"required")?this.required:this.$attrs.required;t.push({message:this.getRequirementMessage(),valid(o,a){return!a.required&&!n||o!=null&&String(o).length>0}})}return this.$attrs.minlength&&t.push({message:this.getMessage("cmdfieldvalidation.input_has_minimum_length")+" ("+this.modelValue.length+"/"+this.$attrs.minlength+")",valid(n,o){return n.length>=o.minlength}}),[...t,...this.additionalStandardRequirements()||[],...this.customRequirements||[]]}},methods:{checkForCapsLock(t){["password","number","url","email"].includes(this.$attrs.type)&&t.getModifierState("CapsLock")?(this.capsLockActivated=!0,this.validationStatus="warning"):this.capsLockActivated&&this.validationStatus==="warning"&&(this.capsLockActivated=!1,this.validationStatus="")},additionalStandardRequirements(){return[]},getRequirementMessage(){return this.getMessage("cmdfieldvalidation.required_field_is_filled")}},watch:{validationStatus:{handler(){this.$emit("validation-status-change",this.validationStatus)}}}};function ce(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const o=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?o:o&3|8).toString(16)})}function ft(){return"cmd-"+ce()}const ye={props:{id:{type:String,required:!1}},computed:{htmlId(){return this.id||ft()}},methods:{buildHtmlId(...t){return t.map(n=>n.replace(/\s/g,"")).join("")}}},ut={};function ui(t="defaultSequence"){const n=ut[t]||0;return ut[t]=n+1,ut[t]}const pt={data(){return{tooltip:!1,tooltipId:"tooltip-"+ui()}},props:{useCustomTooltip:{type:Boolean,default:!0},allowEscapeKey:{type:Boolean,default:!0}}},pi=["color","date","datetime-local","file","number","range"],gi={inheritAttrs:!1,name:"CmdFormElement",mixins:[j,ht,ze,ye,pt],data(){return{errorOccurred:0}},props:{modelValue:{type:[String,Boolean,Array,Number],default:""},element:{type:String,validator(t){return t==="input"||t==="select"||t==="textarea"||t==="button"},required:!0},showLabel:{type:Boolean,default:!0},labelText:{type:String,required:!1},toggleSwitch:{type:Boolean,default:!1},onLabel:{type:String,required:!1},offLabel:{type:String,required:!1},colored:{type:Boolean,required:!1},inputValue:{type:[String,Number],required:!1},replaceInputType:{type:Boolean,default:!1},inputClass:{type:String,required:!1},datalist:{type:Object,required:!1},selectOptions:{type:Array,required:!1},showStatusIcon:{type:Boolean,default:!0},nativeButton:{type:Object,default(){return{text:"",icon:{show:!0,iconClass:"",position:"left",tooltip:""}}}},fieldIconClass:{type:String,required:!1},displayLabelInline:{type:Boolean,required:!1},status:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},showCharactersTextarea:{type:Boolean,default:!0},textCharactersLeft:{type:String,default:"Characters left:"},showSearchButton:{type:Boolean,default:!0},iconDelete:{type:Object,default(){return{show:!0,iconClass:"icon-cancel-circle",tooltip:"Delete term"}}},iconSearch:{type:Object,default(){return{show:!0,iconClass:"icon-search",tooltip:"Search"}}},iconHasStateError:{type:Object,default(){return{show:!0,iconClass:"icon-error-circle",tooltip:"Error"}}},iconHasStateWarning:{type:Object,default(){return{show:!0,iconClass:"icon-warning-circle",tooltip:"Warning"}}},iconHasStateSuccess:{type:Object,default(){return{show:!0,iconClass:"icon-check-circle",tooltip:"Success"}}},iconHasStateInfo:{type:Object,default(){return{show:!0,iconClass:"icon-info-circle",tooltip:"Info"}}},useIconsForToggleSwitch:{type:Boolean,default:!1},toggleSwitchCheckedIconClass:{type:String,default:"icon-check-circle"},toggleSwitchUncheckedIconClass:{type:String,default:"icon-cancel-circle"},iconPasswordVisible:{type:Object,default(){return{show:!0,iconClass:"icon-visible",tooltip:"Show password"}}},iconPasswordInvisible:{type:Object,default(){return{show:!0,iconClass:"icon-not-visible"}}}},computed:{elementAttributes(){const t=["name","required","readonly","disabled","autofocus"],n={input:[...t,"type","minlength","pattern","min","max","multiple","step","autocomplete","placeholder"],select:[...t,"multiple"],textarea:[...t,"placeholder"]},o={};return n[this.element]&&Object.entries(this.$attrs).filter(([a])=>n[this.element].includes(a)).forEach(([a,i])=>o[a]=i),o},buttonAttrs(){var n,o;const t={...this.$attrs};return(n=this.nativeButton.icon)!=null&&n.tooltip&&(t.title=(o=this.nativeButton.icon)==null?void 0:o.tooltip),t},tooltipHeadline(){return{text:this.labelText,level:"5"}},isChecked(){return typeof this.modelValue=="boolean"?this.modelValue:typeof this.modelValue=="string"?this.modelValue===this.inputValue:typeof this.modelValue=="number"?this.modelValue===this.inputValue:this.modelValue!==void 0?this.modelValue.includes(this.inputValue):!1},charactersLeft(){return this.getMaxLength()-this.modelValue.length},validationTooltip(){return this.useCustomTooltip?this.validationStatus==="error"?this.getMessage("cmdformelement.validationTooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("cmdformelement.validationTooltip.information_is_filled_correctly"):this.capsLockActivated?this.getMessage("cmdformelement.validationTooltip.caps_lock_is_activated"):this.getMessage("cmdformelement.validationTooltip.open_field_requirements"):this.getValidationMessage},autocomplete(){return this.$attrs.type!=="file"?this.datalist?"off":"on":null},toggleSwitchIconClass(){return this.toggleSwitch&&this.useIconsForToggleSwitch&&this.toggleSwitchUncheckedIconClass&&this.toggleSwitchCheckedIconClass?this.isChecked?this.toggleSwitchCheckedIconClass:this.toggleSwitchUncheckedIconClass:null}},methods:{setFocus(){var t;(t=this.$refs.label.querySelector("input, select, textarea"))==null||t.focus()},additionalStandardRequirements(){const t=[];return this.$attrs.type==="email"&&t.push({message:this.getMessage("cmdformelement.validationTooltip.is_valid_email"),valid:()=>this.$refs.input.checkValidity()}),t},getDomElement(){return this.$refs.label},getMaxLength(){return this.$attrs.element==="textarea"?this.$attrs.maxlength>0?this.$attrs.maxlength:5e3:pi.includes(this.$attrs.type)?null:this.$attrs.maxlength>0?this.$attrs.maxlength:255},validateInput(t){var o;((o=t.target.closest("form"))==null?void 0:o.dataset.useValidation)==="true"&&(!["checkbox","radio"].includes(this.$attrs.type)&&this.modelValue&&(this.validationStatus="success"),typeof t.target.checkValidity=="function"&&!t.target.checkValidity()?this.validationStatus="error":this.customRequirements&&this.customRequirements.some(i=>!i.valid(this.modelValue))&&(this.validationStatus="error"),this.$emit("validation-status-change",this.validationStatus))},onBlur(t){this.validateInput(t),this.closeTooltipOnBlur()},onInput(t){this.validateInput(t),this.$emit("update:modelValue",t.target.value)},onChange(t){if(typeof this.modelValue=="boolean")this.$emit("update:modelValue",t.target.checked);else if(typeof this.modelValue=="string")this.$emit("update:modelValue",t.target.value);else if(this.modelValue!==void 0){let n=[...this.modelValue];t.target.checked?n.push(t.target.value):n=n.filter(o=>o!==t.target.value),this.$emit("update:modelValue",n)}},datalistFocus(){this.datalist&&this.$refs.label.focus()},showPassword(){const t=this.$refs.input,n=t.value;t.nextElementSibling.classList.replace(this.iconPasswordVisible.iconClass,this.iconPasswordInvisible.iconClass),t.setAttribute("type","text"),t.setAttribute("value",n)},hidePassword(){this.$refs.input.nextElementSibling.classList.replace(this.iconPasswordInvisible.iconClass,this.iconPasswordVisible.iconClass),this.$refs.input.setAttribute("type","password")},executeSearch(){this.$emit("search",this.value)},closeTooltipOnBlur(){this.$refs.tooltip&&this.$refs.tooltip.hideTooltip()},submit(t){this.$emit("submit",t)}},watch:{status:{handler(){this.validationStatus=this.status||""},immediate:!0}}},yi=["for","title"],ki={key:2,"aria-hidden":"true"},Ci=["title","aria-errormessage","id"],bi={key:1,class:"flex-container"},Bi=["id","autocomplete","list","value","maxlength"],wi=["title"],_i=["id"],xi=["value"],Ei=["checked","value","id","disabled","aria-invalid"],Si={key:2},Vi={class:"switch-label-wrapper"},Ti=["checked","value","id","disabled","aria-invalid"],Ni={class:"label-text"},Ii={class:"label-text"},Fi={key:0},Oi=["id"],Mi=["value","selected"],Di=["id","value","maxlength"],Li={key:6,class:"characters-left-wrapper"},Pi={key:0},Ai={key:7,class:"search-field-wrapper flex-container no-gap"},qi=["id","maxlength","value"],Hi=["title"],zi=["title"],Ri={key:1};function ji(t,n,o,a,i,l){var c,h,d,m,p,f,u,y,k,C,S,w,_,F,x,T,M,q,L,Z,Y,X,H,le;const s=N,r=mt;return o.element==="input"||o.element==="select"||o.element==="textarea"?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["cmd-form-element",t.validationStatus,t.$attrs.class,{disabled:t.$attrs.disabled,inline:o.displayLabelInline,"toggle-switch":o.toggleSwitch,colored:o.colored,"has-state":t.validationStatus}]),for:t.htmlId,title:t.$attrs.title,ref:"label"},[(o.labelText||t.$slots.labeltext)&&t.$attrs.type!=="checkbox"&&t.$attrs.type!=="radio"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},[e.createElementVNode("span",null,[o.labelText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.labelText),1)],64)):e.renderSlot(t.$slots,"labeltext",{key:1}),t.$attrs.required!=null&&t.$attrs.required!==!1?(e.openBlock(),e.createElementBlock("sup",ki,"*")):e.createCommentVNode("",!0)]),(t.$attrs.required||t.inputRequirements.length)&&o.showStatusIcon?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),title:l.validationTooltip,"aria-errormessage":t.tooltipId,"aria-live":"assertive",id:t.tooltipId},[e.createVNode(s,{iconClass:t.getStatusIconClass},null,8,["iconClass"])],8,Ci)):e.createCommentVNode("",!0),t.useCustomTooltip&&(t.validationStatus===""||t.validationStatus==="error")?(e.openBlock(),e.createBlock(r,{key:1,ref:"tooltip",validationStatus:t.validationStatus,relatedId:t.tooltipId,cmdListOfRequirements:t.listOfRequirements,role:t.validationStatus==="error"?"alert":"dialog"},null,8,["validationStatus","relatedId","cmdListOfRequirements","role"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.$attrs.type!=="checkbox"&&t.$attrs.type!=="radio"&&t.$attrs.type!=="search"?(e.openBlock(),e.createElementBlock("span",bi,[o.fieldIconClass?(e.openBlock(),e.createBlock(s,{key:0,class:"place-inside",iconClass:o.fieldIconClass},null,8,["iconClass"])):e.createCommentVNode("",!0),o.element==="input"&&t.$attrs.type!=="search"?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:1},l.elementAttributes,{id:t.htmlId,class:o.inputClass,onFocus:n[1]||(n[1]=E=>t.tooltip=!0),onBlur:n[2]||(n[2]=(...E)=>l.onBlur&&l.onBlur(...E)),onInput:n[3]||(n[3]=(...E)=>l.onInput&&l.onInput(...E)),onMouseover:n[4]||(n[4]=(...E)=>l.datalistFocus&&l.datalistFocus(...E)),onKeyup:n[5]||(n[5]=(...E)=>t.checkForCapsLock&&t.checkForCapsLock(...E)),onChange:n[6]||(n[6]=E=>t.$emit("change",E)),autocomplete:l.autocomplete,list:o.datalist?o.datalist.id:null,value:o.modelValue,maxlength:l.getMaxLength(),ref:"input"}),null,16,Bi)):e.createCommentVNode("",!0),t.$attrs.type==="password"?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",class:"place-inside",onMousedown:n[7]||(n[7]=e.withModifiers((...E)=>l.showPassword&&l.showPassword(...E),["prevent"])),onMouseup:n[8]||(n[8]=e.withModifiers((...E)=>l.hidePassword&&l.hidePassword(...E),["prevent"])),onMouseleave:n[9]||(n[9]=e.withModifiers((...E)=>l.hidePassword&&l.hidePassword(...E),["prevent"])),onClick:n[10]||(n[10]=e.withModifiers(()=>{},["prevent"])),title:o.iconPasswordVisible.tooltip},[e.createVNode(s,{iconClass:o.iconPasswordVisible.iconClass},null,8,["iconClass"])],40,wi)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.datalist&&o.datalist.options.length?(e.openBlock(),e.createElementBlock("datalist",{key:2,id:o.datalist.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.datalist.options,(E,$)=>(e.openBlock(),e.createElementBlock("option",{key:$,value:E},null,8,xi))),128))],8,_i)):o.element==="input"&&(t.$attrs.type==="checkbox"||t.$attrs.type==="radio")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[o.onLabel&&o.offLabel?o.onLabel&&o.offLabel?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",Vi,[e.createElementVNode("input",e.mergeProps(l.elementAttributes,{onChange:n[13]||(n[13]=(...E)=>l.onChange&&l.onChange(...E)),onBlur:n[14]||(n[14]=(...E)=>l.onBlur&&l.onBlur(...E)),checked:l.isChecked,value:o.inputValue,class:{inputClass:o.inputClass,validationStatus:t.validationStatus},id:t.htmlId,disabled:t.$attrs.disabled,"aria-invalid":t.validationStatus==="error"}),null,16,Ti),e.createElementVNode("span",Ni,e.toDisplayString(o.onLabel),1),e.createElementVNode("span",Ii,e.toDisplayString(o.offLabel),1)]),o.labelText?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(o.labelText),1),t.$attrs.required?(e.openBlock(),e.createElementBlock("sup",Fi,"*")):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],64)):e.renderSlot(t.$slots,"default",{key:2}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("input",e.mergeProps(l.elementAttributes,{onChange:n[11]||(n[11]=(...E)=>l.onChange&&l.onChange(...E)),onBlur:n[12]||(n[12]=(...E)=>l.onBlur&&l.onBlur(...E)),checked:l.isChecked,value:o.inputValue,class:[o.inputClass,t.validationStatus,l.toggleSwitchIconClass,{"replace-input-type":o.replaceInputType}],id:t.htmlId,disabled:t.$attrs.disabled,"aria-invalid":t.validationStatus==="error"}),null,16,Ei),o.labelText||t.$slots.labeltext?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},[e.createElementVNode("span",null,[o.labelText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.labelText),1)],64)):e.renderSlot(t.$slots,"labeltext",{key:1}),t.$attrs.required?(e.openBlock(),e.createElementBlock("sup",Si,"*")):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),o.element==="select"?(e.openBlock(),e.createElementBlock("select",e.mergeProps({key:4},l.elementAttributes,{id:t.htmlId,onBlur:n[15]||(n[15]=(...E)=>l.onBlur&&l.onBlur(...E)),onChange:n[16]||(n[16]=E=>t.$emit("update:modelValue",E.target.value))}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectOptions,(E,$)=>(e.openBlock(),e.createElementBlock("option",{key:$,value:E.value,selected:E.value===o.modelValue},e.toDisplayString(E.text),9,Mi))),128))],16,Oi)):e.createCommentVNode("",!0),o.element==="textarea"?(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:5},l.elementAttributes,{id:t.htmlId,value:o.modelValue,maxlength:l.getMaxLength(),onInput:n[17]||(n[17]=(...E)=>l.onInput&&l.onInput(...E)),onFocus:n[18]||(n[18]=E=>t.tooltip=!0),onBlur:n[19]||(n[19]=(...E)=>l.onBlur&&l.onBlur(...E))}),null,16,Di)):e.createCommentVNode("",!0),o.element==="textarea"&&o.showCharactersTextarea?(e.openBlock(),e.createElementBlock("span",Li,[o.textCharactersLeft?(e.openBlock(),e.createElementBlock("span",Pi,e.toDisplayString(o.textCharactersLeft),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["characters-left",{error:l.charactersLeft===0}])},e.toDisplayString(l.charactersLeft),3)])):o.element==="input"&&t.$attrs.type==="search"?(e.openBlock(),e.createElementBlock("span",Ai,[o.fieldIconClass?(e.openBlock(),e.createBlock(s,{key:0,class:"place-inside",iconClass:o.fieldIconClass},null,8,["iconClass"])):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps(l.elementAttributes,{id:t.htmlId,onInput:n[20]||(n[20]=(...E)=>l.onInput&&l.onInput(...E)),maxlength:l.getMaxLength(),value:o.modelValue}),null,16,qi),o.showSearchButton?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:e.normalizeClass(["button no-flex",{disabled:t.$attrs.disabled}]),title:o.iconSearch.tooltip,onClick:n[21]||(n[21]=e.withModifiers((...E)=>l.executeSearch&&l.executeSearch(...E),["prevent"]))},[e.createVNode(s,{iconClass:o.iconSearch.iconClass},null,8,["iconClass"])],10,Hi)):e.createCommentVNode("",!0),(c=o.iconDelete)!=null&&c.show?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",onClick:n[22]||(n[22]=e.withModifiers(E=>t.$emit("update:modelValue",""),["prevent"])),title:(h=o.iconDelete)==null?void 0:h.tooltip},[e.createVNode(s,{iconClass:(d=o.iconDelete)==null?void 0:d.iconClass,type:(m=o.iconDelete)==null?void 0:m.iconType},null,8,["iconClass","type"])],8,zi)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,yi)):o.element==="button"?(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:"button"},l.buttonAttrs,{onClick:n[23]||(n[23]=(...E)=>l.submit&&l.submit(...E))}),[(f=(p=o.nativeButton)==null?void 0:p.icon)!=null&&f.show&&(((y=(u=o.nativeButton)==null?void 0:u.icon)==null?void 0:y.position)==="before"||!((C=(k=o.nativeButton)==null?void 0:k.icon)!=null&&C.position))?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(w=(S=o.nativeButton)==null?void 0:S.icon)==null?void 0:w.iconClass,type:(F=(_=o.nativeButton)==null?void 0:_.icon)==null?void 0:F.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),(x=o.nativeButton)!=null&&x.icon&&((T=o.nativeButton)!=null&&T.text)?(e.openBlock(),e.createElementBlock("span",Ri,e.toDisplayString(o.nativeButton.text),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(o.nativeButton.text),1)],64)),(q=(M=o.nativeButton)==null?void 0:M.icon)!=null&&q.show&&((Z=(L=o.nativeButton)==null?void 0:L.icon)==null?void 0:Z.position)==="after"?(e.openBlock(),e.createBlock(s,{key:3,iconClass:(X=(Y=o.nativeButton)==null?void 0:Y.icon)==null?void 0:X.iconClass,type:(le=(H=o.nativeButton)==null?void 0:H.icon)==null?void 0:le.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0)],16)):e.createCommentVNode("",!0)}const A=B(gi,[["render",ji]]),Ui={name:"CmdAddressDataItem",mixins:[P],data(){return{editableAddressEntry:null}},props:{addressEntry:{type:Object,default:{}},showLabelIcons:{type:Boolean,default:!0},showLabelTexts:{type:Boolean,default:!1},linkGoogleMaps:{type:Boolean,default:!1},showCityBeforeZip:{type:Boolean,default:!1}},methods:{vCardClass(t){if(t.type==="company")return"org";if(t.type==="address"){if(t.streetNo)return"street-address";if(t.zip)return"postal-code";if(t.city)return"locality";if(t.country)return"country-name"}return null},inputType(t){return t.type==="phone"?"tel":t.type==="email"?"email":t.type==="url"?"url":"text"},locateAddress(t){return"https://www.google.com/maps/place/"+t.streetNo+", "+t.zip+" "+t.city},getHref(t){return t.type==="phone"?"tel:"+t.href:t.type==="email"?"mailto:"+t.href:t.type==="url"?t.href:null},addHandlerProvider(){const t={type:"default",iconClass:"icon-mail",data:"Your data",labelText:"Labeltext",tooltip:"Tooltip",href:"#"};return z(this,{item(){return t}})},updateHandlerProvider(){const t=this.editableAddressEntry;return z(this,{update(n){typeof t=="object"?Object.entries(t).forEach(([o,a])=>n[o]=a):n.href==null?n.data=t:n.href=t}})}},watch:{addressEntry:{handler(){this.addressEntry.type==="address"?this.editableAddressEntry={streetNo:this.addressEntry.streetNo,zip:this.addressEntry.zip,city:this.addressEntry.city,state:this.addressEntry.state,miscInfo:this.addressEntry.miscInfo,country:this.addressEntry.country}:this.editableAddressEntry=(this.addressEntry.href==null?this.addressEntry.data:this.addressEntry.href)||""},immediate:!0,deep:!0}}},Wi={key:1},Gi=["href","target","title","data-type"],Ji=["innerHTML"],Ki={key:1},Zi=["href","title"],Yi={class:"street-address"},Xi=e.createElementVNode("br",null,null,-1),Qi={key:0,class:"postal-code"},$i={key:1,class:"locality"},vi=e.createElementVNode("br",null,null,-1),ea={key:0},ta={key:3,class:"country-name"},oa={class:"street-address"},na=e.createElementVNode("br",null,null,-1),la={key:0,class:"postal-code"},ia={key:1,class:"locality"},aa=e.createElementVNode("br",null,null,-1),sa=e.createElementVNode("br",null,null,-1),ra={key:3,class:"country-name"};function ca(t,n,o,a,i,l){const s=N,r=A,c=e.resolveDirective("telephone");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("dt",{class:e.normalizeClass(["cmd-address-data-item",{address:o.addressEntry.type==="address"}])},[o.addressEntry.iconClass&&o.showLabelIcons?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.addressEntry.iconClass,type:o.addressEntry.iconType,tooltip:o.addressEntry.labelText},null,8,["iconClass","type","tooltip"])):e.createCommentVNode("",!0),o.showLabelTexts?(e.openBlock(),e.createElementBlock("span",Wi,e.toDisplayString(o.addressEntry.labelText),1)):e.createCommentVNode("",!0)],2),o.addressEntry.type!=="address"&&(o.addressEntry.data||o.addressEntry.href)?(e.openBlock(),e.createElementBlock("dd",{key:0,class:e.normalizeClass(l.vCardClass(o.addressEntry))},[t.editing?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:l.inputType(o.addressEntry),class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry,"onUpdate:modelValue":n[0]||(n[0]=h=>i.editableAddressEntry=h)},null,8,["type","labelText","placeholder","modelValue"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.addressEntry.href?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:l.getHref(o.addressEntry),target:o.addressEntry.type==="url"?"_blank":null,title:o.addressEntry.tooltip,"data-type":o.addressEntry.type},[e.createTextVNode(e.toDisplayString(o.addressEntry.data||o.addressEntry.href),1)],8,Gi)),[[c,o.addressEntry.href]]):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:o.addressEntry.data},null,8,Ji))],64))],2)):o.addressEntry.name==="address"?(e.openBlock(),e.createElementBlock("dd",Ki,[o.linkGoogleMaps&&!t.editing?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.locateAddress(o.addressEntry),target:"google-maps",title:o.addressEntry.tooltip},[o.addressEntry.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Yi,e.toDisplayString(o.addressEntry.streetNo),1),Xi],64)):e.createCommentVNode("",!0),o.addressEntry.zip||o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"city-zip":"zip-city")},[o.addressEntry.zip?(e.openBlock(),e.createElementBlock("span",Qi,e.toDisplayString(o.addressEntry.zip),1)):e.createCommentVNode("",!0),o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",$i,[e.createTextVNode(e.toDisplayString(o.addressEntry.city),1),o.addressEntry.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.addressEntry.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),vi,o.addressEntry.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(o.addressEntry.miscInfo),1),o.addressEntry.country?(e.openBlock(),e.createElementBlock("br",ea)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.addressEntry.country?(e.openBlock(),e.createElementBlock("span",ta,e.toDisplayString(o.addressEntry.country),1)):e.createCommentVNode("",!0)],8,Zi)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.streetNo,"onUpdate:modelValue":n[1]||(n[1]=h=>i.editableAddressEntry.streetNo=h)},null,8,["labelText","placeholder","modelValue"]),e.createElementVNode("div",{class:e.normalizeClass([o.showCityBeforeZip?"city-zip":"zip-city","input-wrapper"])},[e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.zip,"onUpdate:modelValue":n[2]||(n[2]=h=>i.editableAddressEntry.zip=h)},null,8,["labelText","placeholder","modelValue"]),e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.city,"onUpdate:modelValue":n[3]||(n[3]=h=>i.editableAddressEntry.city=h)},null,8,["labelText","placeholder","modelValue"])],2),e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.miscInfo,"onUpdate:modelValue":n[4]||(n[4]=h=>i.editableAddressEntry.miscInfo=h)},null,8,["labelText","placeholder","modelValue"]),e.createVNode(r,{element:"select",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,selectOptions:[{text:"Germany",value:"de"},{text:"United Kingdom",value:"uk"}],modelValue:i.editableAddressEntry.country,"onUpdate:modelValue":n[5]||(n[5]=h=>i.editableAddressEntry.country=h)},null,8,["labelText","modelValue"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.addressEntry.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",oa,e.toDisplayString(o.addressEntry.streetNo),1),na],64)):e.createCommentVNode("",!0),o.addressEntry.zip||o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"city-zip":"zip-city")},[o.addressEntry.zip?(e.openBlock(),e.createElementBlock("span",la,e.toDisplayString(o.addressEntry.zip),1)):e.createCommentVNode("",!0),o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",ia,[e.createTextVNode(e.toDisplayString(o.addressEntry.city),1),o.addressEntry.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" "+e.toDisplayString(o.addressEntry.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),aa,o.addressEntry.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(o.addressEntry.miscInfo),1),sa],64)):e.createCommentVNode("",!0),o.addressEntry.country?(e.openBlock(),e.createElementBlock("span",ra,e.toDisplayString(o.addressEntry.country),1)):e.createCommentVNode("",!0)],64))],64))])):e.createCommentVNode("",!0)],64)}const da=B(Ui,[["render",ca]]),ma={name:"CmdAddressData",mixins:[P,j,{data(){return{defaultMessageProperties:{"cmdaddressdata.labeltext.company":"Company:","cmdaddressdata.labeltext.address":"Address:","cmdaddressdata.labeltext.telephone":"Telephone:","cmdaddressdata.labeltext.mobile_phone":"Mobile phone:","cmdaddressdata.labeltext.fax":"Fax:","cmdaddressdata.labeltext.email":"Email:","cmdaddressdata.labeltext.website":"Web site:","cmdaddressdata.labeltext.custom":"Custom:","cmdaddressdata.title.open_address_on_google_maps:":"Open address on GoogleMaps™ (in new tab)","cmdaddressdata.title.call_number":"Call number","cmdaddressdata.title.send_email":"Send email","cmdaddressdata.title.visit_website":"Visit web site (in new tab)"}}}}],props:{useSlot:{type:Boolean,default:!1},showLabelIcons:{type:Boolean,default:!0},showLabelTexts:{type:Boolean,default:!1},showIconsOnly:{type:Boolean,default:!1},showLabels:{type:Boolean,default:!0},addressData:{type:Array,required:!0},showCityBeforeZip:{type:Boolean,default:!1},cmdHeadline:{type:Object,required:!1}},data(){return{editableAddressData:[]}},computed:{websiteUrlText(){var t;return(t=this.addressData.website)==null?void 0:t.text.replace("https://","")}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","addressData",-1),this.itemProvider)},itemProvider(){return{name:"name",iconClass:"icon-company",data:"Your data",labelText:"Label"}},locateAddress(t){return"https://www.google.com/maps/place/"+t.streetNo+", "+t.zip+" "+t.city},getHref(t){return t.name==="phone"?"tel:"+t.href:t.name==="email"?"mailto:"+t.href:t.name==="url"?t.href:null},updateHandlerProvider(){return z(this,{update(t,n){const o=n==null?void 0:n.find(a=>a.name==="CmdHeadline");o&&(t.cmdHeadline=t.cmdHeadline||{},o.update(t.cmdHeadline))}})}},watch:{}},ha={class:"cmd-address-data vcard"},fa={class:"adr"},ua={key:0},pa=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new entry",-1)],ga=["href","target","title"],ya=["innerHTML"],ka=["href","title"],Ca={class:"street-address"},ba=e.createElementVNode("br",null,null,-1),Ba={key:0,class:"postal-code"},wa={key:1,class:"locality"},_a=e.createElementVNode("br",null,null,-1),xa=e.createElementVNode("br",null,null,-1),Ea=e.createElementVNode("br",null,null,-1),Sa={key:4,class:"country-name"},Va={class:"street-address"},Ta=e.createElementVNode("br",null,null,-1),Na={key:0,class:"postal-code"},Ia={key:1,class:"locality"},Fa=e.createElementVNode("br",null,null,-1),Oa=e.createElementVNode("br",null,null,-1),Ma=e.createElementVNode("br",null,null,-1),Da={key:4,class:"country-name"};function La(t,n,o,a,i,l){var d;const s=O,r=da,c=te,h=N;return e.openBlock(),e.createElementBlock("div",ha,[o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(d=o.cmdHeadline)!=null&&d.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("address",fa,[o.showLabels&&(o.showLabelTexts||o.showLabelIcons)&&!o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.editModeContext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.addressData.length===0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:n[0]||(n[0]=(...m)=>l.onAddItem&&l.onAddItem(...m))},pa)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.addressData,(m,p)=>(e.openBlock(),e.createBlock(c,{key:"x"+p,class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdAddressDataItem",componentProps:m,componentPath:["props","addressData",p]},{default:e.withCtx(()=>[e.createElementVNode("dl",null,[e.createVNode(r,{addressEntry:m,showLabelIcons:o.showLabelIcons,showLabelTexts:o.showLabelTexts},null,8,["addressEntry","showLabelIcons","showLabelTexts"])])]),_:2},1032,["componentProps","componentPath"]))),128))],64)):(e.openBlock(),e.createElementBlock("dl",ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.addressData,(m,p)=>(e.openBlock(),e.createBlock(r,{key:p,addressEntry:m,showLabelIcons:o.showLabelIcons,showLabelTexts:o.showLabelTexts,showCityBeforeZip:o.showCityBeforeZip},null,8,["addressEntry","showLabelIcons","showLabelTexts","showCityBeforeZip"]))),128))]))],64)):(e.openBlock(),e.createElementBlock("ul",{key:1,class:e.normalizeClass(["flex-container",{vertical:!o.showIconsOnly}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.addressData,(m,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[m.href||m.name==="address"&&m.linkGoogleMaps||!o.showIconsOnly?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass({"no-flex":o.showIconsOnly})},[m.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.getHref(m),target:m.name==="url"?"_blank":null,title:m.tooltip},[o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(m.href),1)],64))],8,ga)):o.showIconsOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:m.data},null,8,ya)),m.name==="address"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.linkGoogleMaps?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.locateAddress(m),target:"google-maps",title:m.tooltip},[o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Ca,e.toDisplayString(m.streetNo),1),ba],64)):e.createCommentVNode("",!0),m.zip||m.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(e.openBlock(),e.createElementBlock("span",Ba,e.toDisplayString(m.zip)+" ",1)):e.createCommentVNode("",!0),m.city?(e.openBlock(),e.createElementBlock("span",wa,[e.createTextVNode(e.toDisplayString(m.city),1),m.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),_a],2)):e.createCommentVNode("",!0),m.pobox?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(m.pobox),1),xa],64)):e.createCommentVNode("",!0),m.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString(m.miscInfo),1),Ea],64)):e.createCommentVNode("",!0),m.country?(e.openBlock(),e.createElementBlock("span",Sa,e.toDisplayString(m.country),1)):e.createCommentVNode("",!0)],64))],8,ka)):e.createCommentVNode("",!0),!m.linkGoogleMaps&&!o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Va,e.toDisplayString(m.streetNo),1),Ta],64)):e.createCommentVNode("",!0),m.zip||m.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(e.openBlock(),e.createElementBlock("span",Na,e.toDisplayString(m.zip)+" ",1)):e.createCommentVNode("",!0),m.city?(e.openBlock(),e.createElementBlock("span",Ia,[e.createTextVNode(e.toDisplayString(m.city),1),m.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),Fa],2)):e.createCommentVNode("",!0),m.pobox?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(m.pobox),1),Oa],64)):e.createCommentVNode("",!0),m.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString(m.miscInfo),1),Ma],64)):e.createCommentVNode("",!0),m.country?(e.openBlock(),e.createElementBlock("span",Da,e.toDisplayString(m.country),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))),128))],2))])],64))])}const po=B(ma,[["render",La]]),Pa={name:"CmdBackToTopButton",data(){var t;return{windowInnerHeight:window.innerHeight,windowScrollY:this.getScrollY(),scrollHeight:((t=document.querySelector(this.scrollContainer))==null?void 0:t.scrollHeight)||0}},props:{scrollContainer:{type:String,default:"body"},iconBackToTop:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Back to top",iconType:"auto"}}}},mounted(){var t;window.addEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(t=document.querySelector(this.scrollContainer))==null||t.addEventListener("scroll",this.onViewportChange)},unmounted(){var t;window.removeEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(t=document.querySelector(this.scrollContainer))==null||t.removeEventListener("scroll",this.onViewportChange)},computed:{show(){return this.windowScrollY>0&&this.windowInnerHeight<this.scrollHeight}},methods:{getScrollY(){var t;return this.scrollContainer==="body"?window.scrollY:((t=document.querySelector(this.scrollContainer))==null?void 0:t.scrollTop)||0},onViewportChange(){var t;this.windowInnerHeight=window.innerHeight,this.windowScrollY=this.getScrollY(),this.scrollHeight=((t=document.querySelector(this.scrollContainer))==null?void 0:t.scrollHeight)||0},onBackToTop(){var t;this.scrollContainer==="body"?window.scrollTo({top:0,left:0,behavior:"smooth"}):(t=document.querySelector(this.scrollContainer))==null||t.scrollTo({top:0,left:0,behavior:"smooth"})}}},Aa=["title"];function qa(t,n,o,a,i,l){const s=N;return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.show?(e.openBlock(),e.createElementBlock("a",{key:0,class:"cmd-back-to-top-button button",id:"back-to-top-button",href:"#",role:"button",title:o.iconBackToTop.tooltip,onClick:n[0]||(n[0]=e.withModifiers((...r)=>l.onBackToTop&&l.onBackToTop(...r),["prevent"]))},[e.createVNode(s,{iconClass:o.iconBackToTop.iconClass,type:o.iconBackToTop.iconType},null,8,["iconClass","type"])],8,Aa)):e.createCommentVNode("",!0)]),_:1})}const Ha=B(Pa,[["render",qa]]),za={name:"CmdBankAccountData",props:{useSlot:{type:Boolean,default:!1},accountData:{type:Array,required:!0},allowCopyByClick:{type:Boolean,default:!0},additionalInformation:{type:String,required:!1},iconCopy:{type:Object,default(){return{iconClass:"icon-file-copy",tooltip:"Copy data to clipboard!",iconType:"auto"}}},cmdHeadline:{type:Object,required:!1}},methods:{copyToClipboard(t){const n=t.replace(/\s/g,"");navigator.clipboard.writeText(n),alert(n+" was copied to clipboard")}}},Ra={class:"cmd-bank-account-data"},ja={key:0},Ua=["onClick","title"],Wa={key:1};function Ga(t,n,o,a,i,l){const s=O,r=N;return e.openBlock(),e.createElementBlock("div",Ra,[o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.cmdHeadline?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.accountData,(c,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createElementVNode("dt",null,e.toDisplayString(c.text),1),o.allowCopyByClick&&c.allowCopy?(e.openBlock(),e.createElementBlock("dd",ja,[e.createElementVNode("span",null,e.toDisplayString(c.value),1),e.createElementVNode("a",{href:"#",onClick:e.withModifiers(d=>l.copyToClipboard(c.value),["prevent"]),title:o.iconCopy.tooltip},[e.createVNode(r,{iconClass:o.iconCopy.iconClass,type:o.iconCopy.iconType},null,8,["iconClass","type"])],8,Ua)])):(e.openBlock(),e.createElementBlock("dd",{key:h},e.toDisplayString(c.value),1))],64))),128))]),o.additionalInformation?(e.openBlock(),e.createElementBlock("p",Wa,e.toDisplayString(o.additionalInformation),1)):e.createCommentVNode("",!0)],64))])}const Ja=B(za,[["render",Ga]]),Ka={name:"CmdForm",emits:["submit"],data(){return{errorOccurred:!1,formValues:{}}},props:{formAction:{type:String,required:!1},useSlot:{type:Boolean,default:!0},formElements:{type:Array,required:!1},novalidate:{type:Boolean,default:!0},useValidation:{type:Boolean,default:!0},useFieldset:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},submitButton:{type:Object,default(){return{iconClass:"icon-check",text:"Submit",type:"submit",position:"insideFieldset",primary:!0}}}},methods:{createHtmlId:ft,submitFormData(t){let n={};this.formElements&&this.formElements.forEach(o=>{n[o.name]=this.formValues[o.name]}),this.$emit("submit",{originalEvent:t,formdata:n})},onSubmit(t){this.useValidation?t.target.checkValidity()?(this.errorOccurred=!1,this.submitFormData(t)):(t.preventDefault(),this.errorOccurred=!0):this.submitFormData(t)}},watch:{formElements:{handler(){var t;this.formValues={},(t=this.formElements)==null||t.forEach(n=>{n.type==="checkbox"?(this.formValues[n.name]||(this.formValues[n.name]=[]),n.value!=null&&this.formValues[n.name].push(n.value)):this.formValues[n.name]=n.value??""})},immediate:!0,deep:!0}}},Za=["action","data-use-validation","novalidate"],Ya={class:"flex-container"},Xa=["type"],Qa={key:1},$a={key:0,class:"button-wrapper"},va=["type"],es={key:1};function ts(t,n,o,a,i,l){const s=A;return e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass(["cmd-form",{error:i.errorOccurred}]),action:o.formAction,"data-use-validation":o.useValidation,onSubmit:n[0]||(n[0]=(...r)=>l.onSubmit&&l.onSubmit(...r)),novalidate:o.novalidate},[o.useFieldset?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("fieldset",Ya,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.formElements,(r,c)=>(e.openBlock(),e.createBlock(s,{key:c,element:r.element||"input",type:r.type||"text",name:r.name,class:e.normalizeClass(r.htmlClass),id:r.id||l.createHtmlId(),modelValue:i.formValues[r.name],"onUpdate:modelValue":h=>i.formValues[r.name]=h,inputValue:r.inputValue,fieldIconClass:r.innerIconClass,selectOptions:r.selectOptions,labelText:r.labelText,placeholder:r.placeholder,required:r.required,disabled:r.disabled,autocomplete:r.autocomplete,minlength:r.minlength,maxlength:r.maxlength,nativeButton:r.nativeButton},null,8,["element","type","name","class","id","modelValue","onUpdate:modelValue","inputValue","fieldIconClass","selectOptions","labelText","placeholder","required","disabled","autocomplete","minlength","maxlength","nativeButton"]))),128)),o.submitButton&&o.submitButton.position==="insideFieldset"?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["button",{primary:o.submitButton.primary}]),type:o.submitButton.type},[o.submitButton.iconClass?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.submitButton.iconClass)},null,2)):e.createCommentVNode("",!0),o.submitButton.text?(e.openBlock(),e.createElementBlock("span",Qa,e.toDisplayString(o.submitButton.text),1)):e.createCommentVNode("",!0)],10,Xa)):e.createCommentVNode("",!0)]),o.submitButton&&o.submitButton.position==="belowFieldset"?(e.openBlock(),e.createElementBlock("div",$a,[e.createElementVNode("button",{class:e.normalizeClass(["button",{primary:o.submitButton.primary}]),type:o.submitButton.type},[o.submitButton.iconClass?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.submitButton.iconClass)},null,2)):e.createCommentVNode("",!0),o.submitButton.text?(e.openBlock(),e.createElementBlock("span",es,e.toDisplayString(o.submitButton.text),1)):e.createCommentVNode("",!0)],10,va)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"button-row")],64)):e.renderSlot(t.$slots,"default",{key:1})],42,Za)}const go=B(Ka,[["render",ts]]),os={data(){return{defaultMessageProperties:{"basic_form.legend":"Basic Form","basic_form.labeltext.salutation_male":"Mr.","basic_form.labeltext.salutation_female":"Mrs.","basic_form.labeltext.last_name":"Last name:","basic_form.placeholder.last_name":"Last name:","basic_form.labeltext.first_name":"First name:","basic_form.placeholder.first_name":"First name:","basic_form.labeltext.email":"Email:","basic_form.placeholder.email":"Email:","basic_form.labeltext.phone":"Phone:","basic_form.placeholder.phone":"Phone:","basic_form.labeltext.street_no":"Street/No.:","basic_form.placeholder.street_no":"Street/No.:","basic_form.labeltext.zip":"Zip:","basic_form.placeholder.zip":"Zip:","basic_form.labeltext.city":"City:","basic_form.placeholder.city":"City:","basic_form.labeltext.pobox":"PO Box:","basic_form.placeholder.pobox":"PO Box:","basic_form.labeltext.country":"Country:","basic_form.labeltext.additional_address_info":"Additional address information:","basic_form.placeholder.additional_address_info":"Additional address information","basic_form.labeltext.user_message":"Your message:","basic_form.placeholder.user_message":"Your message","basic_form.labeltext.data_privacy":"I accept handling and saving of my personal data a mentioned in the <a href='/content/data-privacy-en.html' class='fancybox'>private policy</a>."}}}},ne=class ne{constructor(n){Ie(this,"label");this.label=n}validate(n){return[n.lastName.error,n.lastName.errorMessage]=this.validateRequired(n.lastName.value,ne.PATTERN_SURNAME,this.label("form_error_invalid_surname"))[n.email.error,n.email.errorMessage]=this.validateRequired(n.email.value,ne.PATTERN_EMAIL,this.label("form_error_invalid_email"))[n.additionalText.error,n.additionalText.errorMessage]=this.validateRequired(n.additionalText.value,ne.PATTERN_MESSAGE,this.label("form_error_invalid_message")),n.acceptPrivacy.error=!1,n.error=n.lastName.error||n.email.error||n.additionalText.error,n}validatePrivacy(n){return n.acceptPrivacy.error=!n.acceptPrivacy.value,n.acceptPrivacy.errorMessage=n.acceptPrivacy.error?this.label("form_error_missing_privacy_consent"):"",n.error=n.error||n.acceptPrivacy.error,n}validateRequired(n,o,a){return!n||n.trim().length===0?[!0,this.label("form_error_empty")]:o&&!o.test(n)?[!0,a||this.label("form_error_invalid")]:[!1,""]}};Ie(ne,"PATTERN_SURNAME",/^[a-züöäßáéíóàèìòêîô '-]+$/i),Ie(ne,"PATTERN_EMAIL",/^[a-z\d._%+-]+@[a-z\d._%+-]+\.[a-z]{2,}$/i),Ie(ne,"PATTERN_MESSAGE",/^.{2,500}$/);let gt=ne;const ns={emits:["submit"],mixins:[j,os,ze],inject:{editModeContext:{default:null}},data(){return{validator:new gt(t=>t),formData:{salutation:{value:this.configuration.salutation.default},lastName:{value:""},firstName:{value:""},email:{value:""},phone:{value:""},streetNo:{value:""},zip:{value:""},city:{value:""},pobox:{value:""},country:{value:""},additionalAddressInfo:{value:""},userMessage:{value:""},acceptPrivacy:{value:!1}},cityBeforeZip:this.showCityBeforeZip}},props:{useNativeSubmit:{type:Boolean,default:!1},formAction:{type:String,required:!1},configuration:{type:Object,default(){return{salutation:{name:"salutation",default:"m",replaceInputType:!0},lastName:{name:"surname",required:!0,type:"text"},firstName:{required:!1,type:"text"},email:{required:!0,type:"email"},phone:{required:!1,type:"phone"},country:{required:!1,element:"select",selectOptions:[{text:"Please select...",value:""},{text:"United States",value:"us"},{text:"Germany",value:"de"}]},streetNo:{required:!1,type:"text"},zip:{required:!1,type:"number"},city:{required:!1,type:"text"},additionalAddressInfo:{required:!1,type:"text"},userMessage:{required:!1,element:"textarea"},acceptPrivacy:{required:!0,replaceInputType:!0}}}},showCityBeforeZip:{type:Boolean,default:!1},receiverEmailAddress:{type:String,default:""},submitButton:{type:Object,default(){return{iconClass:"icon-message-send",text:"Send mail",type:"submit",position:"belowFieldset",primary:!0}}},cmdHeadline:{type:Object,default(){return{headlineText:"Basic Form",headlineLevel:3}}}},mounted(){var t,n;(n=(t=this.$refs.dataPrivacy)==null?void 0:t.querySelector(".fancybox"))==null||n.addEventListener("click",o=>{o.preventDefault(),openFancyBox({url:o.target.getAttribute("href")})})},methods:{onSubmit(t){if(this.onValidate(),this.formData=Object.assign({},this.validator.validatePrivacy(this.formData)),this.formData.error||this.useNativeSubmit){this.formData.error&&t.originalEvent.preventDefault();return}const n=new FormData,o=Object.keys(this.configuration);for(let a=0;a<o.length;a++)n.set(o[a],this.formData[o[a]].value);fetch(this.formAction,{method:"POST",body:n}).then(a=>{a.ok?console.log("CmdBasicForm","ok"):console.log("CmdBasicForm","fail")}).catch(a=>{console.error(a)}),t.originalEvent.preventDefault()},onCountrySelect(t){this.cityBeforeZip=t==="us"||t==="uk"},onValidate(){this.formData=Object.assign({},this.validator.validate(this.formData))},executeLink(t,n){t.fancybox&&(n.preventDefault(),openFancyBox({url:t}))},openDataPrivacy(t){openFancyBox({url:t})}},watch:{showCityBeforeZip(){this.cityBeforeZip=this.showCityBeforeZip}}},ls={class:"cmd-pages-basic-form"},is={key:0,class:"flex-container no-flex order-male-female"},as={key:1,class:"flex-container order-lastname-firstname"},ss={key:2,class:"flex-container order-phone-email"},rs={key:3,class:"flex-container"},cs=["innerHTML"];function ds(t,n,o,a,i,l){const s=O,r=A,c=go;return e.openBlock(),e.createElementBlock("div",ls,[o.cmdHeadline?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createVNode(c,{onSubmit:l.onSubmit,novalidate:"novalidate",textLegend:t.getMessage("basic_form.legend"),submitButton:o.submitButton,formAction:o.formAction},{default:e.withCtx(()=>{var h,d,m,p,f,u,y,k,C,S,w,_,F,x,T,M,q,L,Z,Y,X,H,le,E,$,xe,Ee,Se,Ve,Te,Ne,W,wn,_n,xn,En,Sn,Vn,Tn,Nn;return[o.configuration.salutation?(e.openBlock(),e.createElementBlock("div",is,[e.createVNode(r,{element:"input",type:"radio",labelText:t.getMessage("basic_form.labeltext.salutation_male"),name:((h=o.configuration.salutation)==null?void 0:h.name)||"salutation",inputValue:"m",replaceInputType:(d=o.configuration.salutation)==null?void 0:d.replaceInputType,modelValue:i.formData.salutation.value,"onUpdate:modelValue":n[0]||(n[0]=I=>i.formData.salutation.value=I),onValidate:l.onValidate},null,8,["labelText","name","replaceInputType","modelValue","onValidate"]),e.createVNode(r,{element:"input",type:"radio",labelText:t.getMessage("basic_form.labeltext.salutation_female"),name:((m=o.configuration.salutation)==null?void 0:m.name)||"salutation",inputValue:"f",replaceInputType:(p=o.configuration.salutation)==null?void 0:p.replaceInputType,modelValue:i.formData.salutation.value,"onUpdate:modelValue":n[1]||(n[1]=I=>i.formData.salutation.value=I),onValidate:l.onValidate},null,8,["labelText","name","replaceInputType","modelValue","onValidate"])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"top"),o.configuration.lastName||o.configuration.firstName?(e.openBlock(),e.createElementBlock("div",as,[o.configuration.lastName?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:((f=o.configuration.lastName)==null?void 0:f.type)||"text",iconClass:"icon-user-profile",labelText:t.getMessage("basic_form.labeltext.last_name"),required:(u=o.configuration.lastName)==null?void 0:u.required,name:((y=o.configuration.lastName)==null?void 0:y.name)||"last-name",placeholder:t.getMessage("basic_form.placeholder.last_name"),modelValue:i.formData.lastName.value,"onUpdate:modelValue":n[2]||(n[2]=I=>i.formData.lastName.value=I),status:i.formData.lastName.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","required","name","placeholder","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.firstName?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((k=o.configuration.firstName)==null?void 0:k.type)||"text",iconClass:"icon-user-profile",labelText:t.getMessage("basic_form.labeltext.first_name"),placeholder:t.getMessage("basic_form.placeholder.first_name"),required:(C=o.configuration.firstName)==null?void 0:C.required,name:((S=o.configuration.firstName)==null?void 0:S.name)||"first-name",modelValue:i.formData.firstName.value,"onUpdate:modelValue":n[3]||(n[3]=I=>i.formData.firstName.value=I),status:i.formData.firstName.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.configuration.email||o.configuration.phone?(e.openBlock(),e.createElementBlock("div",ss,[o.configuration.email?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:((w=o.configuration.email)==null?void 0:w.type)||"email",iconClass:"icon-mail",labelText:t.getMessage("basic_form.labeltext.email"),placeholder:t.getMessage("basic_form.placeholder.email"),required:(_=o.configuration.email)==null?void 0:_.required,name:((F=o.configuration.email)==null?void 0:F.name)||"email",modelValue:i.formData.email.value,"onUpdate:modelValue":n[4]||(n[4]=I=>i.formData.email.value=I),status:i.formData.email.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.phone?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((x=o.configuration.phone)==null?void 0:x.type)||"tel",iconClass:"icon-phone",labelText:t.getMessage("basic_form.labeltext.phone"),placeholder:t.getMessage("basic_form.placeholder.phone"),modelValue:i.formData.phone.value,"onUpdate:modelValue":n[5]||(n[5]=I=>i.formData.phone.value=I),required:(T=o.configuration.phone)==null?void 0:T.required,name:((M=o.configuration.phone)==null?void 0:M.name)||"phone",status:i.formData.phone.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","modelValue","required","name","status","onValidate"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.configuration.streetNo||o.configuration.streetNo||o.configuration.zip&&o.configuration.city?(e.openBlock(),e.createElementBlock("div",rs,[o.configuration.country?(e.openBlock(),e.createBlock(r,{key:0,element:"select",labelText:t.getMessage("basic_form.labeltext.country"),selectOptions:(q=o.configuration.country)==null?void 0:q.selectOptions,required:(L=o.configuration.country)==null?void 0:L.required,name:((Z=o.configuration.country)==null?void 0:Z.name)||"country",modelValue:i.formData.country.value,"onUpdate:modelValue":[n[6]||(n[6]=I=>i.formData.country.value=I),l.onCountrySelect],status:i.formData.country.error?"error":"",onValidate:l.onValidate},null,8,["labelText","selectOptions","required","name","modelValue","status","onValidate","onUpdate:modelValue"])):e.createCommentVNode("",!0),o.configuration.streetNo?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((Y=o.configuration.streetNo)==null?void 0:Y.type)||"text",labelText:t.getMessage("basic_form.labeltext.street_no"),placeholder:t.getMessage("basic_form.placeholder.street_no"),required:(X=o.configuration.streetNo)==null?void 0:X.required,name:((H=o.configuration.streetNo)==null?void 0:H.name)||"street-no",modelValue:i.formData.streetNo.value,"onUpdate:modelValue":n[7]||(n[7]=I=>i.formData.streetNo.value=I),status:i.formData.streetNo.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.pobox?(e.openBlock(),e.createBlock(r,{key:2,element:"input",type:((le=o.configuration.pobox)==null?void 0:le.type)||"text",labelText:t.getMessage("basic_form.labeltext.pobox"),placeholder:t.getMessage("basic_form.placeholder.pobox"),required:(E=o.configuration.pobox)==null?void 0:E.required,name:(($=o.configuration.pobox)==null?void 0:$.name)||"pobox",modelValue:i.formData.pobox.value,"onUpdate:modelValue":n[8]||(n[8]=I=>i.formData.pobox.value=I),status:i.formData.pobox.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper",i.cityBeforeZip?"order-city-zip":"order-zip-city"])},[o.configuration.zip?(e.openBlock(),e.createBlock(r,{key:0,element:"input",class:"input-zip",type:((xe=o.configuration.zip)==null?void 0:xe.type)||"number",labelText:t.getMessage("basic_form.labeltext.zip"),placeholder:t.getMessage("basic_form.placeholder.zip"),required:(Ee=o.configuration.zip)==null?void 0:Ee.required,name:((Se=o.configuration.zip)==null?void 0:Se.name)||"zip",modelValue:i.formData.zip.value,"onUpdate:modelValue":n[9]||(n[9]=I=>i.formData.zip.value=I),status:i.formData.zip.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.city?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((Ve=o.configuration.city)==null?void 0:Ve.type)||"text",labelText:t.getMessage("basic_form.labeltext.city"),placeholder:t.getMessage("basic_form.placeholder.city"),required:(Te=o.configuration.city)==null?void 0:Te.required,name:((Ne=o.configuration.city)==null?void 0:Ne.name)||"city",modelValue:i.formData.city.value,"onUpdate:modelValue":n[10]||(n[10]=I=>i.formData.city.value=I),status:i.formData.city.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0)],2),o.configuration.additionalAddressInfo?(e.openBlock(),e.createBlock(r,{key:3,element:"input",type:((W=o.configuration.additionalAddressInfo)==null?void 0:W.type)||"text",labelText:t.getMessage("basic_form.labeltext.additional_address_info"),placeholder:t.getMessage("basic_form.placeholder.additional_address_info"),required:(wn=o.configuration.additionalAddressInfo)==null?void 0:wn.required,name:((_n=o.configuration.additionalAddressInfo)==null?void 0:_n.name)||"additional-address-info",modelValue:i.formData.additionalAddressInfo.value,"onUpdate:modelValue":n[11]||(n[11]=I=>i.formData.additionalAddressInfo.value=I),status:i.formData.additionalAddressInfo.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.configuration.userMessage?(e.openBlock(),e.createBlock(r,{key:4,element:((xn=o.configuration.userMessage)==null?void 0:xn.element)||"textarea",labelText:t.getMessage("basic_form.labeltext.user_message"),placeholder:t.getMessage("basic_form.placeholder.user_message"),required:(En=o.configuration.userMessage)==null?void 0:En.required,name:((Sn=o.configuration.userMessage)==null?void 0:Sn.name)||"user-message",modelValue:i.formData.userMessage.value,"onUpdate:modelValue":n[12]||(n[12]=I=>i.formData.userMessage.value=I),status:i.formData.userMessage.error?"error":"",onValidate:l.onValidate},null,8,["element","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"bottom"),o.configuration.acceptPrivacy?(e.openBlock(),e.createBlock(r,{key:5,element:"input",type:"checkbox",required:(Vn=o.configuration.acceptPrivacy)==null?void 0:Vn.required,name:((Tn=o.configuration.acceptPrivacy)==null?void 0:Tn.name)||"accept-privacy",replaceInputType:(Nn=o.configuration.acceptPrivacy)==null?void 0:Nn.replaceInputType,modelValue:i.formData.acceptPrivacy.value,"onUpdate:modelValue":n[13]||(n[13]=I=>i.formData.acceptPrivacy.value=I),status:i.formData.acceptPrivacy.error?"error":"",onValidate:l.onValidate},{labeltext:e.withCtx(()=>[e.createElementVNode("span",{ref:"dataPrivacy",innerHTML:t.getMessage("basic_form.labeltext.data_privacy")},null,8,cs)]),_:1},8,["required","name","replaceInputType","modelValue","status","onValidate"])):e.createCommentVNode("",!0)]}),_:3},8,["onSubmit","textLegend","submitButton","formAction"])])}const yo=B(ns,[["render",ds]]);function de(t){if(t){const n=t.lastIndexOf(".");if(n>-1)return t.substring(n+1)}return""}function ko(t,n,o,a,i){const l=[];if(t.size>a&&l.push("file too large"),n.includes(de(t.name))||l.push("disallowed file extension"),l.length){alert(l);return}const s=new Image;s.onload=()=>{if(s.width<o&&!confirm("width ("+s.width+" px) too small - at least "+o+" px required! Use trotzdem!")){alert("Cancel");return}URL.revokeObjectURL(s.src),typeof i=="function"?i(s.src):i.src=s.src},s.src=URL.createObjectURL(t)}const ms={name:"CmdImage",mixins:[P],data(){return{mediumMaxWidth:1023,smallMaxWidth:600,currentWindowWidth:window.innerWidth,allowedFileExtensions:["gif","jpg","jpeg","png","webp","svg"],uploadInitiated:!1,allowDrop:!1,showFigcaption:!0,figcaptionText:null,figcaptionPosition:null,figcaptionTextAlign:null,tooltip:null,alternativeText:null,newImageSource:null,positionOptions:[{text:"Above image",value:"top"},{text:"Below image",value:"bottom"}],textAlignOptions:[{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}},props:{image:{type:Object,required:!1},figcaption:{type:Object,required:!1},maxFileUploadSize:{type:Number,default:5e5},minImageWidth:{type:Number,default:600}},created(){window.addEventListener("resize",this.updateWindowWidth);const t=getComputedStyle(document.documentElement);this.mediumMaxWidth=parseInt(t.getPropertyValue("--medium-max-width")),this.smallMaxWidth=parseInt(t.getPropertyValue("--small-max-width"))},beforeUnmount(){window.removeEventListener("resize",this.updateWindowWidth)},computed:{imageComponentPath(){return this.componentPath||["props","cmdImage"]},imageSource(){var o;if(this.newImageSource)return this.newImageSource;const t=(o=this.image)==null?void 0:o.src;if(!t)return null;if(typeof t=="string")return t;const n=this.currentWindowWidth;return t.small&&n<=this.smallMaxWidth?t.small:t.medium&&n<=this.mediumMaxWidth?t.medium:t.large},textAlign(){var t;return(t=this.figcaption)!=null&&t.textAlign?"text-"+this.figcaption.textAlign:""},dragAndDropHandler(){return{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}},editableFigcaptionText:{get(){var t;return this.figcaptionText==null?(t=this.figcaption)==null?void 0:t.text:this.figcaptionText},set(t){this.figcaptionText=t}}},methods:{onImageLoaded(t){this.$emit("image-loaded",t)},itemProvider(){var n,o;const t=(o=(n=this.editModeConfig)==null?void 0:n.itemProviderOverwrite)==null?void 0:o.call(n);return{image:{src:"/media/images/demo-images/medium/landscape-01.jpg",alt:"Alternative Text",...(t==null?void 0:t.image)||{}},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},onAddItem(){this.$refs.editComponentWrapper.editComponent()},selectFiles(){this.$refs.formElement.getDomElement().querySelector("input[type='file']").click()},fileSelected(t){t.target.files.length>0&&ko(t.target.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,n=>this.newImageSource=n)},updateWindowWidth(){this.currentWindowWidth=window.innerWidth},getImage(){return{image:{...this.image},figcaption:{show:this.showFigcaption,position:this.figcaptionPosition,textAlign:this.figcaptionTextAlign,text:this.figcaptionText}}},dragEnter(t){this.dragOver(t)},dragOver(t){t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length>0&&(t.dataTransfer.dropEffect="none",t.dataTransfer.items[0].kind==="file"&&(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.allowDrop=!0))},dragLeave(){this.allowDrop=!1},drop(t){this.allowDrop=!1,t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(t.preventDefault(),ko(t.dataTransfer.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,n=>this.newImageSource=n))},addHandlerProvider(){const t={image:{id:ce(),src:"media/images/demo-images/large/landscape-06.jpg",srcImageLarge:"media/images/demo-images/large/landscape-06.jpg",alt:"Alternative Text"},figcaption:{show:!0,position:"bottom",text:"Figcaption",textAlign:"center"}};return z(this,{item(){return t}})},updateHandlerProvider(){const t=this.figcaptionText;return this.figcaptionText=null,z(this,{update(n){n.figcaption||(n.figcaption={}),n.figcaption.text=t}})}},watch:{figcaption:{handler(){var t,n,o,a;this.showFigcaption=(t=this.figcaption)==null?void 0:t.show,this.figcaptionText=(n=this.figcaption)==null?void 0:n.text,this.figcaptionPosition=(o=this.figcaption)==null?void 0:o.position,this.figcaptionTextAlign=(a=this.figcaption)==null?void 0:a.textAlign},immediate:!0,deep:!0}}},hs=["innerHTML"],fs=e.createElementVNode("span",{class:"icon-image"},null,-1),us=["src","alt","title"],ps=["src","alt","title"],gs=["innerHTML"],ys=[e.createElementVNode("span",{class:"icon-add"},null,-1),e.createElementVNode("span",null,"Add new image",-1)],ks=["innerHTML"],Cs=["src","alt","title"],bs=["innerHTML"];function Bs(t,n,o,a,i,l){var c,h,d,m,p,f,u,y,k;const s=A,r=te;return t.editModeContext?(e.openBlock(),e.createBlock(r,{key:0,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdImage",componentProps:{image:o.image,figcaption:o.figcaption},componentPath:l.imageComponentPath,allowDeleteComponent:!!l.imageSource,itemProvider:((c=t.editModeConfig)==null?void 0:c.allowAddItem)!==!1?l.itemProvider:null},{default:e.withCtx(C=>{var S,w,_,F,x,T,M,q,L,Z,Y,X;return[e.createElementVNode("figure",{class:e.normalizeClass(["cmd-image flex-container no-gap vertical",l.textAlign])},[(S=o.figcaption)!=null&&S.show&&((w=o.figcaption)==null?void 0:w.position)==="top"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[C.editing?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:e.normalizeClass([l.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",modelValue:l.editableFigcaptionText,"onUpdate:modelValue":n[0]||(n[0]=H=>l.editableFigcaptionText=H)},null,8,["class","modelValue"])):(_=o.figcaption)!=null&&_.text?(e.openBlock(),e.createElementBlock("figcaption",{key:1,innerHTML:(F=o.figcaption)==null?void 0:F.text},null,8,hs)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),C.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("a",e.mergeProps({href:"#",class:["box drop-area flex-container vertical",{"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0),{onClick:n[1]||(n[1]=e.withModifiers((...H)=>l.selectFiles&&l.selectFiles(...H),["prevent"])),title:"Drag new image to this area to replace old one!"}),[fs,e.createElementVNode("img",{src:l.imageSource,alt:(x=o.image)==null?void 0:x.alt,title:(T=o.image)==null?void 0:T.tooltip},null,8,us)],16),e.createVNode(s,{class:"hidden",element:"input",type:"file",labelText:"Select new image",disabled:i.uploadInitiated,onChange:l.fileSelected,ref:"formElement"},null,8,["disabled","onChange"])],64)):l.imageSource?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.imageSource,alt:(M=o.image)==null?void 0:M.alt,title:(q=o.image)==null?void 0:q.tooltip},null,8,ps)):e.createCommentVNode("",!0),(L=o.figcaption)!=null&&L.show&&((Z=o.figcaption)==null?void 0:Z.position)!=="top"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[C.editing?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:e.normalizeClass([l.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",showLabel:!1,modelValue:l.editableFigcaptionText,"onUpdate:modelValue":n[2]||(n[2]=H=>l.editableFigcaptionText=H),placeholder:"figcaption"},null,8,["class","modelValue"])):(Y=o.figcaption)!=null&&Y.text?(e.openBlock(),e.createElementBlock("figcaption",{key:1,innerHTML:(X=o.figcaption)==null?void 0:X.text},null,8,gs)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),!C.editing&&!l.imageSource?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",class:"button confirm",onClick:n[3]||(n[3]=(...H)=>l.onAddItem&&l.onAddItem(...H))},ys)):e.createCommentVNode("",!0)],2)]}),_:1},8,["componentProps","componentPath","allowDeleteComponent","itemProvider"])):(e.openBlock(),e.createElementBlock("figure",{key:1,class:e.normalizeClass(["cmd-image",l.textAlign])},[(h=o.figcaption)!=null&&h.show&&((d=o.figcaption)==null?void 0:d.position)==="top"?(e.openBlock(),e.createElementBlock("figcaption",{key:0,innerHTML:(m=o.figcaption)==null?void 0:m.text},null,8,ks)):e.createCommentVNode("",!0),e.createElementVNode("img",{src:l.imageSource,alt:(p=o.image)==null?void 0:p.alt,title:(f=o.image)==null?void 0:f.tooltip,onLoad:n[4]||(n[4]=(...C)=>l.onImageLoaded&&l.onImageLoaded(...C))},null,40,Cs),(u=o.figcaption)!=null&&u.show&&((y=o.figcaption)==null?void 0:y.position)!=="top"?(e.openBlock(),e.createElementBlock("figcaption",{key:1,innerHTML:(k=o.figcaption)==null?void 0:k.text},null,8,bs)):e.createCommentVNode("",!0)],2))}const ae=B(ms,[["render",Bs]]),ws={name:"CmdSlideButton",props:{slideButtonType:{type:String,default:"next",validator(t){return t==="next"||t==="prev"||t==="up"||t==="down"}},slideButtons:{type:Object,default:function(){return{prev:{iconClass:"icon-chevron-one-stripe-left",tooltip:"Previous"},next:{iconClass:"icon-chevron-one-stripe-right",tooltip:"Next"},up:{iconClass:"icon-chevron-one-stripe-up",tooltip:"Previous"},down:{iconClass:"icon-chevron-one-stripe-down",tooltip:"Next"}}}}},computed:{getDirection(){return this.slideButtons[this.slideButtonType]?this.slideButtons[this.slideButtonType]:(console.warn("Property 'slideButtonType' does not match slideButtons-key"),{})}}},_s=["title"];function xs(t,n,o,a,i,l){const s=N;return e.openBlock(),e.createElementBlock("a",{href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),class:e.normalizeClass(["cmd-slide-button","button","keep-behavior-on-small-devices",o.slideButtonType]),title:l.getDirection.tooltip},[e.createVNode(s,{iconClass:l.getDirection.iconClass||"next"},null,8,["iconClass"])],10,_s)}const ke=B(ws,[["render",xs]]),Es={name:"CmdThumbnailScroller",emits:["click"],mixins:[j,{data(){return{defaultMessageProperties:{"cmdthumbnailscroller.tooltip.open_large_image":"Open large image","cmdthumbnailscroller.tooltip.open_url":"Open URL in a new tab","cmdthumbnailscroller.tooltip.open":"Open"}}}},P],data(){return{items:[],showSlidebuttons:!0}},props:{orientation:{type:String,default:"horizontal"},fullWidth:{type:Boolean,default:!1},largeIcons:{type:Boolean,default:!1},contentType:{type:String,default:"image",validator(t){return t==="image"||t==="text"}},executeOnClick:{type:String,default:"fancybox",validator(t){return t==="fancybox"||t==="url"||t==="emit"}},thumbnailScrollerItems:{type:Array,required:!0},allowOpenFancyBox:{type:Boolean,default:!0},activeItemIndex:{type:Number,required:!1},figcaption:{type:Object,default(){return{show:!0,position:"below-image"}}},useGalleryScroller:{type:Boolean,default:!1},cmdHeadline:{type:Object,required:!1},cmdSlideButtons:{type:Object,default(){return{next:{next:{type:"next",iconClass:"icon-chevron-one-stripe-right",tooltip:"Next"}},prev:{prev:{type:"prev",iconClass:"icon-chevron-one-stripe-left",tooltip:"Previous"}}}}}},mounted(){const t=this.$refs["thumbnail-scroller"],n=t.querySelector("ul");new ResizeObserver(()=>this.toggleSlideButtons(n)).observe(t)},computed:{tooltip(){return this.contentType==="image"?this.getMessage("cmdthumbnailscroller.tooltip.open_large_image"):this.executeOnClick==="url"?this.getMessage("cmdthumbnailscroller.tooltip.open_url"):this.getMessage("cmdthumbnailscroller.tooltip.open")},fullWidthClass(){return this.orientation==="horizontal"?"full-width":null}},methods:{itemProvider(){return{image:{id:ce(),src:"/media/images/demo-images/small/landscape-01.jpg",srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",alt:"Alternative Text",tooltip:"Tooltip 1"},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},onAddItem(){this.editModeContext.content.addContent(ee(this,"props","thumbnailScrollerItems",-1),this.itemProvider)},imageStructure(){return{itemProviderOverwrite:()=>({image:{id:ce(),src:"/media/images/demo-images/small/landscape-01.jpg",srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",tooltip:"Tooltip DE"}})}},toggleSlideButtons(t){this.showSlidebuttons=t.scrollWidth>t.clientWidth},showNextItem(){const t=this.items.shift();t&&this.items.push(t)},showPrevItem(){const t=this.items.pop();t&&this.items.unshift(t)},showFancyBox(t){this.allowOpenFancyBox&&Ce({fancyBoxGallery:this.items,defaultGalleryIndex:t}),this.emitCurrentItemId(t)},emitCurrentItemId(t){if(this.contentType==="image"){this.$emit("click",this.items[t].image.id);return}this.$emit("click",this.items[t].id)},executeLink(t,n){this.executeOnClick==="emit"?(n.preventDefault(),this.emitCurrentItemId(t)):this.executeOnClick==="fancybox"&&(n.preventDefault(),this.showFancyBox(t))}},watch:{thumbnailScrollerItems:{handler(){this.items=this.thumbnailScrollerItems.map(t=>{let n;return this.contentType==="image"?(n={image:{...t.image},figcaption:{...t.figcaption}},n.image.srcImageSmall&&(n.image.src=n.image.srcImageSmall)):n={...t},n})},immediate:!0,deep:!0}}},Ss={class:"inner-thumbnail-wrapper"},Vs=["href","onClick","title","target"],Ts={key:1},Ns={key:1},Is={key:0},Fs=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new thumbnail-scroller-image",-1)];function Os(t,n,o,a,i,l){var d;const s=O,r=ke,c=ae,h=N;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-thumbnail-scroller",{"gallery-scroller":o.useGalleryScroller,"large-icons":o.largeIcons,vertical:o.orientation==="vertical"},l.fullWidthClass]),ref:"thumbnail-scroller"},[(d=o.cmdHeadline)!=null&&d.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",Ss,[i.showSlidebuttons?(e.openBlock(),e.createBlock(r,{key:0,onClick:e.withModifiers(l.showPrevItem,["prevent"]),slideButtonType:"prev"},null,8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"slide",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(m,p)=>(e.openBlock(),e.createElementBlock("li",{key:p},[t.editModeContext?o.contentType==="image"?(e.openBlock(),e.createBlock(c,{key:1,image:m.image,figcaption:m.figcaption,componentPath:["props","thumbnailScrollerItems",p],editModeConfig:l.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"])):o.contentType==="text"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),m.text?(e.openBlock(),e.createElementBlock("span",Ns,e.toDisplayString(m.text),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:0,href:o.executeOnClick==="url"?m.url:"#",onClick:f=>l.executeLink(p,f),class:e.normalizeClass([{active:o.activeItemIndex===p},m.id?"item-"+m.id:""]),title:l.tooltip,target:o.executeOnClick==="url"?"_blank":null},[o.contentType==="image"?(e.openBlock(),e.createBlock(c,{key:0,image:m.image,figcaption:m.figcaption},null,8,["image","figcaption"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),m.text?(e.openBlock(),e.createElementBlock("span",Ts,e.toDisplayString(m.text),1)):e.createCommentVNode("",!0)],64))],10,Vs))]))),128)),!i.items.length&&o.contentType==="image"?(e.openBlock(),e.createElementBlock("li",Is,[e.createElementVNode("button",{type:"button",class:"button confirm",onClick:n[0]||(n[0]=(...m)=>l.onAddItem&&l.onAddItem(...m))},Fs)])):e.createCommentVNode("",!0)]),_:1}),i.showSlidebuttons?(e.openBlock(),e.createBlock(r,{key:1,onClick:e.withModifiers(l.showNextItem,["prevent"]),slideButtons:o.cmdSlideButtons.next},null,8,["onClick","slideButtons"])):e.createCommentVNode("",!0)])],2)}const Co=B(Es,[["render",Os]]),Ce=t=>{const n=document.createElement("div");document.querySelector("body").appendChild(n),e.createApp(bo,{...t,show:!0}).mount(n)},bo=e.defineComponent({name:"CmdFancyBox",mixins:[ye],emits:["cancel","confirm"],data(){return{fancyBoxContent:null,fancyBoxElements:null,fancyBoxImageUrl:null,index:this.defaultGalleryIndex,printInGrayscale:!1,showFancyBox:this.show}},props:{defaultAriaLabelText:{type:String,required:!1},url:{type:String,required:!1},showPrintButtons:{type:Boolean,default:!1},showSubmitButtons:{type:Boolean,default:!1},fancyboxOptions:{type:Object,default(){return{closeIcon:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Close"},printButtons:{color:{iconClass:"icon-print",iconType:"auto",tooltip:"print in color"},grayscale:{iconClass:"icon-print",iconType:"auto",tooltip:"print in grayscale"}},submitButtons:{cancel:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Cancel",buttonText:"Cancel"},confirm:{iconClass:"icon-check",iconType:"auto",buttonText:"Confirm",tooltip:"Confirm",buttonType:"primary"}}}}},allowEscapeKey:{type:Boolean,default:!0},content:{type:String,required:!1},elements:{type:Array,required:!1},fancyBoxGallery:{type:Array,required:!1},defaultGalleryIndex:{type:Number,required:!1},show:{type:Boolean,default:!1},showOverlay:{type:Boolean,default:!0},cmdImage:{type:Object,required:!1},cmdHeadline:{type:Object,required:!1}},created(){this.$_FancyBox_scrollHandler=()=>{window.scrollTo(0,this.$_FancyBox_verticalScrollPosition)},this.$watch(()=>[this.url,this.content,this.elements],this.updateContentOnPropertyChange,{immediate:!0})},mounted(){this.showFancyBox&&this.showDialog()},computed:{largeGalleryImage(){const t={...this.fancyBoxGallery[this.index].image};return t.src=t.srcImageLarge,t},largeSingleImage(){var n;const t={...((n=this.cmdImage)==null?void 0:n.image)||{}};return this.fancyBoxImageUrl&&(t.src=this.fancyBoxImageUrl),t},ariaLabelText(){var t;return(t=this.fancyBoxGallery)!=null&&t.length?this.fancyBoxGallery[this.index].figcaption.text:this.defaultAriaLabelText}},methods:{onDialogCancel(t){if(!this.allowEscapeKey){t.preventDefault();return}this.close()},showDialog(){document.querySelector("body").classList.add("avoid-scrolling"),this.$refs.dialog.showModal(),this.$refs["close-dialog"].focus()},updateContentOnPropertyChange(){this.fancyBoxImageUrl=this.fancyBoxContent=this.fancyBoxElements=null,this.url?this.loadContent(this.url):this.content?this.fancyBoxContent=this.content:this.elements&&(this.fancyBoxElements=this.elements.map(t=>t.cloneNode(!0)),this.$nextTick(()=>{this.$refs.elements.append(...this.fancyBoxElements)}))},async loadContent(t){(await Ms(t)).startsWith("image/")?this.fancyBoxImageUrl=t:fetch(t).then(o=>o.text()).then(o=>this.fancyBoxContent=o).catch(o=>console.error(`Error loading ${this.url}: ${o}`))},showPrevItem(){this.index>0?this.index--:this.index=this.fancyBoxGallery.length-1},showItem(t){for(let n=0;n<this.fancyBoxGallery.length;n++)if(this.fancyBoxGallery[n].image.id===t){this.index=n;break}},showNextItem(){this.index<this.fancyBoxGallery.length-1?this.index++:this.index=0},close(){this.showFancyBox=!1,this.$emit("update:show",!1),document.querySelector("body").classList.remove("avoid-scrolling")},cancel(){this.$emit("cancel",!0),this.close()},confirm(){this.$emit("confirm",!0),this.close()}},watch:{show(t){this.showFancyBox=t},showFancyBox:{handler(){this.showFancyBox?this.showDialog():(document.querySelector("body").classList.remove("avoid-scrolling"),this.$refs.dialog.close())}}}});async function Ms(t){const n=await fetch(t,{method:"HEAD"});return n.ok?(n.headers.get("Content-Type")||"").split(";")[0]:"text/html"}const Ds=bo,Ls=["aria-label"],Ps={class:"flex-container"},As={key:1,class:"button-wrapper no-flex"},qs=["title"],Hs=["title"],zs=["title"],Rs={key:0,class:"content"},js=["innerHTML"],Us={key:2,class:"content",ref:"elements"},Ws={key:3,class:"content"},Gs={key:4,class:"content"},Js={key:0,class:"flex-container no-flex"},Ks=["title"],Zs={key:1},Ys=["title"],Xs={key:1};function Qs(t,n,o,a,i,l){var m,p,f,u,y,k,C,S,w,_,F,x,T,M,q,L,Z,Y,X,H,le,E,$,xe,Ee,Se,Ve,Te,Ne;const s=O,r=N,c=ae,h=ke,d=Co;return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("dialog",{ref:"dialog",class:e.normalizeClass(["cmd-fancybox",{"show-overlay":t.showOverlay,image:t.fancyBoxImageUrl||t.fancyBoxGallery,"image-gallery":t.fancyBoxGallery}]),"aria-label":t.ariaLabelText,onCancel:n[5]||(n[5]=(...W)=>t.onDialogCancel&&t.onDialogCancel(...W))},[e.createElementVNode("header",Ps,[(m=t.cmdHeadline)!=null&&m.show?(e.openBlock(),e.createBlock(s,{key:0,headlineText:(p=t.cmdHeadline)==null?void 0:p.headlineText,headlineLevel:(f=t.cmdHeadline)==null?void 0:f.headlineLevel,id:t.htmlId},null,8,["headlineText","headlineLevel","id"])):e.createCommentVNode("",!0),(u=t.fancyboxOptions.printButtons)!=null&&u.color||(y=t.fancyboxOptions.printButtons)!=null&&y.grayscale||t.fancyboxOptions.closeIcon?(e.openBlock(),e.createElementBlock("div",As,[t.showPrintButtons&&((k=t.fancyboxOptions.printButtons)!=null&&k.color)?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:"button print-color",title:(C=t.fancyboxOptions.printButtons.color)==null?void 0:C.tooltip,onClick:n[0]||(n[0]=e.withModifiers(W=>t.printInGrayscale=!1,["prevent"]))},[e.createVNode(r,{iconClass:(S=t.fancyboxOptions.printButtons.color)==null?void 0:S.iconClass,type:(w=t.fancyboxOptions.printButtons.color)==null?void 0:w.iconType},null,8,["iconClass","type"])],8,qs)):e.createCommentVNode("",!0),t.showPrintButtons&&((_=t.fancyboxOptions.printButtons)!=null&&_.grayscale)?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:"button print-grayscale",title:(F=t.fancyboxOptions.printButtons.grayscale)==null?void 0:F.tooltip,onClick:n[1]||(n[1]=e.withModifiers(W=>t.printInGrayscale=!0,["prevent"]))},[e.createVNode(r,{iconClass:(x=t.fancyboxOptions.printButtons.grayscale)==null?void 0:x.iconClass,type:(T=t.fancyboxOptions.printButtons.grayscale)==null?void 0:T.iconType},null,8,["iconClass","type"])],8,Hs)):e.createCommentVNode("",!0),t.fancyboxOptions.closeIcon?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",class:"button",id:"close-dialog",title:t.fancyboxOptions.closeIcon.tooltip,ref:"close-dialog",onClick:n[2]||(n[2]=e.withModifiers((...W)=>t.close&&t.close(...W),["prevent"]))},[e.createVNode(r,{iconClass:t.fancyboxOptions.closeIcon.iconClass,type:t.fancyboxOptions.closeIcon.iconType},null,8,["iconClass","type"])],8,zs)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["outer-content-wrapper",{grayscale:t.printInGrayscale}])},[t.fancyBoxImageUrl||(M=t.cmdImage)!=null&&M.image?(e.openBlock(),e.createElementBlock("div",Rs,[e.createVNode(c,{image:t.largeSingleImage,figcaption:(q=t.cmdImage)==null?void 0:q.figcaption},null,8,["image","figcaption"])])):t.fancyBoxContent?(e.openBlock(),e.createElementBlock("div",{key:1,class:"content",innerHTML:t.fancyBoxContent},null,8,js)):t.fancyBoxElements?(e.openBlock(),e.createElementBlock("div",Us,null,512)):t.fancyBoxGallery?(e.openBlock(),e.createElementBlock("div",Ws,[e.createVNode(h,{onClick:e.withModifiers(t.showPrevItem,["prevent"]),slideButtonType:"prev"},null,8,["onClick"]),e.createVNode(c,{image:t.largeGalleryImage,figcaption:t.fancyBoxGallery[t.index].figcaption},null,8,["image","figcaption"]),e.createVNode(h,{onClick:e.withModifiers(t.showNextItem,["prevent"])},null,8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",Gs,[e.renderSlot(t.$slots,"default")]))],2),t.showSubmitButtons&&t.fancyboxOptions.submitButtons?(e.openBlock(),e.createElementBlock("footer",Js,[(L=t.fancyboxOptions.submitButtons)!=null&&L.cancel?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[3]||(n[3]=(...W)=>t.cancel&&t.cancel(...W)),title:(Z=t.fancyboxOptions.submitButtons.cancel)==null?void 0:Z.tooltip},[(Y=t.fancyboxOptions.submitButtons.cancel)!=null&&Y.iconClass?(e.openBlock(),e.createBlock(r,{key:0,iconClass:(X=t.fancyboxOptions.submitButtons.cancel)==null?void 0:X.iconClass,type:(H=t.fancyboxOptions.submitButtons.cancel)==null?void 0:H.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),(le=t.fancyboxOptions.submitButtons.cancel)!=null&&le.buttonText?(e.openBlock(),e.createElementBlock("span",Zs,e.toDisplayString((E=t.fancyboxOptions.submitButtons.cancel)==null?void 0:E.buttonText),1)):e.createCommentVNode("",!0)],8,Ks)):e.createCommentVNode("",!0),($=t.fancyboxOptions.submitButtons)!=null&&$.confirm?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[4]||(n[4]=(...W)=>t.confirm&&t.confirm(...W)),title:(xe=t.fancyboxOptions.submitButtons.cancel)==null?void 0:xe.tooltip},[(Ee=t.fancyboxOptions.submitButtons.confirm)!=null&&Ee.iconClass?(e.openBlock(),e.createBlock(r,{key:0,iconClass:(Se=t.fancyboxOptions.submitButtons.confirm)==null?void 0:Se.iconClass,type:(Ve=t.fancyboxOptions.submitButtons.confirm)==null?void 0:Ve.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),(Te=t.fancyboxOptions.submitButtons.confirm)!=null&&Te.buttonText?(e.openBlock(),e.createElementBlock("span",Xs,e.toDisplayString((Ne=t.fancyboxOptions.submitButtons.confirm)==null?void 0:Ne.buttonText),1)):e.createCommentVNode("",!0)],8,Ys)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.fancyBoxGallery?(e.openBlock(),e.createBlock(d,{key:1,thumbnailScrollerItems:[...t.fancyBoxGallery],allowOpenFancyBox:!1,onClick:t.showItem,activeItemIndex:t.index},null,8,["thumbnailScrollerItems","onClick","activeItemIndex"])):e.createCommentVNode("",!0)],42,Ls)])}const $s=B(Ds,[["render",Qs]]),vs={name:"CmdListOfLinksItem",inheritAttrs:!1,mixins:[P],data(){return{editableText:this.link.text}},props:{link:{type:Object,required:!1}},methods:{updateHandlerProvider(){const t=this.editableText;return z(this,{update(n){n.text=t}})},getRoute(t){return getRoute(t)},executeLink(t,n){if(t.fancybox){n.preventDefault(),Ce({url:t.path,showSubmitButtons:t.showSubmitButtons});return}this.$emit("click",{link:t,originalEvent:n})}}},er={key:0,class:"cmd-list-of-links-item"},tr=["href","target","title"],or={key:1},nr={key:1},lr={key:2},ir={key:1,class:"input-wrapper"};function ar(t,n,o,a,i,l){const s=N,r=e.resolveComponent("router-link"),c=e.resolveComponent("CmdListOfLinksItem",!0),h=A;return t.editing?(e.openBlock(),e.createElementBlock("div",ir,[e.createVNode(h,{element:"input",type:"text",labelText:"Linktext",showLabel:!1,placeholder:"Linktext",modelValue:i.editableText,"onUpdate:modelValue":n[1]||(n[1]=d=>i.editableText=d)},null,8,["modelValue"])])):(e.openBlock(),e.createElementBlock("li",er,[o.link.type==="href"||o.link.type===void 0?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.link.path,target:o.link.target,onClick:n[0]||(n[0]=d=>l.executeLink(o.link,d)),title:o.link.tooltip&&o.link.tooltip!==void 0?o.link.tooltip:void 0},[o.link.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.link.iconClass,type:o.link.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.link.text?(e.openBlock(),e.createElementBlock("span",or,e.toDisplayString(o.link.text),1)):e.createCommentVNode("",!0)],8,tr)):o.link.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(o.link),title:o.link.tooltip},{default:e.withCtx(()=>[o.link.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.link.iconClass,type:o.link.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.link.text?(e.openBlock(),e.createElementBlock("span",nr,e.toDisplayString(o.link.text),1)):e.createCommentVNode("",!0)]),_:1},8,["to","title"])):e.createCommentVNode("",!0),t.editModeContext?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("ul",lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.link.children,(d,m)=>(e.openBlock(),e.createBlock(c,{key:m,link:d},null,8,["link"]))),128))]))]))}const sr=B(vs,[["render",ar]]),rr={name:"CmdListOfLinks",emits:["click"],mixins:[P],props:{useGap:{type:Boolean,default:!0},styleAsBox:{type:Boolean,default:!1},largeIcons:{type:Boolean,default:!1},sectionAnchors:{type:Boolean,default:!1},activeSection:{type:Number,default:0},showListStyleItems:{type:Boolean,default:!1},align:{type:String,default:"left",validator(t){return t==="left"||t==="center"||t==="right"}},cmdHeadline:{type:Object,required:!1},links:{type:Array,required:!1},orientation:{type:String,default:"vertical",validator(t){return t==="horizontal"||t==="vertical"}}},computed:{setStretchClass(){return this.largeIcons&&this.orientation==="horizontal"?"stretch":null}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","links",-1),this.itemProvider)},itemProvider(){return{iconClass:"icon-user-profile",type:"href",text:"Linktext",path:"#",tooltip:"Tooltip",target:"_blank"}},updateHandlerProvider(){return z(this,{update(t,n){const o=n==null?void 0:n.find(a=>a.name==="CmdHeadline");o&&(t.cmdHeadline=t.cmdHeadline||{},o.update(t.cmdHeadline))}})}}},cr={key:1},dr=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new entry",-1)];function mr(t,n,o,a,i,l){var h;const s=O,r=sr,c=te;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-list-of-links",{box:o.styleAsBox,horizontal:o.orientation==="horizontal","section-anchors":o.sectionAnchors,"large-icons":o.largeIcons,"show-list-style-items":o.showListStyleItems}])},[(h=o.cmdHeadline)!=null&&h.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass(["flex-container",{"no-gap":!o.useGap},"align-"+o.align,l.setStretchClass])},[t.editModeContext?(e.openBlock(),e.createElementBlock("li",cr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.links,(d,m)=>(e.openBlock(),e.createBlock(c,{key:"x"+m,class:"edit-items",showComponentName:!1,componentTag:"ul",componentName:"CmdLinkItem",componentProps:d,allowedComponentTypes:[],componentPath:["props","links",m],itemProvider:l.itemProvider},{default:e.withCtx(()=>[e.createVNode(r,{class:e.normalizeClass({active:o.sectionAnchors&&o.activeSection===m}),link:d},null,8,["class","link"])]),_:2},1032,["componentProps","componentPath","itemProvider"]))),128)),o.links.length===0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:n[0]||(n[0]=(...d)=>l.onAddItem&&l.onAddItem(...d))},dr)):e.createCommentVNode("",!0)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.links,(d,m)=>(e.openBlock(),e.createBlock(r,{key:m,class:e.normalizeClass({active:o.sectionAnchors&&o.activeSection===m}),link:d},null,8,["class","link"]))),128))],2)],2)}const yt=B(rr,[["render",mr]]),hr={name:"CmdLink",emits:["click"],props:{linkType:{type:String,default:"href",validator(t){return t==="href"||t==="router"||t==="button"}},path:{type:String,default:"#"},target:{type:String,default:""},icon:{type:Object,default:{}},text:{type:String,default:""},styleAsButton:{type:Boolean,default:!1},primaryButton:{type:Boolean,default:!1}},methods:{emitClick(t,n){this.$emit("click",{originalEvent:t,linkType:n})}}},fr=["href","target"],ur=["title"],pr={key:1},gr=["title"],yr=["title"],kr={key:1},Cr=["title"],br=["title"],Br={key:1},wr=["title"];function _r(t,n,o,a,i,l){const s=e.resolveComponent("router-link");return o.linkType==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.path,target:o.target,class:e.normalizeClass(["cmd-link",{button:o.styleAsButton,primary:o.primaryButton}]),onClick:n[0]||(n[0]=e.withModifiers(r=>l.emitClick(r,"href"),["prevent"]))},[o.icon.iconClass&&o.icon.position!=="right"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,ur)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("span",pr,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),o.icon.iconClass&&o.icon.position==="right"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,gr)):e.createCommentVNode("",!0)],10,fr)):o.linkType==="router"?(e.openBlock(),e.createBlock(s,{key:1,to:o.path,class:e.normalizeClass(["cmd-link",{button:o.styleAsButton,primary:o.primaryButton}]),onClick:n[1]||(n[1]=e.withModifiers(r=>l.emitClick(r,"router"),["prevent"]))},{default:e.withCtx(()=>[o.icon.iconClass&&o.icon.position!=="right"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,yr)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("span",kr,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),o.icon.iconClass&&o.icon.position==="right"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,Cr)):e.createCommentVNode("",!0)]),_:1},8,["to","class"])):o.linkType==="button"?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cmd-link button",{primary:o.primaryButton}]),type:"submit",onClick:n[2]||(n[2]=e.withModifiers(r=>l.emitClick(r,"button"),["prevent"]))},[o.icon.iconClass&&o.icon.position!=="right"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,br)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("span",Br,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),o.icon.iconClass&&o.icon.position==="right"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,wr)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}const Bo=B(hr,[["render",_r]]),kt={name:"CmdBox",mixins:[j,{data(){return{defaultMessageProperties:{"cmdbox.productbox.new":"New","cmdbox.productbox.article_no":"Article No:","cmdbox.contentbox.collapse_text":"Collapse text","cmdbox.contentbox.expand_text":"Expand text"}}}},{props:{globalCurrency:{type:Object,default(){return{symbol:"€",name:"Euro"}}}}}],emits:["click","toggle-collapse"],data(){return{open:this.collapsible?this.openCollapsedBox:!0,active:!0,showCutOffText:!1,calculatedBodyHeight:this.maxBoxBodyHeight}},props:{openCollapsedBox:{type:Boolean,required:!1},rowView:{type:Boolean,default:!1},boxType:{type:String,default:"content",validator(t){return t==="content"||t==="product"||t==="user"}},allowContentToScroll:{type:Boolean,default:!1},maxBoxBodyHeight:{type:String,default:"20rem"},collapsible:{type:Boolean,default:!1},cutoffTextLines:{type:Number,default:0},useDefaultPadding:{type:Boolean,default:!0},repeatHeadlineInBoxBody:{type:Boolean,default:!1},fadeLastLine:{type:Boolean,default:!0},useTransition:{type:Boolean,default:!0},boxBodyClass:{type:String,required:!1},defaultProfileIconClass:{type:String,default:"icon-user-profile"},product:{type:Object,required:!1},user:{type:Object,required:!1},profileType:{type:String,default:"business",validator(t){return t==="business"||t==="influencer"||t==="dating"}},useSlots:{type:Array,required:!1},image:{type:Object,required:!1},textBody:{type:String,default:""},iconOpen:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Close content",iconType:"auto"}}},iconClosed:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-down",tooltip:"Show content",iconType:"auto"}}},stretchHorizontally:{type:Boolean,default:!0},stretchVertically:{type:Boolean,default:!0},cmdHeadline:{type:Object,required:!1},cmdLink:{type:Object,default:{}}},computed:{toggleTransition(){return this.useTransition?"fade":""}},methods:{toggleContentVisibility(){this.open=!this.open,this.active=!this.active,this.$emit("toggle-collapse",this.open)},toggleCutOffText(){this.showCutOffText=!this.showCutOffText,this.$emit("toggle-cutofftext",this.showCutOffText)},clickOnProduct(t){this.$emit("click",t)},setFocus(){this.$nextTick(()=>{if(this.open){const t=this.$refs.cmdBox.querySelector(":is(input, select, textarea):first-of-type");t&&t.focus()}})}},watch:{openCollapsedBox(){this.collapsible&&(this.open=this.openCollapsedBox,this.setFocus())},open(){this.setFocus()}}},wo=()=>{e.useCssVars(t=>({f83c9ab2:t.cutoffTextLines}))},_o=kt.setup;kt.setup=_o?(t,n)=>(wo(),_o(t,n)):wo;const xr=["title"],Er={key:0,class:"box-header"},Sr=["innerHTML"],Vr=["src","alt"],Tr=["innerHTML"],Nr={key:2,class:"box-footer"},Ir={key:2,class:"box-footer"},Fr={class:"box-header flex-container vertical"},Or={key:0},Mr=["src","alt"],Dr={key:1},Lr={key:2,class:"ribbon-new"},Pr={key:3,class:"ribbon-discount"},Ar={class:"box-body"},qr={key:0},Hr={key:1,class:"price"},zr=["title"],Rr={key:2},jr={class:"box-header flex-container vertical"},Ur={key:0},Wr=["src","alt"],Gr={key:0,class:"user-name"},Jr={key:0,class:"user-age"},Kr={key:1},Zr=["title"],Yr={key:0,class:"user-name"},Xr={class:"box-body"},Qr={key:0,class:"user-name"},$r={key:1},vr={key:2},ec={key:3,class:"description"},tc={key:0,class:"tags"},oc={key:1,class:"box-footer"};function nc(t,n,o,a,i,l){var d,m,p,f,u,y,k,C,S,w;const s=O,r=N,c=Bo,h=yt;return o.boxType==="content"?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"cmdBox",class:e.normalizeClass(["cmd-box box content",{open:i.open,collapsible:o.collapsible,"stretch-vertically":o.stretchVertically&&!o.collapsible,"stretch-horizontally":o.stretchHorizontally,"row-view":o.rowView}])},[o.collapsible?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:"box-header",title:i.open?o.iconOpen.tooltip:o.iconClosed.tooltip,onClick:n[0]||(n[0]=e.withModifiers((..._)=>l.toggleContentVisibility&&l.toggleContentVisibility(..._),["prevent"]))},[(d=o.useSlots)!=null&&d.includes("header")?e.renderSlot(t.$slots,"header",{key:0}):(m=o.cmdHeadline)!=null&&m.headlineText?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:1},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createVNode(r,{iconClass:i.open?o.iconOpen.iconClass:o.iconClosed.iconClass,type:i.open?o.iconOpen.iconType:o.iconClosed.iconType},null,8,["iconClass","type"])],8,xr)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(p=o.useSlots)!=null&&p.includes("header")||(f=o.cmdHeadline)!=null&&f.headlineText?(e.openBlock(),e.createElementBlock("div",Er,[(u=o.useSlots)!=null&&u.includes("header")?e.renderSlot(t.$slots,"header",{key:0}):e.createCommentVNode("",!0),(y=o.cmdHeadline)!=null&&y.headlineText?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:1},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["box-body",o.boxBodyClass]),"aria-expanded":"true",role:"article"},[(k=o.useSlots)!=null&&k.includes("body")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["inner-box-body-wrapper",{"default-padding":o.useDefaultPadding,"allow-scroll":o.allowContentToScroll}]),ref:"boxBody",style:e.normalizeStyle(o.allowContentToScroll?"max-height: "+i.calculatedBodyHeight:null)},[e.renderSlot(t.$slots,"body",{},()=>[e.createVNode(e.TransitionGroup,{name:l.toggleTransition},{default:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass({"cutoff-text":o.cutoffTextLines>0,"fade-last-line":o.fadeLastLine&&!i.showCutOffText,"show-text":i.showCutOffText}),innerHTML:o.textBody},null,10,Sr),o.cutoffTextLines>0?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[1]||(n[1]=e.withModifiers((..._)=>l.toggleCutOffText&&l.toggleCutOffText(..._),["prevent"]))},e.toDisplayString(i.showCutOffText?t.getMessage("cmdbox.contentbox.collapse_text"):t.getMessage("cmdbox.contentbox.expand_text")),1)):e.createCommentVNode("",!0)]),_:1},8,["name"])])],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["inner-box-body-wrapper",{"allow-scroll":o.allowContentToScroll}])},[o.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.image.src,alt:o.image.altText},null,8,Vr)):e.createCommentVNode("",!0),o.textBody?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({"default-padding":o.useDefaultPadding,"allow-scroll":o.allowContentToScroll})},[(C=o.cmdHeadline)!=null&&C.headlineText&&o.repeatHeadlineInBoxBody?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.textBody?(e.openBlock(),e.createElementBlock("p",{key:1,innerHTML:o.textBody},null,8,Tr)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),(S=o.cmdLink)!=null&&S.linkType?(e.openBlock(),e.createElementBlock("div",Nr,[e.createVNode(c,e.normalizeProps(e.guardReactiveProps(o.cmdLink)),null,16)])):e.createCommentVNode("",!0)],2))],2),[[e.vShow,i.open]]),(w=o.useSlots)!=null&&w.includes("footer")?(e.openBlock(),e.createElementBlock("div",Ir,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)],2)):o.boxType==="product"&&o.product?(e.openBlock(),e.createElementBlock("a",{key:1,class:e.normalizeClass(["cmd-box box product",{"stretch-vertically":o.stretchVertically,"stretch-horizontally":o.stretchHorizontally,"row-view":o.rowView}]),href:"#",onClick:n[2]||(n[2]=e.withModifiers(_=>l.clickOnProduct(o.product),["prevent"]))},[e.createElementVNode("div",Fr,[o.product.image!==void 0?(e.openBlock(),e.createElementBlock("figure",Or,[e.createElementVNode("img",{src:o.product.image.src,alt:o.product.image.alt},null,8,Mr),e.createElementVNode("figcaption",null,e.toDisplayString(o.product.name),1)])):(e.openBlock(),e.createElementBlock("p",Dr,e.toDisplayString(o.product.name),1)),o.product.new?(e.openBlock(),e.createElementBlock("div",Lr,[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmdbox.productbox.new")),1)])):e.createCommentVNode("",!0),o.product.discount?(e.openBlock(),e.createElementBlock("div",Pr,[e.createElementVNode("span",null,e.toDisplayString(o.product.discount),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ar,[o.product.articleNumber?(e.openBlock(),e.createElementBlock("p",qr,e.toDisplayString(t.getMessage("cmdbox.productbox.article_no"))+" "+e.toDisplayString(o.product.articleNumber),1)):e.createCommentVNode("",!0),o.product.price?(e.openBlock(),e.createElementBlock("p",Hr,[e.createElementVNode("span",null,e.toDisplayString(o.product.price),1),e.createElementVNode("span",{title:t.globalCurrency.name},e.toDisplayString(t.globalCurrency.symbol),9,zr)])):e.createCommentVNode("",!0),o.product.description?(e.openBlock(),e.createElementBlock("p",Rr,e.toDisplayString(o.product.description),1)):e.createCommentVNode("",!0)])],2)):o.boxType==="user"&&o.user?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cmd-box box user",o.profileType,{"stretch-vertically":o.stretchVertically,"stretch-horizontally":o.stretchHorizontally,"row-view":o.rowView}])},[e.createElementVNode("div",jr,[o.user.image?(e.openBlock(),e.createElementBlock("figure",Ur,[e.createElementVNode("img",{src:o.user.image.src,alt:o.user.image.alt},null,8,Wr),o.rowView?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("figcaption",Gr,[e.createTextVNode(e.toDisplayString(o.user.name),1),o.user.age?(e.openBlock(),e.createElementBlock("span",Jr," ("+e.toDisplayString(o.user.age)+")",1)):e.createCommentVNode("",!0)]))])):(e.openBlock(),e.createElementBlock("div",Kr,[e.createElementVNode("span",{class:e.normalizeClass(o.defaultProfileIconClass),title:o.user.name},null,10,Zr),o.rowView?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Yr,e.toDisplayString(o.user.name),1))]))]),e.createElementVNode("div",Xr,[o.rowView?(e.openBlock(),e.createElementBlock("p",Qr,e.toDisplayString(o.user.name),1)):e.createCommentVNode("",!0),o.user.profession?(e.openBlock(),e.createElementBlock("p",$r,e.toDisplayString(o.user.profession),1)):e.createCommentVNode("",!0),o.user.position?(e.openBlock(),e.createElementBlock("p",vr,e.toDisplayString(o.user.position),1)):e.createCommentVNode("",!0),o.user.description?(e.openBlock(),e.createElementBlock("p",ec,e.toDisplayString(o.user.description),1)):e.createCommentVNode("",!0)]),o.user.tags&&o.user.tags.length?(e.openBlock(),e.createElementBlock("ul",tc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.user.tags,(_,F)=>(e.openBlock(),e.createElementBlock("li",{key:F},e.toDisplayString(_),1))),128))])):e.createCommentVNode("",!0),o.user.links&&o.user.links.length?(e.openBlock(),e.createElementBlock("div",oc,[e.createVNode(h,{links:o.user.links,orientation:"horizontal",useGap:!1},null,8,["links"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}const Ct=B(kt,[["render",nc]]),bt={name:"CmdBoxWrapper",data(){return{rowView:this.useRowViewAsDefault,collapsingBoxesOpen:!0,currentOpenBox:[],oneBoxPerRow:!1}},props:{openBoxesByDefault:{type:Array,required:!1},useGap:{type:Boolean,default:!1},useRowViewAsDefault:{type:Boolean,default:!1},stretchBoxesVertically:{type:Boolean,default:!0},allowUserToToggleOrientation:{type:Boolean,default:!0},allowTogglingCollapsingBoxes:{type:Boolean,default:!1},collapseBoxesIcon:{type:Object,default(){return{iconClass:"icon-chevron-two-stripes-down",tooltip:"Collapse all boxes"}}},expandBoxesIcon:{type:Object,default(){return{iconClass:"icon-chevron-two-stripes-up",tooltip:"Expand all boxes"}}},useFlexbox:{type:Boolean,default:!1},boxesPerRow:{type:[Number,Array],default:4},allowMultipleExpandedBoxes:{type:Boolean,default:!0},iconGridView:{type:Object,default(){return{iconClass:"icon-blocks-small",tooltip:"Toggle to row view"}}},iconRowView:{type:Object,default(){return{iconClass:"icon-rows",tooltip:"Toggle to grid view"}}},cmdHeadline:{type:Object,default(){return{headlineText:"",headlineLevel:4}}}},computed:{boxesPerRowLarge(){return this.boxesPerRowResponsive(0,4)},boxesPerRowMedium(){return this.boxesPerRowResponsive(1,3)},boxesPerRowSmall(){return this.boxesPerRowResponsive(2,1)}},methods:{toggleOrientation(){this.rowView=!this.rowView,this.oneBoxPerRow=this.rowView},boxIsOpen(t){return this.currentOpenBox.includes(t)},boxIsToggled(t){alert(t)},boxesPerRowResponsive(t,n){return this.oneBoxPerRow?1:typeof this.boxesPerRow=="number"?t===0?this.boxesPerRow:Math.min(this.boxesPerRow,n):this.boxesPerRow.length>t?this.boxesPerRow[t]:n},toggleCollapsingBoxes(){this.collapsingBoxesOpen=!this.collapsingBoxesOpen},boxToggled(t,n){if(this.allowMultipleExpandedBoxes)if(n)this.currentOpenBox.push(t);else{let o=this.currentOpenBox.indexOf(t);this.currentOpenBox.splice(o,1)}else this.currentOpenBox=[],n&&this.currentOpenBox.push(t)}},watch:{openBoxesByDefault:{handler(){this.currentOpenBox=[...this.openBoxesByDefault||[]]},immediate:!0},useRowViewAsDefault:{handler(){this.oneBoxPerRow=this.useRowViewAsDefault},immediate:!0}}},xo=()=>{e.useCssVars(t=>({"55a1c0a6":t.boxesPerRowLarge,"5ac88d7a":t.boxesPerRowMedium,"54d20d0e":t.boxesPerRowSmall}))},Eo=bt.setup;bt.setup=Eo?(t,n)=>(xo(),Eo(t,n)):xo;const lc={class:"cmd-box-wrapper"},ic={key:0,class:"flex-container headline-wrapper"},ac={key:1,class:"options-wrapper"},sc=["title"],rc=["title"];function cc(t,n,o,a,i,l){const s=O,r=N;return e.openBlock(),e.createElementBlock("div",lc,[o.cmdHeadline.headlineText||o.allowUserToToggleOrientation||o.allowTogglingCollapsingBoxes?(e.openBlock(),e.createElementBlock("div",ic,[o.cmdHeadline.headlineText?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.allowUserToToggleOrientation||o.allowTogglingCollapsingBoxes?(e.openBlock(),e.createElementBlock("div",ac,[o.allowTogglingCollapsingBoxes?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.toggleCollapsingBoxes&&l.toggleCollapsingBoxes(...c),["prevent"])),title:i.collapsingBoxesOpen?o.collapseBoxesIcon.tooltip:o.expandBoxesIcon.tooltip},[e.createVNode(r,{iconClass:i.collapsingBoxesOpen?o.expandBoxesIcon.iconClass:o.collapseBoxesIcon.iconClass,type:i.rowView?o.iconGridView.iconType:o.iconRowView.iconType},null,8,["iconClass","type"])],8,sc)):e.createCommentVNode("",!0),o.allowUserToToggleOrientation?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",onClick:n[1]||(n[1]=e.withModifiers((...c)=>l.toggleOrientation&&l.toggleOrientation(...c),["prevent"])),title:i.rowView?o.iconRowView.tooltip:o.iconGridView.tooltip},[e.createVNode(r,{iconClass:i.rowView?o.iconGridView.iconClass:o.iconRowView.iconClass,type:i.rowView?o.iconGridView.iconType:o.iconRowView.iconType},null,8,["iconClass","type"])],8,rc)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["inner-box-wrapper",o.useFlexbox?"flex-container":"grid-container-create-columns",{"no-gap":!o.useGap,"row-view":i.rowView,"stretch-boxes-vertically":o.stretchBoxesVertically}])},[e.renderSlot(t.$slots,"default",{collapsingBoxesOpen:i.collapsingBoxesOpen,boxToggled:l.boxToggled,boxIsOpen:l.boxIsOpen,rowView:i.rowView,onToggleCollapse:n[2]||(n[2]=(...c)=>l.boxIsToggled&&l.boxIsToggled(...c))})],2)])}const So=B(bt,[["render",cc]]);function me(t){return t.path?t.path:((t.route==null||typeof t.route!="object"||!t.route.path&&!t.route.name)&&console.error("Error in router configuration. Expected object with 'path' or 'name', got",t.route),t.route)}const dc={name:"CmdBreadcrumbs",props:{breadcrumbLabel:{type:String,required:!1},breadcrumbLinks:{type:Array,required:!1},breadcrumbSeparator:{type:String,default:">"}},methods:{getRoute(t){return me(t)}}},mc={class:"cmd-breadcrumbs"},hc={key:0,class:"breadcrumb-label"},fc=["href"],uc={key:1},pc={key:1},gc={key:2},yc={key:1},kc={key:3};function Cc(t,n,o,a,i,l){const s=N,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ul",mc,[o.breadcrumbLabel?(e.openBlock(),e.createElementBlock("li",hc,e.toDisplayString(o.breadcrumbLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.breadcrumbLinks||[],(c,h)=>(e.openBlock(),e.createElementBlock("li",{key:h},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:c.path},[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",uc,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0)],8,fc)):c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(c)},{default:e.withCtx(()=>[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",pc,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",gc,[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",yc,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0)])),h<o.breadcrumbLinks.length-1?(e.openBlock(),e.createElementBlock("span",kc,e.toDisplayString(o.breadcrumbSeparator),1)):e.createCommentVNode("",!0)]))),128))])}const Vo=B(dc,[["render",Cc]]),bc={name:"CmdCompanyLogo",data(){return{prefersColorScheme:""}},props:{link:{type:Object,required:!1},pathDefaultLogo:{type:String,required:!0},pathDarkmodeLogo:{type:String,required:!1},altText:{type:String,required:!0}},computed:{pathCurrentLogo(){return this.prefersColorScheme==="light"||!this.pathDarkmodeLogo?this.pathDefaultLogo:this.pathDarkmodeLogo},image(){return{src:this.pathCurrentLogo,alt:this.altText}}},created(){this.toggleColorScheme(),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",this.onColorSchemeChange);const t=document.querySelector("html");this.$_observer=new MutationObserver(this.observeDom),this.$_observer.observe(t,{attributes:!0})},beforeUnmount(){window.matchMedia("(prefers-color-scheme: light)").removeEventListener("change",this.onColorSchemeChange),this.$_observer.disconnect()},methods:{onImageLoaded(t){this.$emit("image-loaded",t)},onColorSchemeChange(t){this.prefersColorScheme=t.matches?"light":"dark"},observeDom(t){for(let n=0;n<t.length;n++)if(t[n].type==="attributes"){this.toggleColorScheme();break}},getRoute(t){return me(t)},toggleColorScheme(){document.querySelector("html").classList.contains("light-mode")?this.prefersColorScheme="light":document.querySelector("html").classList.contains("dark-mode")?this.prefersColorScheme="dark":matchMedia("(prefers-color-scheme: light)").matches?this.prefersColorScheme="light":this.prefersColorScheme="dark"}}},Bc={class:"cmd-company-logo company-logo"},wc=["href","title"];function _c(t,n,o,a,i,l){var c,h,d,m,p,f;const s=ae,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",Bc,[((c=o.link)==null?void 0:c.type)==="router"?(e.openBlock(),e.createBlock(r,{key:0,to:(h=o.link)==null?void 0:h.path,title:(d=o.link)==null?void 0:d.tooltip},{default:e.withCtx(()=>[e.createVNode(s,{image:l.image,onImageLoaded:l.onImageLoaded},null,8,["image","onImageLoaded"])]),_:1},8,["to","title"])):((m=o.link)==null?void 0:m.type)==="href"?(e.openBlock(),e.createElementBlock("a",{key:1,href:(p=o.link)==null?void 0:p.path,title:(f=o.link)==null?void 0:f.tooltip},[e.createVNode(s,{image:l.image,onImageLoaded:l.onImageLoaded},null,8,["image","onImageLoaded"])],8,wc)):(e.openBlock(),e.createBlock(s,{key:2,image:l.image,onImageLoaded:l.onImageLoaded},null,8,["image","onImageLoaded"]))])}const To=B(bc,[["render",_c]]),xc={name:"CmdContainer",mixins:[P],props:{contentAboveSlot:{type:String,required:!1},contentBelowSlot:{type:String,required:!1},containerType:{type:String,required:!1}},methods:{addHandlerProvider(){return""}},computed:{containerClass(){let t=null;switch(this.containerType){case"grid":t="grid-container-create-columns";break;case"flex":t="flex-container vertical";break;default:t=null;break}return t}}},Ec=["innerHTML"],Sc=["innerHTML"];function Vc(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-container",l.containerClass])},[o.contentAboveSlot?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:o.contentAboveSlot},null,8,Ec)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),o.contentBelowSlot?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:o.contentBelowSlot},null,8,Sc)):e.createCommentVNode("",!0)],2)}const Tc=B(xc,[["render",Vc]]),Nc={name:"CmdCookieDisclaimer",mixins:[j,{data(){return{defaultMessageProperties:{"cmdcookiedisclaimer.title.cookie_cannot_be_disabled":"This cookie cannot be disabled, because it is required for functionality!","cmdcookiedisclaimer.title.toggle_to_accept_cookie":"Toggle to accept or reject this cookie!"}}}}],data(){return{showCookieDisclaimer:!0,dataPrivacyContent:""}},props:{useSlot:{type:Boolean,default:!1},modelValue:{type:Array,required:!1},cmdHeadlineCookieDisclaimer:{type:Object,default(){return{show:!0,headlineText:"Cookie disclaimer",headlineLevel:2}}},cmdBoxRequiredCookies:{type:Object,default(){return{collapsible:!0,showHeadline:!0,headlineText:"Required cookies",headlineLevel:3}}},cmdBoxOptionalCookies:{type:Object,default(){return{collapsible:!0,showHeadline:!0,headlineText:"Optional cookies",headlineLevel:3}}},cookieOptions:{type:Object,required:!1},buttonLabelAcceptAllCookies:{type:String,default:"Accept all cookies!"},buttonLabelAcceptCurrentSettings:{type:String,default:"Proceed with current settings!"}},computed:{acceptedCookies:{get(){var o,a;const t=this.modelValue?[...this.modelValue]:[],n=((a=(o=this.cookieOptions)==null?void 0:o.required)==null?void 0:a.cookies)||[];for(let i=0;i<n.length;i++)t.includes(n[i].value)||t.push(n[i].value);return t},set(t){this.$emit("update:modelValue",t)}}},methods:{acceptCurrentCookies(){this.$emit("close-cookie-disclaimer",this.acceptedCookies)},acceptAllCookies(){var a,i,l,s;const t=[],n=(i=(a=this.cookieOptions)==null?void 0:a.required)==null?void 0:i.cookies;if(n)for(let r=0;r<n.length;r++)t.push(n[r].value);const o=(s=(l=this.cookieOptions)==null?void 0:l.optional)==null?void 0:s.cookies;if(o)for(let r=0;r<o.length;r++)t.push(o[r].value);this.$emit("close-cookie-disclaimer",t)},openDataPrivacy(t){t.target.target||(t.preventDefault(),fetch(t.target.href).then(n=>n.text()).then(n=>{this.dataPrivacyContent=n}))}}},Ic={class:"cmd-cookie-disclaimer flex-container vertical"},Fc={key:0,class:"flex-container vertical"},Oc={key:0},Mc={key:1},Dc=["href","target"],Lc=["innerHTML"],Pc=e.createElementVNode("hr",null,null,-1),Ac={key:1,class:"flex-container vertical"},qc={key:0},Hc={key:1},zc=["href","target"],Rc=["innerHTML"],jc={class:"button-wrapper align-center"};function Uc(t,n,o,a,i,l){const s=O,r=A,c=Ct;return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var h,d,m;return[e.createElementVNode("div",Ic,[o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(h=o.cmdHeadlineCookieDisclaimer)!=null&&h.show&&((d=o.cmdHeadlineCookieDisclaimer)!=null&&d.headlineText)&&((m=o.cmdHeadlineCookieDisclaimer)!=null&&m.headlineLevel)?(e.openBlock(),e.createBlock(s,{key:0,headlineText:o.cmdHeadlineCookieDisclaimer.headlineText,headlineLevel:o.cmdHeadlineCookieDisclaimer.headlineLevel},null,8,["headlineText","headlineLevel"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"cookie-options",{},()=>{var p,f,u,y,k,C,S,w;return[(p=o.cookieOptions)!=null&&p.required?(e.openBlock(),e.createElementBlock("div",Fc,[(f=o.cmdBoxRequiredCookies)!=null&&f.showHeadline?(e.openBlock(),e.createBlock(s,{key:0,"headline-text":(u=o.cmdBoxRequiredCookies)==null?void 0:u.headlineText,"headline-level":(y=o.cmdBoxRequiredCookies)==null?void 0:y.headlineLevel},null,8,["headline-text","headline-level"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.cookieOptions.required.cookies||[],(_,F)=>{var x;return e.openBlock(),e.createBlock(c,{useSlots:["header","body"],collapsible:(x=o.cmdBoxRequiredCookies)==null?void 0:x.collapsible,key:F},{header:e.withCtx(()=>[e.createVNode(r,{element:"input",type:"checkbox",modelValue:l.acceptedCookies,"onUpdate:modelValue":n[0]||(n[0]=T=>l.acceptedCookies=T),inputValue:_.value,labelText:_.labelText,disabled:_.disabled,id:_.id,toggleSwitch:!0,title:t.getMessage("cmdcookiedisclaimer.title.cookie_cannot_be_disabled")},null,8,["modelValue","inputValue","labelText","disabled","id","title"])]),body:e.withCtx(()=>[_.description?(e.openBlock(),e.createElementBlock("p",Oc,e.toDisplayString(_.description),1)):e.createCommentVNode("",!0),_.linkDataPrivacy?(e.openBlock(),e.createElementBlock("p",Mc,[e.createTextVNode(e.toDisplayString(_.linkDataPrivacy.label)+" ",1),e.createElementVNode("a",{onClick:n[1]||(n[1]=(...T)=>l.openDataPrivacy&&l.openDataPrivacy(...T)),href:_.linkDataPrivacy.link,target:_.linkDataPrivacy.target},e.toDisplayString(_.linkDataPrivacy.linkText),9,Dc)])):e.createCommentVNode("",!0),i.dataPrivacyContent?(e.openBlock(),e.createElementBlock("div",{key:2,innerHTML:i.dataPrivacyContent},null,8,Lc)):e.createCommentVNode("",!0)]),_:2},1032,["collapsible"])}),128))])):e.createCommentVNode("",!0),Pc,(k=o.cookieOptions)!=null&&k.optional?(e.openBlock(),e.createElementBlock("div",Ac,[(C=o.cmdBoxOptionalCookies)!=null&&C.showHeadline?(e.openBlock(),e.createBlock(s,{key:0,"headline-text":(S=o.cmdBoxOptionalCookies)==null?void 0:S.headlineText,"headline-level":(w=o.cmdBoxOptionalCookies)==null?void 0:w.headlineLevel},null,8,["headline-text","headline-level"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.cookieOptions.optional.cookies||[],(_,F)=>{var x;return e.openBlock(),e.createBlock(c,{useSlots:["header","body"],collapsible:(x=o.cmdBoxOptionalCookies)==null?void 0:x.collapsible,key:F},{header:e.withCtx(()=>[e.createVNode(r,{element:"input",type:"checkbox",modelValue:l.acceptedCookies,"onUpdate:modelValue":n[2]||(n[2]=T=>l.acceptedCookies=T),inputValue:_.value,labelText:_.labelText,disabled:_.disabled,id:_.id,toggleSwitch:!0,title:t.getMessage("cmdcookiedisclaimer.title.toggle_to_accept_cookie")},null,8,["modelValue","inputValue","labelText","disabled","id","title"])]),body:e.withCtx(()=>[_.description?(e.openBlock(),e.createElementBlock("p",qc,e.toDisplayString(_.description),1)):e.createCommentVNode("",!0),_.linkDataPrivacy?(e.openBlock(),e.createElementBlock("p",Hc,[e.createTextVNode(e.toDisplayString(_.linkDataPrivacy.label)+" ",1),e.createElementVNode("a",{onClick:n[3]||(n[3]=(...T)=>l.openDataPrivacy&&l.openDataPrivacy(...T)),href:_.linkDataPrivacy.link,target:_.linkDataPrivacy.target},e.toDisplayString(_.linkDataPrivacy.linkText),9,zc)])):e.createCommentVNode("",!0),i.dataPrivacyContent?(e.openBlock(),e.createElementBlock("div",{key:2,innerHTML:i.dataPrivacyContent},null,8,Rc)):e.createCommentVNode("",!0)]),_:2},1032,["collapsible"])}),128))])):e.createCommentVNode("",!0)]}),e.renderSlot(t.$slots,"privacy-text"),e.createElementVNode("div",jc,[o.buttonLabelAcceptCurrentSettings?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",onClick:n[4]||(n[4]=(...p)=>l.acceptCurrentCookies&&l.acceptCurrentCookies(...p))},[e.createElementVNode("span",null,e.toDisplayString(o.buttonLabelAcceptCurrentSettings),1)])):e.createCommentVNode("",!0),o.buttonLabelAcceptAllCookies?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"primary",onClick:n[5]||(n[5]=(...p)=>l.acceptAllCookies&&l.acceptAllCookies(...p))},[e.createElementVNode("span",null,e.toDisplayString(o.buttonLabelAcceptAllCookies),1)])):e.createCommentVNode("",!0)])],64))])]}),_:3})}const Wc=B(Nc,[["render",Uc]]),Gc={name:"CmdCopyrightWrapper"},Jc={class:"cmd-copyright-information",role:"contentinfo"},Kc=[e.createElementVNode("a",{href:"https://www.comand-cms.com",target:"comand-website",lang:"en",title:"CoManD-Website"},"© CoManD",-1)];function Zc(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",Jc,Kc)}const Yc=B(Gc,[["render",Zc]]),Xc={name:"CmdFakeSelect",inheritAttrs:!1,mixins:[j,{data(){return{defaultMessageProperties:{"cmdfakeselect.headline.requirements_for_input":"Requirements for input","cmdfakeselect.linktext.deselect_all_options":"Deselect all options","cmdfakeselect.linktext.select_all_options":"Select all options","cmdfakeselect.headline.an_option_is_selected":"An option is selected","cmdfakeselect.option.options_selected":"{0} options selected",...ht.data().defaultMessageProperties}}}},ze,ye,pt],data(){return{showOptions:!1,validationStatus:"",allOptionsSelected:!1}},props:{type:{type:String,default:"default",validator(t){return t==="default"||t==="color"||t==="country"||t==="content"||t==="checkboxOptions"}},optionLinkType:{type:String,default:"href",validator(t){return t==="href"||t==="router"}},modelValue:{type:[String,Number,Array],default:""},selectData:{type:Array,required:!1},showSelectAllOptions:{type:Boolean,default:!0},status:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},iconDropdown:{type:Object,default(){return{iconClass:"icon-chevron-one-stripe-down",tooltip:"Toggle dropdown visibility",iconType:"auto"}}},labelText:{type:String,required:!1},showLabel:{type:Boolean,default:!0},showStatusIcon:{type:Boolean,default:!0},pathFlags:{type:String,default:"/media/images/flags"},textPleaseSelect:{type:String,default:"Please select…"},iconSelectAllOptions:{type:Object,default(){return{iconClass:"icon-check",iconType:"auto"}}},iconDeselectAllOptions:{type:Object,default(){return{iconClass:"icon-cancel",iconType:"auto"}}}},computed:{validationTooltip(){return this.useCustomTooltip?this.validationStatus==="error"?this.getMessage("cmdformelement.validationTooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("cmdformelement.validationTooltip.information_is_filled_correctly"):this.getMessage("cmdformelement.validationTooltip.open_field_requirements"):this.getValidationMessage},optionName(){var t,n;if(this.type!=="checkboxOptions"&&this.type!=="content"&&this.modelValue){const o=this.selectData.find(a=>a.value===this.modelValue);if(o)return o.text}else if(this.type==="checkboxOptions"){if(this.modelValue.length===1)return(t=this.selectData.find(o=>String(o.value)===String(this.modelValue[0])))==null?void 0:t.text;if(this.modelValue.length>1)return this.getMessage("cmdfakeselect.option.options_selected",this.modelValue.length)}else if((n=this.selectData)!=null&&n.length)return this.selectData[0].text;return this.textPleaseSelect},optionIcon(){if(this.type==="default"){const t=this.selectData.find(n=>n.value===this.modelValue);return{iconClass:t==null?void 0:t.iconClass,tooltip:t==null?void 0:t.tooltip}}return null},optionCountry(){var t,n;return this.type==="country"?this.modelValue||((n=(t=this.selectData)==null?void 0:t[0])==null?void 0:n.value):null},optionColor(){var t,n;return this.type==="color"?this.modelValue||((n=(t=this.selectData)==null?void 0:t[0])==null?void 0:n.value):null},selectAllOptionsText(){return Array.isArray(this.modelValue)&&this.modelValue.length===this.selectData.length?(this.allOptionsSelected=!0,this.getMessage("cmdfakeselect.linktext.deselect_all_options")):(this.allOptionsSelected=!1,this.getMessage("cmdfakeselect.linktext.select_all_options"))}},methods:{toggleAllOptions(){this.validationStatus="success";const t=[];if(this.modelValue.length===this.selectData.length)this.$attrs.required&&(this.validationStatus="error");else for(let n=0;n<this.selectData.length;n++)t.push(String(this.selectData[n].value));this.$emit("update:modelValue",t)},toggleOptions(){this.$attrs.disabled!=="disabled"&&(this.showOptions=!this.showOptions)},compareValues(t){return this.modelValue.some(n=>n===t||n===String(t))},selectOption(t){this.validationStatus="success",this.$attrs.required!==void 0&&(t||(this.validationStatus="error")),this.showOptions=!1,this.$emit("update:modelValue",t)},optionSelect(t){this.validationStatus="success";let n=[...this.modelValue];t.target.checked?n.push(t.target.value):n=n.filter(o=>o!==t.target.value&&String(o)!==t.target.value),this.$attrs.required!==void 0&&!n.length&&(this.validationStatus="error"),this.$emit("update:modelValue",n)},closeOptions(){this.showOptions=!1},pathFlag(t){return this.pathFlags+"/flag-"+t+".svg"},onBlur(){this.validationStatus="success",this.$attrs.required!==void 0&&(!this.modelValue||this.modelValue.length===0)&&(this.validationStatus="error")},getRequirementMessage(){return this.getMessage("cmdfakeselect.headline.an_option_is_selected")}},watch:{status:{handler(){this.validationStatus=this.status},immediate:!0},selectData:{handler(){var t;this.type==="default"&&((t=this.selectData)!=null&&t.length)&&!this.selectData.some(n=>n.value===this.modelValue)&&this.$emit("update:modelValue",this.selectData[0].value)},immediate:!0,deep:!0}}},Qc=["title","aria-labelledby","aria-required"],$c={key:0,class:"label-text"},vc=["id"],ed={key:0,"aria-hidden":"true"},td=["title","aria-errormessage","id"],od=["aria-expanded"],nd=["title"],ld=["src","alt"],id={key:3,class:"option-name"},ad={key:0,role:"listbox"},sd=["aria-selected"],rd=["onClick","title"],cd={key:1},dd=["aria-expanded"],md=["for"],hd=["value","checked","id"],fd=["onClick"],ud=["src","alt"],pd=["onClick"],gd={key:0,class:"select-all-options"};function yd(t,n,o,a,i,l){var h,d,m,p;const s=N,r=mt,c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([i.validationStatus,"cmd-fake-select label",{color:o.type==="color","has-state":i.validationStatus&&i.validationStatus!=="none",disabled:t.$attrs.disabled}]),title:t.$attrs.title,role:"listbox","aria-labelledby":t.htmlId,"aria-required":t.$attrs.required!==void 0,ref:"fakeselect"},[o.showLabel?(e.openBlock(),e.createElementBlock("span",$c,[e.createElementVNode("span",{id:t.htmlId},[e.createTextVNode(e.toDisplayString(o.labelText),1),t.$attrs.required!==void 0?(e.openBlock(),e.createElementBlock("sup",ed,"*")):e.createCommentVNode("",!0)],8,vc),(t.$attrs.required||t.inputRequirements.length)&&o.showStatusIcon?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),title:l.validationTooltip,"aria-errormessage":t.tooltipId,"aria-live":"assertive",id:t.tooltipId},[e.createVNode(s,{iconClass:t.getStatusIconClass},null,8,["iconClass"])],8,td)):e.createCommentVNode("",!0),t.useCustomTooltip&&(i.validationStatus===""||i.validationStatus==="error")?(e.openBlock(),e.createBlock(r,{key:1,ref:"tooltip",validationStatus:i.validationStatus,validationMessage:t.getValidationMessage,relatedId:t.tooltipId,cmdListOfRequirements:t.listOfRequirements,role:i.validationStatus==="error"?"alert":"dialog"},null,8,["validationStatus","validationMessage","relatedId","cmdListOfRequirements","role"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass({open:i.showOptions}),onClickout:n[5]||(n[5]=(...f)=>l.closeOptions&&l.closeOptions(...f)),"aria-expanded":i.showOptions},[e.createElementVNode("li",null,[e.createElementVNode("a",{href:"#",onClick:n[1]||(n[1]=e.withModifiers((...f)=>l.toggleOptions&&l.toggleOptions(...f),["prevent"])),onBlur:n[2]||(n[2]=(...f)=>l.onBlur&&l.onBlur(...f)),title:(h=l.optionIcon)==null?void 0:h.tooltip},[o.type==="country"&&l.optionCountry?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.pathFlag(l.optionCountry),alt:l.optionCountry,class:e.normalizeClass(["flag",l.optionCountry])},null,10,ld)):o.type==="color"?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle("background: "+l.optionColor)},null,4)):e.createCommentVNode("",!0),(d=l.optionIcon)!=null&&d.iconClass?(e.openBlock(),e.createBlock(s,{key:2,type:(m=l.optionIcon)==null?void 0:m.iconType,iconClass:(p=l.optionIcon)==null?void 0:p.iconClass},null,8,["type","iconClass"])):e.createCommentVNode("",!0),l.optionName?(e.openBlock(),e.createElementBlock("span",id,e.toDisplayString(l.optionName),1)):e.createCommentVNode("",!0),o.iconDropdown?(e.openBlock(),e.createBlock(s,{key:4,iconClass:o.iconDropdown.iconClass,type:o.iconDropdown.iconType,title:o.iconDropdown.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0)],40,nd),o.type==="default"&&i.showOptions?(e.openBlock(),e.createElementBlock("ul",ad,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectData,(f,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,role:"option","aria-selected":f.value===o.modelValue},[o.optionLinkType==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue}),title:f.tooltip},[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),f.text?(e.openBlock(),e.createElementBlock("span",cd,e.toDisplayString(f.text),1)):e.createCommentVNode("",!0)],10,rd)):e.createCommentVNode("",!0),o.optionLinkType==="router"?(e.openBlock(),e.createBlock(c,{key:1,to:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue})},{default:e.withCtx(()=>[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(f.text),1)]),_:2},1032,["onClick","class"])):e.createCommentVNode("",!0)],8,sd))),128))])):o.type!=="default"&&o.type!=="content"&&i.showOptions?(e.openBlock(),e.createElementBlock("ul",{key:1,class:e.normalizeClass({"checkbox-options":o.type==="checkboxOptions"}),"aria-expanded":i.showOptions},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectData,(f,u)=>(e.openBlock(),e.createElementBlock("li",{key:u},[o.type==="checkboxOptions"?(e.openBlock(),e.createElementBlock("label",{key:0,for:"option-"+(u+1),class:e.normalizeClass({active:o.modelValue.includes(`${f.value}`)})},[e.createElementVNode("input",{type:"checkbox",value:f.value,onChange:n[3]||(n[3]=(...y)=>l.optionSelect&&l.optionSelect(...y)),checked:l.compareValues(f.value),id:"option-"+(u+1)},null,40,hd),e.createElementVNode("span",null,e.toDisplayString(f.text),1)],10,md)):o.type==="country"?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue})},[e.createElementVNode("img",{class:"flag",src:l.pathFlag(f.value),alt:f.text},null,8,ud),e.createElementVNode("span",null,e.toDisplayString(f.text),1)],10,fd)):o.type==="color"?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue})},[e.createElementVNode("span",{class:"color",style:e.normalizeStyle("background: "+f.value)},null,4),e.createElementVNode("span",null,e.toDisplayString(f.text),1)],10,pd)):e.createCommentVNode("",!0)]))),128)),o.showSelectAllOptions&&o.type==="checkboxOptions"?(e.openBlock(),e.createElementBlock("li",gd,[e.createElementVNode("a",{href:"#",onClick:n[4]||(n[4]=e.withModifiers((...f)=>l.toggleAllOptions&&l.toggleAllOptions(...f),["prevent"]))},[i.allOptionsSelected?(e.openBlock(),e.createBlock(s,{key:1,iconClass:o.iconDeselectAllOptions.iconClass,type:o.iconDeselectAllOptions.iconType},null,8,["iconClass","type"])):(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.iconSelectAllOptions.iconClass,type:o.iconSelectAllOptions.iconType},null,8,["iconClass","type"])),e.createElementVNode("span",null,e.toDisplayString(l.selectAllOptionsText),1)])])):e.createCommentVNode("",!0)],10,dd)):o.type==="content"&&i.showOptions?e.renderSlot(t.$slots,"default",{key:2}):e.createCommentVNode("",!0)])],42,od)],10,Qc)}const No=B(Xc,[["render",yd]]),kd={name:"CmdFormFilters",data(){return{options:[]}},props:{modelValue:{type:Array,required:!0},linkDeleteAllFilters:{type:Object,default(){return{text:"Delete all filters",icon:{show:!0,iconClass:"icon-error-circle",tooltip:""}}}},deleteFilterIcon:{type:Object,default(){return{iconClass:"icon-error-circle",tooltip:"Delete this filter",type:"auto"}}},selectedOptionsName:{type:Function,required:!0}},methods:{deleteAllFilters(){this.options=[],this.updateSelectedOptions()},deleteClickedFilter(t){this.options.splice(t,1),this.updateSelectedOptions()},updateSelectedOptions(){this.$emit("update:modelValue",this.options)}},watch:{modelValue:{handler(){this.modelValue?this.options=JSON.parse(JSON.stringify(this.modelValue)):this.options=[]},immediate:!0,deep:!0}}},Cd={key:0,class:"cmd-form-filters"},bd={key:0},Bd={key:1},wd=["onClick","title"];function _d(t,n,o,a,i,l){const s=N;return i.options.length?(e.openBlock(),e.createElementBlock("ul",Cd,[i.options.length>1?(e.openBlock(),e.createElementBlock("li",bd,[e.createElementVNode("a",{href:"#",onClick:n[0]||(n[0]=e.withModifiers((...r)=>l.deleteAllFilters&&l.deleteAllFilters(...r),["prevent"]))},[o.linkDeleteAllFilters.icon&&o.linkDeleteAllFilters.icon.show?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.linkDeleteAllFilters.icon.iconClass,title:o.linkDeleteAllFilters.icon.tooltip},null,8,["iconClass","title"])):e.createCommentVNode("",!0),o.linkDeleteAllFilters.text?(e.openBlock(),e.createElementBlock("span",Bd,e.toDisplayString(o.linkDeleteAllFilters.text),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,(r,c)=>(e.openBlock(),e.createElementBlock("li",{key:c},[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(h=>l.deleteClickedFilter(c),["prevent"]),title:o.deleteFilterIcon.tooltip},[e.createElementVNode("span",null,e.toDisplayString(o.selectedOptionsName(r)),1),e.createVNode(s,{iconClass:o.deleteFilterIcon.iconClass,type:o.deleteFilterIcon.iconType},null,8,["iconClass","type"])],8,wd)]))),128))])):e.createCommentVNode("",!0)}const Io=B(kd,[["render",_d]]),xd={name:"CmdGoogleMaps",props:{address:{type:Object,required:!0}},computed:{locateAddress(){if(this.address){const t=new URL("https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed");return t.searchParams.set("hl","de"),t.searchParams.set("q",[this.address.streetNo,this.address.zip,this.address.city,this.address.latitude,this.address.longitude,this.address.location].join(" ").trim()),t.href}return"https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed"}}},Ed={class:"cmd-google-maps responsive-wrapper"},Sd=["src"];function Vd(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",Ed,[e.createElementVNode("iframe",{src:l.locateAddress},null,8,Sd)])}const Fo=B(xd,[["render",Vd]]),Td={name:"CmdImageGallery",mixins:[P],props:{cmdHeadline:{type:Object,required:!1},useFancyboxForLargeImages:{type:Boolean,default:!0},images:{type:Array,required:!0},figcaptionPosition:{type:String,required:!1,validator(t){return t==="top"||t==="bottom"}}},methods:{itemProvider(){return{image:{src:"/media/images/demo-images/medium/landscape-01.jpg",alt:"Alternative Text"},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},figcaption(t){const n={...t.figcaption};return this.figcaptionPosition&&(n.position=this.figcaptionPosition),n},onAddItem(){this.editModeContext.content.addContent(ee(this,"props","images",-1),this.itemProvider)},showFancyBox(t){Ce({fancyBoxGallery:this.images,defaultGalleryIndex:t})},getMessage(){return""},imageStructure(){return{itemProviderOverwrite:()=>({image:{srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",tooltip:"Tooltip DE"}})}},updateHandlerProvider(){const t=this.editableHtmlContent;return z(this,{update(n,o){n.htmlContent=t;const a=o==null?void 0:o.find(i=>i.name==="CmdHeadline");a&&(n.cmdHeadline=n.cmdHeadline||{},a.update(n.cmdHeadline))}})}}},Nd={class:"grid-container-create-columns cmd-image-gallery"},Id=["onClick","title"],Fd=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new gallery-image",-1)];function Od(t,n,o,a,i,l){var c;const s=O,r=ae;return e.openBlock(),e.createElementBlock("div",Nd,[(c=o.cmdHeadline)!=null&&c.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),t.editModeContext?o.images.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.images,(h,d)=>(e.openBlock(),e.createBlock(r,{key:d,class:"image-wrapper",image:h.image,figcaption:h.figcaption,componentPath:["props","images",d],editModeConfig:l.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"]))),128)):(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"button confirm",onClick:n[0]||(n[0]=(...h)=>l.onAddItem&&l.onAddItem(...h))},Fd)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.useFancyboxForLargeImages?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.images,(h,d)=>(e.openBlock(),e.createElementBlock("a",{class:"image-wrapper",key:d,href:"#",onClick:e.withModifiers(m=>l.showFancyBox(d),["prevent"]),title:l.getMessage("cmdimagegallery.tooltip.open_large_image")},[e.createVNode(r,{image:h.image,figcaption:l.figcaption(h)},null,8,["image","figcaption"])],8,Id))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.images,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`i${d}`,class:"image-wrapper"},[e.createVNode(r,{image:h.image,figcaption:l.figcaption(h)},null,8,["image","figcaption"])]))),128))],64))])}const Md=B(Td,[["render",Od]]),Dd={name:"CmdImageZoom",props:{imageSmall:{type:Object,required:!0},imageLarge:{type:Object,required:!0}},data(){return{showLargeImage:!1}},methods:{onMouseOver(t){this.showLargeImage=!0,this.$nextTick(()=>{const n=window.innerHeight-this.$el.getBoundingClientRect().y-10,o=this.$el.querySelector(".zoom-container");o.style.height=`${n}px`,Oo(this,t)})},onMouseMove(t){Oo(this,t)},onMouseOut(){this.showLargeImage=!1}}};function Oo(t,n){const o=t.$el.querySelector(".zoom-container"),a=o.querySelector("img"),i=t.$el.querySelector(".zoom-overlay"),l=n.target.getBoundingClientRect().width,s=n.target.getBoundingClientRect().height,r=a.getBoundingClientRect().width,c=a.getBoundingClientRect().height,h=n.pageX-n.target.getBoundingClientRect().x-window.pageXOffset,d=n.pageY-n.target.getBoundingClientRect().y-window.pageYOffset,m=Math.min(l,o.getBoundingClientRect().width/r*l),p=Math.min(s,o.getBoundingClientRect().height/c*s),f=Mo(h-m/2,0,l-m),u=Mo(d-p/2,0,s-p),y=-(f*(r/l)),k=-(u*(c/s));i.style.left=`${f}px`,i.style.top=`${u}px`,i.style.width=`${m}px`,i.style.height=`${p}px`,i.style.display="block",a.style.marginLeft=`${y}px`,a.style.marginTop=`${k}px`}function Mo(t,n,o){return t<n?n:t>o?o:t}const Ld={class:"cmd-imagezoom flex-container"},Pd=["title"],Ad=["src","alt"],qd={key:0,class:"zoom-container"},Hd=["src","alt"],zd={key:1,class:"zoom-overlay"};function Rd(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",Ld,[e.createElementVNode("a",{href:"#",class:"no-flex thumbnails-imagezoom",title:o.imageSmall.tooltip},[e.createElementVNode("img",{src:o.imageSmall.src,alt:o.imageSmall.alt,onMouseover:n[0]||(n[0]=(...s)=>l.onMouseOver&&l.onMouseOver(...s)),onMousemove:n[1]||(n[1]=(...s)=>l.onMouseMove&&l.onMouseMove(...s)),onMouseout:n[2]||(n[2]=(...s)=>l.onMouseOut&&l.onMouseOut(...s))},null,40,Ad)],8,Pd),i.showLargeImage?(e.openBlock(),e.createElementBlock("div",qd,[e.createElementVNode("img",{src:o.imageLarge.src,alt:o.imageLarge.alt},null,8,Hd)])):e.createCommentVNode("",!0),i.showLargeImage?(e.openBlock(),e.createElementBlock("div",zd)):e.createCommentVNode("",!0)])}const jd=B(Dd,[["render",Rd]]),Ud={mixins:[ht,ze,ye,pt],props:{modelValue:{type:[Array,String],required:!1},required:{type:Boolean,default:!1},showStatusIcon:{type:Boolean,default:!0},inputElements:{type:Array,required:!1},inputTypes:{type:String,default:"radio",validator(t){return t==="checkbox"||t==="radio"}},status:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},replaceInputType:{type:Boolean,default:!1},toggleSwitches:{type:Boolean,default:!1},useSlot:{type:Boolean,default:!1},multipleSwitch:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelText:{type:String,required:!0},labelInline:{type:Boolean,default:!1},stretchHorizontally:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{updateStatus(){var t;if(this.required){if((t=this.inputValue)!=null&&t.length){this.validationStatus="success";return}this.validationStatus="error";return}this.validationStatus=this.status}},computed:{validationTooltip(){return this.useCustomTooltip?this.validationStatus==="error"?this.getMessage("cmdformelement.validationTooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("cmdformelement.validationTooltip.information_is_filled_correctly"):this.getMessage("cmdformelement.validationTooltip.open_field_requirements"):this.getValidationMessage},inputValue:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},watch:{status:{handler(){this.updateStatus()},immediate:!0},modelValue:{handler(){this.updateStatus()},immediate:!0}}},Wd=["aria-labelledby"],Gd={class:"label-text"},Jd=["id"],Kd={key:0,"aria-hidden":"true"},Zd=["title","aria-errormessage","id"],Yd=["for"],Xd=["type","id","name","value","disabled"],Qd={key:1,class:"label-text"},$d={key:1,class:"flex-container no-flex"};function vd(t,n,o,a,i,l){const s=N,r=mt;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-input-group label",t.validationStatus,{inline:o.labelInline,"multiple-switch":o.multipleSwitch,disabled:o.disabled,"toggle-switches":o.toggleSwitches,"has-state":t.validationStatus}]),"aria-labelledby":t.htmlId},[e.withDirectives(e.createElementVNode("span",Gd,[e.createElementVNode("span",{id:t.htmlId},[e.createTextVNode(e.toDisplayString(o.labelText),1),o.required?(e.openBlock(),e.createElementBlock("sup",Kd,"*")):e.createCommentVNode("",!0)],8,Jd),(o.required||t.inputRequirements.length>0)&&o.showStatusIcon?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),title:l.validationTooltip,"aria-errormessage":t.tooltipId,"aria-live":"assertive",id:t.tooltipId},[e.createVNode(s,{iconClass:t.getStatusIconClass},null,8,["iconClass"])],8,Zd)):e.createCommentVNode("",!0),t.useCustomTooltip&&(t.validationStatus===""||t.validationStatus==="error")?(e.openBlock(),e.createBlock(r,{key:1,ref:"tooltip",showRequirements:t.showRequirements,cmdListOfRequirements:t.listOfRequirements,validationStatus:t.validationStatus,validationMessage:t.getValidationMessage,inputAttributes:t.$attrs,inputModelValue:o.modelValue,helplink:t.helplink,relatedId:t.tooltipId,role:t.validationStatus==="error"?"alert":"dialog"},null,8,["showRequirements","cmdListOfRequirements","validationStatus","validationMessage","inputAttributes","inputModelValue","helplink","relatedId","role"])):e.createCommentVNode("",!0)],512),[[e.vShow,o.showLabel]]),o.useSlot?(e.openBlock(),e.createElementBlock("div",$d,[e.renderSlot(t.$slots,"default")])):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["flex-container",{"no-flex":!o.stretchHorizontally,"no-gap":o.multipleSwitch}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.inputElements,(c,h)=>(e.openBlock(),e.createElementBlock("label",{key:h,for:c.id,class:e.normalizeClass({"toggle-switch":o.toggleSwitches})},[e.withDirectives(e.createElementVNode("input",{type:o.inputTypes,id:c.id,name:c.name,value:c.value,"onUpdate:modelValue":n[1]||(n[1]=d=>l.inputValue=d),disabled:o.disabled,class:e.normalizeClass({"replace-input-type":o.replaceInputType})},null,10,Xd),[[e.vModelDynamic,l.inputValue]]),o.multipleSwitch&&c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.labelText?(e.openBlock(),e.createElementBlock("span",Qd,e.toDisplayString(c.labelText),1)):e.createCommentVNode("",!0)],10,Yd))),128))],2))],10,Wd)}const Do=B(Ud,[["render",vd]]),em={name:"CmdLoginForm",data(){return{usernameValidationStatus:!1,passwordValidationStatus:!1,emailValidationStatus:!1,sendLoginMail:"",sendLogin:!1}},props:{modelValue:{type:Object,default(){return{username:"",password:""}}},textLegendLoginForm:{type:String,default:"Login form"},showLegend:{type:Boolean,default:!0},textLegendForgotLoginForm:{type:String,default:"Forgot login form"},cmdHeadlineLoginForm:{type:Object,required:!1},cmdHeadlineSendLoginForm:{type:Object,required:!1},cmdFormElementUsername:{type:Object,default(){return{labelText:"Username:",placeholder:"Type in username",innerIconClass:"icon-user-profile",name:"login-username",id:"login-username",required:!0}}},cmdFormElementPassword:{type:Object,default(){return{labelText:"Password:",placeholder:"Type in password",innerIconClass:"icon-security-settings",name:"login-password",id:"login-password",required:!0}}},cmdFormElementSendLogin:{type:Object,default(){return{labelText:"Email-address:",placeholder:"Type in email-address you are registered with",innerIconClass:"icon-mail",name:"login-send-login",id:"login-send-login",required:!0}}},options:{type:Object,default(){return{forgotPassword:{icon:{show:!0,iconClass:"icon-questionmark-circle",tooltip:""},text:"Forgot password"},createAccount:{linkType:"href",path:"#",icon:{show:!0,iconClass:"icon-register",tooltip:""},text:"Create new account"},backToLoginForm:{icon:{show:!0,iconClass:"icon-chevron-one-stripe-left",tooltip:""},text:"Back to login form"}}}},buttons:{type:Object,default(){return{login:{linkType:"button",type:"submit",path:"",text:"Login",primary:!0,icon:{show:!0,iconClass:"icon-logon",tooltip:""}},sendLogin:{linkType:"button",type:"submit",path:"",text:"Send login",primary:!0,icon:{show:!0,iconClass:"icon-mail",tooltip:""}}}}}},computed:{buttonLoginDisabled(){return!(this.usernameValidationStatus&&this.passwordValidationStatus)},buttonSendLoginDisabled(){return!this.emailValidationStatus},username:{get(){return this.modelValue.username},set(t){this.$emit("update:modelValue",{username:t,password:this.password})}},password:{get(){return this.modelValue.password},set(t){this.$emit("update:modelValue",{username:this.username,password:t})}}},methods:{toggleSendLoginView(){this.sendLogin=!this.sendLogin,this.$nextTick(()=>{this.sendLogin?this.$refs.sendPassword.setFocus():this.$refs.username.setFocus()})},modelChange(){this.$emit("update:modelValue",{username:this.username,password:this.password})},onClick(t){this.$emit("click",t)},getRoute(t){return me(t)},checkValidationStatus(t,n){t!=null&&(n==="username"?this.usernameValidationStatus=t==="success":n==="password"?this.passwordValidationStatus=t==="success":this.emailValidationStatus=t==="success")}},watch:{username(){this.modelChange()},password(){this.modelChange()}}},tm={class:"cmd-login-form flex-container"},om={class:"flex-container"},nm={class:"option-wrapper flex-container"},lm={key:1},im=["href"],am={key:1},sm={key:1},rm=["type","disabled"],cm={key:1},dm={class:"cmd-login-form flex-container"},mm={class:"option-wrapper flex-container"},hm={key:1},fm=["type","disabled"],um={key:1};function pm(t,n,o,a,i,l){var d,m,p,f,u,y,k;const s=O,r=A,c=N,h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("fieldset",tm,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegendLoginForm),3),o.cmdHeadlineLoginForm?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineLoginForm)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",om,[e.createVNode(r,{element:"input",type:"text",ref:"username",name:o.cmdFormElementUsername.name,id:o.cmdFormElementUsername.id,modelValue:l.username,"onUpdate:modelValue":n[0]||(n[0]=C=>l.username=C),fieldIconClass:o.cmdFormElementUsername.innerIconClass,labelText:o.cmdFormElementUsername.labelText,placeholder:o.cmdFormElementUsername.placeholder,required:o.cmdFormElementUsername.required,onValidationStatusChange:n[1]||(n[1]=C=>l.checkValidationStatus(C,"username"))},null,8,["name","id","modelValue","fieldIconClass","labelText","placeholder","required"]),e.createVNode(r,{element:"input",type:"password",name:o.cmdFormElementPassword.name,id:o.cmdFormElementPassword.id,fieldIconClass:o.cmdFormElementPassword.innerIconClass,modelValue:l.password,"onUpdate:modelValue":n[2]||(n[2]=C=>l.password=C),labelText:o.cmdFormElementPassword.labelText,placeholder:o.cmdFormElementPassword.placeholder,required:o.cmdFormElementPassword.required,onValidationStatusChange:n[3]||(n[3]=C=>l.checkValidationStatus(C,"password"))},null,8,["name","id","fieldIconClass","modelValue","labelText","placeholder","required"])]),e.createElementVNode("div",nm,[o.options.forgotPassword||o.options.createAccount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.options.forgotPassword?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[4]||(n[4]=e.withModifiers((...C)=>l.toggleSendLoginView&&l.toggleSendLoginView(...C),["prevent"]))},[(d=o.options.forgotPassword.icon)!=null&&d.show&&((m=o.options.forgotPassword.icon)!=null&&m.iconClass)?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.options.forgotPassword.icon.iconClass,type:o.options.forgotPassword.icon.iconType,title:o.options.forgotPassword.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.options.forgotPassword.text?(e.openBlock(),e.createElementBlock("span",lm,e.toDisplayString(o.options.forgotPassword.text),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.options.createAccount&&o.options.createAccount.linkType==="href"?(e.openBlock(),e.createElementBlock("a",{key:1,href:o.options.createAccount.path},[(p=o.options.createAccount.icon)!=null&&p.show&&((f=o.options.createAccount.icon)!=null&&f.iconClass)?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.options.createAccount.icon.iconClass,type:o.options.createAccount.icon.iconType,title:o.options.createAccount.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.options.createAccount.text?(e.openBlock(),e.createElementBlock("span",am,e.toDisplayString(o.options.createAccount.text),1)):e.createCommentVNode("",!0)],8,im)):o.options.createAccount&&o.options.createAccount.linkType==="router"?(e.openBlock(),e.createBlock(h,{key:2,to:o.options.createAccount.path},{default:e.withCtx(()=>[o.options.createAccount.icon&&o.options.createAccount.icon.show&&o.options.createAccount.icon.iconClass?(e.openBlock(),e.createBlock(c,{key:0,class:e.normalizeClass(o.options.createAccount.icon.iconClass),type:o.options.createAccount.icon.iconType,title:o.options.createAccount.icon.tooltip},null,8,["class","type","title"])):e.createCommentVNode("",!0),e.createTextVNode(" /> "),o.options.createAccount.text?(e.openBlock(),e.createElementBlock("span",sm,e.toDisplayString(o.options.createAccount.text),1)):e.createCommentVNode("",!0)]),_:1},8,["to"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.buttons.login.linkType==="button"?(e.openBlock(),e.createElementBlock("button",{key:1,type:o.buttons.login.type==="submit"?"submit":"button",class:e.normalizeClass(["button",{primary:o.buttons.login.primary}]),onClick:n[5]||(n[5]=(...C)=>l.onClick&&l.onClick(...C)),disabled:l.buttonLoginDisabled},[o.buttons.login.icon.iconClass?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.buttons.login.icon.iconClass,type:o.buttons.login.icon.iconType,title:o.buttons.login.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.buttons.login.text?(e.openBlock(),e.createElementBlock("span",cm,e.toDisplayString(o.buttons.login.text),1)):e.createCommentVNode("",!0)],10,rm)):e.createCommentVNode("",!0)])],512),[[e.vShow,!i.sendLogin]]),e.withDirectives(e.createElementVNode("fieldset",dm,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegendForgotLoginForm),3),o.cmdHeadlineSendLoginForm?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineSendLoginForm)),null,16)):e.createCommentVNode("",!0),e.createVNode(r,{ref:"sendPassword",element:"input",type:"email",fieldIconClass:o.cmdFormElementSendLogin.innerIconClass,labelText:o.cmdFormElementSendLogin.labelText,placeholder:o.cmdFormElementSendLogin.placeholder,name:o.cmdFormElementSendLogin.name,required:o.cmdFormElementSendLogin.required,id:o.cmdFormElementSendLogin.id,onValidationStatusChange:n[6]||(n[6]=C=>l.checkValidationStatus(C,"email")),modelValue:i.sendLoginMail,"onUpdate:modelValue":n[7]||(n[7]=C=>i.sendLoginMail=C)},null,8,["fieldIconClass","labelText","placeholder","name","required","id","modelValue"]),e.createElementVNode("div",mm,[e.createElementVNode("a",{href:"#",onClick:n[8]||(n[8]=e.withModifiers((...C)=>l.toggleSendLoginView&&l.toggleSendLoginView(...C),["prevent"]))},[o.options.backToLoginForm&&o.options.backToLoginForm.icon&&o.options.backToLoginForm.icon.show&&o.options.backToLoginForm.icon.iconClass?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.options.backToLoginForm.icon.iconClass,type:o.options.backToLoginForm.icon.iconType,title:o.options.backToLoginForm.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.options.backToLoginForm.text?(e.openBlock(),e.createElementBlock("span",hm,e.toDisplayString(o.options.backToLoginForm.text),1)):e.createCommentVNode("",!0)]),o.buttons.sendLogin.linkType==="button"?(e.openBlock(),e.createElementBlock("button",{key:0,type:o.buttons.sendLogin.type==="submit"?"submit":"button",class:e.normalizeClass(["button",{primary:o.buttons.sendLogin.primary}]),disabled:l.buttonSendLoginDisabled},[(u=o.buttons.sendLogin.icon)!=null&&u.iconClass?(e.openBlock(),e.createBlock(c,{key:0,iconClass:(y=o.buttons.sendLogin.icon)==null?void 0:y.iconClass,title:(k=o.buttons.sendLogin.icon)==null?void 0:k.tooltip},null,8,["iconClass","title"])):e.createCommentVNode("",!0),o.buttons.sendLogin.text?(e.openBlock(),e.createElementBlock("span",um,e.toDisplayString(o.buttons.sendLogin.text),1)):e.createCommentVNode("",!0)],10,fm)):e.createCommentVNode("",!0)])],512),[[e.vShow,i.sendLogin]])],64)}const gm=B(em,[["render",pm]]),ym={name:"CmdMainNavigation",data(){return{showOffcanvas:!1,showSubNavigations:!0,openEntry:-1,openSubentry:-1}},emits:["offcanvas"],props:{stretchMainItems:{type:Boolean,default:!1},persistOnMobile:{type:Boolean,default:!1},showContentOverlay:{type:Boolean,default:!0},navigationEntries:{type:Array,required:!0},closeOffcanvas:{type:Object,default:function(){return{iconClass:"icon-cancel",text:"Close navigation",showText:!0}}},offcanvasPosition:{type:String,default:"right",validator(t){return t==="right"||t==="left"}},buttonOffcanvas:{type:Object,default:function(){return{iconClass:"icon-bars",text:"Open navigation",showText:!1}}},subentriesIconClass:{type:String,default:"icon-chevron-one-stripe-down"},subSubentriesIconClass:{type:String,default:"icon-chevron-one-stripe-right"}},methods:{closeAllSubentries(t){t||(this.openEntry=-1),this.openSubentry=-1},executeLink(t,n,o,a){var i;if(n.target||n.path.length>1)return this.showOffcanvas=!1,!0;if((i=n==null?void 0:n.subentries)!=null&&i.length){t.preventDefault(),a?this.openSubentry=this.openSubentry===o?-1:o:(this.openEntry=this.openEntry===o?-1:o,this.openSubentry=-1);return}(n.path==="#"||n.path==="")&&(t.preventDefault(),this.$emit("click",n.path)),this.showOffcanvas=!1},getRoute(t){return me(t)},closeOffcanvasNavigation(){this.showOffcanvas=!1,document.getElementById("toggle-offcanvas").focus()},toggleOffcanvasNavigation(){this.showOffcanvas?this.closeOffcanvasNavigation():(this.showOffcanvas=!0,this.$nextTick(()=>document.getElementById("close-offcanvas").focus()))}},watch:{showOffcanvas(){this.$emit("offcanvas",{open:this.showOffcanvas})}}},km={key:0,class:"close-nav"},Cm=["href","title","target","onClick"],bm={key:1},Bm={key:1},wm=["aria-expanded"],_m=["href","title","target","onClick"],xm={key:1},Em={key:1},Sm=["aria-expanded"],Vm=["href","title","target","onClick"],Tm={key:1},Nm={key:1};function Im(t,n,o,a,i,l){const s=N,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-main-navigation main-navigation-wrapper",{"hide-sub-navigation":!i.showSubNavigations,"open-off-canvas":i.showOffcanvas,"persist-on-mobile":o.persistOnMobile,"show-content-overlay":o.showContentOverlay,"off-canvas-right":o.offcanvasPosition==="right"}])},[e.createElementVNode("nav",null,[e.createElementVNode("ul",{class:e.normalizeClass({"stretch-items":o.stretchMainItems})},[i.showOffcanvas?(e.openBlock(),e.createElementBlock("li",km,[e.createElementVNode("a",{href:"#",id:"close-offcanvas",role:"button",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.closeOffcanvasNavigation&&l.closeOffcanvasNavigation(...c),["prevent"]))},[o.closeOffcanvas.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.closeOffcanvas.iconClass,type:o.closeOffcanvas.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({hidden:!o.closeOffcanvas.showText})},e.toDisplayString(o.closeOffcanvas.text),3)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.navigationEntries,(c,h)=>{var d,m,p;return e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass({active:c.active,open:i.openEntry===h,"has-subentries":(d=c==null?void 0:c.subentries)==null?void 0:d.length})},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:c.path,title:c.tooltip,target:c.target,onClick:f=>l.executeLink(f,c,h),onMouseover:n[1]||(n[1]=f=>l.closeAllSubentries()),onFocus:n[2]||(n[2]=f=>l.closeAllSubentries())},[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",bm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),(m=c==null?void 0:c.subentries)!=null&&m.length?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)],40,Cm)):e.createCommentVNode("",!0),c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(c),title:c.tooltip},{default:e.withCtx(()=>[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Bm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),c.subentries&&c.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)]),_:2},1032,["to","title"])):e.createCommentVNode("",!0),(p=c==null?void 0:c.subentries)!=null&&p.length?(e.openBlock(),e.createElementBlock("ul",{key:2,"aria-expanded":i.openEntry?"true":"false"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.subentries,(f,u)=>{var y;return e.openBlock(),e.createElementBlock("li",{key:u,class:e.normalizeClass({open:i.openSubentry===u})},[f.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:f.path,title:f.tooltip,target:f.target,onClick:k=>l.executeLink(k,f,u,1),onMouseover:n[3]||(n[3]=k=>l.closeAllSubentries(1)),onFocus:n[4]||(n[4]=k=>l.closeAllSubentries(1))},[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),f.text?(e.openBlock(),e.createElementBlock("span",xm,e.toDisplayString(f.text),1)):e.createCommentVNode("",!0),f.subentries&&f.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)],40,_m)):e.createCommentVNode("",!0),f.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(f),title:f.tooltip},{default:e.withCtx(()=>[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),f.text?(e.openBlock(),e.createElementBlock("span",Em,e.toDisplayString(f.text),1)):e.createCommentVNode("",!0),f.subentries&&f.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)]),_:2},1032,["to","title"])):e.createCommentVNode("",!0),(y=f.subentries)!=null&&y.length?(e.openBlock(),e.createElementBlock("ul",{key:2,"aria-expanded":i.openSubentry?"true":"false"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.subentries,(k,C)=>(e.openBlock(),e.createElementBlock("li",{key:C},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:k.path,title:k.tooltip,target:k.target,onClick:S=>l.executeLink(S,k)},[k.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:k.iconClass,type:k.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),k.text?(e.openBlock(),e.createElementBlock("span",Tm,e.toDisplayString(k.text),1)):e.createCommentVNode("",!0),k.subentries&&k.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)],8,Vm)):e.createCommentVNode("",!0),c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(k),target:k.target},{default:e.withCtx(()=>[k.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:k.iconClass,type:k.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),k.text?(e.openBlock(),e.createElementBlock("span",Nm,e.toDisplayString(k.text),1)):e.createCommentVNode("",!0),k.subentries&&k.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)]),_:2},1032,["to","target"])):e.createCommentVNode("",!0)]))),128))],8,Sm)):e.createCommentVNode("",!0)],2)}),128))],8,wm)):e.createCommentVNode("",!0)],2)}),128))],2)]),o.persistOnMobile===!1?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:"button",id:"toggle-offcanvas",onClick:n[5]||(n[5]=e.withModifiers((...c)=>l.toggleOffcanvasNavigation&&l.toggleOffcanvasNavigation(...c),["prevent"]))},[e.createVNode(s,{iconClass:o.buttonOffcanvas.iconClass,type:o.buttonOffcanvas.iconType},null,8,["iconClass","type"]),e.createElementVNode("span",{class:e.normalizeClass({hidden:!o.buttonOffcanvas.showText})},e.toDisplayString(o.buttonOffcanvas.text),3)])):e.createCommentVNode("",!0)],2)}const Lo=B(ym,[["render",Im]]),Fm={name:"CmdMultistepFormProgressBar",data(){return{activeLink:0}},props:{showStepNumber:{type:Boolean,default:!1},multisteps:{type:Array,required:!0},separatorIconClass:{type:String,default(){return"icon-chevron-one-stripe-right"}},useGap:{type:Boolean,default:!0}},methods:{clickedStep(t,n){this.activeLink=n,this.$emit("click",{event:t,index:n,stepPath:this.multisteps[n].path})},getRoute(t){return me(t)}}},Om=["href","onClick","title"],Mm={key:0,class:"number"},Dm={key:2},Lm={key:0,class:"number"},Pm={key:2},Am=["type","name","title","formaction","onClick"],qm={key:0,class:"number"},Hm={key:2};function zm(t,n,o,a,i,l){const s=N,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ol",{class:e.normalizeClass(["cmd-multistep-form-progress-bar",{"use-gap":o.useGap}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.multisteps,(c,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass({active:i.activeLink===h})},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:c.path,onClick:e.withModifiers(d=>l.clickedStep(d,h),["stop","prevent"]),title:c.tooltip},[o.showStepNumber?(e.openBlock(),e.createElementBlock("span",Mm,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0),c.iconClass?(e.openBlock(),e.createBlock(s,{key:1,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Dm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(o.separatorIconClass)},null,2)],8,Om)):e.createCommentVNode("",!0),c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(c),title:c.tooltip},{default:e.withCtx(()=>[o.showStepNumber?(e.openBlock(),e.createElementBlock("span",Lm,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0),c.iconClass?(e.openBlock(),e.createBlock(s,{key:1,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Pm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(o.separatorIconClass)},null,2)]),_:2},1032,["to","title"])):e.createCommentVNode("",!0),c.type==="button"||c.type==="submit"?(e.openBlock(),e.createElementBlock("button",{key:2,class:"button",type:c.type,name:c.name,title:c.tooltip,formaction:c.formaction,onClick:e.withModifiers(d=>l.clickedStep(d,h),["stop","prevent"])},[o.showStepNumber?(e.openBlock(),e.createElementBlock("span",qm,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0),c.iconClass?(e.openBlock(),e.createBlock(s,{key:1,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Hm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(o.separatorIconClass)},null,2)],8,Am)):e.createCommentVNode("",!0)],2))),128))],2)}const Rm=B(Fm,[["render",zm]]),jm={name:"CmdNewsletterSubscription",emits:["button-click"],data(){return{buttonDisabled:!0}},props:{modelValue:{type:Object,default(){return{subscription:"subscribe",email:""}}},buttonType:{type:String,default:"button",validator(t){return t==="submit"||t==="button"}},showLegend:{type:Boolean,default:!0},textLegend:{type:String,default:"Stay up-to-date"},cmdInputGroup:{type:Object,default:function(){return{labelText:"Choose option",showLabel:!1,inputElements:[{labelText:"Subscribe",id:"radio-subscribe",name:"cmd-subscribe-group",value:"subscribe"},{labelText:"Unsubscribe",id:"radio-unsubscribe",name:"cmd-subscribe-group",value:"unsubscribe"}]}}},cmdFormElementEmail:{type:Object,default:function(){return{labelText:"Email-Address:",placeholder:"Enter your email-address",required:!0}}},cmdFormElementSubmit:{type:Object,default:function(){return{text:"Submit",icon:{show:!0,iconClass:"icon-message-send",position:"before",tooltip:""}}}}},computed:{cmdFormElementSubmitDynamicLabel(){return this.updateButtonLabelText},updateButtonLabelText(){const t={...this.cmdFormElementSubmit};return t.text=this.subscription==="subscribe"?"Subscribe now":"Unsubscribe from list",t},subscription:{get(){return this.modelValue.subscription||"subscribe"},set(t){this.$emit("update:modelValue",{subscription:t,email:this.email})}},email:{get(){return this.modelValue.email},set(t){this.$emit("update:modelValue",{subscription:this.subscription,email:t})}}},methods:{sendData(t){this.$emit("button-click",{subscription:this.subscription,email:this.email,originalEvent:t})},checkValidationStatus(t){this.buttonDisabled=t!=="success"}},watch:{modelValue:{handler(){return this.updateButtonLabelText},deep:!0,immediate:!0}}},Um={class:"cmd-newsletter-subscription flex-container"},Wm={class:"button-wrapper"};function Gm(t,n,o,a,i,l){const s=Do,r=A;return e.openBlock(),e.createElementBlock("fieldset",Um,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),e.createVNode(s,{inputTypes:"radio",labelText:o.cmdInputGroup.labelText,showLabel:o.cmdInputGroup.showLabel,inputElements:o.cmdInputGroup.inputElements,modelValue:l.subscription,"onUpdate:modelValue":n[0]||(n[0]=c=>l.subscription=c)},null,8,["labelText","showLabel","inputElements","modelValue"]),e.createVNode(r,{element:"input",type:"email",placeholder:o.cmdFormElementEmail.placeholder,labelText:o.cmdFormElementEmail.labelText,id:"cmd-email-newsletter-subscription",required:o.cmdFormElementEmail.required,useCustomTooltip:o.cmdFormElementEmail.useCustomTooltip,modelValue:l.email,"onUpdate:modelValue":n[1]||(n[1]=c=>l.email=c),onValidationStatusChange:l.checkValidationStatus},null,8,["placeholder","labelText","required","useCustomTooltip","modelValue","onValidationStatusChange"]),e.createElementVNode("div",Wm,[e.createVNode(r,{element:"button",type:o.buttonType,disabled:i.buttonDisabled,nativeButton:l.cmdFormElementSubmitDynamicLabel,onClick:l.sendData},null,8,["type","disabled","nativeButton","onClick"])])])}const Jm=B(jm,[["render",Gm]]);function Po(t,n,o,a=!0){function i(l,s){return s&&l<10?"0"+l:l}return(l,s)=>{if(o){let r=l,c=n;return r>12&&(r-=12,c=o),i(r,a)+t+i(s,!0)+c}return i(l,a)+t+i(s,!0)+n}}const Km={name:"CmdOpeningHoursItem",mixins:[P],data(){return{editableDay:{}}},props:{day:{type:Object,required:!0},separator:{type:String,default:"–"},abbreviationTextAm:{type:String,default:"am"},abbreviationTextPm:{type:String,default:"pm"},timeFormatter:{type:Function,required:!1}},methods:{toggleClosedStatus(t){t==="am"?this.editableDay.amClosed=!this.editableDay.amClosed:this.editableDay.pmClosed=!this.editableDay.pmClosed},getTime(t){return this.timeFormatter?this.timeFormatter(t.hours,t.mins):Po(":"," "+this.abbreviationTextAm," "+this.abbreviationTextPm,!1)(t.hours,t.mins)},updateHandlerProvider(){const t=this.editableDay;return z(this,{update(n){n.day=t.day,n.am||(n.am={}),n.am.fromTime=t.amFrom,n.am.tillTime=t.amTill,n.am.displayText=t.amClosed?t.amDisplayText:"",n.pm||(n.pm={}),n.pm.fromTime=t.pmFrom,n.pm.tillTime=t.pmTill,n.pm.displayText=t.pmClosed?t.pmDisplayText:""}})}},watch:{day:{handler(){const t=Po(":","","",!0);this.editableDay={day:this.day.day,amFrom:t(this.day.am.fromTime.hours,this.day.am.fromTime.mins),amTill:t(this.day.am.tillTime.hours,this.day.am.tillTime.mins),amDisplayText:this.day.am.displayText,amClosed:!!this.day.am.displayText,pmFrom:t(this.day.pm.fromTime.hours,this.day.pm.fromTime.mins),pmTill:t(this.day.pm.tillTime.hours,this.day.pm.tillTime.mins),pmClosed:!!this.day.pm.displayText,pmDisplayText:this.day.pm.displayText}},immediate:!0,deep:!0}}},Zm={class:"cmd-opening-hours-item"},Ym={key:0,class:"am"},Xm={key:1,class:"pm"},Qm={class:"flex-container no-flex"},$m={class:"flex-container no-flex am-wrapper"},vm={key:1,class:"input-wrapper"},eh=["title"],th={class:"flex-container no-flex pm-wrapper"},oh={key:1,class:"input-wrapper"},nh=["title"];function lh(t,n,o,a,i,l){const s=A;return t.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("dt",null,[e.createVNode(s,{element:"input",type:"text",class:"edit-mode",showLabel:!1,labelText:"Text for weekday",placeholder:"Text for weekday",modelValue:i.editableDay.day,"onUpdate:modelValue":n[0]||(n[0]=r=>i.editableDay.day=r)},null,8,["modelValue"])]),e.createElementVNode("dd",Qm,[e.createElementVNode("div",$m,[i.editableDay.amClosed?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:"edit-mode",showLabel:!1,labelText:"Text for 'closed'",placeholder:"Text for 'closed'",modelValue:i.editableDay.amDisplayText,"onUpdate:modelValue":n[1]||(n[1]=r=>i.editableDay.amDisplayText=r)},null,8,["modelValue"])):e.createCommentVNode("",!0),i.editableDay.amClosed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vm,[e.createVNode(s,{element:"input",type:"time",class:"edit-mode",showLabel:!1,labelText:"Text for AM from",placeholder:"Text for AM from",modelValue:i.editableDay.amFrom,"onUpdate:modelValue":n[2]||(n[2]=r=>i.editableDay.amFrom=r)},null,8,["modelValue"]),e.createVNode(s,{element:"input",type:"time",showLabel:!1,class:"edit-mode",min:i.editableDay.amFrom,labelText:"Text for AM till",placeholder:"Text for AM till",modelValue:i.editableDay.amTill,"onUpdate:modelValue":n[3]||(n[3]=r=>i.editableDay.amTill=r)},null,8,["min","modelValue"])])),e.createElementVNode("a",{href:"#",onClick:n[4]||(n[4]=e.withModifiers(r=>l.toggleClosedStatus("am"),["prevent"])),title:i.editableDay.amClosed?"Set to open":"Set to closed",class:e.normalizeClass(i.editableDay.amClosed?"icon-clock":"icon-blocked")},null,10,eh)]),e.createElementVNode("div",th,[i.editableDay.pmClosed?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:"edit-mode",showLabel:!1,labelText:"Text for 'closed'",placeholder:"Text for 'closed'",modelValue:i.editableDay.pmDisplayText,"onUpdate:modelValue":n[5]||(n[5]=r=>i.editableDay.pmDisplayText=r)},null,8,["modelValue"])):e.createCommentVNode("",!0),i.editableDay.pmClosed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oh,[e.createVNode(s,{element:"input",type:"time",showLabel:!1,class:"edit-mode",labelText:"Text for PM from",placeholder:"Text for PM from",modelValue:i.editableDay.pmFrom,"onUpdate:modelValue":n[6]||(n[6]=r=>i.editableDay.pmFrom=r)},null,8,["modelValue"]),e.createVNode(s,{element:"input",type:"time",showLabel:!1,class:"edit-mode",min:i.editableDay.pmFrom,labelText:"Text for PM till",placeholder:"Text for PM till",modelValue:i.editableDay.pmTill,"onUpdate:modelValue":n[7]||(n[7]=r=>i.editableDay.pmTill=r)},null,8,["min","modelValue"])])),e.createElementVNode("a",{href:"#",onClick:n[8]||(n[8]=e.withModifiers(r=>l.toggleClosedStatus("pm"),["prevent"])),title:i.editableDay.pmClosed?"Set to open":"Set to closed",class:e.normalizeClass(i.editableDay.pmClosed?"icon-clock":"icon-blocked")},null,10,nh)])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("dt",Zm,e.toDisplayString(o.day.day),1),e.createElementVNode("dd",null,[o.day.am?(e.openBlock(),e.createElementBlock("span",Ym,[o.day.am.displayText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.day.am.displayText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.getTime(o.day.am.fromTime,o.abbreviationTextAm))+" "+e.toDisplayString(o.separator)+" "+e.toDisplayString(l.getTime(o.day.am.tillTime)),1)],64))])):e.createCommentVNode("",!0),o.day.pm?(e.openBlock(),e.createElementBlock("span",Xm,[o.day.pm.displayText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.day.pm.displayText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.getTime(o.day.pm.fromTime,o.abbreviationTextPm))+" "+e.toDisplayString(o.separator)+" "+e.toDisplayString(l.getTime(o.day.pm.tillTime)),1)],64))])):e.createCommentVNode("",!0)])],64))}const ih=B(Km,[["render",lh]]);function ah(t,n,o,a=!0){function i(l,s){return s&&l<10?"0"+l:l}return(l,s)=>i(l,a)+t+i(s,!0)+n}const sh={name:"CmdOpeningHours",mixins:[P],data(){return{currentTime:new Date,editableOpeningHours:[],editableTextOpen:null,editableTextClosed:null,editableTextHolidays:null,editableTextMiscInfo:null}},props:{closed:{type:Boolean,default:!1},link:{type:Object,required:!1},textOpen:{type:String,default:"Open right now!"},textClosed:{type:String,default:"Closed right now!"},separator:{type:String,default:"–"},abbreviationTextAm:{type:String,default:"am"},abbreviationTextPm:{type:String,default:"pm"},openingHours:{type:Array,required:!0},textHolidays:{type:String,required:!1},textMiscInfo:{type:String,required:!1},timeFormatter:{type:Function,required:!1},componentHandlesClosedStatus:{type:Boolean,default:!0},checkInterval:{type:Number,default:5e3},cmdHeadline:{type:Object,required:!1}},mounted(){this.componentHandlesClosedStatus&&this.checkInterval>0&&(this.$_CmdOpeningHours_intervalId=setInterval(()=>{this.currentTime=new Date},this.checkInterval))},beforeUnmount(){this.$_CmdOpeningHours_intervalId&&(clearInterval(this.$_CmdOpeningHours_intervalId),this.$_CmdOpeningHours_intervalId=null)},computed:{openingHoursFormatted(){const t=[];for(let n=0;n<this.openingHours.length;n++){const o={},a=this.openingHours[n].am.fromTime.split(/[:.]/),i=this.openingHours[n].am.tillTime.split(/[:.]/),l=this.openingHours[n].pm.fromTime.split(/[:.]/),s=this.openingHours[n].pm.tillTime.split(/[:.]/);o.day=this.openingHours[n].day,o.am={...this.openingHours[n].am},o.am.fromTime={hours:parseInt(a[0]),mins:parseInt(a[1])},o.am.tillTime={hours:parseInt(i[0]),mins:parseInt(i[1])},o.pm={...this.openingHours[n].pm},o.pm.fromTime={hours:parseInt(l[0]),mins:parseInt(l[1])},o.pm.tillTime={hours:parseInt(s[0]),mins:parseInt(s[1])},t.push(o)}return t},textOpenModel:{get(){return this.editableTextOpen==null?this.textOpen:this.editableTextOpen},set(t){this.editableTextOpen=t}},textClosedModel:{get(){return this.editableTextClosed==null?this.textClosed:this.editableTextClosed},set(t){this.editableTextClosed=t}},textHolidaysModel:{get(){return this.editableTextHolidays==null?this.textHolidays:this.editableTextHolidays},set(t){this.editableTextHolidays=t}},textMiscInfoModel:{get(){return this.editableTextMiscInfo==null?this.textMiscInfo:this.editableTextMiscInfo},set(t){this.editableTextMiscInfo=t}},textOpenClosed(){return this.isClosed?this.textClosed:this.textOpen},isClosed(){if(!this.componentHandlesClosedStatus)return this.closed;let t=this.currentTime.getDay();t===0?t=6:t-=1;const n=this.openingHoursFormatted[t];if(this.openingHoursFormatted[t]){const o=new Date;o.setHours(n.am.fromTime.hours,n.am.fromTime.mins);const a=new Date;a.setHours(n.am.tillTime.hours,n.am.tillTime.mins);const i=new Date;i.setHours(n.pm.fromTime.hours,n.pm.fromTime.mins);const l=new Date;if(l.setHours(n.pm.tillTime.hours,n.pm.tillTime.mins),o<=this.currentTime&&this.currentTime<=a&&i<=this.currentTime&&this.currentTime<=l)return!1}return!0}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","openingHours",-1),this.itemProvider)},itemProvider(){return{day:"Weekday",am:{fromTime:"00:00",tillTime:"00:00"},pm:{fromTime:"00:00",tillTime:"00:00"}}},getTime(t){return this.timeFormatter?this.timeFormatter(t.hours,t.mins):ah(":"," hrs","",!1)(t.hours,t.mins)},updateHandlerProvider(){const t=this.editableOpeningHours,n=this.editableTextOpen,o=this.editableTextClosed,a=this.editableTextHolidays,i=this.editableTextMiscInfo;return z(this,{update(l,s){l.openingHours=t,l.textOpen=n,l.textClosed=o,l.textHolidays=a,l.textMiscInfo=i;const r=s==null?void 0:s.find(c=>c.name==="CmdHeadline");r&&(l.cmdHeadline=l.cmdHeadline||{},r.update(l.cmdHeadline))}})}}},rh={class:"cmd-opening-hours"},ch=["href"],dh={key:2,class:"flex-container"},mh={key:3},hh=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new entry",-1)],fh={class:"edit-mode-opening-hours-item"},uh={key:5},ph={key:0},gh={key:1},yh={key:6,class:"flex-container vertical"};function kh(t,n,o,a,i,l){var m,p,f;const s=O,r=e.resolveComponent("router-link"),c=A,h=ih,d=te;return e.openBlock(),e.createElementBlock("div",rh,[(m=o.cmdHeadline)!=null&&m.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),t.editing?(e.openBlock(),e.createElementBlock("div",dh,[e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Text for 'open'",placeholder:"Text for 'open'",modelValue:l.textOpenModel,"onUpdate:modelValue":n[0]||(n[0]=u=>l.textOpenModel=u)},null,8,["modelValue"]),e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Text for 'closed'",placeholder:"Text for 'closed'",modelValue:l.textClosedModel,"onUpdate:modelValue":n[1]||(n[1]=u=>l.textClosedModel=u)},null,8,["modelValue"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.link&&((p=o.link)!=null&&p.path)&&((f=o.link)!=null&&f.show)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.link.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.link.path,class:e.normalizeClass({closed:l.isClosed})},e.toDisplayString(l.textOpenClosed),11,ch)):e.createCommentVNode("",!0),o.link.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:o.link.path,class:e.normalizeClass({closed:l.isClosed})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.textOpenClosed),1)]),_:1},8,["to","class"])):e.createCommentVNode("",!0),o.link.type==="button"?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["button",{closed:l.isClosed}])},e.toDisplayString(l.textOpenClosed),3)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({closed:l.isClosed})},e.toDisplayString(l.textOpenClosed),3))],64)),t.editModeContext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[l.openingHoursFormatted.length===0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:n[2]||(n[2]=(...u)=>l.onAddItem&&l.onAddItem(...u))},hh)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.openingHoursFormatted,(u,y)=>(e.openBlock(),e.createBlock(d,{key:"x"+y,class:"edit-items",showComponentName:!1,componentName:"CmdOpeningHoursItem",componentProps:u,allowedComponentTypes:[],componentPath:["props","openingHours",y],itemProvider:l.itemProvider},{default:e.withCtx(()=>[e.createElementVNode("dl",fh,[e.createVNode(h,{day:u,separator:o.separator,abbreviationTextAm:o.abbreviationTextAm,abbreviationTextPm:o.abbreviationTextPm},null,8,["day","separator","abbreviationTextAm","abbreviationTextPm"])])]),_:2},1032,["componentProps","componentPath","itemProvider"]))),128))],64)):(e.openBlock(),e.createElementBlock("dl",mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.openingHoursFormatted,(u,y)=>(e.openBlock(),e.createBlock(h,{key:y,day:u,separator:o.separator,abbreviationTextAm:o.abbreviationTextAm,abbreviationTextPm:o.abbreviationTextPm},null,8,["day","separator","abbreviationTextAm","abbreviationTextPm"]))),128))])),!t.editing&&(o.textHolidays||o.textMiscInfo)?(e.openBlock(),e.createElementBlock("div",uh,[o.textHolidays?(e.openBlock(),e.createElementBlock("p",ph,[e.createElementVNode("strong",null,e.toDisplayString(o.textHolidays),1)])):e.createCommentVNode("",!0),o.textMiscInfo?(e.openBlock(),e.createElementBlock("p",gh,e.toDisplayString(o.textMiscInfo),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.editing?(e.openBlock(),e.createElementBlock("div",yh,[e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Text for 'holidays'",placeholder:"Text for 'holidays'",modelValue:l.textHolidaysModel,"onUpdate:modelValue":n[3]||(n[3]=u=>l.textHolidaysModel=u)},null,8,["modelValue"]),e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Miscellaneous information",placeholder:"Miscellaneous information",modelValue:l.textMiscInfoModel,"onUpdate:modelValue":n[4]||(n[4]=u=>l.textMiscInfoModel=u)},null,8,["modelValue"])])):e.createCommentVNode("",!0)])}const Ch=B(sh,[["render",kh]]),bh={name:"CmdPagination",mixins:[j,{data(){return{defaultMessageProperties:{"cmdpager.tooltip.go_to_page":"Go to page {0}","cmdpager.tooltip.not_possible":"Not possible (current page is shown already)"}}}}],emits:["click"],data(){return{currentPage:1}},props:{pages:{type:Number,required:!0},itemsPerPage:{type:Number,required:!0},showPageNumbers:{type:Boolean,default:!0},linkType:{type:String,default:"href",validator(t){return t==="href"||t==="button"}},prevLink:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-left",text:"prev",showText:!0}}},nextLink:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-right",text:"next",showText:!0}}}},computed:{numberOfPages(){return Math.ceil(this.pages/this.itemsPerPage)},getPreviousHref(){return this.currentPage===1?null:"#"},getNextHref(){return this.currentPage===this.numberOfPages?null:"#"}},methods:{getHref(t){return this.linkType!=="href"||this.currentPage===t?null:"#"},showPage(t){this.currentPage=t,this.$emit("click",t)},nextPage(){this.currentPage<this.numberOfPages&&this.showPage(this.currentPage+1)},previousPage(){this.currentPage>1&&this.showPage(this.currentPage-1)}}},Bh={class:"cmd-pagination"},wh=["href","title"],_h={key:0},xh={class:"page-index"},Eh={class:"flex-container"},Sh=["href","title","onClick"],Vh=["href","title"],Th={key:0};function Nh(t,n,o,a,i,l){const s=N;return e.openBlock(),e.createElementBlock("div",Bh,[e.createElementVNode("a",{href:l.getPreviousHref,class:e.normalizeClass(["page-change",{disabled:i.currentPage===1,button:o.linkType==="button"}]),onClick:n[0]||(n[0]=e.withModifiers((...r)=>l.previousPage&&l.previousPage(...r),["prevent"])),title:o.prevLink.showText?null:o.prevLink.text},[e.createVNode(s,{iconClass:o.prevLink.iconClass,type:o.prevLink.iconType},null,8,["iconClass","type"]),o.prevLink.showText?(e.openBlock(),e.createElementBlock("span",_h,e.toDisplayString(o.prevLink.text),1)):e.createCommentVNode("",!0)],10,wh),e.createElementVNode("div",xh,[e.createElementVNode("div",Eh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pages,(r,c)=>(e.openBlock(),e.createElementBlock("a",{href:l.getHref(r),class:e.normalizeClass({disabled:i.currentPage===c+1,button:o.linkType==="button",hidden:!o.showPageNumbers}),title:i.currentPage!==c+1?t.getMessage("cmdpager.tooltip.go_to_page",c+1):t.getMessage("cmdpager.tooltip.not_possible"),key:c,onClick:e.withModifiers(h=>l.showPage(r),["stop","prevent"]),"aria-live":"polite"},[e.createElementVNode("span",null,e.toDisplayString(c+1),1)],10,Sh))),128))])]),e.createElementVNode("a",{href:l.getNextHref,class:e.normalizeClass(["page-change",{disabled:i.currentPage===l.numberOfPages,button:o.linkType==="button"}]),onClick:n[1]||(n[1]=e.withModifiers((...r)=>l.nextPage&&l.nextPage(...r),["prevent"])),title:o.nextLink.showText?null:o.nextLink.text},[o.nextLink.showText?(e.openBlock(),e.createElementBlock("span",Th,e.toDisplayString(o.nextLink.text),1)):e.createCommentVNode("",!0),e.createVNode(s,{iconClass:o.nextLink.iconClass,type:o.nextLink.iconType},null,8,["iconClass","type"])],10,Vh)])}const Ih=B(bh,[["render",Nh]]),Fh={name:"CmdSocialNetworksItem",data(){return{editablePath:null,editableTooltip:null,editableLinktext:null}},mixins:[P],props:{network:{type:Object,required:!0},userMustAcceptDataPrivacy:{type:Boolean},page:{type:String,required:!1},appendPage:{type:Boolean,default:!0},buttonTextAlign:{type:String,default:"left",validator(t){return t==="left"||t==="right"}},dataPrivacyAccepted:{type:Boolean},tooltipAcceptDataPrivacy:{type:String,default:"You must accept data privacy conditions!"}},methods:{getUrl(t){return this.userMustAcceptDataPrivacy&&this.dataPrivacyAccepted?this.appendPage?this.page?t.path+encodeURIComponent(this.page):t.path+encodeURIComponent(location.href):t.path:"#"},preventOnDisabled(t){let n=t.target;n.tagName!=="A"&&(n=n.closest("a")),n.getAttribute("href")==="#"&&t.preventDefault()},tooltip(t){return this.userMustAcceptDataPrivacy?this.dataPrivacyAccepted?t:this.tooltipAcceptDataPrivacy:t},addHandlerProvider(){const t={id:"social-network-facebook",path:"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",tooltip:"Share this page on facebook",iconClass:"icon-facebook",linkText:"Share"};return z(this,{item(){return t}})},updateHandlerProvider(){const t=ce(),n=this.editablePath,o=this.editableTooltip,a=this.editableLinktext;return z(this,{update(i){i.id=t,i.path=n,i.tooltip=o,i.linkText=a}})}}},Oh={class:"cmd-social-networks-item"},Mh=["id","href","title"],Dh={key:1};function Lh(t,n,o,a,i,l){const s=N;return e.openBlock(),e.createElementBlock("li",Oh,[(e.openBlock(),e.createElementBlock("a",{key:o.network.path,class:e.normalizeClass(["button",{disabled:o.userMustAcceptDataPrivacy&&!o.dataPrivacyAccepted},"text-align-"+o.buttonTextAlign]),id:o.network.id,href:l.getUrl(o.network),onClick:n[0]||(n[0]=(...r)=>l.preventOnDisabled&&l.preventOnDisabled(...r)),target:"_blank",title:l.tooltip(o.network.tooltip)},[o.network.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.network.iconClass,type:o.network.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.network.linkText?(e.openBlock(),e.createElementBlock("span",Dh,e.toDisplayString(o.network.linkText),1)):e.createCommentVNode("",!0)],10,Mh))])}const Ph=B(Fh,[["render",Lh]]),Ah={name:"CmdSocialNetworks",mixins:[P],data(){return{dataPrivacyAccepted:!1}},props:{modelValue:{type:[String,Number,Array],default:""},align:{type:String,default:"left",validator(t){return t==="left"||t==="center"||t==="right"}},useGap:{type:Boolean,default:!0},stretchButtons:{type:Boolean,default:!1},networks:{type:Array,required:!0},page:{type:String,required:!1},appendPage:{type:Boolean,default:!0},userMustAcceptDataPrivacy:{type:Boolean,default:!0},tooltipAcceptDataPrivacy:{type:String,default:"You must accept data privacy conditions!"},buttonTextAlign:{type:String,default:"right",validator(t){return t==="left"||t==="right"}},cmdFormElement:{type:Object,default(){return{toggleSwitch:!0,labelText:"I accept that anonymous data will be send to the platform I share this page on!",required:!0}}},cmdHeadline:{type:Object,required:!1}},computed:{validNetworks(){return this.networks.filter(t=>t.path)},alignment(){return"align-"+this.align}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","networks",-1),this.itemProvider)},itemProvider(){return{id:"social-network-facebook",path:"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",tooltip:"Share this page on facebook",iconClass:"icon-facebook",linkText:"Share"}},preventOnDisabled(t){let n=t.target;n.tagName!=="A"&&(n=n.closest("a")),n.getAttribute("href")==="#"&&t.preventDefault()},tooltip(t){return this.userMustAcceptDataPrivacy?this.dataPrivacyAccepted?t:this.tooltipAcceptDataPrivacy:t},onPersist(t){return{editModeContextData:{...this.editModeContextData||{}},update(n){n.cmdHeadline={...n.cmdHeadline||{}},Array.isArray(t)&&t.length>0&&(n.cmdHeadline.headlineText=t[0].headlineText)}}}}},qh=[e.createElementVNode("span",{class:"icon-plus"},null,-1)];function Hh(t,n,o,a,i,l){var d,m;const s=O,r=A,c=Ph,h=te;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-social-networks",{stretch:o.stretchButtons},l.alignment])},[(d=o.cmdHeadline)!=null&&d.headlineText||(m=t.editModeContext)!=null&&m.editing?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline||{})),null,16)):e.createCommentVNode("",!0),o.userMustAcceptDataPrivacy?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:"checkbox","toggle-switch":o.cmdFormElement.toggleSwitch,labelText:o.cmdFormElement.labelText,required:o.cmdFormElement.required,modelValue:i.dataPrivacyAccepted,"onUpdate:modelValue":n[0]||(n[0]=p=>i.dataPrivacyAccepted=p)},null,8,["toggle-switch","labelText","required","modelValue"])):e.createCommentVNode("",!0),l.validNetworks.length>0?(e.openBlock(),e.createElementBlock("ul",{key:2,class:e.normalizeClass(["button-wrapper",{"no-gap":!o.useGap}])},[t.editModeContext?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.validNetworks,(p,f)=>(e.openBlock(),e.createBlock(h,{key:"x"+f,class:"edit-items",componentName:"CmdSocialNetworksItem",componentProps:p,componentPath:["props","networks",f],showComponentName:!1},{default:e.withCtx(()=>[e.createVNode(c,{network:p,userMustAcceptDataPrivacy:o.userMustAcceptDataPrivacy,buttonTextAlign:o.buttonTextAlign,dataPrivacyAccepted:i.dataPrivacyAccepted},null,8,["network","userMustAcceptDataPrivacy","buttonTextAlign","dataPrivacyAccepted"])]),_:2},1032,["componentProps","componentPath"]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.validNetworks,(p,f)=>(e.openBlock(),e.createBlock(c,{key:f,network:p,userMustAcceptDataPrivacy:o.userMustAcceptDataPrivacy,buttonTextAlign:o.buttonTextAlign,dataPrivacyAccepted:i.dataPrivacyAccepted,page:o.page,appendPage:o.appendPage},null,8,["network","userMustAcceptDataPrivacy","buttonTextAlign","dataPrivacyAccepted","page","appendPage"]))),128)),e.renderSlot(t.$slots,"default")],64))],2)):(e.openBlock(),e.createElementBlock("button",{key:3,class:"button small",title:"Add new item",onClick:n[1]||(n[1]=(...p)=>l.onAddItem&&l.onAddItem(...p))},qh))],2)}const Ao=B(Ah,[["render",Hh]]),zh={name:"CmdPageFooter",props:{buttonPrintView:{type:Object,default(){return{show:!0,primary:!1,icon:{show:!0,iconClass:"icon-print-preview",tooltip:"Open print preview"},text:"Print preview"}}},useSmallButtons:{type:Boolean,default:!0},cmdSocialNetworks:{type:Array,required:!1},cmdFancyBox:{type:Object,default(){return{showPrintButtons:!0,defaultAriaLabelText:"print-preview"}}}},methods:{showFancyBox(){let t=[];typeof this.cmdFancyBox.elements=="function"?t=this.cmdFancyBox.elements():t=[document.querySelector("main")],Ce({elements:t,showPrintButtons:this.cmdFancyBox.showPrintButtons,defaultAriaLabelText:this.cmdFancyBox.defaultAriaLabelText,cmdHeadline:this.cmdFancyBox.cmdHeadline,showOverlay:this.cmdFancyBox.showOverlay,showSubmitButtons:this.cmdFancyBox.showSubmitButtons,allowEscapeKey:this.cmdFancyBox.allowEscapeKey})}}},Rh={class:"button-wrapper"},jh=["title"],Uh={key:1};function Wh(t,n,o,a,i,l){var r,c,h;const s=Ao;return e.openBlock(),e.createElementBlock("footer",{class:e.normalizeClass(["cmd-page-footer flex-container",{"small-buttons":o.useSmallButtons}])},[o.cmdSocialNetworks?(e.openBlock(),e.createBlock(s,{key:0,networks:o.cmdSocialNetworks},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"cmd-social-networks")]),_:3},8,["networks"])):e.createCommentVNode("",!0),e.createElementVNode("div",Rh,[e.renderSlot(t.$slots,"default"),o.buttonPrintView.show?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["button",{primary:o.buttonPrintView.primary}]),title:o.buttonPrintView.text?(r=o.buttonPrintView.icon)==null?void 0:r.tooltip:null,onClick:n[0]||(n[0]=(...d)=>l.showFancyBox&&l.showFancyBox(...d))},[(c=o.buttonPrintView.icon)!=null&&c.show?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass((h=o.buttonPrintView.icon)==null?void 0:h.iconClass)},null,2)):e.createCommentVNode("",!0),o.buttonPrintView.text?(e.openBlock(),e.createElementBlock("span",Uh,e.toDisplayString(o.buttonPrintView.text),1)):e.createCommentVNode("",!0)],10,jh)):e.createCommentVNode("",!0)])],2)}const Gh=B(zh,[["render",Wh]]),Jh={name:"CmdPageHeader",props:{cmdBreadcrumbs:{type:Object,required:!1},cmdHeadline:{type:Object,required:!1}}},Kh={key:0,class:"cmd-page-header flex-container"},Zh={key:0,class:"headline-wrapper flex-container vertical"};function Yh(t,n,o,a,i,l){const s=Vo,r=O;return o.cmdBreadcrumbs||o.cmdHeadline||t.$slots.default?(e.openBlock(),e.createElementBlock("header",Kh,[o.cmdBreadcrumbs||o.cmdHeadline?(e.openBlock(),e.createElementBlock("div",Zh,[o.cmdBreadcrumbs?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdBreadcrumbs)),null,16)):e.createCommentVNode("",!0),o.cmdHeadline.headlineText?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:1},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.$slots.default?e.renderSlot(t.$slots,"default",{key:1}):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}const Xh=B(Jh,[["render",Yh]]),Qh={name:"CmdProgressBar",inheritAttrs:!1,data(){return{loadingStatus:30}},props:{labelText:{type:String,required:!1},showLabel:{type:Boolean,default:!0},showLoadingStatus:{type:Boolean,default:!0},id:{type:String,required:!0}}},$h=["for"],vh={class:"progressbar"},ef={key:0},tf=["id","value"];function of(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("label",{class:"cmd-progressbar",for:o.id},[e.createElementVNode("span",{class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},e.toDisplayString(o.labelText),3),e.createElementVNode("span",vh,[o.showLoadingStatus?(e.openBlock(),e.createElementBlock("span",ef,e.toDisplayString(i.loadingStatus)+" %",1)):e.createCommentVNode("",!0),e.createElementVNode("progress",e.mergeProps(t.$attrs,{id:o.id,value:i.loadingStatus}),null,16,tf)])],8,$h)}const nf=B(Qh,[["render",of]]),lf={name:"CmdSidebar",data(){return{open:!0}},props:{collapsible:{type:Boolean,default:!0},openSidebar:{type:Boolean,default:!0},styledAsBox:{type:Boolean,default:!0},collapseToLeft:{type:Boolean,default:!0},cmdHeadline:{type:Object,required:!1}},computed:{wrapperClass(){return this.open?"open":"closed"},iconClassOpenCollapse(){return this.collapseToLeft?this.open?"icon-chevron-one-stripe-left":"icon-chevron-one-stripe-right":this.open?"icon-chevron-one-stripe-right":"icon-chevron-one-stripe-left"}},methods:{toggleSidebar(){this.open=!this.open,this.$emit("toggleSidebar",this.open)}},watch:{openSidebar:{handler(){this.open=this.openSidebar},immediate:!0}}},af={class:"inner-sidebar-wrapper"},sf={key:1,class:"open-slot-wrapper"},rf={key:2,class:"closed-slot-wrapper"},cf=["title"];function df(t,n,o,a,i,l){var r;const s=O;return e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(["cmd-sidebar",l.wrapperClass,{box:o.styledAsBox,"collapse-to-right":!o.collapseToLeft}])},[e.createElementVNode("div",af,[(r=o.cmdHeadline)!=null&&r.headlineText&&i.open?(e.openBlock(),e.createBlock(s,{key:0,headlineText:o.cmdHeadline.headlineText,headlineLevel:o.cmdHeadline.headlineLevel||3,textAlign:o.cmdHeadline.textAlign,class:"sidebar-main-headline"},null,8,["headlineText","headlineLevel","textAlign"])):e.createCommentVNode("",!0),i.open?(e.openBlock(),e.createElementBlock("div",sf,[e.renderSlot(t.$slots,"open",{openBoxStatus:i.open})])):(e.openBlock(),e.createElementBlock("div",rf,[e.renderSlot(t.$slots,"closed",{openBoxStatus:i.open})]))]),o.collapsible?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",title:i.open?"Collapse sidebar":"Expand sidebar",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.toggleSidebar&&l.toggleSidebar(...c),["prevent"]))},[e.createElementVNode("span",{class:e.normalizeClass(l.iconClassOpenCollapse)},null,2)],8,cf)):e.createCommentVNode("",!0)],2)}const mf=B(lf,[["render",df]]),hf={name:"CmdSiteFooter",props:{orientation:{type:String,default:"horizontal",validator(t){return t==="horizontal"||t==="vertical"}}}},ff={class:"cmd-site-footer site-footer"};function uf(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",ff,[e.createElementVNode("footer",{class:e.normalizeClass(["flex-container",{vertical:o.orientation==="vertical"}])},[e.renderSlot(t.$slots,"default")],2)])}const pf=B(hf,[["render",uf]]),gf={name:"CmdSiteHeader",emits:["offcanvas"],data(){return{defaultLogoHeight:""}},props:{closeOffcanvas:{type:Object,required:!1},sticky:{type:Boolean,default:!0},navigationInline:{type:Boolean,default:!1},resizeHeaderOnScroll:{type:Boolean,default:!0},scrollContainerToResizeHeader:{type:String,default:".page-wrapper"},useGrid:{type:Boolean,default:!0},cmdCompanyLogo:{type:Object,required:!1},cmdMainNavigation:{type:Object,required:!1}},mounted(){if(this.resizeHeaderOnScroll){const t=document.querySelector(this.scrollContainerToResizeHeader);t.addEventListener("scroll",function(){const n=document.querySelector(".cmd-site-header > header");t.scrollTop>0?n.classList.add("resize-on-scroll"):n.classList.remove("resize-on-scroll")})}},methods:{onImageLoaded(t){this.defaultLogoHeight=t.target.height/10+"rem"},emitOffcanvasStatus(t){this.$emit("offcanvas",t)}},watch:{defaultLogoHeight(){const t=this.$refs["site-header"].querySelector(".cmd-company-logo img");t.style.height=this.defaultLogoHeight}}},yf={key:0,class:"top-header"};function kf(t,n,o,a,i,l){var c,h,d,m,p,f,u,y,k;const s=To,r=Lo;return e.openBlock(),e.createElementBlock("div",{ref:"site-header",class:e.normalizeClass(["cmd-site-header site-header",{sticky:o.sticky,"navigation-inline":o.navigationInline,"off-canvas-right":((c=o.cmdMainNavigation)==null?void 0:c.offcanvasPosition)==="right"}]),role:"banner"},[t.$slots.topheader?(e.openBlock(),e.createElementBlock("div",yf,[e.renderSlot(t.$slots,"topheader")])):e.createCommentVNode("",!0),e.createElementVNode("header",{class:e.normalizeClass([o.useGrid?"grid-container-create-columns":"flex-container",{"has-navigation":((d=(h=o.cmdMainNavigation)==null?void 0:h.navigationEntries)==null?void 0:d.length)&&o.navigationInline||t.$slots.navigation}])},[t.$slots.logo||t.$slots.header||t.$slots.navigation?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"logo"),e.renderSlot(t.$slots,"header"),e.renderSlot(t.$slots,"navigation")],64)):e.createCommentVNode("",!0),o.cmdCompanyLogo||(p=(m=o.cmdMainNavigation)==null?void 0:m.navigationEntries)!=null&&p.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.cmdCompanyLogo?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdCompanyLogo,{onImageLoaded:l.onImageLoaded}),null,16,["onImageLoaded"])):e.createCommentVNode("",!0),(u=(f=o.cmdMainNavigation)==null?void 0:f.navigationEntries)!=null&&u.length&&o.navigationInline?(e.openBlock(),e.createBlock(r,{key:1,navigationEntries:o.cmdMainNavigation.navigationEntries,offcanvasPosition:o.cmdMainNavigation.offcanvasPosition,stretchMainItems:o.cmdMainNavigation.stretchMainItems,closeOffcanvas:o.closeOffcanvas,onOffcanvas:l.emitOffcanvasStatus},null,8,["navigationEntries","offcanvasPosition","stretchMainItems","closeOffcanvas","onOffcanvas"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2),(k=(y=o.cmdMainNavigation)==null?void 0:y.navigationEntries)!=null&&k.length&&!o.navigationInline?(e.openBlock(),e.createBlock(r,{key:1,navigationEntries:o.cmdMainNavigation.navigationEntries,offcanvasPosition:o.cmdMainNavigation.offcanvasPosition,closeOffcanvas:o.closeOffcanvas,stretchMainItems:o.cmdMainNavigation.stretchMainItems,onOffcanvas:l.emitOffcanvasStatus},null,8,["navigationEntries","offcanvasPosition","closeOffcanvas","stretchMainItems","onOffcanvas"])):e.createCommentVNode("",!0)],2)}const Cf=B(gf,[["render",kf]]),bf={emits:["search","update:modelValueInput1","update:modelValueInput2","update:modelValueRadius","update:modelValueSearchFilters"],name:"CmdBoxSiteSearch",mixins:[j,{data(){return{defaultMessageProperties:{"cmdsitesearch.labeltext.what_to_search":"What do you like to search for?","cmdsitesearch.placeholder.what_to_search":"Search","cmdsitesearch.labeltext.where_to_search":"Where do you want to search?","cmdsitesearch.placeholder.where_to_search":"Zip or city","cmdsitesearch.show_filter_options":"Show filter options","cmdsitesearch.hide_filter_options":"Hide filter options"}}}}],data(){return{showFilters:!1}},props:{modelValueInput1:{type:String,required:!1},modelValueInput2:{type:String,required:!1},modelValueRadius:{type:[String,Number],required:!1},modelValueSearchFilters:{type:Array,required:!1},useFilters:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},results:{type:[Function,Number],required:!1},cmdHeadline:{type:Object,required:!1},cmdFormElementInput1:{type:Object,default(){return{type:"search",showLabel:!1,required:!0,labelText:"What do you like to search for?",placeholder:"What do you like to search for?",showSearchButton:!1}}},cmdFormElementInput2:{type:Object,default(){return{show:!0,type:"text",showLabel:!1,required:!0,labelText:"Where do you like to search?",placeholder:"Enter city, zip, country"}}},cmdFormElementRadius:{type:Object,default(){return{show:!0,showLabel:!1,required:!1,labelText:"Radius",selectOptions:[{text:"None",value:0},{text:"5 Km",value:5},{text:"10 Km",value:10},{text:"15 Km",value:15},{text:"50 Km",value:50},{text:"100 Km",value:100}]}}},cmdFormElementSearchButton:{type:Object,default(){return{icon:{show:!0,position:"before",iconClass:"icon-search"},text:"Search"}}},cmdFakeSelect:{type:Object,required:!1},cmdIcon:{type:Object,default(){return{showFilters:{iconClass:"icon-chevron-one-stripe-up",type:"auto"},hideFilters:{iconClass:"icon-chevron-one-stripe-down",type:"auto"}}}}},computed:{searchValue1:{get(){return this.modelValueInput1},set(t){this.$emit("update:modelValueInput1",t)}},searchValue2:{get(){return this.modelValueInput2},set(t){this.$emit("update:modelValueInput2",t)}},radius:{get(){return this.modelValueRadius},set(t){this.$emit("update:modelValueRadius",t)}},searchFilters:{get(){return this.modelValueSearchFilters},set(t){this.$emit("update:modelValueSearchFilters",t)}},buttonSearchDisabled(){const t=!this.cmdFormElementInput1.required||this.searchValue1.trim(),n=!this.cmdFormElementInput2.show||!this.cmdFormElementInput2.required||this.searchValue2.trim(),o=!this.cmdFormElementRadius.show||!this.cmdFormElementRadius.required||this.radius;return!(t&&n&&o)}},methods:{onSearchButtonClick(){this.$emit("search",{searchValue1:this.searchValue1,searchValue2:this.searchValue2,searchFilters:this.searchFilters,radius:this.radius})},getOptionName(t){for(let n=0;n<this.cmdFakeSelect.selectData.length;n++)if(t===this.cmdFakeSelect.selectData[n].value)return this.cmdFakeSelect.selectData[n].text;return null}},watch:{cmdFormElementRadius:{handler(){var t,n;(t=this.cmdFormElementRadius)!=null&&t.selectOptions&&((n=this.cmdFormElementRadius)!=null&&n.selectOptions.length)&&this.modelValueRadius==null&&(this.radius=this.cmdFormElementRadius.selectOptions[0].value)},immediate:!0,deep:!0}}},Bf={class:"cmd-box-site-search flex-container"},wf={class:"flex-container align-bottom"},_f={class:"input-wrapper align-bottom"},xf={key:0},Ef={key:1},Sf={key:0,class:"flex-container no-flex",role:"listbox","aria-expanded":"true"};function Vf(t,n,o,a,i,l){var m,p,f,u,y,k,C,S;const s=O,r=A,c=N,h=No,d=Io;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("fieldset",Bf,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.cmdHeadline?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",wf,[e.createVNode(r,{element:"input",type:o.cmdFormElementInput1.type,"show-label":o.cmdFormElementInput1.showLabel,labelText:o.cmdFormElementInput1.labelText,placeholder:o.cmdFormElementInput1.placeholder,required:o.cmdFormElementInput1.required,showSearchButton:o.cmdFormElementInput1.showSearchButton,modelValue:l.searchValue1,"onUpdate:modelValue":n[0]||(n[0]=w=>l.searchValue1=w)},null,8,["type","show-label","labelText","placeholder","required","showSearchButton","modelValue"]),e.createElementVNode("div",_f,[o.cmdFormElementInput2.show?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:o.cmdFormElementInput2.type,"show-label":o.cmdFormElementInput2.showLabel,labelText:o.cmdFormElementInput2.labelText,placeholder:o.cmdFormElementInput2.placeholder,required:o.cmdFormElementInput2.required,modelValue:l.searchValue2,"onUpdate:modelValue":n[1]||(n[1]=w=>l.searchValue2=w)},null,8,["type","show-label","labelText","placeholder","required","modelValue"])):e.createCommentVNode("",!0),o.cmdFormElementRadius.show?(e.openBlock(),e.createBlock(r,{key:1,element:"select",class:"no-flex",modelValue:l.radius,"onUpdate:modelValue":n[2]||(n[2]=w=>l.radius=w),"show-label":o.cmdFormElementRadius.showLabel,labelText:o.cmdFormElementRadius.labelText,"select-options":o.cmdFormElementRadius.selectOptions,required:o.cmdFormElementRadius.required},null,8,["modelValue","show-label","labelText","select-options","required"])):e.createCommentVNode("",!0)]),e.createVNode(r,{element:"button",class:"stretch-on-small-devices",nativeButton:o.cmdFormElementSearchButton,onClick:l.onSearchButtonClick,disabled:l.buttonSearchDisabled,"aria-live":"assertive"},null,8,["nativeButton","onClick","disabled"])]),o.useFilters?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("a",{class:"filter-options",href:"#",onClick:n[3]||(n[3]=e.withModifiers(w=>i.showFilters=!i.showFilters,["prevent"]))},[e.createVNode(c,{iconClass:i.showFilters?(p=(m=o.cmdIcon)==null?void 0:m.showFilters)==null?void 0:p.iconClass:(u=(f=o.cmdIcon)==null?void 0:f.hideFilters)==null?void 0:u.iconClass,type:i.showFilters?(k=(y=o.cmdIcon)==null?void 0:y.showFilters)==null?void 0:k.iconType:(S=(C=o.cmdIcon)==null?void 0:C.hideFilters)==null?void 0:S.iconType},null,8,["iconClass","type"]),i.showFilters?(e.openBlock(),e.createElementBlock("span",xf,e.toDisplayString(t.getMessage("cmdsitesearch.hide_filter_options")),1)):(e.openBlock(),e.createElementBlock("span",Ef,e.toDisplayString(t.getMessage("cmdsitesearch.show_filter_options")),1))]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var w,_,F,x,T;return[i.showFilters&&((w=o.cmdFakeSelect)!=null&&w.selectData.length)?(e.openBlock(),e.createElementBlock("div",Sf,[e.createVNode(h,{role:"option",selectData:(_=o.cmdFakeSelect)==null?void 0:_.selectData,modelValue:l.searchFilters,"onUpdate:modelValue":n[4]||(n[4]=M=>l.searchFilters=M),defaultOptionName:(F=o.cmdFakeSelect)==null?void 0:F.defaultOptionName,type:(x=o.cmdFakeSelect)==null?void 0:x.type,labelText:(T=o.cmdFakeSelect)==null?void 0:T.labelText},null,8,["selectData","modelValue","defaultOptionName","type","labelText"])])):e.createCommentVNode("",!0)]}),_:1})],64)):e.createCommentVNode("",!0)]),o.useFilters?(e.openBlock(),e.createBlock(d,{key:0,modelValue:l.searchFilters,"onUpdate:modelValue":n[5]||(n[5]=w=>l.searchFilters=w),selectedOptionsName:l.getOptionName},null,8,["modelValue","selectedOptionsName"])):e.createCommentVNode("",!0)],64)}const Tf=B(bf,[["render",Vf]]),Nf={name:"CmdSlideshow",mixins:[P],data(){return{index:0,pause:!1,hnd:null,fullWidth:!1,currentSlotItem:0,slideshowItemEditing:!1}},props:{useSlot:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:5e3},showQuickLinkIcons:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!1},slideshowItems:{type:Array,required:!0},showSlideButtons:{type:Boolean,default:!1},cmdSlideButtons:{type:Object,default(){return{next:{next:{iconClass:"icon-chevron-one-stripe-right",tooltip:"Next"}},prev:{prev:{type:"prev",iconClass:"icon-chevron-one-stripe-left",tooltip:"Previous"}}}}}},beforeUnmount(){this.stopAutoplay()},methods:{stopAutoplay(){this.hnd!==null&&(window.clearInterval(this.hnd),this.hnd=null)},itemProvider(){return{image:{src:{large:"/media/images/slideshow-images/large/slide1.jpg",medium:"/media/images/slideshow-images/medium/slide1.jpg",small:"/media/images/slideshow-images/small/slide1.jpg"},alt:"Alternative Text",tooltip:"Tooltip DE"},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},onAddItem(){this.editModeContext.content.addContent(ee(this,"props","slideshowItems",-1),this.itemProvider)},imageStructure(){return{itemProviderOverwrite:()=>({image:{src:{large:"/media/images/slideshow-images/large/slide1.jpg",medium:"/media/images/slideshow-images/medium/slide1.jpg",small:"/media/images/slideshow-images/small/slide1.jpg"},tooltip:"Tooltip DE"}})}},showPrevItem(){this.slideshowItemEditing||(this.useSlot&&(this.currentSlotItem>0?this.currentSlotItem--:this.currentSlotItem=Object.keys(this.$slots).length-1),this.index>0?this.index--:this.index=this.slideshowItems.length-1)},showItem(t){!this.slideshowItemEditing&&t>=0&&t<this.slideshowItems.length&&(this.index=t)},showNextItem(){this.slideshowItemEditing||(this.useSlot&&(this.currentSlotItem<Object.keys(this.$slots).length-1?this.currentSlotItem++:this.currentSlotItem=0),this.index<this.slideshowItems.length-1?this.index++:this.index=0)},setupSlider(){this.autoplay&&this.hnd===null&&(this.hnd=window.setInterval(()=>this.pause||this.showNextItem(),this.autoplayInterval))}},computed:{tooltipForSlidebuttons(){return this.slideshowItemEditing?{title:"Not allowed while editing!"}:{}},currentItem(){return this.slideshowItems.length<=this.index?null:this.slideshowItems[this.index]}},watch:{slideshowItems:{handler(){this.index=0,this.setupSlider()},immediate:!0,deep:!0},autoplay(){this.autoplay?this.setupSlider():this.stopAutoplay()},autoplayInterval(){this.autoplay&&(this.stopAutoplay(),this.setupSlider())},currentItem(){this.$nextTick(()=>{var t;(t=this.$refs.slideshowItemComponentWrapper)==null||t.addEditStateListener(n=>this.slideshowItemEditing=n)})}}},If=["href","title"],Ff=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new slideshow-image",-1)],Of={key:2},Mf=["onClick","aria-label","title"],Df={key:3,class:"item-counter"};function Lf(t,n,o,a,i,l){const s=ke,r=ae;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-slideshow",{"full-width":i.fullWidth}])},[e.createElementVNode("div",{class:"inner-slideshow-wrapper",onMouseenter:n[1]||(n[1]=c=>i.pause=!0),onMouseleave:n[2]||(n[2]=c=>i.pause=!1)},[o.showSlideButtons?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0,onClick:e.withModifiers(l.showPrevItem,["prevent"]),slideButtonType:"prev",class:{disabled:i.slideshowItemEditing}},l.tooltipForSlidebuttons),null,16,["onClick","class"])):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"fade"},{default:e.withCtx(()=>{var c,h,d,m,p,f,u,y,k,C,S,w;return[l.currentItem?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.useSlot?(e.openBlock(),e.createElementBlock("div",{class:"slot-wrapper",key:i.index,style:e.normalizeStyle("background-image: url("+l.currentItem.image.srcLarge+")")},[e.renderSlot(t.$slots,"item"+i.currentSlotItem)],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.editModeContext?o.slideshowItems.length?(e.openBlock(),e.createBlock(r,{key:1,image:(S=l.currentItem)==null?void 0:S.image,figcaption:(w=l.currentItem)==null?void 0:w.figcaption,componentPath:["props","slideshowItems",i.index],editModeConfig:l.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(h=(c=l.currentItem)==null?void 0:c.link)!=null&&h.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:(m=(d=l.currentItem)==null?void 0:d.link)==null?void 0:m.href,title:(f=(p=l.currentItem)==null?void 0:p.link)==null?void 0:f.tooltip},[e.createVNode(r,{image:(u=l.currentItem)==null?void 0:u.image,figcaption:(y=l.currentItem)==null?void 0:y.figcaption},null,8,["image","figcaption"])],8,If)):(e.openBlock(),e.createBlock(r,{key:1,image:(k=l.currentItem)==null?void 0:k.image,figcaption:(C=l.currentItem)==null?void 0:C.figcaption},null,8,["image","figcaption"]))],64))],64))],64)):t.editModeContext?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"button confirm",onClick:n[0]||(n[0]=(..._)=>l.onAddItem&&l.onAddItem(..._))},Ff)):e.createCommentVNode("",!0)]}),_:3}),o.showSlideButtons?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1,onClick:e.withModifiers(l.showNextItem,["prevent"]),class:{disabled:i.slideshowItemEditing}},l.tooltipForSlidebuttons),null,16,["onClick","class"])):e.createCommentVNode("",!0),o.showQuickLinkIcons?(e.openBlock(),e.createElementBlock("ol",Of,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.slideshowItems,(c,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass({active:h===i.index})},[e.createElementVNode("a",{href:"#",class:e.normalizeClass({disabled:i.slideshowItemEditing}),onClick:e.withModifiers(d=>l.showItem(h),["prevent"]),"aria-label":i.index,title:i.slideshowItemEditing?"Not allowed while editing!":"Switch to image #"+(h+1)},null,10,Mf)],2))),128))])):e.createCommentVNode("",!0),o.showCounter?(e.openBlock(),e.createElementBlock("span",Df,e.toDisplayString(i.index+1)+"/"+e.toDisplayString(o.slideshowItems.length),1)):e.createCommentVNode("",!0)],32)],2)}const Pf=B(Nf,[["render",Lf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,de:Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='850.394px'%20height='566.929px'%20viewBox='0%200%20850.394%20566.929'%20enable-background='new%200%200%20850.394%20566.929'%20xml:space='preserve'%3e%3cg%20id='it'%3e%3cg%3e%3crect%20fill='%23078E46'%20width='283.465'%20height='566.929'/%3e%3crect%20x='283.465'%20fill='%23FBFDFF'%20width='283.465'%20height='566.929'/%3e%3crect%20x='566.93'%20fill='%23D3242C'%20width='283.465'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='de'%3e%3cg%3e%3cdesc%3eFlag%20of%20Germany%3c/desc%3e%3crect%20id='black_stripe'%20x='0.901'%20fill='%23010202'%20width='849.492'%20height='566.929'/%3e%3crect%20id='red_stripe'%20x='0.901'%20y='188.977'%20fill='%23DD0B15'%20width='849.492'%20height='377.953'/%3e%3crect%20id='gold_stripe'%20x='0.901'%20y='377.953'%20fill='%23FFCE05'%20width='849.492'%20height='188.976'/%3e%3c/g%3e%3c/g%3e%3cg%20id='fr'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20x='0.901'%20fill='%23CF1327'%20width='849.492'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%23FFFFFF'%20width='566.328'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%231D2C4E'%20width='283.164'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='ru'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20fill='%23FFFFFF'%20width='850.395'%20height='283.465'/%3e%3crect%20y='283.465'%20fill='%23D52D1E'%20width='850.395'%20height='283.464'/%3e%3crect%20y='188.977'%20fill='%231E4295'%20width='850.395'%20height='188.977'/%3e%3c/g%3e%3c/g%3e%3cg%20id='cn'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20x='0.901'%20fill='%23DF2B14'%20width='849.493'%20height='566.929'/%3e%3cg%20transform='translate(5,5)%20scale(3)'%3e%3cpath%20id='s'%20fill='%23FFDE08'%20d='M142.483,56.693l49.932,153.838L61.692,115.454h161.583L92.551,210.531L142.483,56.693z'/%3e%3c/g%3e%3cg%20transform='translate(10,2)%20rotate(23.036243)'%3e%3cpath%20id='s_1_'%20fill='%23FFDE08'%20d='M295.146,30.607l-4.728,53.71l-27.711-46.234l49.566,21.099l-52.488,12.096L295.146,30.607z'/%3e%3c/g%3e%3cg%20transform='translate(12,4)%20rotate(45.869898)'%3e%3cpath%20id='s_2_'%20fill='%23FFDE08'%20d='M361.022,93.648l-25.178,47.665l-7.617-53.376l37.503,38.701l-53.064-9.243L361.022,93.648z'/%3e%3c/g%3e%3cg%20transform='translate(12,7)%20rotate(69.945396)'%3e%3cpath%20id='s_3_'%20fill='%23FFDE08'%20d='M367.298,188.705l-42.412,33.236l14.797-51.844l18.47,50.649l-44.682-30.108L367.298,188.705z'%20/%3e%3c/g%3e%3cg%20transform='translate(10,9)%20rotate(20.659808)'%3e%3cpath%20id='s_4_'%20fill='%23FFDE08'%20d='M294.056,228.595l-2.5,53.86l-29.603-45.045l50.397,19.024l-51.942,14.264L294.056,228.595z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='uk'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20y='0.002'%20fill='%23FFFFFF'%20width='850.16'%20height='566.865'/%3e%3cpolygon%20fill='%23CF172C'%20points='382.569,0%20382.569,226.625%200,226.625%200,339.948%20382.569,339.948%20382.569,566.863%20467.592,566.863%20467.592,339.948%20850.16,339.948%20850.16,226.625%20467.592,226.625%20467.592,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,0%20495.946,183.497%20771.202,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,566.863%20771.202,566.863%20495.946,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,566.863%20354.214,566.863%20354.214,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,0%20354.214,183.497%20354.214,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0.003,188.95%20204.392,188.95%200.003,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,188.95%20850.16,188.95%20850.16,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,377.913%20850.16,514.171%20850.16,377.913%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0,377.913%200,514.171%20204.392,377.913%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='802.938,0%20520.004,188.95%20567.223,188.95%20850.605,0%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='330.156,377.909%20282.937,377.909%200,566.852%2047.219,566.852%20330.602,377.909%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='0,0%200,31.692%20236.091,189.098%20283.311,189.098%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='566.696,377.832%20850.008,566.929%20850.01,535.239%20613.92,377.832%20'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"})),en:Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='850.394px'%20height='566.929px'%20viewBox='0%200%20850.394%20566.929'%20enable-background='new%200%200%20850.394%20566.929'%20xml:space='preserve'%3e%3cg%20id='it'%3e%3cg%3e%3crect%20fill='%23078E46'%20width='283.465'%20height='566.929'/%3e%3crect%20x='283.465'%20fill='%23FBFDFF'%20width='283.465'%20height='566.929'/%3e%3crect%20x='566.93'%20fill='%23D3242C'%20width='283.465'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='de'%3e%3cg%3e%3cdesc%3eFlag%20of%20Germany%3c/desc%3e%3crect%20id='black_stripe'%20x='0.901'%20fill='%23010202'%20width='849.492'%20height='566.929'/%3e%3crect%20id='red_stripe'%20x='0.901'%20y='188.977'%20fill='%23DD0B15'%20width='849.492'%20height='377.953'/%3e%3crect%20id='gold_stripe'%20x='0.901'%20y='377.953'%20fill='%23FFCE05'%20width='849.492'%20height='188.976'/%3e%3c/g%3e%3c/g%3e%3cg%20id='fr'%3e%3cg%3e%3crect%20x='0.901'%20fill='%23CF1327'%20width='849.492'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%23FFFFFF'%20width='566.328'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%231D2C4E'%20width='283.164'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='ru'%3e%3cg%3e%3crect%20fill='%23FFFFFF'%20width='850.395'%20height='283.465'/%3e%3crect%20y='283.465'%20fill='%23D52D1E'%20width='850.395'%20height='283.464'/%3e%3crect%20y='188.977'%20fill='%231E4295'%20width='850.395'%20height='188.977'/%3e%3c/g%3e%3c/g%3e%3cg%20id='cn'%3e%3cg%3e%3crect%20x='0.901'%20fill='%23DF2B14'%20width='849.493'%20height='566.929'/%3e%3cg%20transform='translate(5,5)%20scale(3)'%3e%3cpath%20id='s'%20fill='%23FFDE08'%20d='M142.483,56.693l49.932,153.838L61.692,115.454h161.583L92.551,210.531L142.483,56.693z'/%3e%3c/g%3e%3cg%20transform='translate(10,2)%20rotate(23.036243)'%3e%3cpath%20id='s_1_'%20fill='%23FFDE08'%20d='M295.146,30.607l-4.728,53.71l-27.711-46.234l49.566,21.099l-52.488,12.096L295.146,30.607z'/%3e%3c/g%3e%3cg%20transform='translate(12,4)%20rotate(45.869898)'%3e%3cpath%20id='s_2_'%20fill='%23FFDE08'%20d='M361.022,93.648l-25.178,47.665l-7.617-53.376l37.503,38.701l-53.064-9.243L361.022,93.648z'/%3e%3c/g%3e%3cg%20transform='translate(12,7)%20rotate(69.945396)'%3e%3cpath%20id='s_3_'%20fill='%23FFDE08'%20d='M367.298,188.705l-42.412,33.236l14.797-51.844l18.47,50.649l-44.682-30.108L367.298,188.705z'%20/%3e%3c/g%3e%3cg%20transform='translate(10,9)%20rotate(20.659808)'%3e%3cpath%20id='s_4_'%20fill='%23FFDE08'%20d='M294.056,228.595l-2.5,53.86l-29.603-45.045l50.397,19.024l-51.942,14.264L294.056,228.595z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='uk'%3e%3cg%3e%3crect%20y='0.002'%20fill='%23FFFFFF'%20width='850.16'%20height='566.865'/%3e%3cpolygon%20fill='%23CF172C'%20points='382.569,0%20382.569,226.625%200,226.625%200,339.948%20382.569,339.948%20382.569,566.863%20467.592,566.863%20467.592,339.948%20850.16,339.948%20850.16,226.625%20467.592,226.625%20467.592,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,0%20495.946,183.497%20771.202,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,566.863%20771.202,566.863%20495.946,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,566.863%20354.214,566.863%20354.214,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,0%20354.214,183.497%20354.214,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0.003,188.95%20204.392,188.95%200.003,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,188.95%20850.16,188.95%20850.16,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,377.913%20850.16,514.171%20850.16,377.913%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0,377.913%200,514.171%20204.392,377.913%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='802.938,0%20520.004,188.95%20567.223,188.95%20850.605,0%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='330.156,377.909%20282.937,377.909%200,566.852%2047.219,566.852%20330.602,377.909%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='0,0%200,31.692%20236.091,189.098%20283.311,189.098%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='566.696,377.832%20850.008,566.929%20850.01,535.239%20613.92,377.832%20'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),qf={name:"CmdSwitchLanguage",emits:["click"],data(){return{imageSources:[]}},props:{languages:{type:Array,required:!0}},methods:{getRoute(t){return me(t)},activeLanguage(t){return t.active}},watch:{languages:{handler(){this.imageSources=[],this.languages.forEach(async t=>{const n=t.iso2;this.imageSources.push(Af[n].default)})},immediate:!0,deep:!0}}},Hf={class:"cmd-switch-language"},zf=["href","title","onClick"],Rf=["src","alt"],jf=["src","alt"];function Uf(t,n,o,a,i,l){const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",Hf,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.languages,(r,c)=>(e.openBlock(),e.createElementBlock("li",{key:c},[r.link.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:r.link.path,class:e.normalizeClass(["flag",r.iso2,{active:l.activeLanguage(r)}]),title:r.tooltip,onClick:h=>t.$emit("click",{originalEvent:h,language:r})},[e.createElementVNode("img",{src:i.imageSources[c],alt:r.name},null,8,Rf)],10,zf)):(e.openBlock(),e.createBlock(s,{key:1,class:e.normalizeClass(["flag",r.iso2]),to:l.getRoute(r),title:r.tooltip,onClick:h=>t.$emit("click",{originalEvent:h,language:r})},{default:e.withCtx(()=>[e.createElementVNode("img",{src:i.imageSources[c],alt:r.name},null,8,jf)]),_:2},1032,["class","to","title","onClick"]))]))),128))])])}const Wf=B(qf,[["render",Uf]]),Gf={name:"CmdSystemMessage",mixins:[ye],data(){return{showSystemMessage:!0}},props:{validationStatus:{type:String,required:!0,validator(t){return t==="error"||t==="warning"||t==="success"||t==="info"}},fullWidth:{type:Boolean,default:!0},iconMessage:{type:Object,default:function(){return{show:!0,iconClass:"icon-warning",type:"auto"}}},systemMessage:{type:String,required:!1},messageHeadlineLevel:{type:[Number,String],default(){return 6}},iconClose:{type:Object,default(){return{show:!0,iconClass:"icon-cancel-circle",tooltip:"Close this message"}}}},computed:{headlineIcon(){return this.iconMessage.show?{iconClass:this.iconMessage.iconClass,type:this.iconMessage.type}:null}},watch:{message(){this.showSystemMessage=!0}}},Jf=["role","aria-labelledby"],Kf=["title"];function Zf(t,n,o,a,i,l){const s=N,r=O;return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showSystemMessage?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cmd-system-message","system-message","flex-container","vertical",{"full-width":o.fullWidth},o.validationStatus]),role:o.validationStatus==="error"?"alert":"dialog","aria-labelledby":t.htmlId},[o.iconClose.show&&o.iconClose.iconClass?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(c=>i.showSystemMessage=!1,["prevent"])),title:o.iconClose.tooltip},[e.createVNode(s,{iconClass:o.iconClose.iconClass,type:o.iconClose.iconType},null,8,["iconClass","type"])],8,Kf)):e.createCommentVNode("",!0),e.createVNode(r,{class:"message-headline",headlineIcon:l.headlineIcon,headlineText:o.systemMessage,headlineLevel:o.messageHeadlineLevel,id:t.htmlId},null,8,["headlineIcon","headlineText","headlineLevel","id"]),e.renderSlot(t.$slots,"default")],10,Jf)):e.createCommentVNode("",!0)]),_:3})}const qo=B(Gf,[["render",Zf]]),Yf={name:"CmdTable",data(){return{showTableData:!0,fullWidth:!1,hasOverflow:!1}},props:{tableData:{type:Object,required:!0},caption:{type:Object,required:!1},collapsible:{type:Boolean,default:!1},fullWidthOnDefault:{type:Boolean,default:!1},userCanToggleWidth:{type:Boolean,default:!0},showSlideButtons:{type:Boolean,default:!0},iconExpand:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-down",tooltip:"Expand table"}}},iconCollapse:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Collapse table"}}},iconToggleWidth:{type:Object,default:function(){return{iconClass:"icon-toggle-table-width",tooltip:"Toggle table width"}}},iconStretch:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-right",tooltip:"Stretch table"}}}},mounted(){this.hasOverflow=this.$refs.table.clientWidth>this.$refs.innerWrapper.clientWidth},computed:{hasCaption(){var t,n;return this.hideCaption?!1:((t=this.tableData.caption)==null?void 0:t.text)||((n=this.caption)==null?void 0:n.text)},hideCaption(){var t,n,o;return((t=this.caption)==null?void 0:t.show)===!1||((n=this.caption)==null?void 0:n.show)!==!0&&!((o=this.tableData.caption)!=null&&o.show)}},methods:{scrollLeft(){this.$refs.innerWrapper.scrollLeft=0,this.$refs.table.previousElementSibling.style.cssText="left: 0;",this.updatePosition()},scrollRight(){this.$refs.table.querySelector("th:last-child").scrollIntoView(),this.$refs.table.nextElementSibling.style.cssText="right: auto;",this.updatePosition()},updatePosition(){const t=this.$refs.table.previousElementSibling,n=this.$refs.table.nextElementSibling,o=this.$refs.innerWrapper,a=o.getBoundingClientRect(),i=a.width+o.scrollLeft-n.getBoundingClientRect().width,l=o.scrollLeft;console.log("parentRect",a),t.style.left=`${l}px`,n.style.left=`${i}px`,l===0?t.style.display="none":t.style.display="flex",l===o.scrollLeftMax?n.style.display="none":n.style.display="flex"}},watch:{fullWidthOnDefault:{handler(){this.fullWidth=this.fullWidthOnDefault},immediate:!0}}},Xf={key:0,class:"button-wrapper"},Qf=["title"],$f=["title"],vf={"aria-expanded":"true"},eu={key:0,"aria-expanded":"true"};function tu(t,n,o,a,i,l){var c,h,d,m;const s=N,r=ke;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-table-wrapper",{collapsed:!i.showTableData,"full-width":i.fullWidth,"has-caption":l.hasCaption,"has-overflow":i.hasOverflow}])},[o.collapsible||o.userCanToggleWidth?(e.openBlock(),e.createElementBlock("div",Xf,[o.userCanToggleWidth?(e.openBlock(),e.createElementBlock("a",{key:0,class:"button",href:"#",onClick:n[0]||(n[0]=e.withModifiers(p=>i.fullWidth=!i.fullWidth,["prevent"])),title:o.iconToggleWidth.tooltip},[e.createVNode(s,{iconClass:o.iconToggleWidth.iconClass,type:o.iconToggleWidth.iconType},null,8,["iconClass","type"])],8,Qf)):e.createCommentVNode("",!0),o.collapsible?(e.openBlock(),e.createElementBlock("a",{key:1,class:"button",href:"#",onClick:n[1]||(n[1]=e.withModifiers(p=>i.showTableData=!i.showTableData,["prevent"])),title:i.showTableData?o.iconCollapse.tooltip:o.iconExpand.tooltip},[e.createVNode(s,{iconClass:i.showTableData?o.iconCollapse.iconClass:o.iconExpand.iconClass,type:i.showTableData?o.iconCollapse.iconType:o.iconExpand.iconType},null,8,["iconClass","type"])],8,$f)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"inner-wrapper",ref:"innerWrapper",onScroll:n[2]||(n[2]=(...p)=>l.updatePosition&&l.updatePosition(...p))},[o.showSlideButtons?(e.openBlock(),e.createBlock(r,{key:0,onClick:e.withModifiers(l.scrollLeft,["prevent"]),slideButtonType:"prev"},null,8,["onClick"])):e.createCommentVNode("",!0),e.createElementVNode("table",{ref:"table",class:e.normalizeClass({"full-width":i.fullWidth})},[(c=o.tableData.caption)!=null&&c.text||(h=o.caption)!=null&&h.text?(e.openBlock(),e.createElementBlock("caption",{key:0,class:e.normalizeClass({hidden:l.hideCaption})},e.toDisplayString(((d=o.caption)==null?void 0:d.text)||((m=o.tableData.caption)==null?void 0:m.text)),3)):e.createCommentVNode("",!0),e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.thead,(p,f)=>(e.openBlock(),e.createElementBlock("th",{key:f},e.toDisplayString(p),1))),128))])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("tbody",vf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.tbody,(p,f)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({active:o.tableData.rowIndexHighlighted===f}),key:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(u,y)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass({active:o.tableData.columnIndexHighlighted===y}),key:y},e.toDisplayString(u),3))),128))],2))),128))],512),[[e.vShow,i.showTableData]])]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.tableData.tfoot&&o.tableData.tfoot.length&&i.showTableData?(e.openBlock(),e.createElementBlock("tfoot",eu,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.tfoot,(p,f)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass({active:o.tableData.columnIndexHighlighted===f}),key:f},e.toDisplayString(p),3))),128))])])):e.createCommentVNode("",!0)]),_:1})],2),o.showSlideButtons?(e.openBlock(),e.createBlock(r,{key:1,onClick:e.withModifiers(l.scrollRight,["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)],544)],2)}const ou=B(Yf,[["render",tu]]);Ut({prefix:"cmd",icons:{"3d-cursor":{body:'<path d="M13 4H4v9.01h2V6h7V4z" fill="currentColor"/><path d="M29.49 13.12l-9-5a1 1 0 0 0-1 0l-9 5A1 1 0 0 0 10 14v10a1 1 0 0 0 .52.87l9 5A1 1 0 0 0 20 30a1.05 1.05 0 0 0 .49-.13l9-5A1 1 0 0 0 30 24V14a1 1 0 0 0-.51-.88zM19 27.3l-7-3.89v-7.72l7 3.89zm1-9.45L13.06 14L20 10.14L26.94 14zm8 5.56l-7 3.89v-7.72l7-3.89z" fill="currentColor"/>',hidden:!0},building:{body:'<path fill="currentColor" d="M28 2H16a2.002 2.002 0 0 0-2 2v10H4a2.002 2.002 0 0 0-2 2v14h28V4a2.002 2.002 0 0 0-2-2ZM9 28v-7h4v7Zm19 0H15v-8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v8H4V16h12V4h12Z"/><path fill="currentColor" d="M18 8h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2z"/>'},linkedin:{body:`<path fill="currentColor" d="M12,12h5.535v2.837h0.078C18.384,13.456,20.27,12,23.078,12C28.92,12,30,15.637,30,20.367V30h-5.77v-8.54
1
+ (function(C,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(C=typeof globalThis<"u"?globalThis:C||self,e(C["comand-component-library"]={},C.Vue))})(this,function(C,e){"use strict";var qg=Object.defineProperty;var zg=(C,e,Q)=>e in C?qg(C,e,{enumerable:!0,configurable:!0,writable:!0,value:Q}):C[e]=Q;var Ie=(C,e,Q)=>zg(C,typeof e!="symbol"?e+"":e,Q);const Q=/^[a-z0-9]+(-[a-z0-9]+)*$/,Fe=(t,n,o,a="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;a=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const r=i.pop(),c=i.pop(),h={provider:i.length>0?i[0]:a,prefix:c,name:r};return n&&!Oe(h)?null:h}const l=i[0],s=l.split("-");if(s.length>1){const r={provider:a,prefix:s.shift(),name:s.join("-")};return n&&!Oe(r)?null:r}if(o&&a===""){const r={provider:a,prefix:"",name:l};return n&&!Oe(r,o)?null:r}return null},Oe=(t,n)=>t?!!((t.provider===""||t.provider.match(Q))&&(n&&t.prefix===""||t.prefix.match(Q))&&t.name.match(Q)):!1,Ht=Object.freeze({left:0,top:0,width:16,height:16}),Me=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),De=Object.freeze({...Ht,...Me}),Xe=Object.freeze({...De,body:"",hidden:!1});function In(t,n){const o={};!t.hFlip!=!n.hFlip&&(o.hFlip=!0),!t.vFlip!=!n.vFlip&&(o.vFlip=!0);const a=((t.rotate||0)+(n.rotate||0))%4;return a&&(o.rotate=a),o}function qt(t,n){const o=In(t,n);for(const a in Xe)a in Me?a in t&&!(a in o)&&(o[a]=Me[a]):a in n?o[a]=n[a]:a in t&&(o[a]=t[a]);return o}function Fn(t,n){const o=t.icons,a=t.aliases||{},i=Object.create(null);function l(s){if(o[s])return i[s]=[];if(!(s in i)){i[s]=null;const r=a[s]&&a[s].parent,c=r&&l(r);c&&(i[s]=[r].concat(c))}return i[s]}return Object.keys(o).concat(Object.keys(a)).forEach(l),i}function On(t,n,o){const a=t.icons,i=t.aliases||{};let l={};function s(r){l=qt(a[r]||i[r],l)}return s(n),o.forEach(s),qt(t,l)}function zt(t,n){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(i=>{n(i,null),o.push(i)});const a=Fn(t);for(const i in a){const l=a[i];l&&(n(i,On(t,i,l)),o.push(i))}return o}const Mn={provider:"",aliases:{},not_found:{},...Ht};function Qe(t,n){for(const o in n)if(o in t&&typeof t[o]!=typeof n[o])return!1;return!0}function Rt(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!Qe(t,Mn))return null;const o=n.icons;for(const i in o){const l=o[i];if(!i.match(Q)||typeof l.body!="string"||!Qe(l,Xe))return null}const a=n.aliases||{};for(const i in a){const l=a[i],s=l.parent;if(!i.match(Q)||typeof s!="string"||!o[s]&&!a[s]||!Qe(l,Xe))return null}return n}const jt=Object.create(null);function Dn(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function ie(t,n){const o=jt[t]||(jt[t]=Object.create(null));return o[n]||(o[n]=Dn(t,n))}function $e(t,n){return Rt(n)?zt(n,(o,a)=>{a?t.icons[o]=a:t.missing.add(o)}):[]}function Ln(t,n,o){try{if(typeof o.body=="string")return t.icons[n]={...o},!0}catch{}return!1}let ue=!1;function Ut(t){return typeof t=="boolean"&&(ue=t),ue}function Pn(t){const n=typeof t=="string"?Fe(t,!0,ue):t;if(n){const o=ie(n.provider,n.prefix),a=n.name;return o.icons[a]||(o.missing.has(a)?null:void 0)}}function An(t,n){const o=Fe(t,!0,ue);if(!o)return!1;const a=ie(o.provider,o.prefix);return Ln(a,o.name,n)}function Wt(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),ue&&!n&&!t.prefix){let i=!1;return Rt(t)&&(t.prefix="",zt(t,(l,s)=>{s&&An(l,s)&&(i=!0)})),i}const o=t.prefix;if(!Oe({provider:n,prefix:o,name:"a"}))return!1;const a=ie(n,o);return!!$e(a,t)}const Gt=Object.freeze({width:null,height:null}),Jt=Object.freeze({...Gt,...Me}),Hn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Kt(t,n,o){if(n===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*n*o)/o;if(typeof t!="string")return t;const a=t.split(Hn);if(a===null||!a.length)return t;const i=[];let l=a.shift(),s=qn.test(l);for(;;){if(s){const r=parseFloat(l);isNaN(r)?i.push(l):i.push(Math.ceil(r*n*o)/o)}else i.push(l);if(l=a.shift(),l===void 0)return i.join("");s=!s}}function zn(t,n){const o={...De,...t},a={...Jt,...n},i={left:o.left,top:o.top,width:o.width,height:o.height};let l=o.body;[o,a].forEach(f=>{const u=[],y=f.hFlip,k=f.vFlip;let b=f.rotate;y?k?b+=2:(u.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),u.push("scale(-1 1)"),i.top=i.left=0):k&&(u.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),u.push("scale(1 -1)"),i.top=i.left=0);let S;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:S=i.height/2+i.top,u.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:u.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,u.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}b%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),u.length&&(l='<g transform="'+u.join(" ")+'">'+l+"</g>")});const s=a.width,r=a.height,c=i.width,h=i.height;let d,m;return s===null?(m=r===null?"1em":r==="auto"?h:r,d=Kt(m,c/h)):(d=s==="auto"?c:s,m=r===null?Kt(d,h/c):r==="auto"?h:r),{attributes:{width:d.toString(),height:m.toString(),viewBox:i.left.toString()+" "+i.top.toString()+" "+c.toString()+" "+h.toString()},body:l}}const Rn=/\sid="(\S+)"/g,jn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Un=0;function Wn(t,n=jn){const o=[];let a;for(;a=Rn.exec(t);)o.push(a[1]);return o.length&&o.forEach(i=>{const l=typeof n=="function"?n(i):n+(Un++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+l+"$3")}),t}const ve=Object.create(null);function Gn(t,n){ve[t]=n}function et(t){return ve[t]||ve[""]}function tt(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ot=Object.create(null),pe=["https://api.simplesvg.com","https://api.unisvg.com"],Le=[];for(;pe.length>0;)pe.length===1||Math.random()>.5?Le.push(pe.shift()):Le.push(pe.pop());ot[""]=tt({resources:["https://api.iconify.design"].concat(Le)});function Jn(t,n){const o=tt(n);return o===null?!1:(ot[t]=o,!0)}function nt(t){return ot[t]}let Zt=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Kn(t,n){const o=nt(t);if(!o)return 0;let a;if(!o.maxURL)a=0;else{let i=0;o.resources.forEach(s=>{i=Math.max(i,s.length)});const l=n+".json?icons=";a=o.maxURL-i-o.path.length-l.length}return a}function Zn(t){return t===404}const Yn=(t,n,o)=>{const a=[],i=Kn(t,n),l="icons";let s={type:l,provider:t,prefix:n,icons:[]},r=0;return o.forEach((c,h)=>{r+=c.length+1,r>=i&&h>0&&(a.push(s),s={type:l,provider:t,prefix:n,icons:[]},r=c.length),s.icons.push(c)}),a.push(s),a};function Xn(t){if(typeof t=="string"){const n=nt(t);if(n)return n.path}return"/"}const Qn={prepare:Yn,send:(t,n,o)=>{if(!Zt){o("abort",424);return}let a=Xn(n.provider);switch(n.type){case"icons":{const l=n.prefix,r=n.icons.join(","),c=new URLSearchParams({icons:r});a+=l+".json?"+c.toString();break}case"custom":{const l=n.uri;a+=l.slice(0,1)==="/"?l.slice(1):l;break}default:o("abort",400);return}let i=503;Zt(t+a).then(l=>{const s=l.status;if(s!==200){setTimeout(()=>{o(Zn(s)?"abort":"next",s)});return}return i=501,l.json()}).then(l=>{if(typeof l!="object"||l===null){setTimeout(()=>{o("next",i)});return}setTimeout(()=>{o("success",l)})}).catch(()=>{o("next",i)})}};function $n(t){const n={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((i,l)=>i.provider!==l.provider?i.provider.localeCompare(l.provider):i.prefix!==l.prefix?i.prefix.localeCompare(l.prefix):i.name.localeCompare(l.name));let a={provider:"",prefix:"",name:""};return t.forEach(i=>{if(a.name===i.name&&a.prefix===i.prefix&&a.provider===i.provider)return;a=i;const l=i.provider,s=i.prefix,r=i.name,c=o[l]||(o[l]=Object.create(null)),h=c[s]||(c[s]=ie(l,s));let d;r in h.icons?d=n.loaded:s===""||h.missing.has(r)?d=n.missing:d=n.pending;const m={provider:l,prefix:s,name:r};d.push(m)}),n}function Yt(t,n){t.forEach(o=>{const a=o.loaderCallbacks;a&&(o.loaderCallbacks=a.filter(i=>i.id!==n))})}function vn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let o=!1;const a=t.provider,i=t.prefix;n.forEach(l=>{const s=l.icons,r=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==i)return!0;const h=c.name;if(t.icons[h])s.loaded.push({provider:a,prefix:i,name:h});else if(t.missing.has(h))s.missing.push({provider:a,prefix:i,name:h});else return o=!0,!0;return!1}),s.pending.length!==r&&(o||Yt([t],l.id),l.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),l.abort))})}))}let el=0;function tl(t,n,o){const a=el++,i=Yt.bind(null,o,a);if(!n.pending.length)return i;const l={id:a,icons:n,callback:t,abort:i};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(l)}),i}function ol(t,n=!0,o=!1){const a=[];return t.forEach(i=>{const l=typeof i=="string"?Fe(i,n,o):i;l&&a.push(l)}),a}var nl={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ll(t,n,o,a){const i=t.resources.length,l=t.random?Math.floor(Math.random()*i):t.index;let s;if(t.random){let x=t.resources.slice(0);for(s=[];x.length>1;){const V=Math.floor(Math.random()*x.length);s.push(x[V]),x=x.slice(0,V).concat(x.slice(V+1))}s=s.concat(x)}else s=t.resources.slice(l).concat(t.resources.slice(0,l));const r=Date.now();let c="pending",h=0,d,m=null,p=[],f=[];typeof a=="function"&&f.push(a);function u(){m&&(clearTimeout(m),m=null)}function y(){c==="pending"&&(c="aborted"),u(),p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function k(x,V){V&&(f=[]),typeof x=="function"&&f.push(x)}function b(){return{startTime:r,payload:n,status:c,queriesSent:h,queriesPending:p.length,subscribe:k,abort:y}}function S(){c="failed",f.forEach(x=>{x(void 0,d)})}function w(){p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function _(x,V,D){const P=V!=="success";switch(p=p.filter(N=>N!==x),c){case"pending":break;case"failed":if(P||!t.dataAfterTimeout)return;break;default:return}if(V==="abort"){d=D,S();return}if(P){d=D,p.length||(s.length?F():S());return}if(u(),w(),!t.random){const N=t.resources.indexOf(x.resource);N!==-1&&N!==t.index&&(t.index=N)}c="completed",f.forEach(N=>{N(D)})}function F(){if(c!=="pending")return;u();const x=s.shift();if(x===void 0){if(p.length){m=setTimeout(()=>{u(),c==="pending"&&(w(),S())},t.timeout);return}S();return}const V={status:"pending",resource:x,callback:(D,P)=>{_(V,D,P)}};p.push(V),h++,m=setTimeout(F,t.rotate),o(x,n,V.callback)}return setTimeout(F),b}function Xt(t){const n={...nl,...t};let o=[];function a(){o=o.filter(r=>r().status==="pending")}function i(r,c,h){const d=ll(n,r,c,(m,p)=>{a(),h&&h(m,p)});return o.push(d),d}function l(r){return o.find(c=>r(c))||null}return{query:i,find:l,setIndex:r=>{n.index=r},getIndex:()=>n.index,cleanup:a}}function Qt(){}const lt=Object.create(null);function il(t){if(!lt[t]){const n=nt(t);if(!n)return;const o=Xt(n),a={config:n,redundancy:o};lt[t]=a}return lt[t]}function al(t,n,o){let a,i;if(typeof t=="string"){const l=et(t);if(!l)return o(void 0,424),Qt;i=l.send;const s=il(t);s&&(a=s.redundancy)}else{const l=tt(t);if(l){a=Xt(l);const s=t.resources?t.resources[0]:"",r=et(s);r&&(i=r.send)}}return!a||!i?(o(void 0,424),Qt):a.query(n,i,o)().abort}const $t="iconify2",ge="iconify",vt=ge+"-count",eo=ge+"-version",to=36e5,sl=168;function it(t,n){try{return t.getItem(n)}catch{}}function at(t,n,o){try{return t.setItem(n,o),!0}catch{}}function oo(t,n){try{t.removeItem(n)}catch{}}function st(t,n){return at(t,vt,n.toString())}function rt(t){return parseInt(it(t,vt))||0}const Pe={local:!0,session:!0},no={local:new Set,session:new Set};let ct=!1;function rl(t){ct=t}let Ae=typeof window>"u"?{}:window;function lo(t){const n=t+"Storage";try{if(Ae&&Ae[n]&&typeof Ae[n].length=="number")return Ae[n]}catch{}Pe[t]=!1}function io(t,n){const o=lo(t);if(!o)return;const a=it(o,eo);if(a!==$t){if(a){const r=rt(o);for(let c=0;c<r;c++)oo(o,ge+c.toString())}at(o,eo,$t),st(o,0);return}const i=Math.floor(Date.now()/to)-sl,l=r=>{const c=ge+r.toString(),h=it(o,c);if(typeof h=="string"){try{const d=JSON.parse(h);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>i&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&n(d,r))return!0}catch{}oo(o,c)}};let s=rt(o);for(let r=s-1;r>=0;r--)l(r)||(r===s-1?(s--,st(o,s)):no[t].add(r))}function ao(){if(!ct){rl(!0);for(const t in Pe)io(t,n=>{const o=n.data,a=n.provider,i=o.prefix,l=ie(a,i);if(!$e(l,o).length)return!1;const s=o.lastModified||-1;return l.lastModifiedCached=l.lastModifiedCached?Math.min(l.lastModifiedCached,s):s,!0})}}function cl(t,n){const o=t.lastModifiedCached;if(o&&o>=n)return o===n;if(t.lastModifiedCached=n,o)for(const a in Pe)io(a,i=>{const l=i.data;return i.provider!==t.provider||l.prefix!==t.prefix||l.lastModified===n});return!0}function dl(t,n){ct||ao();function o(a){let i;if(!Pe[a]||!(i=lo(a)))return;const l=no[a];let s;if(l.size)l.delete(s=Array.from(l).shift());else if(s=rt(i),!st(i,s+1))return;const r={cached:Math.floor(Date.now()/to),provider:t.provider,data:n};return at(i,ge+s.toString(),JSON.stringify(r))}n.lastModified&&!cl(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),o("local")||o("session"))}function so(){}function ml(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,vn(t)}))}function hl(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:a}=t,i=t.iconsToLoad;delete t.iconsToLoad;let l;if(!i||!(l=et(o)))return;l.prepare(o,a,i).forEach(r=>{al(o,r,(c,h)=>{if(typeof c!="object"){if(h!==404)return;r.icons.forEach(d=>{t.missing.add(d)})}else try{const d=$e(t,c);if(!d.length)return;const m=t.pendingIcons;m&&d.forEach(p=>{m.delete(p)}),dl(t,c)}catch(d){console.error(d)}ml(t)})})}))}const fl=(t,n)=>{const o=ol(t,!0,Ut()),a=$n(o);if(!a.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(a.loaded,a.missing,a.pending,so)}),()=>{c=!1}}const i=Object.create(null),l=[];let s,r;return a.pending.forEach(c=>{const{provider:h,prefix:d}=c;if(d===r&&h===s)return;s=h,r=d,l.push(ie(h,d));const m=i[h]||(i[h]=Object.create(null));m[d]||(m[d]=[])}),a.pending.forEach(c=>{const{provider:h,prefix:d,name:m}=c,p=ie(h,d),f=p.pendingIcons||(p.pendingIcons=new Set);f.has(m)||(f.add(m),i[h][d].push(m))}),l.forEach(c=>{const{provider:h,prefix:d}=c;i[h][d].length&&hl(c,i[h][d])}),n?tl(n,a,l):so};function ul(t,n){const o={...t};for(const a in n){const i=n[a],l=typeof i;a in Gt?(i===null||i&&(l==="string"||l==="number"))&&(o[a]=i):l===typeof o[a]&&(o[a]=a==="rotate"?i%4:i)}return o}const pl=/[\s,]+/;function gl(t,n){n.split(pl).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function yl(t,n=0){const o=t.replace(/^-?[0-9.]*/,"");function a(i){for(;i<0;)i+=4;return i%4}if(o===""){const i=parseInt(t);return isNaN(i)?0:a(i)}else if(o!==t){let i=0;switch(o){case"%":i=25;break;case"deg":i=90}if(i){let l=parseFloat(t.slice(0,t.length-o.length));return isNaN(l)?0:(l=l/i,l%1===0?a(l):0)}}return n}function kl(t,n){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in n)o+=" "+a+'="'+n[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function Cl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function bl(t){return'url("data:image/svg+xml,'+Cl(t)+'")'}const ro={...Jt,inline:!1},Bl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},wl={display:"inline-block"},dt={backgroundColor:"currentColor"},co={backgroundColor:"transparent"},mo={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ho={webkitMask:dt,mask:dt,background:co};for(const t in ho){const n=ho[t];for(const o in mo)n[t+o]=mo[o]}const He={};["horizontal","vertical"].forEach(t=>{const n=t.slice(0,1)+"Flip";He[t+"-flip"]=n,He[t.slice(0,1)+"-flip"]=n,He[t+"Flip"]=n});function fo(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const uo=(t,n)=>{const o=ul(ro,n),a={...Bl},i=n.mode||"svg",l={},s=n.style,r=typeof s=="object"&&!(s instanceof Array)?s:{};for(let y in n){const k=n[y];if(k!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[y]=k===!0||k==="true"||k===1;break;case"flip":typeof k=="string"&&gl(o,k);break;case"color":l.color=k;break;case"rotate":typeof k=="string"?o[y]=yl(k):typeof k=="number"&&(o[y]=k);break;case"ariaHidden":case"aria-hidden":k!==!0&&k!=="true"&&delete a["aria-hidden"];break;default:{const b=He[y];b?(k===!0||k==="true"||k===1)&&(o[b]=!0):ro[y]===void 0&&(a[y]=k)}}}const c=zn(t,o),h=c.attributes;if(o.inline&&(l.verticalAlign="-0.125em"),i==="svg"){a.style={...l,...r},Object.assign(a,h);let y=0,k=n.id;return typeof k=="string"&&(k=k.replace(/-/g,"_")),a.innerHTML=Wn(c.body,k?()=>k+"ID"+y++:"iconifyVue"),e.h("svg",a)}const{body:d,width:m,height:p}=t,f=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),u=kl(d,{...h,width:m+"",height:p+""});return a.style={...l,"--svg":bl(u),width:fo(h.width),height:fo(h.height),...wl,...f?dt:co,...r},e.h("span",a)};if(Ut(!0),Gn("",Qn),typeof document<"u"&&typeof window<"u"){ao();const t=window;if(t.IconifyPreload!==void 0){const n=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(a=>{try{(typeof a!="object"||a===null||a instanceof Array||typeof a.icons!="object"||typeof a.prefix!="string"||!Wt(a))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let o in n){const a="IconifyProviders["+o+"] is invalid.";try{const i=n[o];if(typeof i!="object"||!i||i.resources===void 0)continue;Jn(o,i)||console.error(a)}catch{console.error(a)}}}}const _l={...De,body:""},xl=e.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,n){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Fe(t,!1,!0))===null)return this.abortLoading(),null;const a=Pn(o);if(!a)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",a!==null&&(this._loadingIcon={name:t,abort:fl([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,n&&n(t));const i=["iconify"];return o.prefix!==""&&i.push("iconify--"+o.prefix),o.provider!==""&&i.push("iconify--"+o.provider),{data:a,classes:i}}},render(){this.counter;const t=this.$attrs,n=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!n)return uo(_l,t);let o=t;return n.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+n.classes.join(" ")}),uo({...De,...n.data},o)}}),B=(t,n)=>{const o=t.__vccOpts||t;for(const[a,i]of n)o[a]=i;return o},Sl={name:"CmdIcon",components:{Icon:xl},props:{type:{type:String,default:"auto",validator(t){return t==="auto"||t==="iconify"}},iconClass:{type:String,required:!0},tooltip:{type:String,required:!1}},computed:{isIconify(){return this.type==="iconify"?!0:this.type==="auto"?this.iconClass.includes(":"):!1}}},El=["title"];function Vl(t,n,o,a,i,l){const s=e.resolveComponent("Icon");return l.isIconify?(e.openBlock(),e.createBlock(s,{key:0,icon:o.iconClass,title:o.tooltip,class:e.normalizeClass(t.$attrs.class)},null,8,["icon","title","class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([o.iconClass,t.$attrs.class]),title:o.tooltip},null,10,El))}const I=B(Sl,[["render",Vl]]);function v(t,n){return qe(t,"EditComponentWrapper",n)}function Tl(t){return qe(t,"EditModeSettingsSidebar")}function Nl(t){return qe(t,"EditModeMainSidebar")}function qe(t,n,o){var a;return((a=t==null?void 0:t.$options)==null?void 0:a.name)===n&&(o==null||o(t))?t:t!=null&&t.$parent?qe(t.$parent,n,o):null}function ee(t,...n){const o=[];for(let a=v(t);a;a=v(a.$parent))a.componentPath&&o.unshift(...a.componentPath);return o.push(...n),o}function Il(t){return Array.isArray(t)&&t.length>0?JSON.stringify(t):""}function q(t,n){var o;return(o=t==null?void 0:t.$options)!=null&&o.name?{name:t.$options.name,...n}:n}const Fl={name:"EditComponentWrapper",inject:{editModeContext:{default:null}},props:{allowedComponentTypes:{type:Array},componentName:{type:String},componentProps:{type:Object},componentPath:{type:Array,required:!0},allowAddComponent:{type:Boolean},allowDeleteComponent:{type:Boolean,default:!0},showComponentName:{type:Boolean,default:!0},componentTag:{type:String},itemProvider:{type:Function}},data(){return{componentIdentifier:"",editStateListeners:[],updateHandlerProviders:[],addHandlerProvider:null,showComponentSelection:!1,showAddComponentButtons:!1,addComponentLevel:""}},computed:{isOuterComponent(){return!v(this.$parent,t=>(t==null?void 0:t.componentName)!=="CmdContainer")},active(){return this.editModeContext?v(this.$parent,n=>(n==null?void 0:n.componentName)!=="CmdContainer")?!!this.editModeContext.system.isActiveChildComponent(G(this)):!!this.editModeContext.system.isActiveComponent(G(this)):!1},editing(){var t;return(t=this.editModeContext)==null?void 0:t.content.isEditing(this.componentIdentifier)},hasSettings(){const t=`${this.componentName}Settings`;return!!e.getCurrentInstance().appContext.components[t]}},methods:{addHighlightRelatedComponent(t){t.target.parentNode.classList.add("highlight")},removeHighlightRelatedComponent(t){t.target.parentNode.classList.remove("highlight")},showActionButtons(){const t=v(this.$parent,n=>(n==null?void 0:n.componentName)!=="CmdContainer");this.editModeContext.system.setActiveComponent(G(t),G(this))},deleteComponent(){var t;!this.editing&&this.allowDeleteComponent&&confirm("Delete this component and its content?")&&((t=this.editModeContext)==null||t.store.deleteContent(G(this)),this.editModeContext.settings.stopEditing())},deleteInnerComponent(){this.editModeContext.store.deleteContent(G(this)),this.editModeContext.settings.stopEditing()},cancelComponent(t){this.editing&&(t.stopPropagation(),this.editModeContext.content.stopEditing())},editComponent(t){t==null||t.stopPropagation(),t||this.showActionButtons();const n=this.$refs.editComponent;this.editModeContext.content.startEditing(this.componentIdentifier),this.$nextTick(()=>{var o;return(o=n.querySelector("input"))==null?void 0:o.focus()})},saveComponent(){this.editModeContext.store.updateContent(G(this),this.updateHandlerProviders.map(t=>t())),this.editModeContext.content.stopEditing()},editSettings(t,n){t.stopPropagation(),!this.editing&&this.hasSettings&&this.editModeContext.settings.startEditing(this.componentIdentifier,this.componentName,this.componentProps,this.allowedComponentTypes,G(this),this.saveSettings,this.deleteInnerComponent,n||"edit")},addEntry(t){this.itemProvider?this.editModeContext.content.addContent(G(this),this.itemProvider):this.editSettings(t,"add")},saveSettings(t){this.editModeContext.store.updateSettings(G(this),t),this.editModeContext.settings.stopEditing()},addEditStateListener(t){this.editStateListeners.push(t),t(this.editing)},addUpdateHandlerProvider(t){this.updateHandlerProviders.push(t)},setAddHandlerProvider(t){t&&(this.addHandlerProvider=t)}},watch:{componentPath:{handler(){this.componentIdentifier=Il(G(this))},immediate:!0,deep:!0},editing(t){this.editStateListeners.forEach(n=>n(t))}}};function G(t){const n=[];for(let o=t;o;o=v(o.$parent))o.componentPath&&n.unshift(...o.componentPath);return n}const Ol={key:0,class:"action-buttons-wrapper"},Ml=["data-component"],Dl=["title"],Ll=["href"],Pl={key:0},Al={key:1},Hl={key:0,class:"component-name"},ql=["data-component"],zl=["title"],Rl=["href","title"],jl=["title"],Ul={key:0},Wl={key:1},Gl=["title"],Jl=["title"];function Kl(t,n,o,a,i,l){const s=I;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.componentTag||"div"),{class:e.normalizeClass(["edit-component-wrapper",{active:l.active}]),tabindex:"0",onClick:e.withModifiers(l.showActionButtons,["stop"]),ref:"editComponent",title:l.active?"Select an action from the buttons in the top-left corner":"Click to select this element","data-identifier":i.componentIdentifier},{default:e.withCtx(()=>[o.componentTag==="ul"?(e.openBlock(),e.createElementBlock("li",Ol,[e.withDirectives(e.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":o.componentName},[e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon button confirm",{disabled:!i.addHandlerProvider&&!o.itemProvider&&!o.allowAddComponent}]),href:"#",onClick:n[0]||(n[0]=e.withModifiers(r=>l.addEntry(r),["prevent"])),title:l.isOuterComponent?"Add new component":"Add new item/entry"},[e.createVNode(s,{iconClass:(l.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,Dl)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon button primary",{disabled:l.editing||!l.hasSettings}]),href:l.editing?null:"#",onClick:n[1]||(n[1]=e.withModifiers((...r)=>l.editSettings&&l.editSettings(...r),["prevent"])),title:"Edit settings of this component"},[e.createVNode(s,{iconClass:l.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,Ll)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:"icon-hexagon button-delete",href:"#",onClick:n[2]||(n[2]=e.withModifiers((...r)=>l.deleteComponent&&l.deleteComponent(...r),["prevent"])),title:"Delete this component (and its content)"},[e.createVNode(s,{iconClass:"icon-trash"})])]),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Pl,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon button-cancel",{disabled:!l.editing}]),href:"#",onClick:n[3]||(n[3]=e.withModifiers((...r)=>l.cancelComponent&&l.cancelComponent(...r),["prevent"])),title:"Cancel editing (changes will not be saved)"},[e.createVNode(s,{iconClass:"icon-cancel"})],2)])),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Al,[l.editing?(e.openBlock(),e.createElementBlock("a",{key:0,class:"icon-hexagon button-save",href:"#",onClick:n[4]||(n[4]=e.withModifiers((...r)=>l.saveComponent&&l.saveComponent(...r),["prevent"])),title:"Save changes of this component"},[e.createVNode(s,{iconClass:"icon-check"})])):(e.openBlock(),e.createElementBlock("a",{key:1,class:e.normalizeClass(["icon-hexagon button",{disabled:l.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:n[5]||(n[5]=e.withModifiers((...r)=>l.editComponent&&l.editComponent(...r),["prevent"])),title:"Edit content of this component"},[e.createVNode(s,{iconClass:"icon-edit"})],2))]))],8,Ml),[[e.vShow,l.active]])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isOuterComponent?(e.openBlock(),e.createElementBlock("p",Hl,e.toDisplayString(o.componentName),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":o.componentName,onMouseenter:n[12]||(n[12]=(...r)=>l.addHighlightRelatedComponent&&l.addHighlightRelatedComponent(...r)),onMouseleave:n[13]||(n[13]=(...r)=>l.removeHighlightRelatedComponent&&l.removeHighlightRelatedComponent(...r))},[e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:!i.addHandlerProvider&&!o.itemProvider&&!o.allowAddComponent}]),href:"#",onClick:n[6]||(n[6]=e.withModifiers((...r)=>l.addEntry&&l.addEntry(...r),["prevent"])),title:l.isOuterComponent?"Add new component":"Add new item/entry"},[e.createVNode(s,{iconClass:(l.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,zl)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button primary",{disabled:l.editing||!l.hasSettings}]),href:l.editing?null:"#",onClick:n[7]||(n[7]=e.withModifiers((...r)=>l.editSettings&&l.editSettings(...r),["prevent"])),title:"Edit settings for "+o.componentName},[e.createVNode(s,{iconClass:l.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,Rl)]),e.createElementVNode("li",null,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button button-delete",{disabled:l.editing||!o.allowDeleteComponent}]),href:"#",onClick:n[8]||(n[8]=e.withModifiers((...r)=>l.deleteComponent&&l.deleteComponent(...r),["prevent"])),title:"Delete "+o.componentName+" (and its content)"},[e.createVNode(s,{iconClass:"icon-trash"})],10,jl)]),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Ul,[e.createElementVNode("a",{class:e.normalizeClass(["icon-hexagon use-icon-as-background button cancel",{disabled:!l.editing}]),href:"#",onClick:n[9]||(n[9]=e.withModifiers((...r)=>l.cancelComponent&&l.cancelComponent(...r),["prevent"])),title:"Cancel editing (changes will not be saved)"},[e.createVNode(s,{iconClass:"icon-cancel"})],2)])),l.isOuterComponent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Wl,[l.editing?(e.openBlock(),e.createElementBlock("a",{key:0,class:"icon-hexagon use-icon-as-background button confirm",href:"#",onClick:n[10]||(n[10]=e.withModifiers((...r)=>l.saveComponent&&l.saveComponent(...r),["prevent"])),title:"Save changes of "+o.componentName},[e.createVNode(s,{iconClass:"icon-check"})],8,Gl)):(e.openBlock(),e.createElementBlock("a",{key:1,class:e.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:l.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:n[11]||(n[11]=e.withModifiers((...r)=>l.editComponent&&l.editComponent(...r),["prevent"])),title:"Edit content for "+o.componentName},[e.createVNode(s,{iconClass:"icon-edit"})],10,Jl))]))],40,ql),[[e.vShow,l.active]])],64)),e.renderSlot(t.$slots,"default",{editing:l.editing})]),_:3},8,["class","onClick","title","data-identifier"])}const te=B(Fl,[["render",Kl]]),z={inject:{editModeContext:{default:null}},props:{componentPath:{type:Array},editModeConfig:{type:Object}},data(){return{editing:!1,settingsContext:!1,mainSidebarContext:!1}},mounted(){this.initializeEditMode()},methods:{initializeEditMode(){var t;if(this.$refs.editComponentWrapper)(t=this.$refs.editComponentWrapper)==null||t.addUpdateHandlerProvider(this.updateHandlerProvider);else{const n=v(this.$parent);n&&(n.addEditStateListener(o=>this.editing=o),n.addUpdateHandlerProvider(this.updateHandlerProvider),n.setAddHandlerProvider(this.addHandlerProvider))}this.mainSidebarContext=!!Nl(this),this.settingsContext=!!Tl(this)},updateHandlerProvider(){return{}}}},Zl={name:"CmdHeadline",mixins:[z],data(){return{editableHeadlineText:null,editablePreHeadlineText:null}},props:{headlineText:{type:String,required:!1},headlineLevel:{type:[String,Number],default:"2"},preHeadlineText:{type:String,required:!1},headlineIcon:{type:Object,required:!1},textAlign:{type:String,default:null,validator(t){return t==="left"||t==="center"||t==="right"}}},computed:{componentActive(){var t;return(t=this.editModeContext)==null?void 0:t.system.isActiveComponent(ee(v(this)))},headlineComponentPath(){return this.componentPath||["props","cmdHeadline"]},headlineTag(){return this.headlineLevel?"h"+this.headlineLevel:""},getTextAlign(){return this.textAlign?"text-"+this.textAlign:""}},methods:{updateHandlerProvider(){const t=this.editableHeadlineText,n=this.editablePreHeadlineText,o=this.headlineLevel;return q(this,{update(a){a.headlineText=t,a.preHeadlineText=n,a.headlineLevel=o}})},onAddItem(){this.$refs.editComponentWrapper.editComponent()}},watch:{headlineText:{handler(){this.editableHeadlineText=this.headlineText},immediate:!0},preHeadlineText:{handler(){this.editablePreHeadlineText=this.preHeadlineText},immediate:!0}}},Yl={class:"pre-headline-text-wrapper"},Xl={class:"pre-headline-text"},Ql={class:"pre-headline-text"},$l=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new headline",-1)];function vl(t,n,o,a,i,l){var h;const s=I,r=A,c=te;return!t.editModeContext||t.settingsContext||t.mainSidebarContext||o.headlineText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cmd-headline",{"has-pre-headline-text":o.preHeadlineText,"has-icon":(h=o.headlineIcon)==null?void 0:h.iconClass},l.getTextAlign])},[o.preHeadlineText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.headlineText?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:0},{default:e.withCtx(()=>{var d,m;return[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(d=o.headlineIcon)==null?void 0:d.iconClass,type:(m=o.headlineIcon)==null?void 0:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",Yl,[e.createElementVNode("span",Xl,e.toDisplayString(o.preHeadlineText),1),e.createElementVNode("span",null,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])])])]}),_:3})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:1},{default:e.withCtx(()=>{var d,m;return[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(d=o.headlineIcon)==null?void 0:d.iconClass,type:(m=o.headlineIcon)==null?void 0:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])])]}),_:3}))],2)):(e.openBlock(),e.createBlock(c,{key:1,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdHeadline",componentProps:{headlineText:o.headlineText,headlineLevel:o.headlineLevel},componentPath:l.headlineComponentPath,allowDeleteComponent:!!o.headlineText},{default:e.withCtx(d=>{var m,p;return[d.editing?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:"text",class:e.normalizeClass(["edit-mode","headline","h"+o.headlineLevel,l.getTextAlign]),labelText:"Headline",showLabel:!1,placeholder:"Headline",modelValue:i.editableHeadlineText,"onUpdate:modelValue":n[0]||(n[0]=f=>i.editableHeadlineText=f)},null,8,["class","modelValue"])):o.headlineText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(m=o.headlineIcon)==null?void 0:m.iconClass,type:(p=o.headlineIcon)==null?void 0:p.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.preHeadlineText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.headlineText?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:0},{default:e.withCtx(()=>{var f,u;return[o.headlineIcon?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(f=o.headlineIcon)==null?void 0:f.iconClass,type:(u=o.headlineIcon)==null?void 0:u.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",Ql,e.toDisplayString(o.preHeadlineText),1),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])]}),_:3})):e.createCommentVNode("",!0)],64)):o.headlineText?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.headlineTag),{key:2},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.headlineText),1)])]),_:3})):e.createCommentVNode("",!0)],64)):l.componentActive?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"button confirm",onClick:n[1]||(n[1]=(...f)=>l.onAddItem&&l.onAddItem(...f))},$l)):e.createCommentVNode("",!0)]}),_:3},8,["componentProps","componentPath","allowDeleteComponent"]))}const M=B(Zl,[["render",vl]]),ei={name:"CmdTooltip",data(){return{tooltipVisibility:!1,pointerX:0,pointerY:0}},props:{cmdHeadline:{type:Object,default(){}},tooltipText:{type:String,required:!1},delayToShowTooltip:{type:Number,default:0},relatedId:{type:String,required:!1},validationStatus:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},scrollContainer:{type:String,default:".page-wrapper"},iconClose:{type:Object,default(){return{show:!0,iconClass:"icon-cancel",tooltip:"Close this tooltip!"}}},toggleVisibilityByClick:{type:Boolean,default:!1}},mounted(){if(this.relatedId){const t=document.getElementById(this.relatedId);t&&(document.querySelector(this.scrollContainer).addEventListener("scroll",this.hideTooltip),document.addEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?t.addEventListener("click",this.toggleTooltipVisibility):(t.addEventListener("mouseenter",this.showTooltip),t.addEventListener("mouseleave",this.hideTooltip)))}},methods:{toggleTooltipVisibility(t){this.getPointerPosition(t),this.tooltipVisibility=!this.tooltipVisibility},showTooltip(t){this.delayToShowTooltip>0?setTimeout(()=>{this.toggleVisibility(t)},this.delayToShowTooltip):this.toggleVisibility(t)},toggleVisibility(t){this.toggleVisibilityByClick||(this.tooltipVisibility=!0),this.getPointerPosition(t)},hideTooltipOnEsc(t){this.allowEscapeKey&&(t.key==="Escape"||t.key==="Esc")&&this.hideTooltip()},hideTooltip(){this.tooltipVisibility=!1},getPointerPosition(t){this.pointerX=t.clientX,this.pointerY=t.clientY}},unmounted(){if(this.relatedId){const t=document.getElementById(this.relatedId);t&&(document.removeEventListener("scroll",this.hideTooltip),document.removeEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?t.removeEventListener("click",this.toggleTooltipVisibility):(t.removeEventListener("mouseenter",this.showTooltip),t.removeEventListener("mouseleave",this.showTooltip)))}},watch:{tooltipVisibility(){this.tooltipVisibility&&this.$nextTick(()=>{this.$refs.tooltip.style.left=this.pointerX/10+"rem",this.$refs.tooltip.style.top=(this.pointerY+25)/10+"rem"})}}},ti={key:0,class:"headline-wrapper"},oi=["title"];function ni(t,n,o,a,i,l){const s=M,r=I;return i.tooltipVisibility?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cmd-tooltip",o.validationStatus]),ref:"tooltip"},[o.cmdHeadline||o.iconClose.show?(e.openBlock(),e.createElementBlock("div",ti,[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.cmdHeadline.iconClass,preHeadline:o.cmdHeadline.preHeadline,headlineLevel:o.cmdHeadline.headlineLevel,headlineText:o.cmdHeadline.headlineText},null,8,["iconClass","preHeadline","headlineLevel","headlineText"])):e.createCommentVNode("",!0),o.iconClose.show&&o.toggleVisibilityByClick?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.hideTooltip&&l.hideTooltip(...c),["prevent"])),title:o.iconClose.tooltip},[e.createVNode(r,{iconClass:o.iconClose.iconClass,type:o.iconClose.iconType},null,8,["iconClass","type"])],8,oi)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.tooltipText),1)])],2)):e.createCommentVNode("",!0)}const po=B(ei,[["render",ni]]),j={props:{i18n:{type:[Object,Function],default:()=>({})}},methods:{getMessage(t,...n){if(!t)return"";let o=this.i18n;if(typeof this.i18n=="function"&&(o=this.i18n.call(this,t,n),typeof o!="object"))return o;let a=o[t]||this.getDefaultMessageProperty(t)||t;return typeof a=="function"?a.call(this,n||[]):(Array.isArray(n)&&n.length&&n.forEach((i,l)=>a=a.replace("{"+l+"}",i)),a)},getDefaultMessageProperty(t){var o;if(Object.hasOwn(this,"defaultMessageProperties")&&this.defaultMessageProperties&&this.defaultMessageProperties[t])return this.defaultMessageProperties[t];const n=Object.hasOwn(this,"fieldValidationDefaultMessageProperties")?"fieldValidationDefaultMessageProperties":null;return n&&((o=this[n])!=null&&o[t])?this[n][t]:null}}},li={name:"CmdListOfRequirements",mixins:[j,{data(){return{defaultMessageProperties:{"cmdlistofrequirements.headline.requirement_for_input":"Requirement for input","cmdlistofrequirements.headline.requirements_for_input":"Requirements for input"}}}}],props:{inputModelValue:{type:[String,Boolean,Array,Number],default:""},inputAttributes:{type:Object,required:!0},labelText:{type:String,required:!1},inputRequirements:{type:Array,required:!0},helplink:{type:Object,required:!1},iconSuccess:{type:Object,default(){return{iconClass:"icon-check-circle",tooltip:"success"}}},iconError:{type:Object,default(){return{iconClass:"icon-error-circle",tooltip:"error"}}},showHeadline:{type:Boolean,default:!0},cmdHeadline:{type:Object,default(){return{headlineLevel:6}}}},computed:{headlineRequirements(){return this.inputRequirements.length>1?this.getMessage("cmdlistofrequirements.headline.requirements_for_input"):this.getMessage("cmdlistofrequirements.headline.requirement_for_input")}}},ii={class:"cmd-list-of-requirements"},ai=e.createElementVNode("br",null,null,-1),si=e.createElementVNode("hr",null,null,-1),ri=["href","target"],ci={key:1};function di(t,n,o,a,i,l){var c,h,d;const s=M,r=I;return e.openBlock(),e.createElementBlock("div",ii,[o.showHeadline?(e.openBlock(),e.createBlock(s,{key:0,"headline-level":o.cmdHeadline.headlineLevel},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.headlineRequirements),1),o.labelText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ai,e.createElementVNode("em",null,e.toDisplayString(o.labelText),1)],64)):e.createCommentVNode("",!0)]),_:1},8,["headline-level"])):e.createCommentVNode("",!0),e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.inputRequirements,(m,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[e.createElementVNode("dt",{"aria-live":"assertive",class:e.normalizeClass(m.valid(o.inputModelValue,o.inputAttributes)?"success":"error")},e.toDisplayString(m.message)+":",3),e.createElementVNode("dd",{class:e.normalizeClass(m.valid(o.inputModelValue,o.inputAttributes)?"success":"error")},[e.createVNode(r,{"aria-live":"assertive",iconClass:m.valid(o.inputModelValue,o.inputAttributes)?o.iconSuccess.iconClass:o.iconError.iconClass,type:m.valid(o.inputModelValue,o.inputAttributes)?o.iconSuccess.iconType:o.iconError.iconType,title:m.valid(o.inputModelValue,o.inputAttributes)?o.iconSuccess.tooltip:o.iconError.tooltip},null,8,["iconClass","type","title"])],2)],64))),128))]),o.helplink&&o.helplink.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[si,o.helplink.url?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.helplink.url,target:o.helplink.target,onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"]))},[(c=o.helplink.icon)!=null&&c.iconClass?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass((h=o.helplink.icon)==null?void 0:h.iconClass),title:(d=o.helplink.icon)==null?void 0:d.tooltip},null,8,["class","title"])):e.createCommentVNode("",!0),o.helplink.text?(e.openBlock(),e.createElementBlock("span",ci,e.toDisplayString(o.helplink.text),1)):e.createCommentVNode("",!0)],8,ri)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])}const mi=B(li,[["render",di]]),hi={name:"CmdTooltipForFormElements",props:{relatedId:{type:String,default:""},validationStatus:{type:String,default:"",validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},cmdListOfRequirements:{type:Object,default(){return{showRequirements:!0,validationTooltip:"",inputRequirements:[],inputAttributes:{},showHeadline:!0,inputModelValue:"",helplink:{},labelText:""}}}},methods:{hideTooltip(){this.$refs.tooltip.hideTooltip()}}};function fi(t,n,o,a,i,l){const s=mi,r=po;return e.openBlock(),e.createBlock(r,{ref:"tooltip",class:e.normalizeClass(["box cmd-tooltip-for-form-elements",o.validationStatus]),relatedId:o.relatedId,"toggle-visibility-by-click":!0},{default:e.withCtx(()=>[o.cmdListOfRequirements.showRequirements?(e.openBlock(),e.createBlock(s,{key:0,showHeadline:o.cmdListOfRequirements.showHeadline,inputRequirements:o.cmdListOfRequirements.inputRequirements,helplink:o.cmdListOfRequirements.helplink,inputModelValue:o.cmdListOfRequirements.inputModelValue,inputAttributes:o.cmdListOfRequirements.inputAttributes,labelText:o.cmdListOfRequirements.labelText},null,8,["showHeadline","inputRequirements","helplink","inputModelValue","inputAttributes","labelText"])):e.createCommentVNode("",!0)]),_:1},8,["class","relatedId"])}const mt=B(hi,[["render",fi]]),ht={data(){return{defaultMessageProperties:{"cmdformelement.headline.requirements_for_input":"Requirements for input","cmdformelement.validationTooltip.an_error_occurred":"An error occurred!","cmdformelement.validationTooltip.information_is_filled_correctly":"This information is filled correctly!","cmdformelement.validationTooltip.caps_lock_is_activated":"Attention: Caps lock is activated!","cmdformelement.validationTooltip.open_field_requirements":"Open field requirements!","cmdformelement.validationTooltip.is_valid_email":"Is valid e-mail-address"}}}},ze={data(){return{validationStatus:"",capsLockActivated:!1}},mixins:[j,{data(){return{fieldValidationDefaultMessageProperties:{"cmdfieldvalidation.open_detailed_help":"Open detailed help!","cmdfieldvalidation.information_not_filled_correctly":"This information is not filled correctly!","cmdfieldvalidation.information_filled_correctly":"This information is filled correctly!","cmdfieldvalidation.caps_lock_is_activated":"Attention: Caps lock is activated!","cmdfieldvalidation.required_field_is_filled":"Required field is filled!","cmdfieldvalidation.field_contains_special_character":"Field contains special character","cmdfieldvalidation.input_has_minimum_length":"Input has minimum length"}}}}],props:{validationMessage:{type:String,required:!1},helplink:{type:Object,default(){return{show:!0,url:"helpurl",target:"help",text:"Open help",icon:{iconClass:"icon-questionmark-circle",tooltip:"Open help in new tab",iconType:"auto"}}}},customRequirements:{type:Array,required:!1},showRequirements:{type:Boolean,default:!0},iconHasStateError:{type:Object,default(){return{iconClass:"icon-error-circle",tooltip:"Error",iconType:"auto"}}},iconHasStateWarning:{type:Object,default(){return{iconClass:"icon-exclamation-circle",tooltip:"Warning",iconType:"auto"}}},iconHasStateSuccess:{type:Object,default(){return{iconClass:"icon-check-circle",tooltip:"Success",iconType:"auto"}}},iconHasStateInfo:{type:Object,default(){return{iconClass:"icon-info-circle",tooltip:"Info",iconType:"auto"}}},iconCapsLock:{type:Object,default(){return{iconClass:"icon-caps-lock-circle",iconType:"auto"}}},iconPasswordVisible:{type:Object,default(){return{iconClass:"icon-visible",tooltip:"Show password",iconType:"auto"}}},iconPasswordInvisible:{type:Object,default(){return{iconClass:"icon-not-visible",iconType:"auto"}}},cmdListOfRequirements:{type:Object,required:!1}},computed:{listOfRequirements(){return this.cmdListOfRequirements==null?{showRequirements:!0,showHeadline:!0,validationTooltip:this.validationTooltip,inputRequirements:this.inputRequirements,inputAttributes:this.$attrs,inputModelValue:this.modelValue,helplink:{},labelText:this.labelText}:this.cmdListOfRequirements},getValidationMessage(){if(this.validationStatus!==""){if(this.validationStatus==="error")return this.validationMessage?this.validationMessage:this.getMessage("cmdfieldvalidation.information_not_filled_correctly");if(this.validationStatus==="warning"&&this.capsLockActivated)return this.getMessage("cmdfieldvalidation.caps_lock_is_activated");if(this.validationStatus==="success")return this.getMessage("cmdfieldvalidation.information_filled_correctly")}return null},getStatusIconClass(){return this.validationStatus!==""?this.capsLockActivated?this.iconCapsLock.iconClass:this.validationStatus==="error"?this.iconHasStateError.iconClass:this.validationStatus==="warning"?this.iconHasStateWarning.iconClass:this.validationStatus==="success"?this.iconHasStateSuccess.iconClass:this.iconHasStateInfo.iconClass:this.helplink.icon.iconClass},inputRequirements(){const t=[];if(this.$attrs.required||Object.hasOwn(this,"required")&&this.required){const n=Object.hasOwn(this,"required")?this.required:this.$attrs.required;t.push({message:this.getRequirementMessage(),valid(o,a){return!a.required&&!n||o!=null&&String(o).length>0}})}return this.$attrs.minlength&&t.push({message:this.getMessage("cmdfieldvalidation.input_has_minimum_length")+" ("+this.modelValue.length+"/"+this.$attrs.minlength+")",valid(n,o){return n.length>=o.minlength}}),[...t,...this.additionalStandardRequirements()||[],...this.customRequirements||[]]}},methods:{checkForCapsLock(t){["password","number","url","email"].includes(this.$attrs.type)&&t.getModifierState("CapsLock")?(this.capsLockActivated=!0,this.validationStatus="warning"):this.capsLockActivated&&this.validationStatus==="warning"&&(this.capsLockActivated=!1,this.validationStatus="")},additionalStandardRequirements(){return[]},getRequirementMessage(){return this.getMessage("cmdfieldvalidation.required_field_is_filled")}},watch:{validationStatus:{handler(){this.$emit("validation-status-change",this.validationStatus)}}}};function ce(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const o=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?o:o&3|8).toString(16)})}function ft(){return"cmd-"+ce()}const ye={props:{id:{type:String,required:!1}},computed:{htmlId(){return this.id||ft()}},methods:{buildHtmlId(...t){return t.map(n=>n.replace(/\s/g,"")).join("")}}},ut={};function ui(t="defaultSequence"){const n=ut[t]||0;return ut[t]=n+1,ut[t]}const pt={data(){return{tooltip:!1,tooltipId:"tooltip-"+ui()}},props:{useCustomTooltip:{type:Boolean,default:!0},allowEscapeKey:{type:Boolean,default:!0}}},pi=["color","date","datetime-local","file","number","range"],gi={inheritAttrs:!1,name:"CmdFormElement",mixins:[j,ht,ze,ye,pt],data(){return{errorOccurred:0}},props:{modelValue:{type:[String,Boolean,Array,Number],default:""},element:{type:String,validator(t){return t==="input"||t==="select"||t==="textarea"||t==="button"},required:!0},showLabel:{type:Boolean,default:!0},labelText:{type:String,required:!1},toggleSwitch:{type:Boolean,default:!1},onLabel:{type:String,required:!1},offLabel:{type:String,required:!1},colored:{type:Boolean,required:!1},inputValue:{type:[String,Number],required:!1},replaceInputType:{type:Boolean,default:!1},inputClass:{type:String,required:!1},datalist:{type:Object,required:!1},selectOptions:{type:Array,required:!1},showStatusIcon:{type:Boolean,default:!0},nativeButton:{type:Object,default(){return{text:"",icon:{show:!0,iconClass:"",position:"left",tooltip:""}}}},fieldIconClass:{type:String,required:!1},displayLabelInline:{type:Boolean,required:!1},status:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},showCharactersTextarea:{type:Boolean,default:!0},textCharactersLeft:{type:String,default:"Characters left:"},showSearchButton:{type:Boolean,default:!0},iconDelete:{type:Object,default(){return{show:!0,iconClass:"icon-cancel-circle",tooltip:"Delete term"}}},iconSearch:{type:Object,default(){return{show:!0,iconClass:"icon-search",tooltip:"Search"}}},iconHasStateError:{type:Object,default(){return{show:!0,iconClass:"icon-error-circle",tooltip:"Error"}}},iconHasStateWarning:{type:Object,default(){return{show:!0,iconClass:"icon-warning-circle",tooltip:"Warning"}}},iconHasStateSuccess:{type:Object,default(){return{show:!0,iconClass:"icon-check-circle",tooltip:"Success"}}},iconHasStateInfo:{type:Object,default(){return{show:!0,iconClass:"icon-info-circle",tooltip:"Info"}}},useIconsForToggleSwitch:{type:Boolean,default:!1},toggleSwitchCheckedIconClass:{type:String,default:"icon-check-circle"},toggleSwitchUncheckedIconClass:{type:String,default:"icon-cancel-circle"},iconPasswordVisible:{type:Object,default(){return{show:!0,iconClass:"icon-visible",tooltip:"Show password"}}},iconPasswordInvisible:{type:Object,default(){return{show:!0,iconClass:"icon-not-visible"}}}},computed:{elementAttributes(){const t=["name","required","readonly","disabled","autofocus"],n={input:[...t,"type","minlength","pattern","min","max","multiple","step","autocomplete","placeholder"],select:[...t,"multiple"],textarea:[...t,"placeholder"]},o={};return n[this.element]&&Object.entries(this.$attrs).filter(([a])=>n[this.element].includes(a)).forEach(([a,i])=>o[a]=i),o},buttonAttrs(){var n,o;const t={...this.$attrs};return(n=this.nativeButton.icon)!=null&&n.tooltip&&(t.title=(o=this.nativeButton.icon)==null?void 0:o.tooltip),t},tooltipHeadline(){return{text:this.labelText,level:"5"}},isChecked(){return typeof this.modelValue=="boolean"?this.modelValue:typeof this.modelValue=="string"?this.modelValue===this.inputValue:typeof this.modelValue=="number"?this.modelValue===this.inputValue:this.modelValue!==void 0?this.modelValue.includes(this.inputValue):!1},charactersLeft(){return this.getMaxLength()-this.modelValue.length},validationTooltip(){return this.useCustomTooltip?this.validationStatus==="error"?this.getMessage("cmdformelement.validationTooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("cmdformelement.validationTooltip.information_is_filled_correctly"):this.capsLockActivated?this.getMessage("cmdformelement.validationTooltip.caps_lock_is_activated"):this.getMessage("cmdformelement.validationTooltip.open_field_requirements"):this.getValidationMessage},autocomplete(){return this.$attrs.type!=="file"?this.datalist?"off":"on":null},toggleSwitchIconClass(){return this.toggleSwitch&&this.useIconsForToggleSwitch&&this.toggleSwitchUncheckedIconClass&&this.toggleSwitchCheckedIconClass?this.isChecked?this.toggleSwitchCheckedIconClass:this.toggleSwitchUncheckedIconClass:null}},methods:{setFocus(){var t;(t=this.$refs.label.querySelector("input, select, textarea"))==null||t.focus()},additionalStandardRequirements(){const t=[];return this.$attrs.type==="email"&&t.push({message:this.getMessage("cmdformelement.validationTooltip.is_valid_email"),valid:()=>this.$refs.input.checkValidity()}),t},getDomElement(){return this.$refs.label},getMaxLength(){return this.$attrs.element==="textarea"?this.$attrs.maxlength>0?this.$attrs.maxlength:5e3:pi.includes(this.$attrs.type)?null:this.$attrs.maxlength>0?this.$attrs.maxlength:255},validateInput(t){var o;((o=t.target.closest("form"))==null?void 0:o.dataset.useValidation)==="true"&&(!["checkbox","radio"].includes(this.$attrs.type)&&this.modelValue&&(this.validationStatus="success"),typeof t.target.checkValidity=="function"&&!t.target.checkValidity()?this.validationStatus="error":this.customRequirements&&this.customRequirements.some(i=>!i.valid(this.modelValue))&&(this.validationStatus="error"),this.$emit("validation-status-change",this.validationStatus))},onBlur(t){this.validateInput(t),this.closeTooltipOnBlur()},onInput(t){this.validateInput(t),this.$emit("update:modelValue",t.target.value)},onChange(t){if(typeof this.modelValue=="boolean")this.$emit("update:modelValue",t.target.checked);else if(typeof this.modelValue=="string")this.$emit("update:modelValue",t.target.value);else if(this.modelValue!==void 0){let n=[...this.modelValue];t.target.checked?n.push(t.target.value):n=n.filter(o=>o!==t.target.value),this.$emit("update:modelValue",n)}},datalistFocus(){this.datalist&&this.$refs.label.focus()},showPassword(){const t=this.$refs.input,n=t.value;t.nextElementSibling.classList.replace(this.iconPasswordVisible.iconClass,this.iconPasswordInvisible.iconClass),t.setAttribute("type","text"),t.setAttribute("value",n)},hidePassword(){this.$refs.input.nextElementSibling.classList.replace(this.iconPasswordInvisible.iconClass,this.iconPasswordVisible.iconClass),this.$refs.input.setAttribute("type","password")},executeSearch(){this.$emit("search",this.value)},closeTooltipOnBlur(){this.$refs.tooltip&&this.$refs.tooltip.hideTooltip()},submit(t){this.$emit("submit",t)}},watch:{status:{handler(){this.validationStatus=this.status||""},immediate:!0}}},yi=["for","title"],ki={key:2,"aria-hidden":"true"},Ci=["title","aria-errormessage","id"],bi={key:1,class:"flex-container"},Bi=["id","autocomplete","list","value","maxlength"],wi=["title"],_i=["id"],xi=["value"],Si=["checked","value","id","disabled","aria-invalid"],Ei={key:2},Vi={class:"switch-label-wrapper"},Ti=["checked","value","id","disabled","aria-invalid"],Ni={class:"label-text"},Ii={class:"label-text"},Fi={key:0},Oi=["id"],Mi=["value","selected"],Di=["id","value","maxlength"],Li={key:6,class:"characters-left-wrapper"},Pi={key:0},Ai={key:7,class:"search-field-wrapper flex-container no-gap"},Hi=["id","maxlength","value"],qi=["title"],zi=["title"],Ri={key:1};function ji(t,n,o,a,i,l){var c,h,d,m,p,f,u,y,k,b,S,w,_,F,x,V,D,P,N,Z,Y,X,H,le;const s=I,r=mt;return o.element==="input"||o.element==="select"||o.element==="textarea"?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["cmd-form-element",t.validationStatus,t.$attrs.class,{disabled:t.$attrs.disabled,inline:o.displayLabelInline,"toggle-switch":o.toggleSwitch,colored:o.colored,"has-state":t.validationStatus}]),for:t.htmlId,title:t.$attrs.title,ref:"label"},[(o.labelText||t.$slots.labeltext)&&t.$attrs.type!=="checkbox"&&t.$attrs.type!=="radio"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},[e.createElementVNode("span",null,[o.labelText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.labelText),1)],64)):e.renderSlot(t.$slots,"labeltext",{key:1}),t.$attrs.required!=null&&t.$attrs.required!==!1?(e.openBlock(),e.createElementBlock("sup",ki,"*")):e.createCommentVNode("",!0)]),(t.$attrs.required||t.inputRequirements.length)&&o.showStatusIcon?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),title:l.validationTooltip,"aria-errormessage":t.tooltipId,"aria-live":"assertive",id:t.tooltipId},[e.createVNode(s,{iconClass:t.getStatusIconClass},null,8,["iconClass"])],8,Ci)):e.createCommentVNode("",!0),t.useCustomTooltip&&(t.validationStatus===""||t.validationStatus==="error")?(e.openBlock(),e.createBlock(r,{key:1,ref:"tooltip",validationStatus:t.validationStatus,relatedId:t.tooltipId,cmdListOfRequirements:t.listOfRequirements,role:t.validationStatus==="error"?"alert":"dialog"},null,8,["validationStatus","relatedId","cmdListOfRequirements","role"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.$attrs.type!=="checkbox"&&t.$attrs.type!=="radio"&&t.$attrs.type!=="search"?(e.openBlock(),e.createElementBlock("span",bi,[o.fieldIconClass?(e.openBlock(),e.createBlock(s,{key:0,class:"place-inside",iconClass:o.fieldIconClass},null,8,["iconClass"])):e.createCommentVNode("",!0),o.element==="input"&&t.$attrs.type!=="search"?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:1},l.elementAttributes,{id:t.htmlId,class:o.inputClass,onFocus:n[1]||(n[1]=E=>t.tooltip=!0),onBlur:n[2]||(n[2]=(...E)=>l.onBlur&&l.onBlur(...E)),onInput:n[3]||(n[3]=(...E)=>l.onInput&&l.onInput(...E)),onMouseover:n[4]||(n[4]=(...E)=>l.datalistFocus&&l.datalistFocus(...E)),onKeyup:n[5]||(n[5]=(...E)=>t.checkForCapsLock&&t.checkForCapsLock(...E)),onChange:n[6]||(n[6]=E=>t.$emit("change",E)),autocomplete:l.autocomplete,list:o.datalist?o.datalist.id:null,value:o.modelValue,maxlength:l.getMaxLength(),ref:"input"}),null,16,Bi)):e.createCommentVNode("",!0),t.$attrs.type==="password"?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",class:"place-inside",onMousedown:n[7]||(n[7]=e.withModifiers((...E)=>l.showPassword&&l.showPassword(...E),["prevent"])),onMouseup:n[8]||(n[8]=e.withModifiers((...E)=>l.hidePassword&&l.hidePassword(...E),["prevent"])),onMouseleave:n[9]||(n[9]=e.withModifiers((...E)=>l.hidePassword&&l.hidePassword(...E),["prevent"])),onClick:n[10]||(n[10]=e.withModifiers(()=>{},["prevent"])),title:o.iconPasswordVisible.tooltip},[e.createVNode(s,{iconClass:o.iconPasswordVisible.iconClass},null,8,["iconClass"])],40,wi)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.datalist&&o.datalist.options.length?(e.openBlock(),e.createElementBlock("datalist",{key:2,id:o.datalist.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.datalist.options,(E,$)=>(e.openBlock(),e.createElementBlock("option",{key:$,value:E},null,8,xi))),128))],8,_i)):o.element==="input"&&(t.$attrs.type==="checkbox"||t.$attrs.type==="radio")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[o.onLabel&&o.offLabel?o.onLabel&&o.offLabel?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",Vi,[e.createElementVNode("input",e.mergeProps(l.elementAttributes,{onChange:n[13]||(n[13]=(...E)=>l.onChange&&l.onChange(...E)),onBlur:n[14]||(n[14]=(...E)=>l.onBlur&&l.onBlur(...E)),checked:l.isChecked,value:o.inputValue,class:{inputClass:o.inputClass,validationStatus:t.validationStatus},id:t.htmlId,disabled:t.$attrs.disabled,"aria-invalid":t.validationStatus==="error"}),null,16,Ti),e.createElementVNode("span",Ni,e.toDisplayString(o.onLabel),1),e.createElementVNode("span",Ii,e.toDisplayString(o.offLabel),1)]),o.labelText?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(o.labelText),1),t.$attrs.required?(e.openBlock(),e.createElementBlock("sup",Fi,"*")):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],64)):e.renderSlot(t.$slots,"default",{key:2}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("input",e.mergeProps(l.elementAttributes,{onChange:n[11]||(n[11]=(...E)=>l.onChange&&l.onChange(...E)),onBlur:n[12]||(n[12]=(...E)=>l.onBlur&&l.onBlur(...E)),checked:l.isChecked,value:o.inputValue,class:[o.inputClass,t.validationStatus,l.toggleSwitchIconClass,{"replace-input-type":o.replaceInputType}],id:t.htmlId,disabled:t.$attrs.disabled,"aria-invalid":t.validationStatus==="error"}),null,16,Si),o.labelText||t.$slots.labeltext?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},[e.createElementVNode("span",null,[o.labelText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.labelText),1)],64)):e.renderSlot(t.$slots,"labeltext",{key:1}),t.$attrs.required?(e.openBlock(),e.createElementBlock("sup",Ei,"*")):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),o.element==="select"?(e.openBlock(),e.createElementBlock("select",e.mergeProps({key:4},l.elementAttributes,{id:t.htmlId,onBlur:n[15]||(n[15]=(...E)=>l.onBlur&&l.onBlur(...E)),onChange:n[16]||(n[16]=E=>t.$emit("update:modelValue",E.target.value))}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectOptions,(E,$)=>(e.openBlock(),e.createElementBlock("option",{key:$,value:E.value,selected:E.value===o.modelValue},e.toDisplayString(E.text),9,Mi))),128))],16,Oi)):e.createCommentVNode("",!0),o.element==="textarea"?(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:5},l.elementAttributes,{id:t.htmlId,value:o.modelValue,maxlength:l.getMaxLength(),onInput:n[17]||(n[17]=(...E)=>l.onInput&&l.onInput(...E)),onFocus:n[18]||(n[18]=E=>t.tooltip=!0),onBlur:n[19]||(n[19]=(...E)=>l.onBlur&&l.onBlur(...E))}),null,16,Di)):e.createCommentVNode("",!0),o.element==="textarea"&&o.showCharactersTextarea?(e.openBlock(),e.createElementBlock("span",Li,[o.textCharactersLeft?(e.openBlock(),e.createElementBlock("span",Pi,e.toDisplayString(o.textCharactersLeft),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["characters-left",{error:l.charactersLeft===0}])},e.toDisplayString(l.charactersLeft),3)])):o.element==="input"&&t.$attrs.type==="search"?(e.openBlock(),e.createElementBlock("span",Ai,[o.fieldIconClass?(e.openBlock(),e.createBlock(s,{key:0,class:"place-inside",iconClass:o.fieldIconClass},null,8,["iconClass"])):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps(l.elementAttributes,{id:t.htmlId,onInput:n[20]||(n[20]=(...E)=>l.onInput&&l.onInput(...E)),maxlength:l.getMaxLength(),value:o.modelValue}),null,16,Hi),o.showSearchButton?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:e.normalizeClass(["button no-flex",{disabled:t.$attrs.disabled}]),title:o.iconSearch.tooltip,onClick:n[21]||(n[21]=e.withModifiers((...E)=>l.executeSearch&&l.executeSearch(...E),["prevent"]))},[e.createVNode(s,{iconClass:o.iconSearch.iconClass},null,8,["iconClass"])],10,qi)):e.createCommentVNode("",!0),(c=o.iconDelete)!=null&&c.show?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",onClick:n[22]||(n[22]=e.withModifiers(E=>t.$emit("update:modelValue",""),["prevent"])),title:(h=o.iconDelete)==null?void 0:h.tooltip},[e.createVNode(s,{iconClass:(d=o.iconDelete)==null?void 0:d.iconClass,type:(m=o.iconDelete)==null?void 0:m.iconType},null,8,["iconClass","type"])],8,zi)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,yi)):o.element==="button"?(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:"button"},l.buttonAttrs,{onClick:n[23]||(n[23]=(...E)=>l.submit&&l.submit(...E))}),[(f=(p=o.nativeButton)==null?void 0:p.icon)!=null&&f.show&&(((y=(u=o.nativeButton)==null?void 0:u.icon)==null?void 0:y.position)==="before"||!((b=(k=o.nativeButton)==null?void 0:k.icon)!=null&&b.position))?(e.openBlock(),e.createBlock(s,{key:0,iconClass:(w=(S=o.nativeButton)==null?void 0:S.icon)==null?void 0:w.iconClass,type:(F=(_=o.nativeButton)==null?void 0:_.icon)==null?void 0:F.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),(x=o.nativeButton)!=null&&x.icon&&((V=o.nativeButton)!=null&&V.text)?(e.openBlock(),e.createElementBlock("span",Ri,e.toDisplayString(o.nativeButton.text),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(o.nativeButton.text),1)],64)),(P=(D=o.nativeButton)==null?void 0:D.icon)!=null&&P.show&&((Z=(N=o.nativeButton)==null?void 0:N.icon)==null?void 0:Z.position)==="after"?(e.openBlock(),e.createBlock(s,{key:3,iconClass:(X=(Y=o.nativeButton)==null?void 0:Y.icon)==null?void 0:X.iconClass,type:(le=(H=o.nativeButton)==null?void 0:H.icon)==null?void 0:le.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0)],16)):e.createCommentVNode("",!0)}const A=B(gi,[["render",ji]]),Ui={name:"CmdAddressDataItem",mixins:[z],data(){return{editableAddressEntry:null}},props:{addressEntry:{type:Object,default:{}},showLabelIcons:{type:Boolean,default:!0},showLabelTexts:{type:Boolean,default:!1},linkGoogleMaps:{type:Boolean,default:!1},showCityBeforeZip:{type:Boolean,default:!1}},methods:{vCardClass(t){if(t.type==="company")return"org";if(t.type==="address"){if(t.streetNo)return"street-address";if(t.zip)return"postal-code";if(t.city)return"locality";if(t.country)return"country-name"}return null},inputType(t){return t.type==="phone"?"tel":t.type==="email"?"email":t.type==="url"?"url":"text"},locateAddress(t){return"https://www.google.com/maps/place/"+t.streetNo+", "+t.zip+" "+t.city},getHref(t){return t.type==="phone"?"tel:"+t.href:t.type==="email"?"mailto:"+t.href:t.type==="url"?t.href:null},addHandlerProvider(){const t={type:"default",iconClass:"icon-mail",data:"Your data",labelText:"Labeltext",tooltip:"Tooltip",href:"#"};return q(this,{item(){return t}})},updateHandlerProvider(){const t=this.editableAddressEntry;return q(this,{update(n){typeof t=="object"?Object.entries(t).forEach(([o,a])=>n[o]=a):n.href==null?n.data=t:n.href=t}})}},watch:{addressEntry:{handler(){this.addressEntry.type==="address"?this.editableAddressEntry={streetNo:this.addressEntry.streetNo,zip:this.addressEntry.zip,city:this.addressEntry.city,state:this.addressEntry.state,miscInfo:this.addressEntry.miscInfo,country:this.addressEntry.country}:this.editableAddressEntry=(this.addressEntry.href==null?this.addressEntry.data:this.addressEntry.href)||""},immediate:!0,deep:!0}}},Wi={key:1},Gi=["href","target","title","data-type"],Ji=["innerHTML"],Ki={key:1},Zi=["href","title"],Yi={class:"street-address"},Xi=e.createElementVNode("br",null,null,-1),Qi={key:0,class:"postal-code"},$i={key:1,class:"locality"},vi=e.createElementVNode("br",null,null,-1),ea={key:0},ta={key:3,class:"country-name"},oa={class:"street-address"},na=e.createElementVNode("br",null,null,-1),la={key:0,class:"postal-code"},ia={key:1,class:"locality"},aa=e.createElementVNode("br",null,null,-1),sa=e.createElementVNode("br",null,null,-1),ra={key:3,class:"country-name"};function ca(t,n,o,a,i,l){const s=I,r=A,c=e.resolveDirective("telephone");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("dt",{class:e.normalizeClass(["cmd-address-data-item",{address:o.addressEntry.type==="address"}])},[o.addressEntry.iconClass&&o.showLabelIcons?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.addressEntry.iconClass,type:o.addressEntry.iconType,tooltip:o.addressEntry.labelText},null,8,["iconClass","type","tooltip"])):e.createCommentVNode("",!0),o.showLabelTexts?(e.openBlock(),e.createElementBlock("span",Wi,e.toDisplayString(o.addressEntry.labelText),1)):e.createCommentVNode("",!0)],2),o.addressEntry.type!=="address"&&(o.addressEntry.data||o.addressEntry.href)?(e.openBlock(),e.createElementBlock("dd",{key:0,class:e.normalizeClass(l.vCardClass(o.addressEntry))},[t.editing?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:l.inputType(o.addressEntry),class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry,"onUpdate:modelValue":n[0]||(n[0]=h=>i.editableAddressEntry=h)},null,8,["type","labelText","placeholder","modelValue"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.addressEntry.href?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:l.getHref(o.addressEntry),target:o.addressEntry.type==="url"?"_blank":null,title:o.addressEntry.tooltip,"data-type":o.addressEntry.type},[e.createTextVNode(e.toDisplayString(o.addressEntry.data||o.addressEntry.href),1)],8,Gi)),[[c,o.addressEntry.href]]):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:o.addressEntry.data},null,8,Ji))],64))],2)):o.addressEntry.name==="address"?(e.openBlock(),e.createElementBlock("dd",Ki,[o.linkGoogleMaps&&!t.editing?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.locateAddress(o.addressEntry),target:"google-maps",title:o.addressEntry.tooltip},[o.addressEntry.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Yi,e.toDisplayString(o.addressEntry.streetNo),1),Xi],64)):e.createCommentVNode("",!0),o.addressEntry.zip||o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"city-zip":"zip-city")},[o.addressEntry.zip?(e.openBlock(),e.createElementBlock("span",Qi,e.toDisplayString(o.addressEntry.zip),1)):e.createCommentVNode("",!0),o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",$i,[e.createTextVNode(e.toDisplayString(o.addressEntry.city),1),o.addressEntry.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.addressEntry.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),vi,o.addressEntry.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(o.addressEntry.miscInfo),1),o.addressEntry.country?(e.openBlock(),e.createElementBlock("br",ea)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.addressEntry.country?(e.openBlock(),e.createElementBlock("span",ta,e.toDisplayString(o.addressEntry.country),1)):e.createCommentVNode("",!0)],8,Zi)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.streetNo,"onUpdate:modelValue":n[1]||(n[1]=h=>i.editableAddressEntry.streetNo=h)},null,8,["labelText","placeholder","modelValue"]),e.createElementVNode("div",{class:e.normalizeClass([o.showCityBeforeZip?"city-zip":"zip-city","input-wrapper"])},[e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.zip,"onUpdate:modelValue":n[2]||(n[2]=h=>i.editableAddressEntry.zip=h)},null,8,["labelText","placeholder","modelValue"]),e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.city,"onUpdate:modelValue":n[3]||(n[3]=h=>i.editableAddressEntry.city=h)},null,8,["labelText","placeholder","modelValue"])],2),e.createVNode(r,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,placeholder:o.addressEntry.labelText,modelValue:i.editableAddressEntry.miscInfo,"onUpdate:modelValue":n[4]||(n[4]=h=>i.editableAddressEntry.miscInfo=h)},null,8,["labelText","placeholder","modelValue"]),e.createVNode(r,{element:"select",class:"edit-mode","show-label":!1,labelText:o.addressEntry.labelText,selectOptions:[{text:"Germany",value:"de"},{text:"United Kingdom",value:"uk"}],modelValue:i.editableAddressEntry.country,"onUpdate:modelValue":n[5]||(n[5]=h=>i.editableAddressEntry.country=h)},null,8,["labelText","modelValue"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.addressEntry.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",oa,e.toDisplayString(o.addressEntry.streetNo),1),na],64)):e.createCommentVNode("",!0),o.addressEntry.zip||o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"city-zip":"zip-city")},[o.addressEntry.zip?(e.openBlock(),e.createElementBlock("span",la,e.toDisplayString(o.addressEntry.zip),1)):e.createCommentVNode("",!0),o.addressEntry.city?(e.openBlock(),e.createElementBlock("span",ia,[e.createTextVNode(e.toDisplayString(o.addressEntry.city),1),o.addressEntry.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" "+e.toDisplayString(o.addressEntry.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),aa,o.addressEntry.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(o.addressEntry.miscInfo),1),sa],64)):e.createCommentVNode("",!0),o.addressEntry.country?(e.openBlock(),e.createElementBlock("span",ra,e.toDisplayString(o.addressEntry.country),1)):e.createCommentVNode("",!0)],64))],64))])):e.createCommentVNode("",!0)],64)}const da=B(Ui,[["render",ca]]),ma={name:"CmdAddressData",mixins:[z,j,{data(){return{defaultMessageProperties:{"cmdaddressdata.labeltext.company":"Company:","cmdaddressdata.labeltext.address":"Address:","cmdaddressdata.labeltext.telephone":"Telephone:","cmdaddressdata.labeltext.mobile_phone":"Mobile phone:","cmdaddressdata.labeltext.fax":"Fax:","cmdaddressdata.labeltext.email":"Email:","cmdaddressdata.labeltext.website":"Web site:","cmdaddressdata.labeltext.custom":"Custom:","cmdaddressdata.title.open_address_on_google_maps:":"Open address on GoogleMaps™ (in new tab)","cmdaddressdata.title.call_number":"Call number","cmdaddressdata.title.send_email":"Send email","cmdaddressdata.title.visit_website":"Visit web site (in new tab)"}}}}],props:{useSlot:{type:Boolean,default:!1},showLabelIcons:{type:Boolean,default:!0},showLabelTexts:{type:Boolean,default:!1},showIconsOnly:{type:Boolean,default:!1},showLabels:{type:Boolean,default:!0},addressData:{type:Array,required:!0},showCityBeforeZip:{type:Boolean,default:!1},cmdHeadline:{type:Object,required:!1}},data(){return{editableAddressData:[]}},computed:{websiteUrlText(){var t;return(t=this.addressData.website)==null?void 0:t.text.replace("https://","")}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","addressData",-1),this.itemProvider)},itemProvider(){return{name:"name",iconClass:"icon-company",data:"Your data",labelText:"Label"}},locateAddress(t){return"https://www.google.com/maps/place/"+t.streetNo+", "+t.zip+" "+t.city},getHref(t){return t.name==="phone"?"tel:"+t.href:t.name==="email"?"mailto:"+t.href:t.name==="url"?t.href:null},updateHandlerProvider(){return q(this,{update(t,n){const o=n==null?void 0:n.find(a=>a.name==="CmdHeadline");o&&(t.cmdHeadline=t.cmdHeadline||{},o.update(t.cmdHeadline))}})}},watch:{}},ha={class:"cmd-address-data vcard"},fa={class:"adr"},ua={key:0},pa=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new entry",-1)],ga=["href","target","title"],ya=["innerHTML"],ka=["href","title"],Ca={class:"street-address"},ba=e.createElementVNode("br",null,null,-1),Ba={key:0,class:"postal-code"},wa={key:1,class:"locality"},_a=e.createElementVNode("br",null,null,-1),xa=e.createElementVNode("br",null,null,-1),Sa=e.createElementVNode("br",null,null,-1),Ea={key:4,class:"country-name"},Va={class:"street-address"},Ta=e.createElementVNode("br",null,null,-1),Na={key:0,class:"postal-code"},Ia={key:1,class:"locality"},Fa=e.createElementVNode("br",null,null,-1),Oa=e.createElementVNode("br",null,null,-1),Ma=e.createElementVNode("br",null,null,-1),Da={key:4,class:"country-name"};function La(t,n,o,a,i,l){var d;const s=M,r=da,c=te,h=I;return e.openBlock(),e.createElementBlock("div",ha,[o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(d=o.cmdHeadline)!=null&&d.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("address",fa,[o.showLabels&&(o.showLabelTexts||o.showLabelIcons)&&!o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.editModeContext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.addressData.length===0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:n[0]||(n[0]=(...m)=>l.onAddItem&&l.onAddItem(...m))},pa)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.addressData,(m,p)=>(e.openBlock(),e.createBlock(c,{key:"x"+p,class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdAddressDataItem",componentProps:m,componentPath:["props","addressData",p]},{default:e.withCtx(()=>[e.createElementVNode("dl",null,[e.createVNode(r,{addressEntry:m,showLabelIcons:o.showLabelIcons,showLabelTexts:o.showLabelTexts},null,8,["addressEntry","showLabelIcons","showLabelTexts"])])]),_:2},1032,["componentProps","componentPath"]))),128))],64)):(e.openBlock(),e.createElementBlock("dl",ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.addressData,(m,p)=>(e.openBlock(),e.createBlock(r,{key:p,addressEntry:m,showLabelIcons:o.showLabelIcons,showLabelTexts:o.showLabelTexts,showCityBeforeZip:o.showCityBeforeZip},null,8,["addressEntry","showLabelIcons","showLabelTexts","showCityBeforeZip"]))),128))]))],64)):(e.openBlock(),e.createElementBlock("ul",{key:1,class:e.normalizeClass(["flex-container",{vertical:!o.showIconsOnly}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.addressData,(m,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[m.href||m.name==="address"&&m.linkGoogleMaps||!o.showIconsOnly?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass({"no-flex":o.showIconsOnly})},[m.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.getHref(m),target:m.name==="url"?"_blank":null,title:m.tooltip},[o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(m.href),1)],64))],8,ga)):o.showIconsOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:m.data},null,8,ya)),m.name==="address"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.linkGoogleMaps?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.locateAddress(m),target:"google-maps",title:m.tooltip},[o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Ca,e.toDisplayString(m.streetNo),1),ba],64)):e.createCommentVNode("",!0),m.zip||m.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(e.openBlock(),e.createElementBlock("span",Ba,e.toDisplayString(m.zip)+" ",1)):e.createCommentVNode("",!0),m.city?(e.openBlock(),e.createElementBlock("span",wa,[e.createTextVNode(e.toDisplayString(m.city),1),m.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),_a],2)):e.createCommentVNode("",!0),m.pobox?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(m.pobox),1),xa],64)):e.createCommentVNode("",!0),m.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString(m.miscInfo),1),Sa],64)):e.createCommentVNode("",!0),m.country?(e.openBlock(),e.createElementBlock("span",Ea,e.toDisplayString(m.country),1)):e.createCommentVNode("",!0)],64))],8,ka)):e.createCommentVNode("",!0),!m.linkGoogleMaps&&!o.showIconsOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.streetNo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Va,e.toDisplayString(m.streetNo),1),Ta],64)):e.createCommentVNode("",!0),m.zip||m.city?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(o.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(e.openBlock(),e.createElementBlock("span",Na,e.toDisplayString(m.zip)+" ",1)):e.createCommentVNode("",!0),m.city?(e.openBlock(),e.createElementBlock("span",Ia,[e.createTextVNode(e.toDisplayString(m.city),1),m.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(m.state),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),Fa],2)):e.createCommentVNode("",!0),m.pobox?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString(m.pobox),1),Oa],64)):e.createCommentVNode("",!0),m.miscInfo?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString(m.miscInfo),1),Ma],64)):e.createCommentVNode("",!0),m.country?(e.openBlock(),e.createElementBlock("span",Da,e.toDisplayString(m.country),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))),128))],2))])],64))])}const go=B(ma,[["render",La]]),Pa={name:"CmdBackToTopButton",data(){var t;return{windowInnerHeight:window.innerHeight,windowScrollY:this.getScrollY(),scrollHeight:((t=document.querySelector(this.scrollContainer))==null?void 0:t.scrollHeight)||0}},props:{scrollContainer:{type:String,default:"body"},iconBackToTop:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Back to top",iconType:"auto"}}}},mounted(){var t;window.addEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(t=document.querySelector(this.scrollContainer))==null||t.addEventListener("scroll",this.onViewportChange)},unmounted(){var t;window.removeEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(t=document.querySelector(this.scrollContainer))==null||t.removeEventListener("scroll",this.onViewportChange)},computed:{show(){return this.windowScrollY>0&&this.windowInnerHeight<this.scrollHeight}},methods:{getScrollY(){var t;return this.scrollContainer==="body"?window.scrollY:((t=document.querySelector(this.scrollContainer))==null?void 0:t.scrollTop)||0},onViewportChange(){var t;this.windowInnerHeight=window.innerHeight,this.windowScrollY=this.getScrollY(),this.scrollHeight=((t=document.querySelector(this.scrollContainer))==null?void 0:t.scrollHeight)||0},onBackToTop(){var t;this.scrollContainer==="body"?window.scrollTo({top:0,left:0,behavior:"smooth"}):(t=document.querySelector(this.scrollContainer))==null||t.scrollTo({top:0,left:0,behavior:"smooth"})}}},Aa=["title"];function Ha(t,n,o,a,i,l){const s=I;return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.show?(e.openBlock(),e.createElementBlock("a",{key:0,class:"cmd-back-to-top-button button",id:"back-to-top-button",href:"#",role:"button",title:o.iconBackToTop.tooltip,onClick:n[0]||(n[0]=e.withModifiers((...r)=>l.onBackToTop&&l.onBackToTop(...r),["prevent"]))},[e.createVNode(s,{iconClass:o.iconBackToTop.iconClass,type:o.iconBackToTop.iconType},null,8,["iconClass","type"])],8,Aa)):e.createCommentVNode("",!0)]),_:1})}const qa=B(Pa,[["render",Ha]]),za={name:"CmdBankAccountData",props:{useSlot:{type:Boolean,default:!1},accountData:{type:Array,required:!0},allowCopyByClick:{type:Boolean,default:!0},additionalInformation:{type:String,required:!1},iconCopy:{type:Object,default(){return{iconClass:"icon-file-copy",tooltip:"Copy data to clipboard!",iconType:"auto"}}},cmdHeadline:{type:Object,required:!1}},methods:{copyToClipboard(t){const n=t.replace(/\s/g,"");navigator.clipboard.writeText(n),alert(n+" was copied to clipboard")}}},Ra={class:"cmd-bank-account-data"},ja={key:0},Ua=["onClick","title"],Wa={key:1};function Ga(t,n,o,a,i,l){const s=M,r=I;return e.openBlock(),e.createElementBlock("div",Ra,[o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.cmdHeadline?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.accountData,(c,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createElementVNode("dt",null,e.toDisplayString(c.text),1),o.allowCopyByClick&&c.allowCopy?(e.openBlock(),e.createElementBlock("dd",ja,[e.createElementVNode("span",null,e.toDisplayString(c.value),1),e.createElementVNode("a",{href:"#",onClick:e.withModifiers(d=>l.copyToClipboard(c.value),["prevent"]),title:o.iconCopy.tooltip},[e.createVNode(r,{iconClass:o.iconCopy.iconClass,type:o.iconCopy.iconType},null,8,["iconClass","type"])],8,Ua)])):(e.openBlock(),e.createElementBlock("dd",{key:h},e.toDisplayString(c.value),1))],64))),128))]),o.additionalInformation?(e.openBlock(),e.createElementBlock("p",Wa,e.toDisplayString(o.additionalInformation),1)):e.createCommentVNode("",!0)],64))])}const Ja=B(za,[["render",Ga]]),Ka={name:"CmdForm",emits:["submit"],data(){return{errorOccurred:!1,formValues:{}}},props:{formAction:{type:String,required:!1},useSlot:{type:Boolean,default:!0},formElements:{type:Array,required:!1},novalidate:{type:Boolean,default:!0},useValidation:{type:Boolean,default:!0},useFieldset:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},submitButton:{type:Object,default(){return{iconClass:"icon-check",text:"Submit",type:"submit",position:"insideFieldset",primary:!0}}}},methods:{createHtmlId:ft,submitFormData(t){let n={};this.formElements&&this.formElements.forEach(o=>{n[o.name]=this.formValues[o.name]}),this.$emit("submit",{originalEvent:t,formdata:n})},onSubmit(t){this.useValidation?t.target.checkValidity()?(this.errorOccurred=!1,this.submitFormData(t)):(t.preventDefault(),this.errorOccurred=!0):this.submitFormData(t)}},watch:{formElements:{handler(){var t;this.formValues={},(t=this.formElements)==null||t.forEach(n=>{n.type==="checkbox"?(this.formValues[n.name]||(this.formValues[n.name]=[]),n.value!=null&&this.formValues[n.name].push(n.value)):this.formValues[n.name]=n.value??""})},immediate:!0,deep:!0}}},Za=["action","data-use-validation","novalidate"],Ya={class:"flex-container"},Xa=["type"],Qa={key:1},$a={key:0,class:"button-wrapper"},va=["type"],es={key:1};function ts(t,n,o,a,i,l){const s=A;return e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass(["cmd-form",{error:i.errorOccurred}]),action:o.formAction,"data-use-validation":o.useValidation,onSubmit:n[0]||(n[0]=(...r)=>l.onSubmit&&l.onSubmit(...r)),novalidate:o.novalidate},[o.useFieldset?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("fieldset",Ya,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.formElements,(r,c)=>(e.openBlock(),e.createBlock(s,{key:c,element:r.element||"input",type:r.type||"text",name:r.name,class:e.normalizeClass(r.htmlClass),id:r.id||l.createHtmlId(),modelValue:i.formValues[r.name],"onUpdate:modelValue":h=>i.formValues[r.name]=h,inputValue:r.inputValue,fieldIconClass:r.innerIconClass,selectOptions:r.selectOptions,labelText:r.labelText,placeholder:r.placeholder,required:r.required,disabled:r.disabled,autocomplete:r.autocomplete,minlength:r.minlength,maxlength:r.maxlength,nativeButton:r.nativeButton},null,8,["element","type","name","class","id","modelValue","onUpdate:modelValue","inputValue","fieldIconClass","selectOptions","labelText","placeholder","required","disabled","autocomplete","minlength","maxlength","nativeButton"]))),128)),o.submitButton&&o.submitButton.position==="insideFieldset"?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["button",{primary:o.submitButton.primary}]),type:o.submitButton.type},[o.submitButton.iconClass?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.submitButton.iconClass)},null,2)):e.createCommentVNode("",!0),o.submitButton.text?(e.openBlock(),e.createElementBlock("span",Qa,e.toDisplayString(o.submitButton.text),1)):e.createCommentVNode("",!0)],10,Xa)):e.createCommentVNode("",!0)]),o.submitButton&&o.submitButton.position==="belowFieldset"?(e.openBlock(),e.createElementBlock("div",$a,[e.createElementVNode("button",{class:e.normalizeClass(["button",{primary:o.submitButton.primary}]),type:o.submitButton.type},[o.submitButton.iconClass?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.submitButton.iconClass)},null,2)):e.createCommentVNode("",!0),o.submitButton.text?(e.openBlock(),e.createElementBlock("span",es,e.toDisplayString(o.submitButton.text),1)):e.createCommentVNode("",!0)],10,va)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"button-row")],64)):e.renderSlot(t.$slots,"default",{key:1})],42,Za)}const yo=B(Ka,[["render",ts]]),os={data(){return{defaultMessageProperties:{"basic_form.legend":"Basic Form","basic_form.labeltext.salutation_male":"Mr.","basic_form.labeltext.salutation_female":"Mrs.","basic_form.labeltext.last_name":"Last name:","basic_form.placeholder.last_name":"Last name:","basic_form.labeltext.first_name":"First name:","basic_form.placeholder.first_name":"First name:","basic_form.labeltext.email":"Email:","basic_form.placeholder.email":"Email:","basic_form.labeltext.phone":"Phone:","basic_form.placeholder.phone":"Phone:","basic_form.labeltext.street_no":"Street/No.:","basic_form.placeholder.street_no":"Street/No.:","basic_form.labeltext.zip":"Zip:","basic_form.placeholder.zip":"Zip:","basic_form.labeltext.city":"City:","basic_form.placeholder.city":"City:","basic_form.labeltext.pobox":"PO Box:","basic_form.placeholder.pobox":"PO Box:","basic_form.labeltext.country":"Country:","basic_form.labeltext.additional_address_info":"Additional address information:","basic_form.placeholder.additional_address_info":"Additional address information","basic_form.labeltext.user_message":"Your message:","basic_form.placeholder.user_message":"Your message","basic_form.labeltext.data_privacy":"I accept handling and saving of my personal data a mentioned in the <a href='/content/data-privacy-en.html' class='fancybox'>private policy</a>."}}}},ne=class ne{constructor(n){Ie(this,"label");this.label=n}validate(n){return[n.lastName.error,n.lastName.errorMessage]=this.validateRequired(n.lastName.value,ne.PATTERN_SURNAME,this.label("form_error_invalid_surname"))[n.email.error,n.email.errorMessage]=this.validateRequired(n.email.value,ne.PATTERN_EMAIL,this.label("form_error_invalid_email"))[n.additionalText.error,n.additionalText.errorMessage]=this.validateRequired(n.additionalText.value,ne.PATTERN_MESSAGE,this.label("form_error_invalid_message")),n.acceptPrivacy.error=!1,n.error=n.lastName.error||n.email.error||n.additionalText.error,n}validatePrivacy(n){return n.acceptPrivacy.error=!n.acceptPrivacy.value,n.acceptPrivacy.errorMessage=n.acceptPrivacy.error?this.label("form_error_missing_privacy_consent"):"",n.error=n.error||n.acceptPrivacy.error,n}validateRequired(n,o,a){return!n||n.trim().length===0?[!0,this.label("form_error_empty")]:o&&!o.test(n)?[!0,a||this.label("form_error_invalid")]:[!1,""]}};Ie(ne,"PATTERN_SURNAME",/^[a-züöäßáéíóàèìòêîô '-]+$/i),Ie(ne,"PATTERN_EMAIL",/^[a-z\d._%+-]+@[a-z\d._%+-]+\.[a-z]{2,}$/i),Ie(ne,"PATTERN_MESSAGE",/^.{2,500}$/);let gt=ne;const ns={emits:["submit"],mixins:[j,os,ze],inject:{editModeContext:{default:null}},data(){return{validator:new gt(t=>t),formData:{salutation:{value:this.configuration.salutation.default},lastName:{value:""},firstName:{value:""},email:{value:""},phone:{value:""},streetNo:{value:""},zip:{value:""},city:{value:""},pobox:{value:""},country:{value:""},additionalAddressInfo:{value:""},userMessage:{value:""},acceptPrivacy:{value:!1}},cityBeforeZip:this.showCityBeforeZip}},props:{useNativeSubmit:{type:Boolean,default:!1},formAction:{type:String,required:!1},configuration:{type:Object,default(){return{salutation:{name:"salutation",default:"m",replaceInputType:!0},lastName:{name:"surname",required:!0,type:"text"},firstName:{required:!1,type:"text"},email:{required:!0,type:"email"},phone:{required:!1,type:"phone"},country:{required:!1,element:"select",selectOptions:[{text:"Please select...",value:""},{text:"United States",value:"us"},{text:"Germany",value:"de"}]},streetNo:{required:!1,type:"text"},zip:{required:!1,type:"number"},city:{required:!1,type:"text"},additionalAddressInfo:{required:!1,type:"text"},userMessage:{required:!1,element:"textarea"},acceptPrivacy:{required:!0,replaceInputType:!0}}}},showCityBeforeZip:{type:Boolean,default:!1},receiverEmailAddress:{type:String,default:""},submitButton:{type:Object,default(){return{iconClass:"icon-message-send",text:"Send mail",type:"submit",position:"belowFieldset",primary:!0}}},cmdHeadline:{type:Object,default(){return{headlineText:"Basic Form",headlineLevel:3}}},cmdForm:{type:Object,required:!1}},mounted(){var t,n;(n=(t=this.$refs.dataPrivacy)==null?void 0:t.querySelector(".fancybox"))==null||n.addEventListener("click",o=>{o.preventDefault(),openFancyBox({url:o.target.getAttribute("href")})})},methods:{onSubmit(t){if(this.onValidate(),this.formData=Object.assign({},this.validator.validatePrivacy(this.formData)),this.formData.error||this.useNativeSubmit){this.formData.error&&t.originalEvent.preventDefault();return}const n=new FormData,o=Object.keys(this.configuration);for(let a=0;a<o.length;a++)n.set(o[a],this.formData[o[a]].value);fetch(this.formAction,{method:"POST",body:n}).then(a=>{a.ok?console.log("CmdBasicForm","ok"):console.log("CmdBasicForm","fail")}).catch(a=>{console.error(a)}),t.originalEvent.preventDefault()},onCountrySelect(t){this.cityBeforeZip=t==="us"||t==="uk"},onValidate(){this.formData=Object.assign({},this.validator.validate(this.formData))},executeLink(t,n){t.fancybox&&(n.preventDefault(),openFancyBox({url:t}))},openDataPrivacy(t){openFancyBox({url:t})}},watch:{showCityBeforeZip(){this.cityBeforeZip=this.showCityBeforeZip}}},ls={class:"cmd-pages-basic-form"},is={key:0,class:"flex-container no-flex order-male-female"},as={key:1,class:"flex-container order-lastname-firstname"},ss={key:2,class:"flex-container order-phone-email"},rs={key:3,class:"flex-container"},cs=["innerHTML"];function ds(t,n,o,a,i,l){const s=M,r=A,c=yo;return e.openBlock(),e.createElementBlock("div",ls,[o.cmdHeadline?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createVNode(c,{onSubmit:l.onSubmit,novalidate:"novalidate",textLegend:t.getMessage("basic_form.legend"),submitButton:o.submitButton,formAction:o.formAction},{default:e.withCtx(()=>{var h,d,m,p,f,u,y,k,b,S,w,_,F,x,V,D,P,N,Z,Y,X,H,le,E,$,xe,Se,Ee,Ve,Te,Ne,W,wn,_n,xn,Sn,En,Vn,Tn,Nn;return[o.configuration.salutation?(e.openBlock(),e.createElementBlock("div",is,[e.createVNode(r,{element:"input",type:"radio",labelText:t.getMessage("basic_form.labeltext.salutation_male"),name:((h=o.configuration.salutation)==null?void 0:h.name)||"salutation",inputValue:"m",replaceInputType:(d=o.configuration.salutation)==null?void 0:d.replaceInputType,modelValue:i.formData.salutation.value,"onUpdate:modelValue":n[0]||(n[0]=O=>i.formData.salutation.value=O),onValidate:l.onValidate},null,8,["labelText","name","replaceInputType","modelValue","onValidate"]),e.createVNode(r,{element:"input",type:"radio",labelText:t.getMessage("basic_form.labeltext.salutation_female"),name:((m=o.configuration.salutation)==null?void 0:m.name)||"salutation",inputValue:"f",replaceInputType:(p=o.configuration.salutation)==null?void 0:p.replaceInputType,modelValue:i.formData.salutation.value,"onUpdate:modelValue":n[1]||(n[1]=O=>i.formData.salutation.value=O),onValidate:l.onValidate},null,8,["labelText","name","replaceInputType","modelValue","onValidate"])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"top"),o.configuration.lastName||o.configuration.firstName?(e.openBlock(),e.createElementBlock("div",as,[o.configuration.lastName?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:((f=o.configuration.lastName)==null?void 0:f.type)||"text",iconClass:"icon-user-profile",labelText:t.getMessage("basic_form.labeltext.last_name"),required:(u=o.configuration.lastName)==null?void 0:u.required,name:((y=o.configuration.lastName)==null?void 0:y.name)||"last-name",placeholder:t.getMessage("basic_form.placeholder.last_name"),modelValue:i.formData.lastName.value,"onUpdate:modelValue":n[2]||(n[2]=O=>i.formData.lastName.value=O),status:i.formData.lastName.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","required","name","placeholder","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.firstName?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((k=o.configuration.firstName)==null?void 0:k.type)||"text",iconClass:"icon-user-profile",labelText:t.getMessage("basic_form.labeltext.first_name"),placeholder:t.getMessage("basic_form.placeholder.first_name"),required:(b=o.configuration.firstName)==null?void 0:b.required,name:((S=o.configuration.firstName)==null?void 0:S.name)||"first-name",modelValue:i.formData.firstName.value,"onUpdate:modelValue":n[3]||(n[3]=O=>i.formData.firstName.value=O),status:i.formData.firstName.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.configuration.email||o.configuration.phone?(e.openBlock(),e.createElementBlock("div",ss,[o.configuration.email?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:((w=o.configuration.email)==null?void 0:w.type)||"email",iconClass:"icon-mail",labelText:t.getMessage("basic_form.labeltext.email"),placeholder:t.getMessage("basic_form.placeholder.email"),required:(_=o.configuration.email)==null?void 0:_.required,name:((F=o.configuration.email)==null?void 0:F.name)||"email",modelValue:i.formData.email.value,"onUpdate:modelValue":n[4]||(n[4]=O=>i.formData.email.value=O),status:i.formData.email.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.phone?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((x=o.configuration.phone)==null?void 0:x.type)||"tel",iconClass:"icon-phone",labelText:t.getMessage("basic_form.labeltext.phone"),placeholder:t.getMessage("basic_form.placeholder.phone"),modelValue:i.formData.phone.value,"onUpdate:modelValue":n[5]||(n[5]=O=>i.formData.phone.value=O),required:(V=o.configuration.phone)==null?void 0:V.required,name:((D=o.configuration.phone)==null?void 0:D.name)||"phone",status:i.formData.phone.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","modelValue","required","name","status","onValidate"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.configuration.streetNo||o.configuration.streetNo||o.configuration.zip&&o.configuration.city?(e.openBlock(),e.createElementBlock("div",rs,[o.configuration.country?(e.openBlock(),e.createBlock(r,{key:0,element:"select",labelText:t.getMessage("basic_form.labeltext.country"),selectOptions:(P=o.configuration.country)==null?void 0:P.selectOptions,required:(N=o.configuration.country)==null?void 0:N.required,name:((Z=o.configuration.country)==null?void 0:Z.name)||"country",modelValue:i.formData.country.value,"onUpdate:modelValue":[n[6]||(n[6]=O=>i.formData.country.value=O),l.onCountrySelect],status:i.formData.country.error?"error":"",onValidate:l.onValidate},null,8,["labelText","selectOptions","required","name","modelValue","status","onValidate","onUpdate:modelValue"])):e.createCommentVNode("",!0),o.configuration.streetNo?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((Y=o.configuration.streetNo)==null?void 0:Y.type)||"text",labelText:t.getMessage("basic_form.labeltext.street_no"),placeholder:t.getMessage("basic_form.placeholder.street_no"),required:(X=o.configuration.streetNo)==null?void 0:X.required,name:((H=o.configuration.streetNo)==null?void 0:H.name)||"street-no",modelValue:i.formData.streetNo.value,"onUpdate:modelValue":n[7]||(n[7]=O=>i.formData.streetNo.value=O),status:i.formData.streetNo.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.pobox?(e.openBlock(),e.createBlock(r,{key:2,element:"input",type:((le=o.configuration.pobox)==null?void 0:le.type)||"text",labelText:t.getMessage("basic_form.labeltext.pobox"),placeholder:t.getMessage("basic_form.placeholder.pobox"),required:(E=o.configuration.pobox)==null?void 0:E.required,name:(($=o.configuration.pobox)==null?void 0:$.name)||"pobox",modelValue:i.formData.pobox.value,"onUpdate:modelValue":n[8]||(n[8]=O=>i.formData.pobox.value=O),status:i.formData.pobox.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper",i.cityBeforeZip?"order-city-zip":"order-zip-city"])},[o.configuration.zip?(e.openBlock(),e.createBlock(r,{key:0,element:"input",class:"input-zip",type:((xe=o.configuration.zip)==null?void 0:xe.type)||"number",labelText:t.getMessage("basic_form.labeltext.zip"),placeholder:t.getMessage("basic_form.placeholder.zip"),required:(Se=o.configuration.zip)==null?void 0:Se.required,name:((Ee=o.configuration.zip)==null?void 0:Ee.name)||"zip",modelValue:i.formData.zip.value,"onUpdate:modelValue":n[9]||(n[9]=O=>i.formData.zip.value=O),status:i.formData.zip.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),o.configuration.city?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:((Ve=o.configuration.city)==null?void 0:Ve.type)||"text",labelText:t.getMessage("basic_form.labeltext.city"),placeholder:t.getMessage("basic_form.placeholder.city"),required:(Te=o.configuration.city)==null?void 0:Te.required,name:((Ne=o.configuration.city)==null?void 0:Ne.name)||"city",modelValue:i.formData.city.value,"onUpdate:modelValue":n[10]||(n[10]=O=>i.formData.city.value=O),status:i.formData.city.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0)],2),o.configuration.additionalAddressInfo?(e.openBlock(),e.createBlock(r,{key:3,element:"input",type:((W=o.configuration.additionalAddressInfo)==null?void 0:W.type)||"text",labelText:t.getMessage("basic_form.labeltext.additional_address_info"),placeholder:t.getMessage("basic_form.placeholder.additional_address_info"),required:(wn=o.configuration.additionalAddressInfo)==null?void 0:wn.required,name:((_n=o.configuration.additionalAddressInfo)==null?void 0:_n.name)||"additional-address-info",modelValue:i.formData.additionalAddressInfo.value,"onUpdate:modelValue":n[11]||(n[11]=O=>i.formData.additionalAddressInfo.value=O),status:i.formData.additionalAddressInfo.error?"error":"",onValidate:l.onValidate},null,8,["type","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.configuration.userMessage?(e.openBlock(),e.createBlock(r,{key:4,element:((xn=o.configuration.userMessage)==null?void 0:xn.element)||"textarea",labelText:t.getMessage("basic_form.labeltext.user_message"),placeholder:t.getMessage("basic_form.placeholder.user_message"),required:(Sn=o.configuration.userMessage)==null?void 0:Sn.required,name:((En=o.configuration.userMessage)==null?void 0:En.name)||"user-message",modelValue:i.formData.userMessage.value,"onUpdate:modelValue":n[12]||(n[12]=O=>i.formData.userMessage.value=O),status:i.formData.userMessage.error?"error":"",onValidate:l.onValidate},null,8,["element","labelText","placeholder","required","name","modelValue","status","onValidate"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"bottom"),o.configuration.acceptPrivacy?(e.openBlock(),e.createBlock(r,{key:5,element:"input",type:"checkbox",required:(Vn=o.configuration.acceptPrivacy)==null?void 0:Vn.required,name:((Tn=o.configuration.acceptPrivacy)==null?void 0:Tn.name)||"accept-privacy",replaceInputType:(Nn=o.configuration.acceptPrivacy)==null?void 0:Nn.replaceInputType,modelValue:i.formData.acceptPrivacy.value,"onUpdate:modelValue":n[13]||(n[13]=O=>i.formData.acceptPrivacy.value=O),status:i.formData.acceptPrivacy.error?"error":"",onValidate:l.onValidate},{labeltext:e.withCtx(()=>[e.createElementVNode("span",{ref:"dataPrivacy",innerHTML:t.getMessage("basic_form.labeltext.data_privacy")},null,8,cs)]),_:1},8,["required","name","replaceInputType","modelValue","status","onValidate"])):e.createCommentVNode("",!0)]}),_:3},8,["onSubmit","textLegend","submitButton","formAction"])])}const ko=B(ns,[["render",ds]]);function de(t){if(t){const n=t.lastIndexOf(".");if(n>-1)return t.substring(n+1)}return""}function Co(t,n,o,a,i){const l=[];if(t.size>a&&l.push("file too large"),n.includes(de(t.name))||l.push("disallowed file extension"),l.length){alert(l);return}const s=new Image;s.onload=()=>{if(s.width<o&&!confirm("width ("+s.width+" px) too small - at least "+o+" px required! Use trotzdem!")){alert("Cancel");return}URL.revokeObjectURL(s.src),typeof i=="function"?i(s.src):i.src=s.src},s.src=URL.createObjectURL(t)}const ms={name:"CmdImage",mixins:[z],data(){return{mediumMaxWidth:1023,smallMaxWidth:600,currentWindowWidth:window.innerWidth,allowedFileExtensions:["gif","jpg","jpeg","png","webp","svg"],uploadInitiated:!1,allowDrop:!1,showFigcaption:!0,figcaptionText:null,figcaptionPosition:null,figcaptionTextAlign:null,tooltip:null,alternativeText:null,newImageSource:null,positionOptions:[{text:"Above image",value:"top"},{text:"Below image",value:"bottom"}],textAlignOptions:[{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}},props:{image:{type:Object,required:!1},figcaption:{type:Object,required:!1},maxFileUploadSize:{type:Number,default:5e5},minImageWidth:{type:Number,default:600}},created(){window.addEventListener("resize",this.updateWindowWidth);const t=getComputedStyle(document.documentElement);this.mediumMaxWidth=parseInt(t.getPropertyValue("--medium-max-width")),this.smallMaxWidth=parseInt(t.getPropertyValue("--small-max-width"))},beforeUnmount(){window.removeEventListener("resize",this.updateWindowWidth)},computed:{imageComponentPath(){return this.componentPath||["props","cmdImage"]},imageSource(){var o;if(this.newImageSource)return this.newImageSource;const t=(o=this.image)==null?void 0:o.src;if(!t)return null;if(typeof t=="string")return t;const n=this.currentWindowWidth;return t.small&&n<=this.smallMaxWidth?t.small:t.medium&&n<=this.mediumMaxWidth?t.medium:t.large},textAlign(){var t;return(t=this.figcaption)!=null&&t.textAlign?"text-"+this.figcaption.textAlign:""},dragAndDropHandler(){return{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}},editableFigcaptionText:{get(){var t;return this.figcaptionText==null?(t=this.figcaption)==null?void 0:t.text:this.figcaptionText},set(t){this.figcaptionText=t}}},methods:{onImageLoaded(t){this.$emit("image-loaded",t)},itemProvider(){var n,o;const t=(o=(n=this.editModeConfig)==null?void 0:n.itemProviderOverwrite)==null?void 0:o.call(n);return{image:{src:"/media/images/demo-images/medium/landscape-01.jpg",alt:"Alternative Text",...(t==null?void 0:t.image)||{}},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},onAddItem(){this.$refs.editComponentWrapper.editComponent()},selectFiles(){this.$refs.formElement.getDomElement().querySelector("input[type='file']").click()},fileSelected(t){t.target.files.length>0&&Co(t.target.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,n=>this.newImageSource=n)},updateWindowWidth(){this.currentWindowWidth=window.innerWidth},getImage(){return{image:{...this.image},figcaption:{show:this.showFigcaption,position:this.figcaptionPosition,textAlign:this.figcaptionTextAlign,text:this.figcaptionText}}},dragEnter(t){this.dragOver(t)},dragOver(t){t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length>0&&(t.dataTransfer.dropEffect="none",t.dataTransfer.items[0].kind==="file"&&(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.allowDrop=!0))},dragLeave(){this.allowDrop=!1},drop(t){this.allowDrop=!1,t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(t.preventDefault(),Co(t.dataTransfer.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,n=>this.newImageSource=n))},addHandlerProvider(){const t={image:{id:ce(),src:"media/images/demo-images/large/landscape-06.jpg",srcImageLarge:"media/images/demo-images/large/landscape-06.jpg",alt:"Alternative Text"},figcaption:{show:!0,position:"bottom",text:"Figcaption",textAlign:"center"}};return q(this,{item(){return t}})},updateHandlerProvider(){const t=this.figcaptionText;return this.figcaptionText=null,q(this,{update(n){n.figcaption||(n.figcaption={}),n.figcaption.text=t}})}},watch:{figcaption:{handler(){var t,n,o,a;this.showFigcaption=(t=this.figcaption)==null?void 0:t.show,this.figcaptionText=(n=this.figcaption)==null?void 0:n.text,this.figcaptionPosition=(o=this.figcaption)==null?void 0:o.position,this.figcaptionTextAlign=(a=this.figcaption)==null?void 0:a.textAlign},immediate:!0,deep:!0}}},hs=["innerHTML"],fs=e.createElementVNode("span",{class:"icon-image"},null,-1),us=["src","alt","title"],ps=["src","alt","title"],gs=["innerHTML"],ys=[e.createElementVNode("span",{class:"icon-add"},null,-1),e.createElementVNode("span",null,"Add new image",-1)],ks=["innerHTML"],Cs=["src","alt","title"],bs=["innerHTML"];function Bs(t,n,o,a,i,l){var c,h,d,m,p,f,u,y,k;const s=A,r=te;return t.editModeContext?(e.openBlock(),e.createBlock(r,{key:0,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdImage",componentProps:{image:o.image,figcaption:o.figcaption},componentPath:l.imageComponentPath,allowDeleteComponent:!!l.imageSource,itemProvider:((c=t.editModeConfig)==null?void 0:c.allowAddItem)!==!1?l.itemProvider:null},{default:e.withCtx(b=>{var S,w,_,F,x,V,D,P,N,Z,Y,X;return[e.createElementVNode("figure",{class:e.normalizeClass(["cmd-image flex-container no-gap vertical",l.textAlign])},[(S=o.figcaption)!=null&&S.show&&((w=o.figcaption)==null?void 0:w.position)==="top"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b.editing?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:e.normalizeClass([l.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",modelValue:l.editableFigcaptionText,"onUpdate:modelValue":n[0]||(n[0]=H=>l.editableFigcaptionText=H)},null,8,["class","modelValue"])):(_=o.figcaption)!=null&&_.text?(e.openBlock(),e.createElementBlock("figcaption",{key:1,innerHTML:(F=o.figcaption)==null?void 0:F.text},null,8,hs)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),b.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("a",e.mergeProps({href:"#",class:["box drop-area flex-container vertical",{"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0),{onClick:n[1]||(n[1]=e.withModifiers((...H)=>l.selectFiles&&l.selectFiles(...H),["prevent"])),title:"Drag new image to this area to replace old one!"}),[fs,e.createElementVNode("img",{src:l.imageSource,alt:(x=o.image)==null?void 0:x.alt,title:(V=o.image)==null?void 0:V.tooltip},null,8,us)],16),e.createVNode(s,{class:"hidden",element:"input",type:"file",labelText:"Select new image",disabled:i.uploadInitiated,onChange:l.fileSelected,ref:"formElement"},null,8,["disabled","onChange"])],64)):l.imageSource?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.imageSource,alt:(D=o.image)==null?void 0:D.alt,title:(P=o.image)==null?void 0:P.tooltip},null,8,ps)):e.createCommentVNode("",!0),(N=o.figcaption)!=null&&N.show&&((Z=o.figcaption)==null?void 0:Z.position)!=="top"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b.editing?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:e.normalizeClass([l.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",showLabel:!1,modelValue:l.editableFigcaptionText,"onUpdate:modelValue":n[2]||(n[2]=H=>l.editableFigcaptionText=H),placeholder:"figcaption"},null,8,["class","modelValue"])):(Y=o.figcaption)!=null&&Y.text?(e.openBlock(),e.createElementBlock("figcaption",{key:1,innerHTML:(X=o.figcaption)==null?void 0:X.text},null,8,gs)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),!b.editing&&!l.imageSource?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",class:"button confirm",onClick:n[3]||(n[3]=(...H)=>l.onAddItem&&l.onAddItem(...H))},ys)):e.createCommentVNode("",!0)],2)]}),_:1},8,["componentProps","componentPath","allowDeleteComponent","itemProvider"])):(e.openBlock(),e.createElementBlock("figure",{key:1,class:e.normalizeClass(["cmd-image",l.textAlign])},[(h=o.figcaption)!=null&&h.show&&((d=o.figcaption)==null?void 0:d.position)==="top"?(e.openBlock(),e.createElementBlock("figcaption",{key:0,innerHTML:(m=o.figcaption)==null?void 0:m.text},null,8,ks)):e.createCommentVNode("",!0),e.createElementVNode("img",{src:l.imageSource,alt:(p=o.image)==null?void 0:p.alt,title:(f=o.image)==null?void 0:f.tooltip,onLoad:n[4]||(n[4]=(...b)=>l.onImageLoaded&&l.onImageLoaded(...b))},null,40,Cs),(u=o.figcaption)!=null&&u.show&&((y=o.figcaption)==null?void 0:y.position)!=="top"?(e.openBlock(),e.createElementBlock("figcaption",{key:1,innerHTML:(k=o.figcaption)==null?void 0:k.text},null,8,bs)):e.createCommentVNode("",!0)],2))}const ae=B(ms,[["render",Bs]]),ws={name:"CmdSlideButton",props:{slideButtonType:{type:String,default:"next",validator(t){return t==="next"||t==="prev"||t==="up"||t==="down"}},slideButtons:{type:Object,default:function(){return{prev:{iconClass:"icon-chevron-one-stripe-left",tooltip:"Previous"},next:{iconClass:"icon-chevron-one-stripe-right",tooltip:"Next"},up:{iconClass:"icon-chevron-one-stripe-up",tooltip:"Previous"},down:{iconClass:"icon-chevron-one-stripe-down",tooltip:"Next"}}}}},computed:{getDirection(){return this.slideButtons[this.slideButtonType]?this.slideButtons[this.slideButtonType]:(console.warn("Property 'slideButtonType' does not match slideButtons-key"),{})}}},_s=["title"];function xs(t,n,o,a,i,l){const s=I;return e.openBlock(),e.createElementBlock("a",{href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),class:e.normalizeClass(["cmd-slide-button","button","keep-behavior-on-small-devices",o.slideButtonType]),title:l.getDirection.tooltip},[e.createVNode(s,{iconClass:l.getDirection.iconClass||"next"},null,8,["iconClass"])],10,_s)}const ke=B(ws,[["render",xs]]),Ss={name:"CmdThumbnailScroller",emits:["click"],mixins:[j,{data(){return{defaultMessageProperties:{"cmdthumbnailscroller.tooltip.open_large_image":"Open large image","cmdthumbnailscroller.tooltip.open_url":"Open URL in a new tab","cmdthumbnailscroller.tooltip.open":"Open"}}}},z],data(){return{items:[],showSlidebuttons:!0}},props:{orientation:{type:String,default:"horizontal"},fullWidth:{type:Boolean,default:!1},largeIcons:{type:Boolean,default:!1},contentType:{type:String,default:"image",validator(t){return t==="image"||t==="text"}},executeOnClick:{type:String,default:"fancybox",validator(t){return t==="fancybox"||t==="url"||t==="emit"}},thumbnailScrollerItems:{type:Array,required:!0},allowOpenFancyBox:{type:Boolean,default:!0},activeItemIndex:{type:Number,required:!1},figcaption:{type:Object,default(){return{show:!0,position:"below-image"}}},useGalleryScroller:{type:Boolean,default:!1},cmdHeadline:{type:Object,required:!1},cmdSlideButtons:{type:Object,default(){return{next:{next:{type:"next",iconClass:"icon-chevron-one-stripe-right",tooltip:"Next"}},prev:{prev:{type:"prev",iconClass:"icon-chevron-one-stripe-left",tooltip:"Previous"}}}}}},mounted(){const t=this.$refs["thumbnail-scroller"],n=t.querySelector("ul");new ResizeObserver(()=>this.toggleSlideButtons(n)).observe(t)},computed:{tooltip(){return this.contentType==="image"?this.getMessage("cmdthumbnailscroller.tooltip.open_large_image"):this.executeOnClick==="url"?this.getMessage("cmdthumbnailscroller.tooltip.open_url"):this.getMessage("cmdthumbnailscroller.tooltip.open")},fullWidthClass(){return this.orientation==="horizontal"?"full-width":null}},methods:{itemProvider(){return{image:{id:ce(),src:"/media/images/demo-images/small/landscape-01.jpg",srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",alt:"Alternative Text",tooltip:"Tooltip 1"},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},onAddItem(){this.editModeContext.content.addContent(ee(this,"props","thumbnailScrollerItems",-1),this.itemProvider)},imageStructure(){return{itemProviderOverwrite:()=>({image:{id:ce(),src:"/media/images/demo-images/small/landscape-01.jpg",srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",tooltip:"Tooltip DE"}})}},toggleSlideButtons(t){this.showSlidebuttons=t.scrollWidth>t.clientWidth},showNextItem(){const t=this.items.shift();t&&this.items.push(t)},showPrevItem(){const t=this.items.pop();t&&this.items.unshift(t)},showFancyBox(t){this.allowOpenFancyBox&&Ce({fancyBoxGallery:this.items,defaultGalleryIndex:t}),this.emitCurrentItemId(t)},emitCurrentItemId(t){if(this.contentType==="image"){this.$emit("click",this.items[t].image.id);return}this.$emit("click",this.items[t].id)},executeLink(t,n){this.executeOnClick==="emit"?(n.preventDefault(),this.emitCurrentItemId(t)):this.executeOnClick==="fancybox"&&(n.preventDefault(),this.showFancyBox(t))}},watch:{thumbnailScrollerItems:{handler(){this.items=this.thumbnailScrollerItems.map(t=>{let n;return this.contentType==="image"?(n={image:{...t.image},figcaption:{...t.figcaption}},n.image.srcImageSmall&&(n.image.src=n.image.srcImageSmall)):n={...t},n})},immediate:!0,deep:!0}}},Es={class:"inner-thumbnail-wrapper"},Vs=["href","onClick","title","target"],Ts={key:1},Ns={key:1},Is={key:0},Fs=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new thumbnail-scroller-image",-1)];function Os(t,n,o,a,i,l){var d;const s=M,r=ke,c=ae,h=I;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-thumbnail-scroller",{"gallery-scroller":o.useGalleryScroller,"large-icons":o.largeIcons,vertical:o.orientation==="vertical"},l.fullWidthClass]),ref:"thumbnail-scroller"},[(d=o.cmdHeadline)!=null&&d.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",Es,[i.showSlidebuttons?(e.openBlock(),e.createBlock(r,{key:0,onClick:e.withModifiers(l.showPrevItem,["prevent"]),slideButtonType:"prev"},null,8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"slide",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(m,p)=>(e.openBlock(),e.createElementBlock("li",{key:p},[t.editModeContext?o.contentType==="image"?(e.openBlock(),e.createBlock(c,{key:1,image:m.image,figcaption:m.figcaption,componentPath:["props","thumbnailScrollerItems",p],editModeConfig:l.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"])):o.contentType==="text"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),m.text?(e.openBlock(),e.createElementBlock("span",Ns,e.toDisplayString(m.text),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:0,href:o.executeOnClick==="url"?m.url:"#",onClick:f=>l.executeLink(p,f),class:e.normalizeClass([{active:o.activeItemIndex===p},m.id?"item-"+m.id:""]),title:l.tooltip,target:o.executeOnClick==="url"?"_blank":null},[o.contentType==="image"?(e.openBlock(),e.createBlock(c,{key:0,image:m.image,figcaption:m.figcaption},null,8,["image","figcaption"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.iconClass?(e.openBlock(),e.createBlock(h,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),m.text?(e.openBlock(),e.createElementBlock("span",Ts,e.toDisplayString(m.text),1)):e.createCommentVNode("",!0)],64))],10,Vs))]))),128)),!i.items.length&&o.contentType==="image"?(e.openBlock(),e.createElementBlock("li",Is,[e.createElementVNode("button",{type:"button",class:"button confirm",onClick:n[0]||(n[0]=(...m)=>l.onAddItem&&l.onAddItem(...m))},Fs)])):e.createCommentVNode("",!0)]),_:1}),i.showSlidebuttons?(e.openBlock(),e.createBlock(r,{key:1,onClick:e.withModifiers(l.showNextItem,["prevent"]),slideButtons:o.cmdSlideButtons.next},null,8,["onClick","slideButtons"])):e.createCommentVNode("",!0)])],2)}const bo=B(Ss,[["render",Os]]),Ce=t=>{const n=document.createElement("div");document.querySelector("body").appendChild(n),e.createApp(Bo,{...t,show:!0}).mount(n)},Bo=e.defineComponent({name:"CmdFancyBox",mixins:[ye],emits:["cancel","confirm"],data(){return{fancyBoxContent:null,fancyBoxElements:null,fancyBoxImageUrl:null,index:this.defaultGalleryIndex,printInGrayscale:!1,showFancyBox:this.show}},props:{defaultAriaLabelText:{type:String,required:!1},url:{type:String,required:!1},showPrintButtons:{type:Boolean,default:!1},showSubmitButtons:{type:Boolean,default:!1},fancyboxOptions:{type:Object,default(){return{closeIcon:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Close"},printButtons:{color:{iconClass:"icon-print",iconType:"auto",tooltip:"print in color"},grayscale:{iconClass:"icon-print",iconType:"auto",tooltip:"print in grayscale"}},submitButtons:{cancel:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Cancel",buttonText:"Cancel"},confirm:{iconClass:"icon-check",iconType:"auto",buttonText:"Confirm",tooltip:"Confirm",buttonType:"primary"}}}}},allowEscapeKey:{type:Boolean,default:!0},content:{type:String,required:!1},elements:{type:Array,required:!1},fancyBoxGallery:{type:Array,required:!1},defaultGalleryIndex:{type:Number,required:!1},show:{type:Boolean,default:!1},showOverlay:{type:Boolean,default:!0},cmdImage:{type:Object,required:!1},cmdHeadline:{type:Object,required:!1}},created(){this.$_FancyBox_scrollHandler=()=>{window.scrollTo(0,this.$_FancyBox_verticalScrollPosition)},this.$watch(()=>[this.url,this.content,this.elements],this.updateContentOnPropertyChange,{immediate:!0})},mounted(){this.showFancyBox&&this.showDialog()},computed:{largeGalleryImage(){const t={...this.fancyBoxGallery[this.index].image};return t.src=t.srcImageLarge,t},largeSingleImage(){var n;const t={...((n=this.cmdImage)==null?void 0:n.image)||{}};return this.fancyBoxImageUrl&&(t.src=this.fancyBoxImageUrl),t},ariaLabelText(){var t;return(t=this.fancyBoxGallery)!=null&&t.length?this.fancyBoxGallery[this.index].figcaption.text:this.defaultAriaLabelText}},methods:{onDialogCancel(t){if(!this.allowEscapeKey){t.preventDefault();return}this.close()},showDialog(){document.querySelector("body").classList.add("avoid-scrolling"),this.$refs.dialog.showModal(),this.$refs["close-dialog"].focus()},updateContentOnPropertyChange(){this.fancyBoxImageUrl=this.fancyBoxContent=this.fancyBoxElements=null,this.url?this.loadContent(this.url):this.content?this.fancyBoxContent=this.content:this.elements&&(this.fancyBoxElements=this.elements.map(t=>t.cloneNode(!0)),this.$nextTick(()=>{this.$refs.elements.append(...this.fancyBoxElements)}))},async loadContent(t){(await Ms(t)).startsWith("image/")?this.fancyBoxImageUrl=t:fetch(t).then(o=>o.text()).then(o=>this.fancyBoxContent=o).catch(o=>console.error(`Error loading ${this.url}: ${o}`))},showPrevItem(){this.index>0?this.index--:this.index=this.fancyBoxGallery.length-1},showItem(t){for(let n=0;n<this.fancyBoxGallery.length;n++)if(this.fancyBoxGallery[n].image.id===t){this.index=n;break}},showNextItem(){this.index<this.fancyBoxGallery.length-1?this.index++:this.index=0},close(){this.showFancyBox=!1,this.$emit("update:show",!1),document.querySelector("body").classList.remove("avoid-scrolling")},cancel(){this.$emit("cancel",!0),this.close()},confirm(){this.$emit("confirm",!0),this.close()}},watch:{show(t){this.showFancyBox=t},showFancyBox:{handler(){this.showFancyBox?this.showDialog():(document.querySelector("body").classList.remove("avoid-scrolling"),this.$refs.dialog.close())}}}});async function Ms(t){const n=await fetch(t,{method:"HEAD"});return n.ok?(n.headers.get("Content-Type")||"").split(";")[0]:"text/html"}const Ds=Bo,Ls=["aria-label"],Ps={class:"flex-container"},As={key:1,class:"button-wrapper no-flex"},Hs=["title"],qs=["title"],zs=["title"],Rs={key:0,class:"content"},js=["innerHTML"],Us={key:2,class:"content",ref:"elements"},Ws={key:3,class:"content"},Gs={key:4,class:"content"},Js={key:0,class:"flex-container no-flex"},Ks=["title"],Zs={key:1},Ys=["title"],Xs={key:1};function Qs(t,n,o,a,i,l){var m,p,f,u,y,k,b,S,w,_,F,x,V,D,P,N,Z,Y,X,H,le,E,$,xe,Se,Ee,Ve,Te,Ne;const s=M,r=I,c=ae,h=ke,d=bo;return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("dialog",{ref:"dialog",class:e.normalizeClass(["cmd-fancybox",{"show-overlay":t.showOverlay,image:t.fancyBoxImageUrl||t.fancyBoxGallery,"image-gallery":t.fancyBoxGallery}]),"aria-label":t.ariaLabelText,onCancel:n[5]||(n[5]=(...W)=>t.onDialogCancel&&t.onDialogCancel(...W))},[e.createElementVNode("header",Ps,[(m=t.cmdHeadline)!=null&&m.show?(e.openBlock(),e.createBlock(s,{key:0,headlineText:(p=t.cmdHeadline)==null?void 0:p.headlineText,headlineLevel:(f=t.cmdHeadline)==null?void 0:f.headlineLevel,id:t.htmlId},null,8,["headlineText","headlineLevel","id"])):e.createCommentVNode("",!0),(u=t.fancyboxOptions.printButtons)!=null&&u.color||(y=t.fancyboxOptions.printButtons)!=null&&y.grayscale||t.fancyboxOptions.closeIcon?(e.openBlock(),e.createElementBlock("div",As,[t.showPrintButtons&&((k=t.fancyboxOptions.printButtons)!=null&&k.color)?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:"button print-color",title:(b=t.fancyboxOptions.printButtons.color)==null?void 0:b.tooltip,onClick:n[0]||(n[0]=e.withModifiers(W=>t.printInGrayscale=!1,["prevent"]))},[e.createVNode(r,{iconClass:(S=t.fancyboxOptions.printButtons.color)==null?void 0:S.iconClass,type:(w=t.fancyboxOptions.printButtons.color)==null?void 0:w.iconType},null,8,["iconClass","type"])],8,Hs)):e.createCommentVNode("",!0),t.showPrintButtons&&((_=t.fancyboxOptions.printButtons)!=null&&_.grayscale)?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:"button print-grayscale",title:(F=t.fancyboxOptions.printButtons.grayscale)==null?void 0:F.tooltip,onClick:n[1]||(n[1]=e.withModifiers(W=>t.printInGrayscale=!0,["prevent"]))},[e.createVNode(r,{iconClass:(x=t.fancyboxOptions.printButtons.grayscale)==null?void 0:x.iconClass,type:(V=t.fancyboxOptions.printButtons.grayscale)==null?void 0:V.iconType},null,8,["iconClass","type"])],8,qs)):e.createCommentVNode("",!0),t.fancyboxOptions.closeIcon?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",class:"button",id:"close-dialog",title:t.fancyboxOptions.closeIcon.tooltip,ref:"close-dialog",onClick:n[2]||(n[2]=e.withModifiers((...W)=>t.close&&t.close(...W),["prevent"]))},[e.createVNode(r,{iconClass:t.fancyboxOptions.closeIcon.iconClass,type:t.fancyboxOptions.closeIcon.iconType},null,8,["iconClass","type"])],8,zs)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["outer-content-wrapper",{grayscale:t.printInGrayscale}])},[t.fancyBoxImageUrl||(D=t.cmdImage)!=null&&D.image?(e.openBlock(),e.createElementBlock("div",Rs,[e.createVNode(c,{image:t.largeSingleImage,figcaption:(P=t.cmdImage)==null?void 0:P.figcaption},null,8,["image","figcaption"])])):t.fancyBoxContent?(e.openBlock(),e.createElementBlock("div",{key:1,class:"content",innerHTML:t.fancyBoxContent},null,8,js)):t.fancyBoxElements?(e.openBlock(),e.createElementBlock("div",Us,null,512)):t.fancyBoxGallery?(e.openBlock(),e.createElementBlock("div",Ws,[e.createVNode(h,{onClick:e.withModifiers(t.showPrevItem,["prevent"]),slideButtonType:"prev"},null,8,["onClick"]),e.createVNode(c,{image:t.largeGalleryImage,figcaption:t.fancyBoxGallery[t.index].figcaption},null,8,["image","figcaption"]),e.createVNode(h,{onClick:e.withModifiers(t.showNextItem,["prevent"])},null,8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",Gs,[e.renderSlot(t.$slots,"default")]))],2),t.showSubmitButtons&&t.fancyboxOptions.submitButtons?(e.openBlock(),e.createElementBlock("footer",Js,[(N=t.fancyboxOptions.submitButtons)!=null&&N.cancel?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[3]||(n[3]=(...W)=>t.cancel&&t.cancel(...W)),title:(Z=t.fancyboxOptions.submitButtons.cancel)==null?void 0:Z.tooltip},[(Y=t.fancyboxOptions.submitButtons.cancel)!=null&&Y.iconClass?(e.openBlock(),e.createBlock(r,{key:0,iconClass:(X=t.fancyboxOptions.submitButtons.cancel)==null?void 0:X.iconClass,type:(H=t.fancyboxOptions.submitButtons.cancel)==null?void 0:H.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),(le=t.fancyboxOptions.submitButtons.cancel)!=null&&le.buttonText?(e.openBlock(),e.createElementBlock("span",Zs,e.toDisplayString((E=t.fancyboxOptions.submitButtons.cancel)==null?void 0:E.buttonText),1)):e.createCommentVNode("",!0)],8,Ks)):e.createCommentVNode("",!0),($=t.fancyboxOptions.submitButtons)!=null&&$.confirm?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[4]||(n[4]=(...W)=>t.confirm&&t.confirm(...W)),title:(xe=t.fancyboxOptions.submitButtons.cancel)==null?void 0:xe.tooltip},[(Se=t.fancyboxOptions.submitButtons.confirm)!=null&&Se.iconClass?(e.openBlock(),e.createBlock(r,{key:0,iconClass:(Ee=t.fancyboxOptions.submitButtons.confirm)==null?void 0:Ee.iconClass,type:(Ve=t.fancyboxOptions.submitButtons.confirm)==null?void 0:Ve.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),(Te=t.fancyboxOptions.submitButtons.confirm)!=null&&Te.buttonText?(e.openBlock(),e.createElementBlock("span",Xs,e.toDisplayString((Ne=t.fancyboxOptions.submitButtons.confirm)==null?void 0:Ne.buttonText),1)):e.createCommentVNode("",!0)],8,Ys)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.fancyBoxGallery?(e.openBlock(),e.createBlock(d,{key:1,thumbnailScrollerItems:[...t.fancyBoxGallery],allowOpenFancyBox:!1,onClick:t.showItem,activeItemIndex:t.index},null,8,["thumbnailScrollerItems","onClick","activeItemIndex"])):e.createCommentVNode("",!0)],42,Ls)])}const $s=B(Ds,[["render",Qs]]),vs={name:"CmdListOfLinksItem",inheritAttrs:!1,mixins:[z],data(){return{editableText:this.link.text}},props:{link:{type:Object,required:!1}},methods:{updateHandlerProvider(){const t=this.editableText;return q(this,{update(n){n.text=t}})},getRoute(t){return getRoute(t)},executeLink(t,n){if(t.fancybox){n.preventDefault(),Ce({url:t.path,showSubmitButtons:t.showSubmitButtons});return}this.$emit("click",{link:t,originalEvent:n})}}},er={key:0,class:"cmd-list-of-links-item"},tr=["href","target","title"],or={key:1},nr={key:1},lr={key:2},ir={key:1,class:"input-wrapper"};function ar(t,n,o,a,i,l){const s=I,r=e.resolveComponent("router-link"),c=e.resolveComponent("CmdListOfLinksItem",!0),h=A;return t.editing?(e.openBlock(),e.createElementBlock("div",ir,[e.createVNode(h,{element:"input",type:"text",labelText:"Linktext",showLabel:!1,placeholder:"Linktext",modelValue:i.editableText,"onUpdate:modelValue":n[1]||(n[1]=d=>i.editableText=d)},null,8,["modelValue"])])):(e.openBlock(),e.createElementBlock("li",er,[o.link.type==="href"||o.link.type===void 0?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.link.path,target:o.link.target,onClick:n[0]||(n[0]=d=>l.executeLink(o.link,d)),title:o.link.tooltip&&o.link.tooltip!==void 0?o.link.tooltip:void 0},[o.link.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.link.iconClass,type:o.link.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.link.text?(e.openBlock(),e.createElementBlock("span",or,e.toDisplayString(o.link.text),1)):e.createCommentVNode("",!0)],8,tr)):o.link.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(o.link),title:o.link.tooltip},{default:e.withCtx(()=>[o.link.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.link.iconClass,type:o.link.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.link.text?(e.openBlock(),e.createElementBlock("span",nr,e.toDisplayString(o.link.text),1)):e.createCommentVNode("",!0)]),_:1},8,["to","title"])):e.createCommentVNode("",!0),t.editModeContext?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("ul",lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.link.children,(d,m)=>(e.openBlock(),e.createBlock(c,{key:m,link:d},null,8,["link"]))),128))]))]))}const sr=B(vs,[["render",ar]]),rr={name:"CmdListOfLinks",emits:["click"],mixins:[z],props:{useGap:{type:Boolean,default:!0},styleAsBox:{type:Boolean,default:!1},largeIcons:{type:Boolean,default:!1},sectionAnchors:{type:Boolean,default:!1},activeSection:{type:Number,default:0},showListStyleItems:{type:Boolean,default:!1},align:{type:String,default:"left",validator(t){return t==="left"||t==="center"||t==="right"}},cmdHeadline:{type:Object,required:!1},links:{type:Array,required:!1},orientation:{type:String,default:"vertical",validator(t){return t==="horizontal"||t==="vertical"}}},computed:{setStretchClass(){return this.largeIcons&&this.orientation==="horizontal"?"stretch":null}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","links",-1),this.itemProvider)},itemProvider(){return{iconClass:"icon-user-profile",type:"href",text:"Linktext",path:"#",tooltip:"Tooltip",target:"_blank"}},updateHandlerProvider(){return q(this,{update(t,n){const o=n==null?void 0:n.find(a=>a.name==="CmdHeadline");o&&(t.cmdHeadline=t.cmdHeadline||{},o.update(t.cmdHeadline))}})}}},cr={key:1},dr=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new entry",-1)];function mr(t,n,o,a,i,l){var h;const s=M,r=sr,c=te;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-list-of-links",{box:o.styleAsBox,horizontal:o.orientation==="horizontal","section-anchors":o.sectionAnchors,"large-icons":o.largeIcons,"show-list-style-items":o.showListStyleItems}])},[(h=o.cmdHeadline)!=null&&h.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass(["flex-container",{"no-gap":!o.useGap},"align-"+o.align,l.setStretchClass])},[t.editModeContext?(e.openBlock(),e.createElementBlock("li",cr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.links,(d,m)=>(e.openBlock(),e.createBlock(c,{key:"x"+m,class:"edit-items",showComponentName:!1,componentTag:"ul",componentName:"CmdLinkItem",componentProps:d,allowedComponentTypes:[],componentPath:["props","links",m],itemProvider:l.itemProvider},{default:e.withCtx(()=>[e.createVNode(r,{class:e.normalizeClass({active:o.sectionAnchors&&o.activeSection===m}),link:d},null,8,["class","link"])]),_:2},1032,["componentProps","componentPath","itemProvider"]))),128)),o.links.length===0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:n[0]||(n[0]=(...d)=>l.onAddItem&&l.onAddItem(...d))},dr)):e.createCommentVNode("",!0)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.links,(d,m)=>(e.openBlock(),e.createBlock(r,{key:m,class:e.normalizeClass({active:o.sectionAnchors&&o.activeSection===m}),link:d},null,8,["class","link"]))),128))],2)],2)}const yt=B(rr,[["render",mr]]),hr={name:"CmdLink",emits:["click"],props:{linkType:{type:String,default:"href",validator(t){return t==="href"||t==="router"||t==="button"}},path:{type:String,default:"#"},target:{type:String,default:""},icon:{type:Object,default:{}},text:{type:String,default:""},styleAsButton:{type:Boolean,default:!1},primaryButton:{type:Boolean,default:!1}},methods:{emitClick(t,n){this.$emit("click",{originalEvent:t,linkType:n})}}},fr=["href","target"],ur=["title"],pr={key:1},gr=["title"],yr=["title"],kr={key:1},Cr=["title"],br=["title"],Br={key:1},wr=["title"];function _r(t,n,o,a,i,l){const s=e.resolveComponent("router-link");return o.linkType==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.path,target:o.target,class:e.normalizeClass(["cmd-link",{button:o.styleAsButton,primary:o.primaryButton}]),onClick:n[0]||(n[0]=e.withModifiers(r=>l.emitClick(r,"href"),["prevent"]))},[o.icon.iconClass&&o.icon.position!=="right"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,ur)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("span",pr,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),o.icon.iconClass&&o.icon.position==="right"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,gr)):e.createCommentVNode("",!0)],10,fr)):o.linkType==="router"?(e.openBlock(),e.createBlock(s,{key:1,to:o.path,class:e.normalizeClass(["cmd-link",{button:o.styleAsButton,primary:o.primaryButton}]),onClick:n[1]||(n[1]=e.withModifiers(r=>l.emitClick(r,"router"),["prevent"]))},{default:e.withCtx(()=>[o.icon.iconClass&&o.icon.position!=="right"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,yr)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("span",kr,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),o.icon.iconClass&&o.icon.position==="right"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,Cr)):e.createCommentVNode("",!0)]),_:1},8,["to","class"])):o.linkType==="button"?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cmd-link button",{primary:o.primaryButton}]),type:"submit",onClick:n[2]||(n[2]=e.withModifiers(r=>l.emitClick(r,"button"),["prevent"]))},[o.icon.iconClass&&o.icon.position!=="right"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,br)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("span",Br,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),o.icon.iconClass&&o.icon.position==="right"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.icon.iconClass),title:o.icon.tooltip},null,10,wr)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}const kt=B(hr,[["render",_r]]),Ct={name:"CmdBox",mixins:[j,{data(){return{defaultMessageProperties:{"cmdbox.productbox.new":"New","cmdbox.productbox.article_no":"Article No:","cmdbox.contentbox.collapse_text":"Collapse text","cmdbox.contentbox.expand_text":"Expand text"}}}},{props:{globalCurrency:{type:Object,default(){return{symbol:"€",name:"Euro"}}}}}],emits:["click","toggle-collapse"],data(){return{open:this.collapsible?this.openCollapsedBox:!0,active:!0,showCutOffText:!1,calculatedBodyHeight:this.maxBoxBodyHeight}},props:{openCollapsedBox:{type:Boolean,required:!1},rowView:{type:Boolean,default:!1},boxType:{type:String,default:"content",validator(t){return t==="content"||t==="product"||t==="user"}},allowContentToScroll:{type:Boolean,default:!1},maxBoxBodyHeight:{type:String,default:"20rem"},collapsible:{type:Boolean,default:!1},cutoffTextLines:{type:Number,default:0},useDefaultPadding:{type:Boolean,default:!0},repeatHeadlineInBoxBody:{type:Boolean,default:!1},fadeLastLine:{type:Boolean,default:!0},useTransition:{type:Boolean,default:!0},boxBodyClass:{type:String,required:!1},defaultProfileIconClass:{type:String,default:"icon-user-profile"},product:{type:Object,required:!1},user:{type:Object,required:!1},profileType:{type:String,default:"business",validator(t){return t==="business"||t==="influencer"||t==="dating"}},useSlots:{type:Array,required:!1},image:{type:Object,required:!1},textBody:{type:String,default:""},iconOpen:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Close content",iconType:"auto"}}},iconClosed:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-down",tooltip:"Show content",iconType:"auto"}}},stretchHorizontally:{type:Boolean,default:!0},stretchVertically:{type:Boolean,default:!0},cmdHeadline:{type:Object,required:!1},cmdLink:{type:Object,default:{}}},computed:{toggleTransition(){return this.useTransition?"fade":""}},methods:{toggleContentVisibility(){this.open=!this.open,this.active=!this.active,this.$emit("toggle-collapse",this.open)},toggleCutOffText(){this.showCutOffText=!this.showCutOffText,this.$emit("toggle-cutofftext",this.showCutOffText)},clickOnProduct(t){this.$emit("click",t)},setFocus(){this.$nextTick(()=>{if(this.open){const t=this.$refs.cmdBox.querySelector(":is(input, select, textarea):first-of-type");t&&t.focus()}})}},watch:{openCollapsedBox(){this.collapsible&&(this.open=this.openCollapsedBox,this.setFocus())},open(){this.setFocus()}}},wo=()=>{e.useCssVars(t=>({f83c9ab2:t.cutoffTextLines}))},_o=Ct.setup;Ct.setup=_o?(t,n)=>(wo(),_o(t,n)):wo;const xr=["title"],Sr={key:0,class:"box-header"},Er=["innerHTML"],Vr=["src","alt"],Tr=["innerHTML"],Nr={key:2,class:"box-footer"},Ir={key:2,class:"box-footer"},Fr={class:"box-header flex-container vertical"},Or={key:0},Mr=["src","alt"],Dr={key:1},Lr={key:2,class:"ribbon-new"},Pr={key:3,class:"ribbon-discount"},Ar={class:"box-body"},Hr={key:0},qr={key:1,class:"price"},zr=["title"],Rr={key:2},jr={class:"box-header flex-container vertical"},Ur={key:0},Wr=["src","alt"],Gr={key:0,class:"user-name"},Jr={key:0,class:"user-age"},Kr={key:1},Zr=["title"],Yr={key:0,class:"user-name"},Xr={class:"box-body"},Qr={key:0,class:"user-name"},$r={key:1},vr={key:2},ec={key:3,class:"description"},tc={key:0,class:"tags"},oc={key:1,class:"box-footer"};function nc(t,n,o,a,i,l){var d,m,p,f,u,y,k,b,S,w;const s=M,r=I,c=kt,h=yt;return o.boxType==="content"?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"cmdBox",class:e.normalizeClass(["cmd-box box content",{open:i.open,collapsible:o.collapsible,"stretch-vertically":o.stretchVertically&&!o.collapsible,"stretch-horizontally":o.stretchHorizontally,"row-view":o.rowView}])},[o.collapsible?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:"box-header",title:i.open?o.iconOpen.tooltip:o.iconClosed.tooltip,onClick:n[0]||(n[0]=e.withModifiers((..._)=>l.toggleContentVisibility&&l.toggleContentVisibility(..._),["prevent"]))},[(d=o.useSlots)!=null&&d.includes("header")?e.renderSlot(t.$slots,"header",{key:0}):(m=o.cmdHeadline)!=null&&m.headlineText?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:1},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createVNode(r,{iconClass:i.open?o.iconOpen.iconClass:o.iconClosed.iconClass,type:i.open?o.iconOpen.iconType:o.iconClosed.iconType},null,8,["iconClass","type"])],8,xr)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(p=o.useSlots)!=null&&p.includes("header")||(f=o.cmdHeadline)!=null&&f.headlineText?(e.openBlock(),e.createElementBlock("div",Sr,[(u=o.useSlots)!=null&&u.includes("header")?e.renderSlot(t.$slots,"header",{key:0}):e.createCommentVNode("",!0),(y=o.cmdHeadline)!=null&&y.headlineText?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:1},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["box-body",o.boxBodyClass]),"aria-expanded":"true",role:"article"},[(k=o.useSlots)!=null&&k.includes("body")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["inner-box-body-wrapper",{"default-padding":o.useDefaultPadding,"allow-scroll":o.allowContentToScroll}]),ref:"boxBody",style:e.normalizeStyle(o.allowContentToScroll?"max-height: "+i.calculatedBodyHeight:null)},[e.renderSlot(t.$slots,"body",{},()=>[e.createVNode(e.TransitionGroup,{name:l.toggleTransition},{default:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass({"cutoff-text":o.cutoffTextLines>0,"fade-last-line":o.fadeLastLine&&!i.showCutOffText,"show-text":i.showCutOffText}),innerHTML:o.textBody},null,10,Er),o.cutoffTextLines>0?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[1]||(n[1]=e.withModifiers((..._)=>l.toggleCutOffText&&l.toggleCutOffText(..._),["prevent"]))},e.toDisplayString(i.showCutOffText?t.getMessage("cmdbox.contentbox.collapse_text"):t.getMessage("cmdbox.contentbox.expand_text")),1)):e.createCommentVNode("",!0)]),_:1},8,["name"])])],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["inner-box-body-wrapper",{"allow-scroll":o.allowContentToScroll}])},[o.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.image.src,alt:o.image.altText},null,8,Vr)):e.createCommentVNode("",!0),o.textBody?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({"default-padding":o.useDefaultPadding,"allow-scroll":o.allowContentToScroll})},[(b=o.cmdHeadline)!=null&&b.headlineText&&o.repeatHeadlineInBoxBody?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.textBody?(e.openBlock(),e.createElementBlock("p",{key:1,innerHTML:o.textBody},null,8,Tr)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),(S=o.cmdLink)!=null&&S.linkType?(e.openBlock(),e.createElementBlock("div",Nr,[e.createVNode(c,e.normalizeProps(e.guardReactiveProps(o.cmdLink)),null,16)])):e.createCommentVNode("",!0)],2))],2),[[e.vShow,i.open]]),(w=o.useSlots)!=null&&w.includes("footer")?(e.openBlock(),e.createElementBlock("div",Ir,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)],2)):o.boxType==="product"&&o.product?(e.openBlock(),e.createElementBlock("a",{key:1,class:e.normalizeClass(["cmd-box box product",{"stretch-vertically":o.stretchVertically,"stretch-horizontally":o.stretchHorizontally,"row-view":o.rowView}]),href:"#",onClick:n[2]||(n[2]=e.withModifiers(_=>l.clickOnProduct(o.product),["prevent"]))},[e.createElementVNode("div",Fr,[o.product.image!==void 0?(e.openBlock(),e.createElementBlock("figure",Or,[e.createElementVNode("img",{src:o.product.image.src,alt:o.product.image.alt},null,8,Mr),e.createElementVNode("figcaption",null,e.toDisplayString(o.product.name),1)])):(e.openBlock(),e.createElementBlock("p",Dr,e.toDisplayString(o.product.name),1)),o.product.new?(e.openBlock(),e.createElementBlock("div",Lr,[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmdbox.productbox.new")),1)])):e.createCommentVNode("",!0),o.product.discount?(e.openBlock(),e.createElementBlock("div",Pr,[e.createElementVNode("span",null,e.toDisplayString(o.product.discount),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ar,[o.product.articleNumber?(e.openBlock(),e.createElementBlock("p",Hr,e.toDisplayString(t.getMessage("cmdbox.productbox.article_no"))+" "+e.toDisplayString(o.product.articleNumber),1)):e.createCommentVNode("",!0),o.product.price?(e.openBlock(),e.createElementBlock("p",qr,[e.createElementVNode("span",null,e.toDisplayString(o.product.price),1),e.createElementVNode("span",{title:t.globalCurrency.name},e.toDisplayString(t.globalCurrency.symbol),9,zr)])):e.createCommentVNode("",!0),o.product.description?(e.openBlock(),e.createElementBlock("p",Rr,e.toDisplayString(o.product.description),1)):e.createCommentVNode("",!0)])],2)):o.boxType==="user"&&o.user?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cmd-box box user",o.profileType,{"stretch-vertically":o.stretchVertically,"stretch-horizontally":o.stretchHorizontally,"row-view":o.rowView}])},[e.createElementVNode("div",jr,[o.user.image?(e.openBlock(),e.createElementBlock("figure",Ur,[e.createElementVNode("img",{src:o.user.image.src,alt:o.user.image.alt},null,8,Wr),o.rowView?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("figcaption",Gr,[e.createTextVNode(e.toDisplayString(o.user.name),1),o.user.age?(e.openBlock(),e.createElementBlock("span",Jr," ("+e.toDisplayString(o.user.age)+")",1)):e.createCommentVNode("",!0)]))])):(e.openBlock(),e.createElementBlock("div",Kr,[e.createElementVNode("span",{class:e.normalizeClass(o.defaultProfileIconClass),title:o.user.name},null,10,Zr),o.rowView?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Yr,e.toDisplayString(o.user.name),1))]))]),e.createElementVNode("div",Xr,[o.rowView?(e.openBlock(),e.createElementBlock("p",Qr,e.toDisplayString(o.user.name),1)):e.createCommentVNode("",!0),o.user.profession?(e.openBlock(),e.createElementBlock("p",$r,e.toDisplayString(o.user.profession),1)):e.createCommentVNode("",!0),o.user.position?(e.openBlock(),e.createElementBlock("p",vr,e.toDisplayString(o.user.position),1)):e.createCommentVNode("",!0),o.user.description?(e.openBlock(),e.createElementBlock("p",ec,e.toDisplayString(o.user.description),1)):e.createCommentVNode("",!0)]),o.user.tags&&o.user.tags.length?(e.openBlock(),e.createElementBlock("ul",tc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.user.tags,(_,F)=>(e.openBlock(),e.createElementBlock("li",{key:F},e.toDisplayString(_),1))),128))])):e.createCommentVNode("",!0),o.user.links&&o.user.links.length?(e.openBlock(),e.createElementBlock("div",oc,[e.createVNode(h,{links:o.user.links,orientation:"horizontal",useGap:!1},null,8,["links"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}const bt=B(Ct,[["render",nc]]),Bt={name:"CmdBoxWrapper",data(){return{rowView:this.useRowViewAsDefault,collapsingBoxesOpen:!0,currentOpenBox:[],oneBoxPerRow:!1}},props:{openBoxesByDefault:{type:Array,required:!1},useGap:{type:Boolean,default:!1},useRowViewAsDefault:{type:Boolean,default:!1},stretchBoxesVertically:{type:Boolean,default:!0},allowUserToToggleOrientation:{type:Boolean,default:!0},allowTogglingCollapsingBoxes:{type:Boolean,default:!1},collapseBoxesIcon:{type:Object,default(){return{iconClass:"icon-chevron-two-stripes-down",tooltip:"Collapse all boxes"}}},expandBoxesIcon:{type:Object,default(){return{iconClass:"icon-chevron-two-stripes-up",tooltip:"Expand all boxes"}}},useFlexbox:{type:Boolean,default:!1},boxesPerRow:{type:[Number,Array],default:4},allowMultipleExpandedBoxes:{type:Boolean,default:!0},iconGridView:{type:Object,default(){return{iconClass:"icon-blocks-small",tooltip:"Toggle to row view"}}},iconRowView:{type:Object,default(){return{iconClass:"icon-rows",tooltip:"Toggle to grid view"}}},cmdHeadline:{type:Object,default(){return{headlineText:"",headlineLevel:4}}}},computed:{boxesPerRowLarge(){return this.boxesPerRowResponsive(0,4)},boxesPerRowMedium(){return this.boxesPerRowResponsive(1,3)},boxesPerRowSmall(){return this.boxesPerRowResponsive(2,1)}},methods:{toggleOrientation(){this.rowView=!this.rowView,this.oneBoxPerRow=this.rowView},boxIsOpen(t){return this.currentOpenBox.includes(t)},boxIsToggled(t){alert(t)},boxesPerRowResponsive(t,n){return this.oneBoxPerRow?1:typeof this.boxesPerRow=="number"?t===0?this.boxesPerRow:Math.min(this.boxesPerRow,n):this.boxesPerRow.length>t?this.boxesPerRow[t]:n},toggleCollapsingBoxes(){this.collapsingBoxesOpen=!this.collapsingBoxesOpen},boxToggled(t,n){if(this.allowMultipleExpandedBoxes)if(n)this.currentOpenBox.push(t);else{let o=this.currentOpenBox.indexOf(t);this.currentOpenBox.splice(o,1)}else this.currentOpenBox=[],n&&this.currentOpenBox.push(t)}},watch:{openBoxesByDefault:{handler(){this.currentOpenBox=[...this.openBoxesByDefault||[]]},immediate:!0},useRowViewAsDefault:{handler(){this.oneBoxPerRow=this.useRowViewAsDefault},immediate:!0}}},xo=()=>{e.useCssVars(t=>({"55a1c0a6":t.boxesPerRowLarge,"5ac88d7a":t.boxesPerRowMedium,"54d20d0e":t.boxesPerRowSmall}))},So=Bt.setup;Bt.setup=So?(t,n)=>(xo(),So(t,n)):xo;const lc={class:"cmd-box-wrapper"},ic={key:0,class:"flex-container headline-wrapper"},ac={key:1,class:"options-wrapper"},sc=["title"],rc=["title"];function cc(t,n,o,a,i,l){const s=M,r=I;return e.openBlock(),e.createElementBlock("div",lc,[o.cmdHeadline.headlineText||o.allowUserToToggleOrientation||o.allowTogglingCollapsingBoxes?(e.openBlock(),e.createElementBlock("div",ic,[o.cmdHeadline.headlineText?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.allowUserToToggleOrientation||o.allowTogglingCollapsingBoxes?(e.openBlock(),e.createElementBlock("div",ac,[o.allowTogglingCollapsingBoxes?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.toggleCollapsingBoxes&&l.toggleCollapsingBoxes(...c),["prevent"])),title:i.collapsingBoxesOpen?o.collapseBoxesIcon.tooltip:o.expandBoxesIcon.tooltip},[e.createVNode(r,{iconClass:i.collapsingBoxesOpen?o.expandBoxesIcon.iconClass:o.collapseBoxesIcon.iconClass,type:i.rowView?o.iconGridView.iconType:o.iconRowView.iconType},null,8,["iconClass","type"])],8,sc)):e.createCommentVNode("",!0),o.allowUserToToggleOrientation?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",onClick:n[1]||(n[1]=e.withModifiers((...c)=>l.toggleOrientation&&l.toggleOrientation(...c),["prevent"])),title:i.rowView?o.iconRowView.tooltip:o.iconGridView.tooltip},[e.createVNode(r,{iconClass:i.rowView?o.iconGridView.iconClass:o.iconRowView.iconClass,type:i.rowView?o.iconGridView.iconType:o.iconRowView.iconType},null,8,["iconClass","type"])],8,rc)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["inner-box-wrapper",o.useFlexbox?"flex-container":"grid-container-create-columns",{"no-gap":!o.useGap,"row-view":i.rowView,"stretch-boxes-vertically":o.stretchBoxesVertically}])},[e.renderSlot(t.$slots,"default",{collapsingBoxesOpen:i.collapsingBoxesOpen,boxToggled:l.boxToggled,boxIsOpen:l.boxIsOpen,rowView:i.rowView,onToggleCollapse:n[2]||(n[2]=(...c)=>l.boxIsToggled&&l.boxIsToggled(...c))})],2)])}const Eo=B(Bt,[["render",cc]]);function me(t){return t.path?t.path:((t.route==null||typeof t.route!="object"||!t.route.path&&!t.route.name)&&console.error("Error in router configuration. Expected object with 'path' or 'name', got",t.route),t.route)}const dc={name:"CmdBreadcrumbs",props:{breadcrumbLabel:{type:String,required:!1},breadcrumbLinks:{type:Array,required:!1},breadcrumbSeparator:{type:String,default:">"}},methods:{getRoute(t){return me(t)}}},mc={class:"cmd-breadcrumbs"},hc={key:0,class:"breadcrumb-label"},fc=["href"],uc={key:1},pc={key:1},gc={key:2},yc={key:1},kc={key:3};function Cc(t,n,o,a,i,l){const s=I,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ul",mc,[o.breadcrumbLabel?(e.openBlock(),e.createElementBlock("li",hc,e.toDisplayString(o.breadcrumbLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.breadcrumbLinks||[],(c,h)=>(e.openBlock(),e.createElementBlock("li",{key:h},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:c.path},[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",uc,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0)],8,fc)):c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(c)},{default:e.withCtx(()=>[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",pc,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",gc,[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",yc,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0)])),h<o.breadcrumbLinks.length-1?(e.openBlock(),e.createElementBlock("span",kc,e.toDisplayString(o.breadcrumbSeparator),1)):e.createCommentVNode("",!0)]))),128))])}const Vo=B(dc,[["render",Cc]]),bc={name:"CmdCompanyLogo",data(){return{prefersColorScheme:""}},props:{link:{type:Object,required:!1},pathDefaultLogo:{type:String,required:!0},pathDarkmodeLogo:{type:String,required:!1},altText:{type:String,required:!0}},computed:{pathCurrentLogo(){return this.prefersColorScheme==="light"||!this.pathDarkmodeLogo?this.pathDefaultLogo:this.pathDarkmodeLogo},image(){return{src:this.pathCurrentLogo,alt:this.altText}}},created(){this.toggleColorScheme(),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",this.onColorSchemeChange);const t=document.querySelector("html");this.$_observer=new MutationObserver(this.observeDom),this.$_observer.observe(t,{attributes:!0})},beforeUnmount(){window.matchMedia("(prefers-color-scheme: light)").removeEventListener("change",this.onColorSchemeChange),this.$_observer.disconnect()},methods:{onImageLoaded(t){this.$emit("image-loaded",t)},onColorSchemeChange(t){this.prefersColorScheme=t.matches?"light":"dark"},observeDom(t){for(let n=0;n<t.length;n++)if(t[n].type==="attributes"){this.toggleColorScheme();break}},getRoute(t){return me(t)},toggleColorScheme(){document.querySelector("html").classList.contains("light-mode")?this.prefersColorScheme="light":document.querySelector("html").classList.contains("dark-mode")?this.prefersColorScheme="dark":matchMedia("(prefers-color-scheme: light)").matches?this.prefersColorScheme="light":this.prefersColorScheme="dark"}}},Bc={class:"cmd-company-logo company-logo"},wc=["href","title"];function _c(t,n,o,a,i,l){var c,h,d,m,p,f;const s=ae,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",Bc,[((c=o.link)==null?void 0:c.type)==="router"?(e.openBlock(),e.createBlock(r,{key:0,to:(h=o.link)==null?void 0:h.path,title:(d=o.link)==null?void 0:d.tooltip},{default:e.withCtx(()=>[e.createVNode(s,{image:l.image,onImageLoaded:l.onImageLoaded},null,8,["image","onImageLoaded"])]),_:1},8,["to","title"])):((m=o.link)==null?void 0:m.type)==="href"?(e.openBlock(),e.createElementBlock("a",{key:1,href:(p=o.link)==null?void 0:p.path,title:(f=o.link)==null?void 0:f.tooltip},[e.createVNode(s,{image:l.image,onImageLoaded:l.onImageLoaded},null,8,["image","onImageLoaded"])],8,wc)):(e.openBlock(),e.createBlock(s,{key:2,image:l.image,onImageLoaded:l.onImageLoaded},null,8,["image","onImageLoaded"]))])}const To=B(bc,[["render",_c]]),xc={name:"CmdContainer",props:{contentAboveSlot:{type:String,required:!1},contentBelowSlot:{type:String,required:!1},containerType:{type:String,required:!1},contentOrientation:{type:String,default:"vertical",validator(t){return t==="horizontal"||t==="vertical"}},cmdHeadline:{type:Object,required:!1}},methods:{addHandlerProvider(){return""},oneSlotItem(){const t=this.$slots.default();return t.length===1&&typeof t[0].type=="symbol"&&Array.isArray(t[0].children)?t[0].children.length===1:t.length===1}},computed:{containerClass(){let t=null;switch(this.containerType){case"grid":t="grid-container-create-columns";break;case"flex":t="flex-container vertical";break;default:t=null;break}return t},setInnerClass(){if(this.containerType==="grid")return"grid-container-create-columns";if(this.containerType==="flex"){if(this.contentOrientation==="horizontal")return"flex-container";if(this.contentOrientation==="vertical")return"flex-container vertical"}return""}}},Sc={class:"cmd-container"},Ec=["innerHTML"],Vc=["innerHTML"];function Tc(t,n,o,a,i,l){const s=M;return e.openBlock(),e.createElementBlock("div",Sc,[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,"pre-headline-text":o.cmdHeadline.preHeadlineText,"headline-text":o.cmdHeadline.headlineText,"headline-level":o.cmdHeadline.headlineLevel},null,8,["pre-headline-text","headline-text","headline-level"])):e.createCommentVNode("",!0),o.contentAboveSlot?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:o.contentAboveSlot},null,8,Ec)):e.createCommentVNode("",!0),l.oneSlotItem()?e.renderSlot(t.$slots,"default",{key:2}):(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.setInnerClass)},[e.renderSlot(t.$slots,"default")],2)),o.contentBelowSlot?(e.openBlock(),e.createElementBlock("div",{key:4,innerHTML:o.contentBelowSlot},null,8,Vc)):e.createCommentVNode("",!0)])}const Nc=B(xc,[["render",Tc]]),Ic={name:"CmdCookieDisclaimer",mixins:[j,{data(){return{defaultMessageProperties:{"cmdcookiedisclaimer.title.cookie_cannot_be_disabled":"This cookie cannot be disabled, because it is required for functionality!","cmdcookiedisclaimer.title.toggle_to_accept_cookie":"Toggle to accept or reject this cookie!"}}}}],data(){return{showCookieDisclaimer:!0,dataPrivacyContent:""}},props:{useSlot:{type:Boolean,default:!1},modelValue:{type:Array,required:!1},cmdHeadlineCookieDisclaimer:{type:Object,default(){return{show:!0,headlineText:"Cookie disclaimer",headlineLevel:2}}},cmdBoxRequiredCookies:{type:Object,default(){return{collapsible:!0,showHeadline:!0,headlineText:"Required cookies",headlineLevel:3}}},cmdBoxOptionalCookies:{type:Object,default(){return{collapsible:!0,showHeadline:!0,headlineText:"Optional cookies",headlineLevel:3}}},cookieOptions:{type:Object,required:!1},buttonLabelAcceptAllCookies:{type:String,default:"Accept all cookies!"},buttonLabelAcceptCurrentSettings:{type:String,default:"Proceed with current settings!"}},computed:{acceptedCookies:{get(){var o,a;const t=this.modelValue?[...this.modelValue]:[],n=((a=(o=this.cookieOptions)==null?void 0:o.required)==null?void 0:a.cookies)||[];for(let i=0;i<n.length;i++)t.includes(n[i].value)||t.push(n[i].value);return t},set(t){this.$emit("update:modelValue",t)}}},methods:{acceptCurrentCookies(){this.$emit("close-cookie-disclaimer",this.acceptedCookies)},acceptAllCookies(){var a,i,l,s;const t=[],n=(i=(a=this.cookieOptions)==null?void 0:a.required)==null?void 0:i.cookies;if(n)for(let r=0;r<n.length;r++)t.push(n[r].value);const o=(s=(l=this.cookieOptions)==null?void 0:l.optional)==null?void 0:s.cookies;if(o)for(let r=0;r<o.length;r++)t.push(o[r].value);this.$emit("close-cookie-disclaimer",t)},openDataPrivacy(t){t.target.target||(t.preventDefault(),fetch(t.target.href).then(n=>n.text()).then(n=>{this.dataPrivacyContent=n}))}}},Fc={class:"cmd-cookie-disclaimer flex-container vertical"},Oc={key:0,class:"flex-container vertical"},Mc={key:0},Dc={key:1},Lc=["href","target"],Pc=["innerHTML"],Ac=e.createElementVNode("hr",null,null,-1),Hc={key:1,class:"flex-container vertical"},qc={key:0},zc={key:1},Rc=["href","target"],jc=["innerHTML"],Uc={class:"button-wrapper align-center"};function Wc(t,n,o,a,i,l){const s=M,r=A,c=bt;return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var h,d,m;return[e.createElementVNode("div",Fc,[o.useSlot?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(h=o.cmdHeadlineCookieDisclaimer)!=null&&h.show&&((d=o.cmdHeadlineCookieDisclaimer)!=null&&d.headlineText)&&((m=o.cmdHeadlineCookieDisclaimer)!=null&&m.headlineLevel)?(e.openBlock(),e.createBlock(s,{key:0,headlineText:o.cmdHeadlineCookieDisclaimer.headlineText,headlineLevel:o.cmdHeadlineCookieDisclaimer.headlineLevel},null,8,["headlineText","headlineLevel"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"cookie-options",{},()=>{var p,f,u,y,k,b,S,w;return[(p=o.cookieOptions)!=null&&p.required?(e.openBlock(),e.createElementBlock("div",Oc,[(f=o.cmdBoxRequiredCookies)!=null&&f.showHeadline?(e.openBlock(),e.createBlock(s,{key:0,"headline-text":(u=o.cmdBoxRequiredCookies)==null?void 0:u.headlineText,"headline-level":(y=o.cmdBoxRequiredCookies)==null?void 0:y.headlineLevel},null,8,["headline-text","headline-level"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.cookieOptions.required.cookies||[],(_,F)=>{var x;return e.openBlock(),e.createBlock(c,{useSlots:["header","body"],collapsible:(x=o.cmdBoxRequiredCookies)==null?void 0:x.collapsible,key:F},{header:e.withCtx(()=>[e.createVNode(r,{element:"input",type:"checkbox",modelValue:l.acceptedCookies,"onUpdate:modelValue":n[0]||(n[0]=V=>l.acceptedCookies=V),inputValue:_.value,labelText:_.labelText,disabled:_.disabled,id:_.id,toggleSwitch:!0,title:t.getMessage("cmdcookiedisclaimer.title.cookie_cannot_be_disabled")},null,8,["modelValue","inputValue","labelText","disabled","id","title"])]),body:e.withCtx(()=>[_.description?(e.openBlock(),e.createElementBlock("p",Mc,e.toDisplayString(_.description),1)):e.createCommentVNode("",!0),_.linkDataPrivacy?(e.openBlock(),e.createElementBlock("p",Dc,[e.createTextVNode(e.toDisplayString(_.linkDataPrivacy.label)+" ",1),e.createElementVNode("a",{onClick:n[1]||(n[1]=(...V)=>l.openDataPrivacy&&l.openDataPrivacy(...V)),href:_.linkDataPrivacy.link,target:_.linkDataPrivacy.target},e.toDisplayString(_.linkDataPrivacy.linkText),9,Lc)])):e.createCommentVNode("",!0),i.dataPrivacyContent?(e.openBlock(),e.createElementBlock("div",{key:2,innerHTML:i.dataPrivacyContent},null,8,Pc)):e.createCommentVNode("",!0)]),_:2},1032,["collapsible"])}),128))])):e.createCommentVNode("",!0),Ac,(k=o.cookieOptions)!=null&&k.optional?(e.openBlock(),e.createElementBlock("div",Hc,[(b=o.cmdBoxOptionalCookies)!=null&&b.showHeadline?(e.openBlock(),e.createBlock(s,{key:0,"headline-text":(S=o.cmdBoxOptionalCookies)==null?void 0:S.headlineText,"headline-level":(w=o.cmdBoxOptionalCookies)==null?void 0:w.headlineLevel},null,8,["headline-text","headline-level"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.cookieOptions.optional.cookies||[],(_,F)=>{var x;return e.openBlock(),e.createBlock(c,{useSlots:["header","body"],collapsible:(x=o.cmdBoxOptionalCookies)==null?void 0:x.collapsible,key:F},{header:e.withCtx(()=>[e.createVNode(r,{element:"input",type:"checkbox",modelValue:l.acceptedCookies,"onUpdate:modelValue":n[2]||(n[2]=V=>l.acceptedCookies=V),inputValue:_.value,labelText:_.labelText,disabled:_.disabled,id:_.id,toggleSwitch:!0,title:t.getMessage("cmdcookiedisclaimer.title.toggle_to_accept_cookie")},null,8,["modelValue","inputValue","labelText","disabled","id","title"])]),body:e.withCtx(()=>[_.description?(e.openBlock(),e.createElementBlock("p",qc,e.toDisplayString(_.description),1)):e.createCommentVNode("",!0),_.linkDataPrivacy?(e.openBlock(),e.createElementBlock("p",zc,[e.createTextVNode(e.toDisplayString(_.linkDataPrivacy.label)+" ",1),e.createElementVNode("a",{onClick:n[3]||(n[3]=(...V)=>l.openDataPrivacy&&l.openDataPrivacy(...V)),href:_.linkDataPrivacy.link,target:_.linkDataPrivacy.target},e.toDisplayString(_.linkDataPrivacy.linkText),9,Rc)])):e.createCommentVNode("",!0),i.dataPrivacyContent?(e.openBlock(),e.createElementBlock("div",{key:2,innerHTML:i.dataPrivacyContent},null,8,jc)):e.createCommentVNode("",!0)]),_:2},1032,["collapsible"])}),128))])):e.createCommentVNode("",!0)]}),e.renderSlot(t.$slots,"privacy-text"),e.createElementVNode("div",Uc,[o.buttonLabelAcceptCurrentSettings?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",onClick:n[4]||(n[4]=(...p)=>l.acceptCurrentCookies&&l.acceptCurrentCookies(...p))},[e.createElementVNode("span",null,e.toDisplayString(o.buttonLabelAcceptCurrentSettings),1)])):e.createCommentVNode("",!0),o.buttonLabelAcceptAllCookies?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"primary",onClick:n[5]||(n[5]=(...p)=>l.acceptAllCookies&&l.acceptAllCookies(...p))},[e.createElementVNode("span",null,e.toDisplayString(o.buttonLabelAcceptAllCookies),1)])):e.createCommentVNode("",!0)])],64))])]}),_:3})}const Gc=B(Ic,[["render",Wc]]),Jc={name:"CmdCopyrightWrapper"},Kc={class:"cmd-copyright-information",role:"contentinfo"},Zc=[e.createElementVNode("a",{href:"https://www.comand-cms.com",target:"comand-website",lang:"en",title:"CoManD-Website"},"© CoManD",-1)];function Yc(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",Kc,Zc)}const Xc=B(Jc,[["render",Yc]]),Qc={name:"CmdFakeSelect",inheritAttrs:!1,mixins:[j,{data(){return{defaultMessageProperties:{"cmdfakeselect.headline.requirements_for_input":"Requirements for input","cmdfakeselect.linktext.deselect_all_options":"Deselect all options","cmdfakeselect.linktext.select_all_options":"Select all options","cmdfakeselect.headline.an_option_is_selected":"An option is selected","cmdfakeselect.option.options_selected":"{0} options selected",...ht.data().defaultMessageProperties}}}},ze,ye,pt],data(){return{showOptions:!1,validationStatus:"",allOptionsSelected:!1}},props:{type:{type:String,default:"default",validator(t){return t==="default"||t==="color"||t==="country"||t==="content"||t==="checkboxOptions"}},optionLinkType:{type:String,default:"href",validator(t){return t==="href"||t==="router"}},modelValue:{type:[String,Number,Array],default:""},selectData:{type:Array,required:!1},showSelectAllOptions:{type:Boolean,default:!0},status:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},iconDropdown:{type:Object,default(){return{iconClass:"icon-chevron-one-stripe-down",tooltip:"Toggle dropdown visibility",iconType:"auto"}}},labelText:{type:String,required:!1},showLabel:{type:Boolean,default:!0},showStatusIcon:{type:Boolean,default:!0},pathFlags:{type:String,default:"/media/images/flags"},textPleaseSelect:{type:String,default:"Please select…"},iconSelectAllOptions:{type:Object,default(){return{iconClass:"icon-check",iconType:"auto"}}},iconDeselectAllOptions:{type:Object,default(){return{iconClass:"icon-cancel",iconType:"auto"}}}},computed:{validationTooltip(){return this.useCustomTooltip?this.validationStatus==="error"?this.getMessage("cmdformelement.validationTooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("cmdformelement.validationTooltip.information_is_filled_correctly"):this.getMessage("cmdformelement.validationTooltip.open_field_requirements"):this.getValidationMessage},optionName(){var t,n;if(this.type!=="checkboxOptions"&&this.type!=="content"&&this.modelValue){const o=this.selectData.find(a=>a.value===this.modelValue);if(o)return o.text}else if(this.type==="checkboxOptions"){if(this.modelValue.length===1)return(t=this.selectData.find(o=>String(o.value)===String(this.modelValue[0])))==null?void 0:t.text;if(this.modelValue.length>1)return this.getMessage("cmdfakeselect.option.options_selected",this.modelValue.length)}else if((n=this.selectData)!=null&&n.length)return this.selectData[0].text;return this.textPleaseSelect},optionIcon(){if(this.type==="default"){const t=this.selectData.find(n=>n.value===this.modelValue);return{iconClass:t==null?void 0:t.iconClass,tooltip:t==null?void 0:t.tooltip}}return null},optionCountry(){var t,n;return this.type==="country"?this.modelValue||((n=(t=this.selectData)==null?void 0:t[0])==null?void 0:n.value):null},optionColor(){var t,n;return this.type==="color"?this.modelValue||((n=(t=this.selectData)==null?void 0:t[0])==null?void 0:n.value):null},selectAllOptionsText(){return Array.isArray(this.modelValue)&&this.modelValue.length===this.selectData.length?(this.allOptionsSelected=!0,this.getMessage("cmdfakeselect.linktext.deselect_all_options")):(this.allOptionsSelected=!1,this.getMessage("cmdfakeselect.linktext.select_all_options"))}},methods:{toggleAllOptions(){this.validationStatus="success";const t=[];if(this.modelValue.length===this.selectData.length)this.$attrs.required&&(this.validationStatus="error");else for(let n=0;n<this.selectData.length;n++)t.push(String(this.selectData[n].value));this.$emit("update:modelValue",t)},toggleOptions(){this.$attrs.disabled!=="disabled"&&(this.showOptions=!this.showOptions)},compareValues(t){return this.modelValue.some(n=>n===t||n===String(t))},selectOption(t){this.validationStatus="success",this.$attrs.required!==void 0&&(t||(this.validationStatus="error")),this.showOptions=!1,this.$emit("update:modelValue",t)},optionSelect(t){this.validationStatus="success";let n=[...this.modelValue];t.target.checked?n.push(t.target.value):n=n.filter(o=>o!==t.target.value&&String(o)!==t.target.value),this.$attrs.required!==void 0&&!n.length&&(this.validationStatus="error"),this.$emit("update:modelValue",n)},closeOptions(){this.showOptions=!1},pathFlag(t){return this.pathFlags+"/flag-"+t+".svg"},onBlur(){this.validationStatus="success",this.$attrs.required!==void 0&&(!this.modelValue||this.modelValue.length===0)&&(this.validationStatus="error")},getRequirementMessage(){return this.getMessage("cmdfakeselect.headline.an_option_is_selected")}},watch:{status:{handler(){this.validationStatus=this.status},immediate:!0},selectData:{handler(){var t;this.type==="default"&&((t=this.selectData)!=null&&t.length)&&!this.selectData.some(n=>n.value===this.modelValue)&&this.$emit("update:modelValue",this.selectData[0].value)},immediate:!0,deep:!0}}},$c=["title","aria-labelledby","aria-required"],vc={key:0,class:"label-text"},ed=["id"],td={key:0,"aria-hidden":"true"},od=["title","aria-errormessage","id"],nd=["aria-expanded"],ld=["title"],id=["src","alt"],ad={key:3,class:"option-name"},sd={key:0,role:"listbox"},rd=["aria-selected"],cd=["onClick","title"],dd={key:1},md=["aria-expanded"],hd=["for"],fd=["value","checked","id"],ud=["onClick"],pd=["src","alt"],gd=["onClick"],yd={key:0,class:"select-all-options"};function kd(t,n,o,a,i,l){var h,d,m,p;const s=I,r=mt,c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([i.validationStatus,"cmd-fake-select label",{color:o.type==="color","has-state":i.validationStatus&&i.validationStatus!=="none",disabled:t.$attrs.disabled}]),title:t.$attrs.title,role:"listbox","aria-labelledby":t.htmlId,"aria-required":t.$attrs.required!==void 0,ref:"fakeselect"},[o.showLabel?(e.openBlock(),e.createElementBlock("span",vc,[e.createElementVNode("span",{id:t.htmlId},[e.createTextVNode(e.toDisplayString(o.labelText),1),t.$attrs.required!==void 0?(e.openBlock(),e.createElementBlock("sup",td,"*")):e.createCommentVNode("",!0)],8,ed),(t.$attrs.required||t.inputRequirements.length)&&o.showStatusIcon?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),title:l.validationTooltip,"aria-errormessage":t.tooltipId,"aria-live":"assertive",id:t.tooltipId},[e.createVNode(s,{iconClass:t.getStatusIconClass},null,8,["iconClass"])],8,od)):e.createCommentVNode("",!0),t.useCustomTooltip&&(i.validationStatus===""||i.validationStatus==="error")?(e.openBlock(),e.createBlock(r,{key:1,ref:"tooltip",validationStatus:i.validationStatus,validationMessage:t.getValidationMessage,relatedId:t.tooltipId,cmdListOfRequirements:t.listOfRequirements,role:i.validationStatus==="error"?"alert":"dialog"},null,8,["validationStatus","validationMessage","relatedId","cmdListOfRequirements","role"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass({open:i.showOptions}),onClickout:n[5]||(n[5]=(...f)=>l.closeOptions&&l.closeOptions(...f)),"aria-expanded":i.showOptions},[e.createElementVNode("li",null,[e.createElementVNode("a",{href:"#",onClick:n[1]||(n[1]=e.withModifiers((...f)=>l.toggleOptions&&l.toggleOptions(...f),["prevent"])),onBlur:n[2]||(n[2]=(...f)=>l.onBlur&&l.onBlur(...f)),title:(h=l.optionIcon)==null?void 0:h.tooltip},[o.type==="country"&&l.optionCountry?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.pathFlag(l.optionCountry),alt:l.optionCountry,class:e.normalizeClass(["flag",l.optionCountry])},null,10,id)):o.type==="color"?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle("background: "+l.optionColor)},null,4)):e.createCommentVNode("",!0),(d=l.optionIcon)!=null&&d.iconClass?(e.openBlock(),e.createBlock(s,{key:2,type:(m=l.optionIcon)==null?void 0:m.iconType,iconClass:(p=l.optionIcon)==null?void 0:p.iconClass},null,8,["type","iconClass"])):e.createCommentVNode("",!0),l.optionName?(e.openBlock(),e.createElementBlock("span",ad,e.toDisplayString(l.optionName),1)):e.createCommentVNode("",!0),o.iconDropdown?(e.openBlock(),e.createBlock(s,{key:4,iconClass:o.iconDropdown.iconClass,type:o.iconDropdown.iconType,title:o.iconDropdown.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0)],40,ld),o.type==="default"&&i.showOptions?(e.openBlock(),e.createElementBlock("ul",sd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectData,(f,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,role:"option","aria-selected":f.value===o.modelValue},[o.optionLinkType==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue}),title:f.tooltip},[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),f.text?(e.openBlock(),e.createElementBlock("span",dd,e.toDisplayString(f.text),1)):e.createCommentVNode("",!0)],10,cd)):e.createCommentVNode("",!0),o.optionLinkType==="router"?(e.openBlock(),e.createBlock(c,{key:1,to:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue})},{default:e.withCtx(()=>[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(f.text),1)]),_:2},1032,["onClick","class"])):e.createCommentVNode("",!0)],8,rd))),128))])):o.type!=="default"&&o.type!=="content"&&i.showOptions?(e.openBlock(),e.createElementBlock("ul",{key:1,class:e.normalizeClass({"checkbox-options":o.type==="checkboxOptions"}),"aria-expanded":i.showOptions},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.selectData,(f,u)=>(e.openBlock(),e.createElementBlock("li",{key:u},[o.type==="checkboxOptions"?(e.openBlock(),e.createElementBlock("label",{key:0,for:"option-"+(u+1),class:e.normalizeClass({active:o.modelValue.includes(`${f.value}`)})},[e.createElementVNode("input",{type:"checkbox",value:f.value,onChange:n[3]||(n[3]=(...y)=>l.optionSelect&&l.optionSelect(...y)),checked:l.compareValues(f.value),id:"option-"+(u+1)},null,40,fd),e.createElementVNode("span",null,e.toDisplayString(f.text),1)],10,hd)):o.type==="country"?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue})},[e.createElementVNode("img",{class:"flag",src:l.pathFlag(f.value),alt:f.text},null,8,pd),e.createElementVNode("span",null,e.toDisplayString(f.text),1)],10,ud)):o.type==="color"?(e.openBlock(),e.createElementBlock("a",{key:2,href:"#",onClick:e.withModifiers(y=>l.selectOption(f.value),["prevent"]),class:e.normalizeClass({active:f.value===o.modelValue})},[e.createElementVNode("span",{class:"color",style:e.normalizeStyle("background: "+f.value)},null,4),e.createElementVNode("span",null,e.toDisplayString(f.text),1)],10,gd)):e.createCommentVNode("",!0)]))),128)),o.showSelectAllOptions&&o.type==="checkboxOptions"?(e.openBlock(),e.createElementBlock("li",yd,[e.createElementVNode("a",{href:"#",onClick:n[4]||(n[4]=e.withModifiers((...f)=>l.toggleAllOptions&&l.toggleAllOptions(...f),["prevent"]))},[i.allOptionsSelected?(e.openBlock(),e.createBlock(s,{key:1,iconClass:o.iconDeselectAllOptions.iconClass,type:o.iconDeselectAllOptions.iconType},null,8,["iconClass","type"])):(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.iconSelectAllOptions.iconClass,type:o.iconSelectAllOptions.iconType},null,8,["iconClass","type"])),e.createElementVNode("span",null,e.toDisplayString(l.selectAllOptionsText),1)])])):e.createCommentVNode("",!0)],10,md)):o.type==="content"&&i.showOptions?e.renderSlot(t.$slots,"default",{key:2}):e.createCommentVNode("",!0)])],42,nd)],10,$c)}const No=B(Qc,[["render",kd]]),Cd={name:"CmdFormFilters",data(){return{options:[]}},props:{modelValue:{type:Array,required:!0},linkDeleteAllFilters:{type:Object,default(){return{text:"Delete all filters",icon:{show:!0,iconClass:"icon-error-circle",tooltip:""}}}},deleteFilterIcon:{type:Object,default(){return{iconClass:"icon-error-circle",tooltip:"Delete this filter",type:"auto"}}},selectedOptionsName:{type:Function,required:!0}},methods:{deleteAllFilters(){this.options=[],this.updateSelectedOptions()},deleteClickedFilter(t){this.options.splice(t,1),this.updateSelectedOptions()},updateSelectedOptions(){this.$emit("update:modelValue",this.options)}},watch:{modelValue:{handler(){this.modelValue?this.options=JSON.parse(JSON.stringify(this.modelValue)):this.options=[]},immediate:!0,deep:!0}}},bd={key:0,class:"cmd-form-filters"},Bd={key:0},wd={key:1},_d=["onClick","title"];function xd(t,n,o,a,i,l){const s=I;return i.options.length?(e.openBlock(),e.createElementBlock("ul",bd,[i.options.length>1?(e.openBlock(),e.createElementBlock("li",Bd,[e.createElementVNode("a",{href:"#",onClick:n[0]||(n[0]=e.withModifiers((...r)=>l.deleteAllFilters&&l.deleteAllFilters(...r),["prevent"]))},[o.linkDeleteAllFilters.icon&&o.linkDeleteAllFilters.icon.show?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.linkDeleteAllFilters.icon.iconClass,title:o.linkDeleteAllFilters.icon.tooltip},null,8,["iconClass","title"])):e.createCommentVNode("",!0),o.linkDeleteAllFilters.text?(e.openBlock(),e.createElementBlock("span",wd,e.toDisplayString(o.linkDeleteAllFilters.text),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,(r,c)=>(e.openBlock(),e.createElementBlock("li",{key:c},[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(h=>l.deleteClickedFilter(c),["prevent"]),title:o.deleteFilterIcon.tooltip},[e.createElementVNode("span",null,e.toDisplayString(o.selectedOptionsName(r)),1),e.createVNode(s,{iconClass:o.deleteFilterIcon.iconClass,type:o.deleteFilterIcon.iconType},null,8,["iconClass","type"])],8,_d)]))),128))])):e.createCommentVNode("",!0)}const Io=B(Cd,[["render",xd]]),Sd={name:"CmdGoogleMaps",props:{address:{type:Object,required:!0}},computed:{locateAddress(){if(this.address){const t=new URL("https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed");return t.searchParams.set("hl","de"),t.searchParams.set("q",[this.address.streetNo,this.address.zip,this.address.city,this.address.latitude,this.address.longitude,this.address.location].join(" ").trim()),t.href}return"https://maps.google.de/maps?ie=UTF8&t=&z=17&iwloc=B&output=embed"}}},Ed={class:"cmd-google-maps responsive-wrapper"},Vd=["src"];function Td(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",Ed,[e.createElementVNode("iframe",{src:l.locateAddress},null,8,Vd)])}const Fo=B(Sd,[["render",Td]]),Nd={name:"CmdImageGallery",mixins:[z],props:{cmdHeadline:{type:Object,required:!1},useFancyboxForLargeImages:{type:Boolean,default:!0},images:{type:Array,required:!0},figcaptionPosition:{type:String,required:!1,validator(t){return t==="top"||t==="bottom"}}},methods:{itemProvider(){return{image:{src:"/media/images/demo-images/medium/landscape-01.jpg",alt:"Alternative Text"},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},figcaption(t){const n={...t.figcaption};return this.figcaptionPosition&&(n.position=this.figcaptionPosition),n},onAddItem(){this.editModeContext.content.addContent(ee(this,"props","images",-1),this.itemProvider)},showFancyBox(t){Ce({fancyBoxGallery:this.images,defaultGalleryIndex:t})},getMessage(){return""},imageStructure(){return{itemProviderOverwrite:()=>({image:{srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",tooltip:"Tooltip DE"}})}},updateHandlerProvider(){const t=this.editableHtmlContent;return q(this,{update(n,o){n.htmlContent=t;const a=o==null?void 0:o.find(i=>i.name==="CmdHeadline");a&&(n.cmdHeadline=n.cmdHeadline||{},a.update(n.cmdHeadline))}})}}},Id={class:"grid-container-create-columns cmd-image-gallery"},Fd=["onClick","title"],Od=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new gallery-image",-1)];function Md(t,n,o,a,i,l){var c;const s=M,r=ae;return e.openBlock(),e.createElementBlock("div",Id,[(c=o.cmdHeadline)!=null&&c.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),t.editModeContext?o.images.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.images,(h,d)=>(e.openBlock(),e.createBlock(r,{key:d,class:"image-wrapper",image:h.image,figcaption:h.figcaption,componentPath:["props","images",d],editModeConfig:l.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"]))),128)):(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"button confirm",onClick:n[0]||(n[0]=(...h)=>l.onAddItem&&l.onAddItem(...h))},Od)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.useFancyboxForLargeImages?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.images,(h,d)=>(e.openBlock(),e.createElementBlock("a",{class:"image-wrapper",key:d,href:"#",onClick:e.withModifiers(m=>l.showFancyBox(d),["prevent"]),title:l.getMessage("cmdimagegallery.tooltip.open_large_image")},[e.createVNode(r,{image:h.image,figcaption:l.figcaption(h)},null,8,["image","figcaption"])],8,Fd))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.images,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`i${d}`,class:"image-wrapper"},[e.createVNode(r,{image:h.image,figcaption:l.figcaption(h)},null,8,["image","figcaption"])]))),128))],64))])}const Dd=B(Nd,[["render",Md]]),Ld={name:"CmdImageZoom",props:{imageSmall:{type:Object,required:!0},imageLarge:{type:Object,required:!0}},data(){return{showLargeImage:!1}},methods:{onMouseOver(t){this.showLargeImage=!0,this.$nextTick(()=>{const n=window.innerHeight-this.$el.getBoundingClientRect().y-10,o=this.$el.querySelector(".zoom-container");o.style.height=`${n}px`,Oo(this,t)})},onMouseMove(t){Oo(this,t)},onMouseOut(){this.showLargeImage=!1}}};function Oo(t,n){const o=t.$el.querySelector(".zoom-container"),a=o.querySelector("img"),i=t.$el.querySelector(".zoom-overlay"),l=n.target.getBoundingClientRect().width,s=n.target.getBoundingClientRect().height,r=a.getBoundingClientRect().width,c=a.getBoundingClientRect().height,h=n.pageX-n.target.getBoundingClientRect().x-window.pageXOffset,d=n.pageY-n.target.getBoundingClientRect().y-window.pageYOffset,m=Math.min(l,o.getBoundingClientRect().width/r*l),p=Math.min(s,o.getBoundingClientRect().height/c*s),f=Mo(h-m/2,0,l-m),u=Mo(d-p/2,0,s-p),y=-(f*(r/l)),k=-(u*(c/s));i.style.left=`${f}px`,i.style.top=`${u}px`,i.style.width=`${m}px`,i.style.height=`${p}px`,i.style.display="block",a.style.marginLeft=`${y}px`,a.style.marginTop=`${k}px`}function Mo(t,n,o){return t<n?n:t>o?o:t}const Pd={class:"cmd-imagezoom flex-container"},Ad=["title"],Hd=["src","alt"],qd={key:0,class:"zoom-container"},zd=["src","alt"],Rd={key:1,class:"zoom-overlay"};function jd(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",Pd,[e.createElementVNode("a",{href:"#",class:"no-flex thumbnails-imagezoom",title:o.imageSmall.tooltip},[e.createElementVNode("img",{src:o.imageSmall.src,alt:o.imageSmall.alt,onMouseover:n[0]||(n[0]=(...s)=>l.onMouseOver&&l.onMouseOver(...s)),onMousemove:n[1]||(n[1]=(...s)=>l.onMouseMove&&l.onMouseMove(...s)),onMouseout:n[2]||(n[2]=(...s)=>l.onMouseOut&&l.onMouseOut(...s))},null,40,Hd)],8,Ad),i.showLargeImage?(e.openBlock(),e.createElementBlock("div",qd,[e.createElementVNode("img",{src:o.imageLarge.src,alt:o.imageLarge.alt},null,8,zd)])):e.createCommentVNode("",!0),i.showLargeImage?(e.openBlock(),e.createElementBlock("div",Rd)):e.createCommentVNode("",!0)])}const Ud=B(Ld,[["render",jd]]),Wd={mixins:[ht,ze,ye,pt],props:{modelValue:{type:[Array,String],required:!1},required:{type:Boolean,default:!1},showStatusIcon:{type:Boolean,default:!0},inputElements:{type:Array,required:!1},inputTypes:{type:String,default:"radio",validator(t){return t==="checkbox"||t==="radio"}},status:{type:String,required:!1,validator(t){return t===""||t==="error"||t==="warning"||t==="success"||t==="info"}},replaceInputType:{type:Boolean,default:!1},toggleSwitches:{type:Boolean,default:!1},useSlot:{type:Boolean,default:!1},multipleSwitch:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0},labelText:{type:String,required:!0},labelInline:{type:Boolean,default:!1},stretchHorizontally:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{updateStatus(){var t;if(this.required){if((t=this.inputValue)!=null&&t.length){this.validationStatus="success";return}this.validationStatus="error";return}this.validationStatus=this.status}},computed:{validationTooltip(){return this.useCustomTooltip?this.validationStatus==="error"?this.getMessage("cmdformelement.validationTooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("cmdformelement.validationTooltip.information_is_filled_correctly"):this.getMessage("cmdformelement.validationTooltip.open_field_requirements"):this.getValidationMessage},inputValue:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},watch:{status:{handler(){this.updateStatus()},immediate:!0},modelValue:{handler(){this.updateStatus()},immediate:!0}}},Gd=["aria-labelledby"],Jd={class:"label-text"},Kd=["id"],Zd={key:0,"aria-hidden":"true"},Yd=["title","aria-errormessage","id"],Xd=["for"],Qd=["type","id","name","value","disabled"],$d={key:1,class:"label-text"},vd={key:1,class:"flex-container no-flex"};function em(t,n,o,a,i,l){const s=I,r=mt;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-input-group label",t.validationStatus,{inline:o.labelInline,"multiple-switch":o.multipleSwitch,disabled:o.disabled,"toggle-switches":o.toggleSwitches,"has-state":t.validationStatus}]),"aria-labelledby":t.htmlId},[e.withDirectives(e.createElementVNode("span",Jd,[e.createElementVNode("span",{id:t.htmlId},[e.createTextVNode(e.toDisplayString(o.labelText),1),o.required?(e.openBlock(),e.createElementBlock("sup",Zd,"*")):e.createCommentVNode("",!0)],8,Kd),(o.required||t.inputRequirements.length>0)&&o.showStatusIcon?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),title:l.validationTooltip,"aria-errormessage":t.tooltipId,"aria-live":"assertive",id:t.tooltipId},[e.createVNode(s,{iconClass:t.getStatusIconClass},null,8,["iconClass"])],8,Yd)):e.createCommentVNode("",!0),t.useCustomTooltip&&(t.validationStatus===""||t.validationStatus==="error")?(e.openBlock(),e.createBlock(r,{key:1,ref:"tooltip",showRequirements:t.showRequirements,cmdListOfRequirements:t.listOfRequirements,validationStatus:t.validationStatus,validationMessage:t.getValidationMessage,inputAttributes:t.$attrs,inputModelValue:o.modelValue,helplink:t.helplink,relatedId:t.tooltipId,role:t.validationStatus==="error"?"alert":"dialog"},null,8,["showRequirements","cmdListOfRequirements","validationStatus","validationMessage","inputAttributes","inputModelValue","helplink","relatedId","role"])):e.createCommentVNode("",!0)],512),[[e.vShow,o.showLabel]]),o.useSlot?(e.openBlock(),e.createElementBlock("div",vd,[e.renderSlot(t.$slots,"default")])):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["flex-container",{"no-flex":!o.stretchHorizontally,"no-gap":o.multipleSwitch}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.inputElements,(c,h)=>(e.openBlock(),e.createElementBlock("label",{key:h,for:c.id,class:e.normalizeClass({"toggle-switch":o.toggleSwitches})},[e.withDirectives(e.createElementVNode("input",{type:o.inputTypes,id:c.id,name:c.name,value:c.value,"onUpdate:modelValue":n[1]||(n[1]=d=>l.inputValue=d),disabled:o.disabled,class:e.normalizeClass({"replace-input-type":o.replaceInputType})},null,10,Qd),[[e.vModelDynamic,l.inputValue]]),o.multipleSwitch&&c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.labelText?(e.openBlock(),e.createElementBlock("span",$d,e.toDisplayString(c.labelText),1)):e.createCommentVNode("",!0)],10,Xd))),128))],2))],10,Gd)}const Do=B(Wd,[["render",em]]),tm={name:"CmdLoginForm",data(){return{usernameValidationStatus:!1,passwordValidationStatus:!1,emailValidationStatus:!1,sendLoginMail:"",sendLogin:!1}},props:{modelValue:{type:Object,default(){return{username:"",password:""}}},orientation:{type:String,default:null,validator(t){return t==="vertical"||t==="horizontal"}},textLegendLoginForm:{type:String,default:"Login form"},showLegend:{type:Boolean,default:!0},textLegendForgotLoginForm:{type:String,default:"Forgot login form"},cmdHeadlineLoginForm:{type:Object,required:!1},cmdHeadlineSendLoginForm:{type:Object,required:!1},cmdFormElementUsername:{type:Object,default(){return{labelText:"Username:",placeholder:"Type in username",innerIconClass:"icon-user-profile",name:"login-username",id:"login-username",required:!0}}},cmdFormElementPassword:{type:Object,default(){return{labelText:"Password:",placeholder:"Type in password",innerIconClass:"icon-security-settings",name:"login-password",id:"login-password",required:!0}}},cmdFormElementSendLogin:{type:Object,default(){return{labelText:"Email-address:",placeholder:"Type in email-address you are registered with",innerIconClass:"icon-mail",name:"login-send-login",id:"login-send-login",required:!0}}},options:{type:Object,default(){return{forgotPassword:{icon:{show:!0,iconClass:"icon-questionmark-circle",tooltip:""},text:"Forgot password"},createAccount:{linkType:"href",path:"#",icon:{show:!0,iconClass:"icon-register",tooltip:""},text:"Create new account"},backToLoginForm:{icon:{show:!0,iconClass:"icon-chevron-one-stripe-left",tooltip:""},text:"Back to login form"}}}},buttons:{type:Object,default(){return{login:{linkType:"button",type:"submit",path:"",text:"Login",primary:!0,icon:{show:!0,iconClass:"icon-logon",tooltip:""}},sendLogin:{linkType:"button",type:"submit",path:"",text:"Send login",primary:!0,icon:{show:!0,iconClass:"icon-mail",tooltip:""}}}}}},computed:{buttonLoginDisabled(){return!(this.usernameValidationStatus&&this.passwordValidationStatus)},buttonSendLoginDisabled(){return!this.emailValidationStatus},username:{get(){return this.modelValue.username},set(t){this.$emit("update:modelValue",{username:t,password:this.password})}},password:{get(){return this.modelValue.password},set(t){this.$emit("update:modelValue",{username:this.username,password:t})}}},methods:{toggleSendLoginView(){this.sendLogin=!this.sendLogin,this.$nextTick(()=>{this.sendLogin?this.$refs.sendPassword.setFocus():this.$refs.username.setFocus()})},modelChange(){this.$emit("update:modelValue",{username:this.username,password:this.password})},onClick(t){this.$emit("click",t)},getRoute(t){return me(t)},checkValidationStatus(t,n){t!=null&&(n==="username"?this.usernameValidationStatus=t==="success":n==="password"?this.passwordValidationStatus=t==="success":this.emailValidationStatus=t==="success")}},watch:{username(){this.modelChange()},password(){this.modelChange()}}},om={class:"cmd-login-form flex-container"},nm={class:"option-wrapper flex-container"},lm={key:1},im=["type","disabled"],am={key:1},sm={class:"cmd-login-form flex-container"},rm={class:"option-wrapper flex-container"},cm={key:1},dm=["type","disabled"],mm={key:1};function hm(t,n,o,a,i,l){var d,m,p,f,u,y,k,b,S,w,_,F,x,V,D,P;const s=M,r=A,c=I,h=kt;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("fieldset",om,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegendLoginForm),3),o.cmdHeadlineLoginForm?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineLoginForm)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["login-fields, flex-container",{vertical:o.orientation==="vertical"}])},[e.createVNode(r,{element:"input",type:"text",ref:"username",name:o.cmdFormElementUsername.name,id:o.cmdFormElementUsername.id,modelValue:l.username,"onUpdate:modelValue":n[0]||(n[0]=N=>l.username=N),fieldIconClass:o.cmdFormElementUsername.innerIconClass,labelText:o.cmdFormElementUsername.labelText,placeholder:o.cmdFormElementUsername.placeholder,required:o.cmdFormElementUsername.required,onValidationStatusChange:n[1]||(n[1]=N=>l.checkValidationStatus(N,"username"))},null,8,["name","id","modelValue","fieldIconClass","labelText","placeholder","required"]),e.createVNode(r,{element:"input",type:"password",name:o.cmdFormElementPassword.name,id:o.cmdFormElementPassword.id,fieldIconClass:o.cmdFormElementPassword.innerIconClass,modelValue:l.password,"onUpdate:modelValue":n[2]||(n[2]=N=>l.password=N),labelText:o.cmdFormElementPassword.labelText,placeholder:o.cmdFormElementPassword.placeholder,required:o.cmdFormElementPassword.required,onValidationStatusChange:n[3]||(n[3]=N=>l.checkValidationStatus(N,"password"))},null,8,["name","id","fieldIconClass","modelValue","labelText","placeholder","required"])],2),e.renderSlot(t.$slots,"login"),e.createElementVNode("div",nm,[o.options.forgotPassword||o.options.createAccount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.options.forgotPassword?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[4]||(n[4]=e.withModifiers((...N)=>l.toggleSendLoginView&&l.toggleSendLoginView(...N),["prevent"]))},[(d=o.options.forgotPassword.icon)!=null&&d.show&&((m=o.options.forgotPassword.icon)!=null&&m.iconClass)?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.options.forgotPassword.icon.iconClass,type:o.options.forgotPassword.icon.iconType,title:o.options.forgotPassword.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.options.forgotPassword.text?(e.openBlock(),e.createElementBlock("span",lm,e.toDisplayString(o.options.forgotPassword.text),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.options.createAccount?(e.openBlock(),e.createBlock(h,{key:1,linkType:o.options.createAccount.linkType,path:o.options.createAccount.path,text:o.options.createAccount.text,icon:{iconClass:(p=o.options.createAccount.icon)==null?void 0:p.iconClass,tooltip:(f=o.options.createAccount.icon)==null?void 0:f.tooltip,position:(u=o.options.createAccount.icon)==null?void 0:u.position}},null,8,["linkType","path","text","icon"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),o.buttons.login.linkType==="button"?(e.openBlock(),e.createElementBlock("button",{key:1,type:o.buttons.login.type==="submit"?"submit":"button",class:e.normalizeClass(["button",{primary:o.buttons.login.primary}]),onClick:n[5]||(n[5]=(...N)=>l.onClick&&l.onClick(...N)),disabled:l.buttonLoginDisabled},[o.buttons.login.icon.iconClass?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.buttons.login.icon.iconClass,type:o.buttons.login.icon.iconType,title:o.buttons.login.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.buttons.login.text?(e.openBlock(),e.createElementBlock("span",am,e.toDisplayString(o.buttons.login.text),1)):e.createCommentVNode("",!0)],10,im)):e.createCommentVNode("",!0)])],512),[[e.vShow,!i.sendLogin]]),e.withDirectives(e.createElementVNode("fieldset",sm,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegendForgotLoginForm),3),o.cmdHeadlineSendLoginForm?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineSendLoginForm)),null,16)):e.createCommentVNode("",!0),e.createVNode(r,{ref:"sendPassword",element:"input",type:"email",fieldIconClass:o.cmdFormElementSendLogin.innerIconClass,labelText:o.cmdFormElementSendLogin.labelText,placeholder:o.cmdFormElementSendLogin.placeholder,name:o.cmdFormElementSendLogin.name,required:o.cmdFormElementSendLogin.required,id:o.cmdFormElementSendLogin.id,onValidationStatusChange:n[6]||(n[6]=N=>l.checkValidationStatus(N,"email")),modelValue:i.sendLoginMail,"onUpdate:modelValue":n[7]||(n[7]=N=>i.sendLoginMail=N)},null,8,["fieldIconClass","labelText","placeholder","name","required","id","modelValue"]),e.renderSlot(t.$slots,"send-login"),e.createElementVNode("div",rm,[o.options.backToLoginForm?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[8]||(n[8]=e.withModifiers((...N)=>l.toggleSendLoginView&&l.toggleSendLoginView(...N),["prevent"]))},[o.options.backToLoginForm&&o.options.backToLoginForm.icon&&o.options.backToLoginForm.icon.show&&o.options.backToLoginForm.icon.iconClass?(e.openBlock(),e.createBlock(c,{key:0,iconClass:o.options.backToLoginForm.icon.iconClass,type:o.options.backToLoginForm.icon.iconType,title:o.options.backToLoginForm.icon.tooltip},null,8,["iconClass","type","title"])):e.createCommentVNode("",!0),o.options.backToLoginForm.text?(e.openBlock(),e.createElementBlock("span",cm,e.toDisplayString(o.options.backToLoginForm.text),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),((y=o.buttons.sendLogin)==null?void 0:y.linkType)==="button"?(e.openBlock(),e.createElementBlock("button",{key:1,type:((k=o.buttons.sendLogin)==null?void 0:k.type)==="submit"?"submit":"button",class:e.normalizeClass(["button",{primary:(b=o.buttons.sendLogin)==null?void 0:b.primary}]),disabled:l.buttonSendLoginDisabled},[(w=(S=o.buttons.sendLogin)==null?void 0:S.icon)!=null&&w.iconClass?(e.openBlock(),e.createBlock(c,{key:0,iconClass:(F=(_=o.buttons.sendLogin)==null?void 0:_.icon)==null?void 0:F.iconClass,title:(V=(x=o.buttons.sendLogin)==null?void 0:x.icon)==null?void 0:V.tooltip},null,8,["iconClass","title"])):e.createCommentVNode("",!0),(D=o.buttons.sendLogin)!=null&&D.text?(e.openBlock(),e.createElementBlock("span",mm,e.toDisplayString((P=o.buttons.sendLogin)==null?void 0:P.text),1)):e.createCommentVNode("",!0)],10,dm)):e.createCommentVNode("",!0)])],512),[[e.vShow,i.sendLogin]])],64)}const fm=B(tm,[["render",hm]]),um={name:"CmdMainNavigation",data(){return{showOffcanvas:!1,showSubNavigations:!0,openEntry:-1,openSubentry:-1}},emits:["offcanvas"],props:{stretchMainItems:{type:Boolean,default:!1},persistOnMobile:{type:Boolean,default:!1},showContentOverlay:{type:Boolean,default:!0},navigationEntries:{type:Array,required:!0},closeOffcanvas:{type:Object,default:function(){return{iconClass:"icon-cancel",text:"Close navigation",showText:!0}}},offcanvasPosition:{type:String,default:"right",validator(t){return t==="right"||t==="left"}},buttonOffcanvas:{type:Object,default:function(){return{iconClass:"icon-bars",text:"Open navigation",showText:!1}}},subentriesIconClass:{type:String,default:"icon-chevron-one-stripe-down"},subSubentriesIconClass:{type:String,default:"icon-chevron-one-stripe-right"}},methods:{closeAllSubentries(t){t||(this.openEntry=-1),this.openSubentry=-1},executeLink(t,n,o,a){var i;if(n.target||n.path.length>1)return this.showOffcanvas=!1,!0;if((i=n==null?void 0:n.subentries)!=null&&i.length){t.preventDefault(),a?this.openSubentry=this.openSubentry===o?-1:o:(this.openEntry=this.openEntry===o?-1:o,this.openSubentry=-1);return}(n.path==="#"||n.path==="")&&(t.preventDefault(),this.$emit("click",n.path)),this.showOffcanvas=!1},getRoute(t){return me(t)},closeOffcanvasNavigation(){this.showOffcanvas=!1,document.getElementById("toggle-offcanvas").focus()},toggleOffcanvasNavigation(){this.showOffcanvas?this.closeOffcanvasNavigation():(this.showOffcanvas=!0,this.$nextTick(()=>document.getElementById("close-offcanvas").focus()))}},watch:{showOffcanvas(){this.$emit("offcanvas",{open:this.showOffcanvas})}}},pm={key:0,class:"close-nav"},gm=["href","title","target","onClick"],ym={key:1},km={key:1},Cm=["aria-expanded"],bm=["href","title","target","onClick"],Bm={key:1},wm={key:1},_m=["aria-expanded"],xm=["href","title","target","onClick"],Sm={key:1},Em={key:1};function Vm(t,n,o,a,i,l){const s=I,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-main-navigation main-navigation-wrapper",{"hide-sub-navigation":!i.showSubNavigations,"open-off-canvas":i.showOffcanvas,"persist-on-mobile":o.persistOnMobile,"show-content-overlay":o.showContentOverlay,"off-canvas-right":o.offcanvasPosition==="right"}])},[e.createElementVNode("nav",null,[e.createElementVNode("ul",{class:e.normalizeClass({"stretch-items":o.stretchMainItems})},[i.showOffcanvas?(e.openBlock(),e.createElementBlock("li",pm,[e.createElementVNode("a",{href:"#",id:"close-offcanvas",role:"button",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.closeOffcanvasNavigation&&l.closeOffcanvasNavigation(...c),["prevent"]))},[o.closeOffcanvas.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.closeOffcanvas.iconClass,type:o.closeOffcanvas.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({hidden:!o.closeOffcanvas.showText})},e.toDisplayString(o.closeOffcanvas.text),3)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.navigationEntries,(c,h)=>{var d,m,p;return e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass({active:c.active,open:i.openEntry===h,"has-subentries":(d=c==null?void 0:c.subentries)==null?void 0:d.length})},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:c.path,title:c.tooltip,target:c.target,onClick:f=>l.executeLink(f,c,h),onMouseover:n[1]||(n[1]=f=>l.closeAllSubentries()),onFocus:n[2]||(n[2]=f=>l.closeAllSubentries())},[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",ym,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),(m=c==null?void 0:c.subentries)!=null&&m.length?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)],40,gm)):e.createCommentVNode("",!0),c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(c),title:c.tooltip},{default:e.withCtx(()=>[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",km,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),c.subentries&&c.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)]),_:2},1032,["to","title"])):e.createCommentVNode("",!0),(p=c==null?void 0:c.subentries)!=null&&p.length?(e.openBlock(),e.createElementBlock("ul",{key:2,"aria-expanded":i.openEntry?"true":"false"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.subentries,(f,u)=>{var y;return e.openBlock(),e.createElementBlock("li",{key:u,class:e.normalizeClass({open:i.openSubentry===u})},[f.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:f.path,title:f.tooltip,target:f.target,onClick:k=>l.executeLink(k,f,u,1),onMouseover:n[3]||(n[3]=k=>l.closeAllSubentries(1)),onFocus:n[4]||(n[4]=k=>l.closeAllSubentries(1))},[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),f.text?(e.openBlock(),e.createElementBlock("span",Bm,e.toDisplayString(f.text),1)):e.createCommentVNode("",!0),f.subentries&&f.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)],40,bm)):e.createCommentVNode("",!0),f.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(f),title:f.tooltip},{default:e.withCtx(()=>[f.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:f.iconClass,type:f.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),f.text?(e.openBlock(),e.createElementBlock("span",wm,e.toDisplayString(f.text),1)):e.createCommentVNode("",!0),f.subentries&&f.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)]),_:2},1032,["to","title"])):e.createCommentVNode("",!0),(y=f.subentries)!=null&&y.length?(e.openBlock(),e.createElementBlock("ul",{key:2,"aria-expanded":i.openSubentry?"true":"false"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.subentries,(k,b)=>(e.openBlock(),e.createElementBlock("li",{key:b},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:k.path,title:k.tooltip,target:k.target,onClick:S=>l.executeLink(S,k)},[k.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:k.iconClass,type:k.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),k.text?(e.openBlock(),e.createElementBlock("span",Sm,e.toDisplayString(k.text),1)):e.createCommentVNode("",!0),k.subentries&&k.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)],8,xm)):e.createCommentVNode("",!0),c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(k),target:k.target},{default:e.withCtx(()=>[k.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:k.iconClass,type:k.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),k.text?(e.openBlock(),e.createElementBlock("span",Em,e.toDisplayString(k.text),1)):e.createCommentVNode("",!0),k.subentries&&k.subentries.length>0?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["subentry-icon",o.subentriesIconClass])},null,2)):e.createCommentVNode("",!0)]),_:2},1032,["to","target"])):e.createCommentVNode("",!0)]))),128))],8,_m)):e.createCommentVNode("",!0)],2)}),128))],8,Cm)):e.createCommentVNode("",!0)],2)}),128))],2)]),o.persistOnMobile===!1?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:"button",id:"toggle-offcanvas",onClick:n[5]||(n[5]=e.withModifiers((...c)=>l.toggleOffcanvasNavigation&&l.toggleOffcanvasNavigation(...c),["prevent"]))},[e.createVNode(s,{iconClass:o.buttonOffcanvas.iconClass,type:o.buttonOffcanvas.iconType},null,8,["iconClass","type"]),e.createElementVNode("span",{class:e.normalizeClass({hidden:!o.buttonOffcanvas.showText})},e.toDisplayString(o.buttonOffcanvas.text),3)])):e.createCommentVNode("",!0)],2)}const Lo=B(um,[["render",Vm]]),Tm={name:"CmdMultistepFormProgressBar",data(){return{activeLink:0}},props:{showStepNumber:{type:Boolean,default:!1},multisteps:{type:Array,required:!0},separatorIconClass:{type:String,default(){return"icon-chevron-one-stripe-right"}},useGap:{type:Boolean,default:!0}},methods:{clickedStep(t,n){this.activeLink=n,this.$emit("click",{event:t,index:n,stepPath:this.multisteps[n].path})},getRoute(t){return me(t)}}},Nm=["href","onClick","title"],Im={key:0,class:"number"},Fm={key:2},Om={key:0,class:"number"},Mm={key:2},Dm=["type","name","title","formaction","onClick"],Lm={key:0,class:"number"},Pm={key:2};function Am(t,n,o,a,i,l){const s=I,r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ol",{class:e.normalizeClass(["cmd-multistep-form-progress-bar",{"use-gap":o.useGap}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.multisteps,(c,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass({active:i.activeLink===h})},[c.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:c.path,onClick:e.withModifiers(d=>l.clickedStep(d,h),["stop","prevent"]),title:c.tooltip},[o.showStepNumber?(e.openBlock(),e.createElementBlock("span",Im,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0),c.iconClass?(e.openBlock(),e.createBlock(s,{key:1,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Fm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(o.separatorIconClass)},null,2)],8,Nm)):e.createCommentVNode("",!0),c.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:l.getRoute(c),title:c.tooltip},{default:e.withCtx(()=>[o.showStepNumber?(e.openBlock(),e.createElementBlock("span",Om,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0),c.iconClass?(e.openBlock(),e.createBlock(s,{key:1,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Mm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(o.separatorIconClass)},null,2)]),_:2},1032,["to","title"])):e.createCommentVNode("",!0),c.type==="button"||c.type==="submit"?(e.openBlock(),e.createElementBlock("button",{key:2,class:"button",type:c.type,name:c.name,title:c.tooltip,formaction:c.formaction,onClick:e.withModifiers(d=>l.clickedStep(d,h),["stop","prevent"])},[o.showStepNumber?(e.openBlock(),e.createElementBlock("span",Lm,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0),c.iconClass?(e.openBlock(),e.createBlock(s,{key:1,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.text?(e.openBlock(),e.createElementBlock("span",Pm,e.toDisplayString(c.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(o.separatorIconClass)},null,2)],8,Dm)):e.createCommentVNode("",!0)],2))),128))],2)}const Hm=B(Tm,[["render",Am]]),qm={name:"CmdNewsletterSubscription",emits:["button-click"],data(){return{buttonDisabled:!0}},props:{modelValue:{type:Object,default(){return{subscription:"subscribe",email:""}}},buttonType:{type:String,default:"button",validator(t){return t==="submit"||t==="button"}},showLegend:{type:Boolean,default:!0},textLegend:{type:String,default:"Stay up-to-date"},cmdInputGroup:{type:Object,default:function(){return{labelText:"Choose option",showLabel:!1,inputElements:[{labelText:"Subscribe",id:"radio-subscribe",name:"cmd-subscribe-group",value:"subscribe"},{labelText:"Unsubscribe",id:"radio-unsubscribe",name:"cmd-subscribe-group",value:"unsubscribe"}]}}},cmdFormElementEmail:{type:Object,default:function(){return{labelText:"Email-Address:",placeholder:"Enter your email-address",required:!0}}},cmdFormElementSubmit:{type:Object,default:function(){return{text:"Submit",icon:{show:!0,iconClass:"icon-message-send",position:"before",tooltip:""}}}}},computed:{cmdFormElementSubmitDynamicLabel(){return this.updateButtonLabelText},updateButtonLabelText(){const t={...this.cmdFormElementSubmit};return t.text=this.subscription==="subscribe"?"Subscribe now":"Unsubscribe from list",t},subscription:{get(){return this.modelValue.subscription||"subscribe"},set(t){this.$emit("update:modelValue",{subscription:t,email:this.email})}},email:{get(){return this.modelValue.email},set(t){this.$emit("update:modelValue",{subscription:this.subscription,email:t})}}},methods:{sendData(t){this.$emit("button-click",{subscription:this.subscription,email:this.email,originalEvent:t})},checkValidationStatus(t){this.buttonDisabled=t!=="success"}},watch:{modelValue:{handler(){return this.updateButtonLabelText},deep:!0,immediate:!0}}},zm={class:"cmd-newsletter-subscription flex-container"},Rm={class:"button-wrapper"};function jm(t,n,o,a,i,l){const s=Do,r=A;return e.openBlock(),e.createElementBlock("fieldset",zm,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),e.createVNode(s,{inputTypes:"radio",labelText:o.cmdInputGroup.labelText,showLabel:o.cmdInputGroup.showLabel,inputElements:o.cmdInputGroup.inputElements,modelValue:l.subscription,"onUpdate:modelValue":n[0]||(n[0]=c=>l.subscription=c)},null,8,["labelText","showLabel","inputElements","modelValue"]),e.createVNode(r,{element:"input",type:"email",placeholder:o.cmdFormElementEmail.placeholder,labelText:o.cmdFormElementEmail.labelText,id:"cmd-email-newsletter-subscription",required:o.cmdFormElementEmail.required,useCustomTooltip:o.cmdFormElementEmail.useCustomTooltip,modelValue:l.email,"onUpdate:modelValue":n[1]||(n[1]=c=>l.email=c),onValidationStatusChange:l.checkValidationStatus},null,8,["placeholder","labelText","required","useCustomTooltip","modelValue","onValidationStatusChange"]),e.createElementVNode("div",Rm,[e.createVNode(r,{element:"button",type:o.buttonType,disabled:i.buttonDisabled,nativeButton:l.cmdFormElementSubmitDynamicLabel,onClick:l.sendData},null,8,["type","disabled","nativeButton","onClick"])])])}const Um=B(qm,[["render",jm]]);function Po(t,n,o,a=!0){function i(l,s){return s&&l<10?"0"+l:l}return(l,s)=>{if(o){let r=l,c=n;return r>12&&(r-=12,c=o),i(r,a)+t+i(s,!0)+c}return i(l,a)+t+i(s,!0)+n}}const Wm={name:"CmdOpeningHoursItem",mixins:[z],data(){return{editableDay:{}}},props:{day:{type:Object,required:!0},separator:{type:String,default:"–"},abbreviationTextAm:{type:String,default:"am"},abbreviationTextPm:{type:String,default:"pm"},timeFormatter:{type:Function,required:!1}},methods:{toggleClosedStatus(t){t==="am"?this.editableDay.amClosed=!this.editableDay.amClosed:this.editableDay.pmClosed=!this.editableDay.pmClosed},getTime(t){return this.timeFormatter?this.timeFormatter(t.hours,t.mins):Po(":"," "+this.abbreviationTextAm," "+this.abbreviationTextPm,!1)(t.hours,t.mins)},updateHandlerProvider(){const t=this.editableDay;return q(this,{update(n){n.day=t.day,n.am||(n.am={}),n.am.fromTime=t.amFrom,n.am.tillTime=t.amTill,n.am.displayText=t.amClosed?t.amDisplayText:"",n.pm||(n.pm={}),n.pm.fromTime=t.pmFrom,n.pm.tillTime=t.pmTill,n.pm.displayText=t.pmClosed?t.pmDisplayText:""}})}},watch:{day:{handler(){const t=Po(":","","",!0);this.editableDay={day:this.day.day,amFrom:t(this.day.am.fromTime.hours,this.day.am.fromTime.mins),amTill:t(this.day.am.tillTime.hours,this.day.am.tillTime.mins),amDisplayText:this.day.am.displayText,amClosed:!!this.day.am.displayText,pmFrom:t(this.day.pm.fromTime.hours,this.day.pm.fromTime.mins),pmTill:t(this.day.pm.tillTime.hours,this.day.pm.tillTime.mins),pmClosed:!!this.day.pm.displayText,pmDisplayText:this.day.pm.displayText}},immediate:!0,deep:!0}}},Gm={class:"cmd-opening-hours-item"},Jm={key:0,class:"am"},Km={key:1,class:"pm"},Zm={class:"flex-container no-flex"},Ym={class:"flex-container no-flex am-wrapper"},Xm={key:1,class:"input-wrapper"},Qm=["title"],$m={class:"flex-container no-flex pm-wrapper"},vm={key:1,class:"input-wrapper"},eh=["title"];function th(t,n,o,a,i,l){const s=A;return t.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("dt",null,[e.createVNode(s,{element:"input",type:"text",class:"edit-mode",showLabel:!1,labelText:"Text for weekday",placeholder:"Text for weekday",modelValue:i.editableDay.day,"onUpdate:modelValue":n[0]||(n[0]=r=>i.editableDay.day=r)},null,8,["modelValue"])]),e.createElementVNode("dd",Zm,[e.createElementVNode("div",Ym,[i.editableDay.amClosed?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:"edit-mode",showLabel:!1,labelText:"Text for 'closed'",placeholder:"Text for 'closed'",modelValue:i.editableDay.amDisplayText,"onUpdate:modelValue":n[1]||(n[1]=r=>i.editableDay.amDisplayText=r)},null,8,["modelValue"])):e.createCommentVNode("",!0),i.editableDay.amClosed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Xm,[e.createVNode(s,{element:"input",type:"time",class:"edit-mode",showLabel:!1,labelText:"Text for AM from",placeholder:"Text for AM from",modelValue:i.editableDay.amFrom,"onUpdate:modelValue":n[2]||(n[2]=r=>i.editableDay.amFrom=r)},null,8,["modelValue"]),e.createVNode(s,{element:"input",type:"time",showLabel:!1,class:"edit-mode",min:i.editableDay.amFrom,labelText:"Text for AM till",placeholder:"Text for AM till",modelValue:i.editableDay.amTill,"onUpdate:modelValue":n[3]||(n[3]=r=>i.editableDay.amTill=r)},null,8,["min","modelValue"])])),e.createElementVNode("a",{href:"#",onClick:n[4]||(n[4]=e.withModifiers(r=>l.toggleClosedStatus("am"),["prevent"])),title:i.editableDay.amClosed?"Set to open":"Set to closed",class:e.normalizeClass(i.editableDay.amClosed?"icon-clock":"icon-blocked")},null,10,Qm)]),e.createElementVNode("div",$m,[i.editableDay.pmClosed?(e.openBlock(),e.createBlock(s,{key:0,element:"input",type:"text",class:"edit-mode",showLabel:!1,labelText:"Text for 'closed'",placeholder:"Text for 'closed'",modelValue:i.editableDay.pmDisplayText,"onUpdate:modelValue":n[5]||(n[5]=r=>i.editableDay.pmDisplayText=r)},null,8,["modelValue"])):e.createCommentVNode("",!0),i.editableDay.pmClosed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vm,[e.createVNode(s,{element:"input",type:"time",showLabel:!1,class:"edit-mode",labelText:"Text for PM from",placeholder:"Text for PM from",modelValue:i.editableDay.pmFrom,"onUpdate:modelValue":n[6]||(n[6]=r=>i.editableDay.pmFrom=r)},null,8,["modelValue"]),e.createVNode(s,{element:"input",type:"time",showLabel:!1,class:"edit-mode",min:i.editableDay.pmFrom,labelText:"Text for PM till",placeholder:"Text for PM till",modelValue:i.editableDay.pmTill,"onUpdate:modelValue":n[7]||(n[7]=r=>i.editableDay.pmTill=r)},null,8,["min","modelValue"])])),e.createElementVNode("a",{href:"#",onClick:n[8]||(n[8]=e.withModifiers(r=>l.toggleClosedStatus("pm"),["prevent"])),title:i.editableDay.pmClosed?"Set to open":"Set to closed",class:e.normalizeClass(i.editableDay.pmClosed?"icon-clock":"icon-blocked")},null,10,eh)])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("dt",Gm,e.toDisplayString(o.day.day),1),e.createElementVNode("dd",null,[o.day.am?(e.openBlock(),e.createElementBlock("span",Jm,[o.day.am.displayText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.day.am.displayText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.getTime(o.day.am.fromTime,o.abbreviationTextAm))+" "+e.toDisplayString(o.separator)+" "+e.toDisplayString(l.getTime(o.day.am.tillTime)),1)],64))])):e.createCommentVNode("",!0),o.day.pm?(e.openBlock(),e.createElementBlock("span",Km,[o.day.pm.displayText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.day.pm.displayText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.getTime(o.day.pm.fromTime,o.abbreviationTextPm))+" "+e.toDisplayString(o.separator)+" "+e.toDisplayString(l.getTime(o.day.pm.tillTime)),1)],64))])):e.createCommentVNode("",!0)])],64))}const oh=B(Wm,[["render",th]]);function nh(t,n,o,a=!0){function i(l,s){return s&&l<10?"0"+l:l}return(l,s)=>i(l,a)+t+i(s,!0)+n}const lh={name:"CmdOpeningHours",mixins:[z],data(){return{currentTime:new Date,editableOpeningHours:[],editableTextOpen:null,editableTextClosed:null,editableTextHolidays:null,editableTextMiscInfo:null}},props:{closed:{type:Boolean,default:!1},link:{type:Object,required:!1},textOpen:{type:String,default:"Open right now!"},textClosed:{type:String,default:"Closed right now!"},separator:{type:String,default:"–"},abbreviationTextAm:{type:String,default:"am"},abbreviationTextPm:{type:String,default:"pm"},openingHours:{type:Array,required:!0},textHolidays:{type:String,required:!1},textMiscInfo:{type:String,required:!1},timeFormatter:{type:Function,required:!1},componentHandlesClosedStatus:{type:Boolean,default:!0},checkInterval:{type:Number,default:5e3},cmdHeadline:{type:Object,required:!1}},mounted(){this.componentHandlesClosedStatus&&this.checkInterval>0&&(this.$_CmdOpeningHours_intervalId=setInterval(()=>{this.currentTime=new Date},this.checkInterval))},beforeUnmount(){this.$_CmdOpeningHours_intervalId&&(clearInterval(this.$_CmdOpeningHours_intervalId),this.$_CmdOpeningHours_intervalId=null)},computed:{openingHoursFormatted(){const t=[];for(let n=0;n<this.openingHours.length;n++){const o={},a=this.openingHours[n].am.fromTime.split(/[:.]/),i=this.openingHours[n].am.tillTime.split(/[:.]/),l=this.openingHours[n].pm.fromTime.split(/[:.]/),s=this.openingHours[n].pm.tillTime.split(/[:.]/);o.day=this.openingHours[n].day,o.am={...this.openingHours[n].am},o.am.fromTime={hours:parseInt(a[0]),mins:parseInt(a[1])},o.am.tillTime={hours:parseInt(i[0]),mins:parseInt(i[1])},o.pm={...this.openingHours[n].pm},o.pm.fromTime={hours:parseInt(l[0]),mins:parseInt(l[1])},o.pm.tillTime={hours:parseInt(s[0]),mins:parseInt(s[1])},t.push(o)}return t},textOpenModel:{get(){return this.editableTextOpen==null?this.textOpen:this.editableTextOpen},set(t){this.editableTextOpen=t}},textClosedModel:{get(){return this.editableTextClosed==null?this.textClosed:this.editableTextClosed},set(t){this.editableTextClosed=t}},textHolidaysModel:{get(){return this.editableTextHolidays==null?this.textHolidays:this.editableTextHolidays},set(t){this.editableTextHolidays=t}},textMiscInfoModel:{get(){return this.editableTextMiscInfo==null?this.textMiscInfo:this.editableTextMiscInfo},set(t){this.editableTextMiscInfo=t}},textOpenClosed(){return this.isClosed?this.textClosed:this.textOpen},isClosed(){if(!this.componentHandlesClosedStatus)return this.closed;let t=this.currentTime.getDay();t===0?t=6:t-=1;const n=this.openingHoursFormatted[t];if(this.openingHoursFormatted[t]){const o=new Date;o.setHours(n.am.fromTime.hours,n.am.fromTime.mins);const a=new Date;a.setHours(n.am.tillTime.hours,n.am.tillTime.mins);const i=new Date;i.setHours(n.pm.fromTime.hours,n.pm.fromTime.mins);const l=new Date;if(l.setHours(n.pm.tillTime.hours,n.pm.tillTime.mins),o<=this.currentTime&&this.currentTime<=a&&i<=this.currentTime&&this.currentTime<=l)return!1}return!0}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","openingHours",-1),this.itemProvider)},itemProvider(){return{day:"Weekday",am:{fromTime:"00:00",tillTime:"00:00"},pm:{fromTime:"00:00",tillTime:"00:00"}}},getTime(t){return this.timeFormatter?this.timeFormatter(t.hours,t.mins):nh(":"," hrs","",!1)(t.hours,t.mins)},updateHandlerProvider(){const t=this.editableOpeningHours,n=this.editableTextOpen,o=this.editableTextClosed,a=this.editableTextHolidays,i=this.editableTextMiscInfo;return q(this,{update(l,s){l.openingHours=t,l.textOpen=n,l.textClosed=o,l.textHolidays=a,l.textMiscInfo=i;const r=s==null?void 0:s.find(c=>c.name==="CmdHeadline");r&&(l.cmdHeadline=l.cmdHeadline||{},r.update(l.cmdHeadline))}})}}},ih={class:"cmd-opening-hours"},ah=["href"],sh={key:2,class:"flex-container"},rh={key:3},ch=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new entry",-1)],dh={class:"edit-mode-opening-hours-item"},mh={key:5},hh={key:0},fh={key:1},uh={key:6,class:"flex-container vertical"};function ph(t,n,o,a,i,l){var m,p,f;const s=M,r=e.resolveComponent("router-link"),c=A,h=oh,d=te;return e.openBlock(),e.createElementBlock("div",ih,[(m=o.cmdHeadline)!=null&&m.headlineText||t.editModeContext?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),t.editing?(e.openBlock(),e.createElementBlock("div",sh,[e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Text for 'open'",placeholder:"Text for 'open'",modelValue:l.textOpenModel,"onUpdate:modelValue":n[0]||(n[0]=u=>l.textOpenModel=u)},null,8,["modelValue"]),e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Text for 'closed'",placeholder:"Text for 'closed'",modelValue:l.textClosedModel,"onUpdate:modelValue":n[1]||(n[1]=u=>l.textClosedModel=u)},null,8,["modelValue"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.link&&((p=o.link)!=null&&p.path)&&((f=o.link)!=null&&f.show)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.link.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.link.path,class:e.normalizeClass({closed:l.isClosed})},e.toDisplayString(l.textOpenClosed),11,ah)):e.createCommentVNode("",!0),o.link.type==="router"?(e.openBlock(),e.createBlock(r,{key:1,to:o.link.path,class:e.normalizeClass({closed:l.isClosed})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.textOpenClosed),1)]),_:1},8,["to","class"])):e.createCommentVNode("",!0),o.link.type==="button"?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["button",{closed:l.isClosed}])},e.toDisplayString(l.textOpenClosed),3)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({closed:l.isClosed})},e.toDisplayString(l.textOpenClosed),3))],64)),t.editModeContext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[l.openingHoursFormatted.length===0?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:n[2]||(n[2]=(...u)=>l.onAddItem&&l.onAddItem(...u))},ch)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.openingHoursFormatted,(u,y)=>(e.openBlock(),e.createBlock(d,{key:"x"+y,class:"edit-items",showComponentName:!1,componentName:"CmdOpeningHoursItem",componentProps:u,allowedComponentTypes:[],componentPath:["props","openingHours",y],itemProvider:l.itemProvider},{default:e.withCtx(()=>[e.createElementVNode("dl",dh,[e.createVNode(h,{day:u,separator:o.separator,abbreviationTextAm:o.abbreviationTextAm,abbreviationTextPm:o.abbreviationTextPm},null,8,["day","separator","abbreviationTextAm","abbreviationTextPm"])])]),_:2},1032,["componentProps","componentPath","itemProvider"]))),128))],64)):(e.openBlock(),e.createElementBlock("dl",rh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.openingHoursFormatted,(u,y)=>(e.openBlock(),e.createBlock(h,{key:y,day:u,separator:o.separator,abbreviationTextAm:o.abbreviationTextAm,abbreviationTextPm:o.abbreviationTextPm},null,8,["day","separator","abbreviationTextAm","abbreviationTextPm"]))),128))])),!t.editing&&(o.textHolidays||o.textMiscInfo)?(e.openBlock(),e.createElementBlock("div",mh,[o.textHolidays?(e.openBlock(),e.createElementBlock("p",hh,[e.createElementVNode("strong",null,e.toDisplayString(o.textHolidays),1)])):e.createCommentVNode("",!0),o.textMiscInfo?(e.openBlock(),e.createElementBlock("p",fh,e.toDisplayString(o.textMiscInfo),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.editing?(e.openBlock(),e.createElementBlock("div",uh,[e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Text for 'holidays'",placeholder:"Text for 'holidays'",modelValue:l.textHolidaysModel,"onUpdate:modelValue":n[3]||(n[3]=u=>l.textHolidaysModel=u)},null,8,["modelValue"]),e.createVNode(c,{element:"input",type:"text",showLabel:!1,labelText:"Miscellaneous information",placeholder:"Miscellaneous information",modelValue:l.textMiscInfoModel,"onUpdate:modelValue":n[4]||(n[4]=u=>l.textMiscInfoModel=u)},null,8,["modelValue"])])):e.createCommentVNode("",!0)])}const gh=B(lh,[["render",ph]]),yh={name:"CmdPagination",mixins:[j,{data(){return{defaultMessageProperties:{"cmdpager.tooltip.go_to_page":"Go to page {0}","cmdpager.tooltip.not_possible":"Not possible (current page is shown already)"}}}}],emits:["click"],data(){return{currentPage:1}},props:{pages:{type:Number,required:!0},itemsPerPage:{type:Number,required:!0},showPageNumbers:{type:Boolean,default:!0},linkType:{type:String,default:"href",validator(t){return t==="href"||t==="button"}},prevLink:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-left",text:"prev",showText:!0}}},nextLink:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-right",text:"next",showText:!0}}}},computed:{numberOfPages(){return Math.ceil(this.pages/this.itemsPerPage)},getPreviousHref(){return this.currentPage===1?null:"#"},getNextHref(){return this.currentPage===this.numberOfPages?null:"#"}},methods:{getHref(t){return this.linkType!=="href"||this.currentPage===t?null:"#"},showPage(t){this.currentPage=t,this.$emit("click",t)},nextPage(){this.currentPage<this.numberOfPages&&this.showPage(this.currentPage+1)},previousPage(){this.currentPage>1&&this.showPage(this.currentPage-1)}}},kh={class:"cmd-pagination"},Ch=["href","title"],bh={key:0},Bh={class:"page-index"},wh={class:"flex-container"},_h=["href","title","onClick"],xh=["href","title"],Sh={key:0};function Eh(t,n,o,a,i,l){const s=I;return e.openBlock(),e.createElementBlock("div",kh,[e.createElementVNode("a",{href:l.getPreviousHref,class:e.normalizeClass(["page-change",{disabled:i.currentPage===1,button:o.linkType==="button"}]),onClick:n[0]||(n[0]=e.withModifiers((...r)=>l.previousPage&&l.previousPage(...r),["prevent"])),title:o.prevLink.showText?null:o.prevLink.text},[e.createVNode(s,{iconClass:o.prevLink.iconClass,type:o.prevLink.iconType},null,8,["iconClass","type"]),o.prevLink.showText?(e.openBlock(),e.createElementBlock("span",bh,e.toDisplayString(o.prevLink.text),1)):e.createCommentVNode("",!0)],10,Ch),e.createElementVNode("div",Bh,[e.createElementVNode("div",wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pages,(r,c)=>(e.openBlock(),e.createElementBlock("a",{href:l.getHref(r),class:e.normalizeClass({disabled:i.currentPage===c+1,button:o.linkType==="button",hidden:!o.showPageNumbers}),title:i.currentPage!==c+1?t.getMessage("cmdpager.tooltip.go_to_page",c+1):t.getMessage("cmdpager.tooltip.not_possible"),key:c,onClick:e.withModifiers(h=>l.showPage(r),["stop","prevent"]),"aria-live":"polite"},[e.createElementVNode("span",null,e.toDisplayString(c+1),1)],10,_h))),128))])]),e.createElementVNode("a",{href:l.getNextHref,class:e.normalizeClass(["page-change",{disabled:i.currentPage===l.numberOfPages,button:o.linkType==="button"}]),onClick:n[1]||(n[1]=e.withModifiers((...r)=>l.nextPage&&l.nextPage(...r),["prevent"])),title:o.nextLink.showText?null:o.nextLink.text},[o.nextLink.showText?(e.openBlock(),e.createElementBlock("span",Sh,e.toDisplayString(o.nextLink.text),1)):e.createCommentVNode("",!0),e.createVNode(s,{iconClass:o.nextLink.iconClass,type:o.nextLink.iconType},null,8,["iconClass","type"])],10,xh)])}const Vh=B(yh,[["render",Eh]]),Th={name:"CmdSocialNetworksItem",data(){return{editablePath:null,editableTooltip:null,editableLinktext:null}},mixins:[z],props:{network:{type:Object,required:!0},userMustAcceptDataPrivacy:{type:Boolean},page:{type:String,required:!1},appendPage:{type:Boolean,default:!0},buttonTextAlign:{type:String,default:"left",validator(t){return t==="left"||t==="right"}},dataPrivacyAccepted:{type:Boolean},tooltipAcceptDataPrivacy:{type:String,default:"You must accept data privacy conditions!"}},methods:{getUrl(t){return this.userMustAcceptDataPrivacy&&this.dataPrivacyAccepted?this.appendPage?this.page?t.path+encodeURIComponent(this.page):t.path+encodeURIComponent(location.href):t.path:"#"},preventOnDisabled(t){let n=t.target;n.tagName!=="A"&&(n=n.closest("a")),n.getAttribute("href")==="#"&&t.preventDefault()},tooltip(t){return this.userMustAcceptDataPrivacy?this.dataPrivacyAccepted?t:this.tooltipAcceptDataPrivacy:t},addHandlerProvider(){const t={id:"social-network-facebook",path:"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",tooltip:"Share this page on facebook",iconClass:"icon-facebook",linkText:"Share"};return q(this,{item(){return t}})},updateHandlerProvider(){const t=ce(),n=this.editablePath,o=this.editableTooltip,a=this.editableLinktext;return q(this,{update(i){i.id=t,i.path=n,i.tooltip=o,i.linkText=a}})}}},Nh={class:"cmd-social-networks-item"},Ih=["id","href","title"],Fh={key:1};function Oh(t,n,o,a,i,l){const s=I;return e.openBlock(),e.createElementBlock("li",Nh,[(e.openBlock(),e.createElementBlock("a",{key:o.network.path,class:e.normalizeClass(["button",{disabled:o.userMustAcceptDataPrivacy&&!o.dataPrivacyAccepted},"text-align-"+o.buttonTextAlign]),id:o.network.id,href:l.getUrl(o.network),onClick:n[0]||(n[0]=(...r)=>l.preventOnDisabled&&l.preventOnDisabled(...r)),target:"_blank",title:l.tooltip(o.network.tooltip)},[o.network.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:o.network.iconClass,type:o.network.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),o.network.linkText?(e.openBlock(),e.createElementBlock("span",Fh,e.toDisplayString(o.network.linkText),1)):e.createCommentVNode("",!0)],10,Ih))])}const Mh=B(Th,[["render",Oh]]),Dh={name:"CmdSocialNetworks",mixins:[z],data(){return{dataPrivacyAccepted:!1}},props:{modelValue:{type:[String,Number,Array],default:""},align:{type:String,default:"left",validator(t){return t==="left"||t==="center"||t==="right"}},useGap:{type:Boolean,default:!0},stretchButtons:{type:Boolean,default:!1},networks:{type:Array,required:!0},page:{type:String,required:!1},appendPage:{type:Boolean,default:!0},userMustAcceptDataPrivacy:{type:Boolean,default:!0},tooltipAcceptDataPrivacy:{type:String,default:"You must accept data privacy conditions!"},buttonTextAlign:{type:String,default:"right",validator(t){return t==="left"||t==="right"}},cmdFormElement:{type:Object,default(){return{toggleSwitch:!0,labelText:"I accept that anonymous data will be send to the platform I share this page on!",required:!0}}},cmdHeadline:{type:Object,required:!1}},computed:{validNetworks(){return this.networks.filter(t=>t.path)},alignment(){return"align-"+this.align}},methods:{onAddItem(){this.editModeContext.content.addContent(ee(this,"props","networks",-1),this.itemProvider)},itemProvider(){return{id:"social-network-facebook",path:"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",tooltip:"Share this page on facebook",iconClass:"icon-facebook",linkText:"Share"}},preventOnDisabled(t){let n=t.target;n.tagName!=="A"&&(n=n.closest("a")),n.getAttribute("href")==="#"&&t.preventDefault()},tooltip(t){return this.userMustAcceptDataPrivacy?this.dataPrivacyAccepted?t:this.tooltipAcceptDataPrivacy:t},onPersist(t){return{editModeContextData:{...this.editModeContextData||{}},update(n){n.cmdHeadline={...n.cmdHeadline||{}},Array.isArray(t)&&t.length>0&&(n.cmdHeadline.headlineText=t[0].headlineText)}}}}},Lh=[e.createElementVNode("span",{class:"icon-plus"},null,-1)];function Ph(t,n,o,a,i,l){var d,m;const s=M,r=A,c=Mh,h=te;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-social-networks",{stretch:o.stretchButtons},l.alignment])},[(d=o.cmdHeadline)!=null&&d.headlineText||(m=t.editModeContext)!=null&&m.editing?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline||{})),null,16)):e.createCommentVNode("",!0),o.userMustAcceptDataPrivacy?(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:"checkbox","toggle-switch":o.cmdFormElement.toggleSwitch,labelText:o.cmdFormElement.labelText,required:o.cmdFormElement.required,modelValue:i.dataPrivacyAccepted,"onUpdate:modelValue":n[0]||(n[0]=p=>i.dataPrivacyAccepted=p)},null,8,["toggle-switch","labelText","required","modelValue"])):e.createCommentVNode("",!0),l.validNetworks.length>0?(e.openBlock(),e.createElementBlock("ul",{key:2,class:e.normalizeClass(["button-wrapper",{"no-gap":!o.useGap}])},[t.editModeContext?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.validNetworks,(p,f)=>(e.openBlock(),e.createBlock(h,{key:"x"+f,class:"edit-items",componentName:"CmdSocialNetworksItem",componentProps:p,componentPath:["props","networks",f],showComponentName:!1},{default:e.withCtx(()=>[e.createVNode(c,{network:p,userMustAcceptDataPrivacy:o.userMustAcceptDataPrivacy,buttonTextAlign:o.buttonTextAlign,dataPrivacyAccepted:i.dataPrivacyAccepted},null,8,["network","userMustAcceptDataPrivacy","buttonTextAlign","dataPrivacyAccepted"])]),_:2},1032,["componentProps","componentPath"]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.validNetworks,(p,f)=>(e.openBlock(),e.createBlock(c,{key:f,network:p,userMustAcceptDataPrivacy:o.userMustAcceptDataPrivacy,buttonTextAlign:o.buttonTextAlign,dataPrivacyAccepted:i.dataPrivacyAccepted,page:o.page,appendPage:o.appendPage},null,8,["network","userMustAcceptDataPrivacy","buttonTextAlign","dataPrivacyAccepted","page","appendPage"]))),128)),e.renderSlot(t.$slots,"default")],64))],2)):(e.openBlock(),e.createElementBlock("button",{key:3,class:"button small",title:"Add new item",onClick:n[1]||(n[1]=(...p)=>l.onAddItem&&l.onAddItem(...p))},Lh))],2)}const Ao=B(Dh,[["render",Ph]]),Ah={name:"CmdPageFooter",props:{buttonPrintView:{type:Object,default(){return{show:!0,primary:!1,icon:{show:!0,iconClass:"icon-print-preview",tooltip:"Open print preview"},text:"Print preview"}}},useSmallButtons:{type:Boolean,default:!0},cmdSocialNetworks:{type:Array,required:!1},cmdFancyBox:{type:Object,default(){return{showPrintButtons:!0,defaultAriaLabelText:"print-preview"}}}},methods:{showFancyBox(){let t=[];typeof this.cmdFancyBox.elements=="function"?t=this.cmdFancyBox.elements():t=[document.querySelector("main")],Ce({elements:t,showPrintButtons:this.cmdFancyBox.showPrintButtons,defaultAriaLabelText:this.cmdFancyBox.defaultAriaLabelText,cmdHeadline:this.cmdFancyBox.cmdHeadline,showOverlay:this.cmdFancyBox.showOverlay,showSubmitButtons:this.cmdFancyBox.showSubmitButtons,allowEscapeKey:this.cmdFancyBox.allowEscapeKey})}}},Hh={class:"button-wrapper"},qh=["title"],zh={key:1};function Rh(t,n,o,a,i,l){var r,c,h;const s=Ao;return e.openBlock(),e.createElementBlock("footer",{class:e.normalizeClass(["cmd-page-footer flex-container",{"small-buttons":o.useSmallButtons}])},[o.cmdSocialNetworks?(e.openBlock(),e.createBlock(s,{key:0,networks:o.cmdSocialNetworks},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"cmd-social-networks")]),_:3},8,["networks"])):e.createCommentVNode("",!0),e.createElementVNode("div",Hh,[e.renderSlot(t.$slots,"default"),o.buttonPrintView.show?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["button",{primary:o.buttonPrintView.primary}]),title:o.buttonPrintView.text?(r=o.buttonPrintView.icon)==null?void 0:r.tooltip:null,onClick:n[0]||(n[0]=(...d)=>l.showFancyBox&&l.showFancyBox(...d))},[(c=o.buttonPrintView.icon)!=null&&c.show?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass((h=o.buttonPrintView.icon)==null?void 0:h.iconClass)},null,2)):e.createCommentVNode("",!0),o.buttonPrintView.text?(e.openBlock(),e.createElementBlock("span",zh,e.toDisplayString(o.buttonPrintView.text),1)):e.createCommentVNode("",!0)],10,qh)):e.createCommentVNode("",!0)])],2)}const jh=B(Ah,[["render",Rh]]),Uh={name:"CmdPageHeader",props:{cmdBreadcrumbs:{type:Object,required:!1},cmdHeadline:{type:Object,required:!1}}},Wh={key:0,class:"cmd-page-header flex-container"},Gh={key:0,class:"headline-wrapper flex-container vertical"};function Jh(t,n,o,a,i,l){const s=Vo,r=M;return o.cmdBreadcrumbs||o.cmdHeadline||t.$slots.default?(e.openBlock(),e.createElementBlock("header",Wh,[o.cmdBreadcrumbs||o.cmdHeadline?(e.openBlock(),e.createElementBlock("div",Gh,[o.cmdBreadcrumbs?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdBreadcrumbs)),null,16)):e.createCommentVNode("",!0),o.cmdHeadline.headlineText?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:1},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.$slots.default?e.renderSlot(t.$slots,"default",{key:1}):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}const Kh=B(Uh,[["render",Jh]]),Zh={name:"CmdProgressBar",inheritAttrs:!1,data(){return{loadingStatus:30}},props:{labelText:{type:String,required:!1},showLabel:{type:Boolean,default:!0},showLoadingStatus:{type:Boolean,default:!0},id:{type:String,required:!0}}},Yh=["for"],Xh={class:"progressbar"},Qh={key:0},$h=["id","value"];function vh(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("label",{class:"cmd-progressbar",for:o.id},[e.createElementVNode("span",{class:e.normalizeClass(["label-text",{hidden:!o.showLabel}])},e.toDisplayString(o.labelText),3),e.createElementVNode("span",Xh,[o.showLoadingStatus?(e.openBlock(),e.createElementBlock("span",Qh,e.toDisplayString(i.loadingStatus)+" %",1)):e.createCommentVNode("",!0),e.createElementVNode("progress",e.mergeProps(t.$attrs,{id:o.id,value:i.loadingStatus}),null,16,$h)])],8,Yh)}const ef=B(Zh,[["render",vh]]),tf={name:"CmdSidebar",data(){return{open:!0}},props:{collapsible:{type:Boolean,default:!0},openSidebar:{type:Boolean,default:!0},styledAsBox:{type:Boolean,default:!0},collapseToLeft:{type:Boolean,default:!0},cmdHeadline:{type:Object,required:!1}},computed:{wrapperClass(){return this.open?"open":"closed"},iconClassOpenCollapse(){return this.collapseToLeft?this.open?"icon-chevron-one-stripe-left":"icon-chevron-one-stripe-right":this.open?"icon-chevron-one-stripe-right":"icon-chevron-one-stripe-left"}},methods:{toggleSidebar(){this.open=!this.open,this.$emit("toggleSidebar",this.open)}},watch:{openSidebar:{handler(){this.open=this.openSidebar},immediate:!0}}},of={class:"inner-sidebar-wrapper"},nf={key:1,class:"open-slot-wrapper"},lf={key:2,class:"closed-slot-wrapper"},af=["title"];function sf(t,n,o,a,i,l){var r;const s=M;return e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(["cmd-sidebar",l.wrapperClass,{box:o.styledAsBox,"collapse-to-right":!o.collapseToLeft}])},[e.createElementVNode("div",of,[(r=o.cmdHeadline)!=null&&r.headlineText&&i.open?(e.openBlock(),e.createBlock(s,{key:0,headlineText:o.cmdHeadline.headlineText,headlineLevel:o.cmdHeadline.headlineLevel||3,textAlign:o.cmdHeadline.textAlign,class:"sidebar-main-headline"},null,8,["headlineText","headlineLevel","textAlign"])):e.createCommentVNode("",!0),i.open?(e.openBlock(),e.createElementBlock("div",nf,[e.renderSlot(t.$slots,"open",{openBoxStatus:i.open})])):(e.openBlock(),e.createElementBlock("div",lf,[e.renderSlot(t.$slots,"closed",{openBoxStatus:i.open})]))]),o.collapsible?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",title:i.open?"Collapse sidebar":"Expand sidebar",onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.toggleSidebar&&l.toggleSidebar(...c),["prevent"]))},[e.createElementVNode("span",{class:e.normalizeClass(l.iconClassOpenCollapse)},null,2)],8,af)):e.createCommentVNode("",!0)],2)}const rf=B(tf,[["render",sf]]),cf={name:"CmdSiteFooter",props:{orientation:{type:String,default:"horizontal",validator(t){return t==="horizontal"||t==="vertical"}}}},df={class:"cmd-site-footer site-footer"};function mf(t,n,o,a,i,l){return e.openBlock(),e.createElementBlock("div",df,[e.createElementVNode("footer",{class:e.normalizeClass(["flex-container",{vertical:o.orientation==="vertical"}])},[e.renderSlot(t.$slots,"default")],2)])}const hf=B(cf,[["render",mf]]),ff={name:"CmdSiteHeader",emits:["offcanvas"],data(){return{defaultLogoHeight:""}},props:{closeOffcanvas:{type:Object,required:!1},sticky:{type:Boolean,default:!0},navigationInline:{type:Boolean,default:!1},resizeHeaderOnScroll:{type:Boolean,default:!0},scrollContainerToResizeHeader:{type:String,default:".page-wrapper"},useGrid:{type:Boolean,default:!0},cmdCompanyLogo:{type:Object,required:!1},cmdMainNavigation:{type:Object,required:!1}},mounted(){if(this.resizeHeaderOnScroll){const t=document.querySelector(this.scrollContainerToResizeHeader);t.addEventListener("scroll",function(){const n=document.querySelector(".cmd-site-header > header");t.scrollTop>0?n.classList.add("resize-on-scroll"):n.classList.remove("resize-on-scroll")})}},methods:{onImageLoaded(t){this.defaultLogoHeight=t.target.height/10+"rem"},emitOffcanvasStatus(t){this.$emit("offcanvas",t)}},watch:{defaultLogoHeight(){const t=this.$refs["site-header"].querySelector(".cmd-company-logo img");t.style.height=this.defaultLogoHeight}}},uf={key:0,class:"top-header"};function pf(t,n,o,a,i,l){var c,h,d,m,p,f,u,y,k;const s=To,r=Lo;return e.openBlock(),e.createElementBlock("div",{ref:"site-header",class:e.normalizeClass(["cmd-site-header site-header",{sticky:o.sticky,"navigation-inline":o.navigationInline,"off-canvas-right":((c=o.cmdMainNavigation)==null?void 0:c.offcanvasPosition)==="right"}]),role:"banner"},[t.$slots.topheader?(e.openBlock(),e.createElementBlock("div",uf,[e.renderSlot(t.$slots,"topheader")])):e.createCommentVNode("",!0),e.createElementVNode("header",{class:e.normalizeClass([o.useGrid?"grid-container-create-columns":"flex-container",{"has-navigation":((d=(h=o.cmdMainNavigation)==null?void 0:h.navigationEntries)==null?void 0:d.length)&&o.navigationInline||t.$slots.navigation}])},[t.$slots.logo||t.$slots.header||t.$slots.navigation?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"logo"),e.renderSlot(t.$slots,"header"),e.renderSlot(t.$slots,"navigation")],64)):e.createCommentVNode("",!0),o.cmdCompanyLogo||(p=(m=o.cmdMainNavigation)==null?void 0:m.navigationEntries)!=null&&p.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.cmdCompanyLogo?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdCompanyLogo,{onImageLoaded:l.onImageLoaded}),null,16,["onImageLoaded"])):e.createCommentVNode("",!0),(u=(f=o.cmdMainNavigation)==null?void 0:f.navigationEntries)!=null&&u.length&&o.navigationInline?(e.openBlock(),e.createBlock(r,{key:1,navigationEntries:o.cmdMainNavigation.navigationEntries,offcanvasPosition:o.cmdMainNavigation.offcanvasPosition,stretchMainItems:o.cmdMainNavigation.stretchMainItems,closeOffcanvas:o.closeOffcanvas,onOffcanvas:l.emitOffcanvasStatus},null,8,["navigationEntries","offcanvasPosition","stretchMainItems","closeOffcanvas","onOffcanvas"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2),(k=(y=o.cmdMainNavigation)==null?void 0:y.navigationEntries)!=null&&k.length&&!o.navigationInline?(e.openBlock(),e.createBlock(r,{key:1,navigationEntries:o.cmdMainNavigation.navigationEntries,offcanvasPosition:o.cmdMainNavigation.offcanvasPosition,closeOffcanvas:o.closeOffcanvas,stretchMainItems:o.cmdMainNavigation.stretchMainItems,onOffcanvas:l.emitOffcanvasStatus},null,8,["navigationEntries","offcanvasPosition","closeOffcanvas","stretchMainItems","onOffcanvas"])):e.createCommentVNode("",!0)],2)}const gf=B(ff,[["render",pf]]),yf={emits:["search","update:modelValueInput1","update:modelValueInput2","update:modelValueRadius","update:modelValueSearchFilters"],name:"CmdBoxSiteSearch",mixins:[j,{data(){return{defaultMessageProperties:{"cmdsitesearch.labeltext.what_to_search":"What do you like to search for?","cmdsitesearch.placeholder.what_to_search":"Search","cmdsitesearch.labeltext.where_to_search":"Where do you want to search?","cmdsitesearch.placeholder.where_to_search":"Zip or city","cmdsitesearch.show_filter_options":"Show filter options","cmdsitesearch.hide_filter_options":"Hide filter options"}}}}],data(){return{showFilters:!1}},props:{modelValueInput1:{type:String,required:!1},modelValueInput2:{type:String,required:!1},modelValueRadius:{type:[String,Number],required:!1},modelValueSearchFilters:{type:Array,required:!1},useFilters:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},results:{type:[Function,Number],required:!1},cmdHeadline:{type:Object,required:!1},cmdFormElementInput1:{type:Object,default(){return{type:"search",showLabel:!1,required:!0,labelText:"What do you like to search for?",placeholder:"What do you like to search for?",showSearchButton:!1}}},cmdFormElementInput2:{type:Object,default(){return{show:!0,type:"text",showLabel:!1,required:!0,labelText:"Where do you like to search?",placeholder:"Enter city, zip, country"}}},cmdFormElementRadius:{type:Object,default(){return{show:!0,showLabel:!1,required:!1,labelText:"Radius",selectOptions:[{text:"None",value:0},{text:"5 Km",value:5},{text:"10 Km",value:10},{text:"15 Km",value:15},{text:"50 Km",value:50},{text:"100 Km",value:100}]}}},cmdFormElementSearchButton:{type:Object,default(){return{icon:{show:!0,position:"before",iconClass:"icon-search"},text:"Search"}}},cmdFakeSelect:{type:Object,required:!1},cmdIcon:{type:Object,default(){return{showFilters:{iconClass:"icon-chevron-one-stripe-up",type:"auto"},hideFilters:{iconClass:"icon-chevron-one-stripe-down",type:"auto"}}}}},computed:{searchValue1:{get(){return this.modelValueInput1},set(t){this.$emit("update:modelValueInput1",t)}},searchValue2:{get(){return this.modelValueInput2},set(t){this.$emit("update:modelValueInput2",t)}},radius:{get(){return this.modelValueRadius},set(t){this.$emit("update:modelValueRadius",t)}},searchFilters:{get(){return this.modelValueSearchFilters},set(t){this.$emit("update:modelValueSearchFilters",t)}},buttonSearchDisabled(){const t=!this.cmdFormElementInput1.required||this.searchValue1.trim(),n=!this.cmdFormElementInput2.show||!this.cmdFormElementInput2.required||this.searchValue2.trim(),o=!this.cmdFormElementRadius.show||!this.cmdFormElementRadius.required||this.radius;return!(t&&n&&o)}},methods:{onSearchButtonClick(){this.$emit("search",{searchValue1:this.searchValue1,searchValue2:this.searchValue2,searchFilters:this.searchFilters,radius:this.radius})},getOptionName(t){for(let n=0;n<this.cmdFakeSelect.selectData.length;n++)if(t===this.cmdFakeSelect.selectData[n].value)return this.cmdFakeSelect.selectData[n].text;return null}},watch:{cmdFormElementRadius:{handler(){var t,n;(t=this.cmdFormElementRadius)!=null&&t.selectOptions&&((n=this.cmdFormElementRadius)!=null&&n.selectOptions.length)&&this.modelValueRadius==null&&(this.radius=this.cmdFormElementRadius.selectOptions[0].value)},immediate:!0,deep:!0}}},kf={class:"cmd-box-site-search flex-container"},Cf={class:"flex-container align-bottom"},bf={class:"input-wrapper align-bottom"},Bf={key:0},wf={key:1},_f={key:0,class:"flex-container no-flex",role:"listbox","aria-expanded":"true"};function xf(t,n,o,a,i,l){var m,p,f,u,y,k,b,S;const s=M,r=A,c=I,h=No,d=Io;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("fieldset",kf,[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.cmdHeadline?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",Cf,[e.createVNode(r,{element:"input",type:o.cmdFormElementInput1.type,"show-label":o.cmdFormElementInput1.showLabel,labelText:o.cmdFormElementInput1.labelText,placeholder:o.cmdFormElementInput1.placeholder,required:o.cmdFormElementInput1.required,showSearchButton:o.cmdFormElementInput1.showSearchButton,modelValue:l.searchValue1,"onUpdate:modelValue":n[0]||(n[0]=w=>l.searchValue1=w)},null,8,["type","show-label","labelText","placeholder","required","showSearchButton","modelValue"]),e.createElementVNode("div",bf,[o.cmdFormElementInput2.show?(e.openBlock(),e.createBlock(r,{key:0,element:"input",type:o.cmdFormElementInput2.type,"show-label":o.cmdFormElementInput2.showLabel,labelText:o.cmdFormElementInput2.labelText,placeholder:o.cmdFormElementInput2.placeholder,required:o.cmdFormElementInput2.required,modelValue:l.searchValue2,"onUpdate:modelValue":n[1]||(n[1]=w=>l.searchValue2=w)},null,8,["type","show-label","labelText","placeholder","required","modelValue"])):e.createCommentVNode("",!0),o.cmdFormElementRadius.show?(e.openBlock(),e.createBlock(r,{key:1,element:"select",class:"no-flex",modelValue:l.radius,"onUpdate:modelValue":n[2]||(n[2]=w=>l.radius=w),"show-label":o.cmdFormElementRadius.showLabel,labelText:o.cmdFormElementRadius.labelText,"select-options":o.cmdFormElementRadius.selectOptions,required:o.cmdFormElementRadius.required},null,8,["modelValue","show-label","labelText","select-options","required"])):e.createCommentVNode("",!0)]),e.createVNode(r,{element:"button",class:"stretch-on-small-devices",nativeButton:o.cmdFormElementSearchButton,onClick:l.onSearchButtonClick,disabled:l.buttonSearchDisabled,"aria-live":"assertive"},null,8,["nativeButton","onClick","disabled"])]),o.useFilters?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("a",{class:"filter-options",href:"#",onClick:n[3]||(n[3]=e.withModifiers(w=>i.showFilters=!i.showFilters,["prevent"]))},[e.createVNode(c,{iconClass:i.showFilters?(p=(m=o.cmdIcon)==null?void 0:m.showFilters)==null?void 0:p.iconClass:(u=(f=o.cmdIcon)==null?void 0:f.hideFilters)==null?void 0:u.iconClass,type:i.showFilters?(k=(y=o.cmdIcon)==null?void 0:y.showFilters)==null?void 0:k.iconType:(S=(b=o.cmdIcon)==null?void 0:b.hideFilters)==null?void 0:S.iconType},null,8,["iconClass","type"]),i.showFilters?(e.openBlock(),e.createElementBlock("span",Bf,e.toDisplayString(t.getMessage("cmdsitesearch.hide_filter_options")),1)):(e.openBlock(),e.createElementBlock("span",wf,e.toDisplayString(t.getMessage("cmdsitesearch.show_filter_options")),1))]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>{var w,_,F,x,V;return[i.showFilters&&((w=o.cmdFakeSelect)!=null&&w.selectData.length)?(e.openBlock(),e.createElementBlock("div",_f,[e.createVNode(h,{role:"option",selectData:(_=o.cmdFakeSelect)==null?void 0:_.selectData,modelValue:l.searchFilters,"onUpdate:modelValue":n[4]||(n[4]=D=>l.searchFilters=D),defaultOptionName:(F=o.cmdFakeSelect)==null?void 0:F.defaultOptionName,type:(x=o.cmdFakeSelect)==null?void 0:x.type,labelText:(V=o.cmdFakeSelect)==null?void 0:V.labelText},null,8,["selectData","modelValue","defaultOptionName","type","labelText"])])):e.createCommentVNode("",!0)]}),_:1})],64)):e.createCommentVNode("",!0)]),o.useFilters?(e.openBlock(),e.createBlock(d,{key:0,modelValue:l.searchFilters,"onUpdate:modelValue":n[5]||(n[5]=w=>l.searchFilters=w),selectedOptionsName:l.getOptionName},null,8,["modelValue","selectedOptionsName"])):e.createCommentVNode("",!0)],64)}const Sf=B(yf,[["render",xf]]),Ef={name:"CmdSlideshow",mixins:[z],data(){return{index:0,pause:!1,hnd:null,fullWidth:!1,currentSlotItem:0,slideshowItemEditing:!1}},props:{useSlot:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:5e3},showQuickLinkIcons:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!1},slideshowItems:{type:Array,required:!0},showSlideButtons:{type:Boolean,default:!1},cmdSlideButtons:{type:Object,default(){return{next:{next:{iconClass:"icon-chevron-one-stripe-right",tooltip:"Next"}},prev:{prev:{type:"prev",iconClass:"icon-chevron-one-stripe-left",tooltip:"Previous"}}}}}},beforeUnmount(){this.stopAutoplay()},methods:{stopAutoplay(){this.hnd!==null&&(window.clearInterval(this.hnd),this.hnd=null)},itemProvider(){return{image:{src:{large:"/media/images/slideshow-images/large/slide1.jpg",medium:"/media/images/slideshow-images/medium/slide1.jpg",small:"/media/images/slideshow-images/small/slide1.jpg"},alt:"Alternative Text",tooltip:"Tooltip DE"},figcaption:{text:"Figcaption DE",position:"bottom",textAlign:"center",show:!0}}},onAddItem(){this.editModeContext.content.addContent(ee(this,"props","slideshowItems",-1),this.itemProvider)},imageStructure(){return{itemProviderOverwrite:()=>({image:{src:{large:"/media/images/slideshow-images/large/slide1.jpg",medium:"/media/images/slideshow-images/medium/slide1.jpg",small:"/media/images/slideshow-images/small/slide1.jpg"},tooltip:"Tooltip DE"}})}},showPrevItem(){this.slideshowItemEditing||(this.useSlot&&(this.currentSlotItem>0?this.currentSlotItem--:this.currentSlotItem=Object.keys(this.$slots).length-1),this.index>0?this.index--:this.index=this.slideshowItems.length-1)},showItem(t){!this.slideshowItemEditing&&t>=0&&t<this.slideshowItems.length&&(this.index=t)},showNextItem(){this.slideshowItemEditing||(this.useSlot&&(this.currentSlotItem<Object.keys(this.$slots).length-1?this.currentSlotItem++:this.currentSlotItem=0),this.index<this.slideshowItems.length-1?this.index++:this.index=0)},setupSlider(){this.autoplay&&this.hnd===null&&(this.hnd=window.setInterval(()=>this.pause||this.showNextItem(),this.autoplayInterval))}},computed:{tooltipForSlidebuttons(){return this.slideshowItemEditing?{title:"Not allowed while editing!"}:{}},currentItem(){return this.slideshowItems.length<=this.index?null:this.slideshowItems[this.index]}},watch:{slideshowItems:{handler(){this.index=0,this.setupSlider()},immediate:!0,deep:!0},autoplay(){this.autoplay?this.setupSlider():this.stopAutoplay()},autoplayInterval(){this.autoplay&&(this.stopAutoplay(),this.setupSlider())},currentItem(){this.$nextTick(()=>{var t;(t=this.$refs.slideshowItemComponentWrapper)==null||t.addEditStateListener(n=>this.slideshowItemEditing=n)})}}},Vf=["href","title"],Tf=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new slideshow-image",-1)],Nf={key:2},If=["onClick","aria-label","title"],Ff={key:3,class:"item-counter"};function Of(t,n,o,a,i,l){const s=ke,r=ae;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-slideshow",{"full-width":i.fullWidth}])},[e.createElementVNode("div",{class:"inner-slideshow-wrapper",onMouseenter:n[1]||(n[1]=c=>i.pause=!0),onMouseleave:n[2]||(n[2]=c=>i.pause=!1)},[o.showSlideButtons?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0,onClick:e.withModifiers(l.showPrevItem,["prevent"]),slideButtonType:"prev",class:{disabled:i.slideshowItemEditing}},l.tooltipForSlidebuttons),null,16,["onClick","class"])):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"fade"},{default:e.withCtx(()=>{var c,h,d,m,p,f,u,y,k,b,S,w;return[l.currentItem?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.useSlot?(e.openBlock(),e.createElementBlock("div",{class:"slot-wrapper",key:i.index,style:e.normalizeStyle("background-image: url("+l.currentItem.image.srcLarge+")")},[e.renderSlot(t.$slots,"item"+i.currentSlotItem)],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.editModeContext?o.slideshowItems.length?(e.openBlock(),e.createBlock(r,{key:1,image:(S=l.currentItem)==null?void 0:S.image,figcaption:(w=l.currentItem)==null?void 0:w.figcaption,componentPath:["props","slideshowItems",i.index],editModeConfig:l.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(h=(c=l.currentItem)==null?void 0:c.link)!=null&&h.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:(m=(d=l.currentItem)==null?void 0:d.link)==null?void 0:m.href,title:(f=(p=l.currentItem)==null?void 0:p.link)==null?void 0:f.tooltip},[e.createVNode(r,{image:(u=l.currentItem)==null?void 0:u.image,figcaption:(y=l.currentItem)==null?void 0:y.figcaption},null,8,["image","figcaption"])],8,Vf)):(e.openBlock(),e.createBlock(r,{key:1,image:(k=l.currentItem)==null?void 0:k.image,figcaption:(b=l.currentItem)==null?void 0:b.figcaption},null,8,["image","figcaption"]))],64))],64))],64)):t.editModeContext?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"button confirm",onClick:n[0]||(n[0]=(..._)=>l.onAddItem&&l.onAddItem(..._))},Tf)):e.createCommentVNode("",!0)]}),_:3}),o.showSlideButtons?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1,onClick:e.withModifiers(l.showNextItem,["prevent"]),class:{disabled:i.slideshowItemEditing}},l.tooltipForSlidebuttons),null,16,["onClick","class"])):e.createCommentVNode("",!0),o.showQuickLinkIcons?(e.openBlock(),e.createElementBlock("ol",Nf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.slideshowItems,(c,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass({active:h===i.index})},[e.createElementVNode("a",{href:"#",class:e.normalizeClass({disabled:i.slideshowItemEditing}),onClick:e.withModifiers(d=>l.showItem(h),["prevent"]),"aria-label":i.index,title:i.slideshowItemEditing?"Not allowed while editing!":"Switch to image #"+(h+1)},null,10,If)],2))),128))])):e.createCommentVNode("",!0),o.showCounter?(e.openBlock(),e.createElementBlock("span",Ff,e.toDisplayString(i.index+1)+"/"+e.toDisplayString(o.slideshowItems.length),1)):e.createCommentVNode("",!0)],32)],2)}const Mf=B(Ef,[["render",Of]]),Df=Object.freeze(Object.defineProperty({__proto__:null,de:Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='850.394px'%20height='566.929px'%20viewBox='0%200%20850.394%20566.929'%20enable-background='new%200%200%20850.394%20566.929'%20xml:space='preserve'%3e%3cg%20id='it'%3e%3cg%3e%3crect%20fill='%23078E46'%20width='283.465'%20height='566.929'/%3e%3crect%20x='283.465'%20fill='%23FBFDFF'%20width='283.465'%20height='566.929'/%3e%3crect%20x='566.93'%20fill='%23D3242C'%20width='283.465'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='de'%3e%3cg%3e%3cdesc%3eFlag%20of%20Germany%3c/desc%3e%3crect%20id='black_stripe'%20x='0.901'%20fill='%23010202'%20width='849.492'%20height='566.929'/%3e%3crect%20id='red_stripe'%20x='0.901'%20y='188.977'%20fill='%23DD0B15'%20width='849.492'%20height='377.953'/%3e%3crect%20id='gold_stripe'%20x='0.901'%20y='377.953'%20fill='%23FFCE05'%20width='849.492'%20height='188.976'/%3e%3c/g%3e%3c/g%3e%3cg%20id='fr'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20x='0.901'%20fill='%23CF1327'%20width='849.492'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%23FFFFFF'%20width='566.328'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%231D2C4E'%20width='283.164'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='ru'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20fill='%23FFFFFF'%20width='850.395'%20height='283.465'/%3e%3crect%20y='283.465'%20fill='%23D52D1E'%20width='850.395'%20height='283.464'/%3e%3crect%20y='188.977'%20fill='%231E4295'%20width='850.395'%20height='188.977'/%3e%3c/g%3e%3c/g%3e%3cg%20id='cn'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20x='0.901'%20fill='%23DF2B14'%20width='849.493'%20height='566.929'/%3e%3cg%20transform='translate(5,5)%20scale(3)'%3e%3cpath%20id='s'%20fill='%23FFDE08'%20d='M142.483,56.693l49.932,153.838L61.692,115.454h161.583L92.551,210.531L142.483,56.693z'/%3e%3c/g%3e%3cg%20transform='translate(10,2)%20rotate(23.036243)'%3e%3cpath%20id='s_1_'%20fill='%23FFDE08'%20d='M295.146,30.607l-4.728,53.71l-27.711-46.234l49.566,21.099l-52.488,12.096L295.146,30.607z'/%3e%3c/g%3e%3cg%20transform='translate(12,4)%20rotate(45.869898)'%3e%3cpath%20id='s_2_'%20fill='%23FFDE08'%20d='M361.022,93.648l-25.178,47.665l-7.617-53.376l37.503,38.701l-53.064-9.243L361.022,93.648z'/%3e%3c/g%3e%3cg%20transform='translate(12,7)%20rotate(69.945396)'%3e%3cpath%20id='s_3_'%20fill='%23FFDE08'%20d='M367.298,188.705l-42.412,33.236l14.797-51.844l18.47,50.649l-44.682-30.108L367.298,188.705z'%20/%3e%3c/g%3e%3cg%20transform='translate(10,9)%20rotate(20.659808)'%3e%3cpath%20id='s_4_'%20fill='%23FFDE08'%20d='M294.056,228.595l-2.5,53.86l-29.603-45.045l50.397,19.024l-51.942,14.264L294.056,228.595z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='uk'%20display='none'%3e%3cg%20display='inline'%3e%3crect%20y='0.002'%20fill='%23FFFFFF'%20width='850.16'%20height='566.865'/%3e%3cpolygon%20fill='%23CF172C'%20points='382.569,0%20382.569,226.625%200,226.625%200,339.948%20382.569,339.948%20382.569,566.863%20467.592,566.863%20467.592,339.948%20850.16,339.948%20850.16,226.625%20467.592,226.625%20467.592,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,0%20495.946,183.497%20771.202,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,566.863%20771.202,566.863%20495.946,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,566.863%20354.214,566.863%20354.214,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,0%20354.214,183.497%20354.214,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0.003,188.95%20204.392,188.95%200.003,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,188.95%20850.16,188.95%20850.16,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,377.913%20850.16,514.171%20850.16,377.913%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0,377.913%200,514.171%20204.392,377.913%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='802.938,0%20520.004,188.95%20567.223,188.95%20850.605,0%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='330.156,377.909%20282.937,377.909%200,566.852%2047.219,566.852%20330.602,377.909%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='0,0%200,31.692%20236.091,189.098%20283.311,189.098%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='566.696,377.832%20850.008,566.929%20850.01,535.239%20613.92,377.832%20'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"})),en:Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='850.394px'%20height='566.929px'%20viewBox='0%200%20850.394%20566.929'%20enable-background='new%200%200%20850.394%20566.929'%20xml:space='preserve'%3e%3cg%20id='it'%3e%3cg%3e%3crect%20fill='%23078E46'%20width='283.465'%20height='566.929'/%3e%3crect%20x='283.465'%20fill='%23FBFDFF'%20width='283.465'%20height='566.929'/%3e%3crect%20x='566.93'%20fill='%23D3242C'%20width='283.465'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='de'%3e%3cg%3e%3cdesc%3eFlag%20of%20Germany%3c/desc%3e%3crect%20id='black_stripe'%20x='0.901'%20fill='%23010202'%20width='849.492'%20height='566.929'/%3e%3crect%20id='red_stripe'%20x='0.901'%20y='188.977'%20fill='%23DD0B15'%20width='849.492'%20height='377.953'/%3e%3crect%20id='gold_stripe'%20x='0.901'%20y='377.953'%20fill='%23FFCE05'%20width='849.492'%20height='188.976'/%3e%3c/g%3e%3c/g%3e%3cg%20id='fr'%3e%3cg%3e%3crect%20x='0.901'%20fill='%23CF1327'%20width='849.492'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%23FFFFFF'%20width='566.328'%20height='566.929'/%3e%3crect%20x='0.901'%20fill='%231D2C4E'%20width='283.164'%20height='566.929'/%3e%3c/g%3e%3c/g%3e%3cg%20id='ru'%3e%3cg%3e%3crect%20fill='%23FFFFFF'%20width='850.395'%20height='283.465'/%3e%3crect%20y='283.465'%20fill='%23D52D1E'%20width='850.395'%20height='283.464'/%3e%3crect%20y='188.977'%20fill='%231E4295'%20width='850.395'%20height='188.977'/%3e%3c/g%3e%3c/g%3e%3cg%20id='cn'%3e%3cg%3e%3crect%20x='0.901'%20fill='%23DF2B14'%20width='849.493'%20height='566.929'/%3e%3cg%20transform='translate(5,5)%20scale(3)'%3e%3cpath%20id='s'%20fill='%23FFDE08'%20d='M142.483,56.693l49.932,153.838L61.692,115.454h161.583L92.551,210.531L142.483,56.693z'/%3e%3c/g%3e%3cg%20transform='translate(10,2)%20rotate(23.036243)'%3e%3cpath%20id='s_1_'%20fill='%23FFDE08'%20d='M295.146,30.607l-4.728,53.71l-27.711-46.234l49.566,21.099l-52.488,12.096L295.146,30.607z'/%3e%3c/g%3e%3cg%20transform='translate(12,4)%20rotate(45.869898)'%3e%3cpath%20id='s_2_'%20fill='%23FFDE08'%20d='M361.022,93.648l-25.178,47.665l-7.617-53.376l37.503,38.701l-53.064-9.243L361.022,93.648z'/%3e%3c/g%3e%3cg%20transform='translate(12,7)%20rotate(69.945396)'%3e%3cpath%20id='s_3_'%20fill='%23FFDE08'%20d='M367.298,188.705l-42.412,33.236l14.797-51.844l18.47,50.649l-44.682-30.108L367.298,188.705z'%20/%3e%3c/g%3e%3cg%20transform='translate(10,9)%20rotate(20.659808)'%3e%3cpath%20id='s_4_'%20fill='%23FFDE08'%20d='M294.056,228.595l-2.5,53.86l-29.603-45.045l50.397,19.024l-51.942,14.264L294.056,228.595z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='uk'%3e%3cg%3e%3crect%20y='0.002'%20fill='%23FFFFFF'%20width='850.16'%20height='566.865'/%3e%3cpolygon%20fill='%23CF172C'%20points='382.569,0%20382.569,226.625%200,226.625%200,339.948%20382.569,339.948%20382.569,566.863%20467.592,566.863%20467.592,339.948%20850.16,339.948%20850.16,226.625%20467.592,226.625%20467.592,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,0%20495.946,183.497%20771.202,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='495.946,566.863%20771.202,566.863%20495.946,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,566.863%20354.214,566.863%20354.214,383.368%20'/%3e%3cpolygon%20fill='%2325346C'%20points='78.96,0%20354.214,183.497%20354.214,0%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0.003,188.95%20204.392,188.95%200.003,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,188.95%20850.16,188.95%20850.16,52.699%20'/%3e%3cpolygon%20fill='%2325346C'%20points='645.768,377.913%20850.16,514.171%20850.16,377.913%20'/%3e%3cpolygon%20fill='%2325346C'%20points='0,377.913%200,514.171%20204.392,377.913%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='802.938,0%20520.004,188.95%20567.223,188.95%20850.605,0%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='330.156,377.909%20282.937,377.909%200,566.852%2047.219,566.852%20330.602,377.909%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='0,0%200,31.692%20236.091,189.098%20283.311,189.098%20'/%3e%3cpolygon%20fill='%23CF172C'%20points='566.696,377.832%20850.008,566.929%20850.01,535.239%20613.92,377.832%20'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Lf={name:"CmdSwitchLanguage",emits:["click"],data(){return{imageSources:[]}},props:{languages:{type:Array,required:!0}},methods:{getRoute(t){return me(t)},activeLanguage(t){return t.active}},watch:{languages:{handler(){this.imageSources=[],this.languages.forEach(async t=>{const n=t.iso2;this.imageSources.push(Df[n].default)})},immediate:!0,deep:!0}}},Pf={class:"cmd-switch-language"},Af=["href","title","onClick"],Hf=["src","alt"],qf=["src","alt"];function zf(t,n,o,a,i,l){const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",Pf,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.languages,(r,c)=>(e.openBlock(),e.createElementBlock("li",{key:c},[r.link.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:0,href:r.link.path,class:e.normalizeClass(["flag",r.iso2,{active:l.activeLanguage(r)}]),title:r.tooltip,onClick:h=>t.$emit("click",{originalEvent:h,language:r})},[e.createElementVNode("img",{src:i.imageSources[c],alt:r.name},null,8,Hf)],10,Af)):(e.openBlock(),e.createBlock(s,{key:1,class:e.normalizeClass(["flag",r.iso2]),to:l.getRoute(r),title:r.tooltip,onClick:h=>t.$emit("click",{originalEvent:h,language:r})},{default:e.withCtx(()=>[e.createElementVNode("img",{src:i.imageSources[c],alt:r.name},null,8,qf)]),_:2},1032,["class","to","title","onClick"]))]))),128))])])}const Rf=B(Lf,[["render",zf]]),jf={name:"CmdSystemMessage",mixins:[ye],data(){return{showSystemMessage:!0}},props:{validationStatus:{type:String,required:!0,validator(t){return t==="error"||t==="warning"||t==="success"||t==="info"}},fullWidth:{type:Boolean,default:!0},iconMessage:{type:Object,default:function(){return{show:!0,iconClass:"icon-warning",type:"auto"}}},systemMessage:{type:String,required:!1},messageHeadlineLevel:{type:[Number,String],default(){return 6}},iconClose:{type:Object,default(){return{show:!0,iconClass:"icon-cancel-circle",tooltip:"Close this message"}}}},computed:{headlineIcon(){return this.iconMessage.show?{iconClass:this.iconMessage.iconClass,type:this.iconMessage.type}:null}},watch:{message(){this.showSystemMessage=!0}}},Uf=["role","aria-labelledby"],Wf=["title"];function Gf(t,n,o,a,i,l){const s=I,r=M;return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showSystemMessage?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cmd-system-message","system-message","flex-container","vertical",{"full-width":o.fullWidth},o.validationStatus]),role:o.validationStatus==="error"?"alert":"dialog","aria-labelledby":t.htmlId},[o.iconClose.show&&o.iconClose.iconClass?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[0]||(n[0]=e.withModifiers(c=>i.showSystemMessage=!1,["prevent"])),title:o.iconClose.tooltip},[e.createVNode(s,{iconClass:o.iconClose.iconClass,type:o.iconClose.iconType},null,8,["iconClass","type"])],8,Wf)):e.createCommentVNode("",!0),e.createVNode(r,{class:"message-headline",headlineIcon:l.headlineIcon,headlineText:o.systemMessage,headlineLevel:o.messageHeadlineLevel,id:t.htmlId},null,8,["headlineIcon","headlineText","headlineLevel","id"]),e.renderSlot(t.$slots,"default")],10,Uf)):e.createCommentVNode("",!0)]),_:3})}const Ho=B(jf,[["render",Gf]]),Jf={name:"CmdTable",data(){return{showTableData:!0,fullWidth:!1,hasOverflow:!1}},props:{tableData:{type:Object,required:!0},caption:{type:Object,required:!1},collapsible:{type:Boolean,default:!1},fullWidthOnDefault:{type:Boolean,default:!1},userCanToggleWidth:{type:Boolean,default:!0},showSlideButtons:{type:Boolean,default:!0},iconExpand:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-down",tooltip:"Expand table"}}},iconCollapse:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Collapse table"}}},iconToggleWidth:{type:Object,default:function(){return{iconClass:"icon-toggle-table-width",tooltip:"Toggle table width"}}},iconStretch:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-right",tooltip:"Stretch table"}}}},mounted(){this.hasOverflow=this.$refs.table.clientWidth>this.$refs.innerWrapper.clientWidth},computed:{hasCaption(){var t,n;return this.hideCaption?!1:((t=this.tableData.caption)==null?void 0:t.text)||((n=this.caption)==null?void 0:n.text)},hideCaption(){var t,n,o;return((t=this.caption)==null?void 0:t.show)===!1||((n=this.caption)==null?void 0:n.show)!==!0&&!((o=this.tableData.caption)!=null&&o.show)}},methods:{scrollLeft(){this.$refs.innerWrapper.scrollLeft=0,this.$refs.table.previousElementSibling.style.cssText="left: 0;",this.updatePosition()},scrollRight(){this.$refs.table.querySelector("th:last-child").scrollIntoView(),this.$refs.table.nextElementSibling.style.cssText="right: auto;",this.updatePosition()},updatePosition(){const t=this.$refs.table.previousElementSibling,n=this.$refs.table.nextElementSibling,o=this.$refs.innerWrapper,a=o.getBoundingClientRect(),i=a.width+o.scrollLeft-n.getBoundingClientRect().width,l=o.scrollLeft;console.log("parentRect",a),t.style.left=`${l}px`,n.style.left=`${i}px`,l===0?t.style.display="none":t.style.display="flex",l===o.scrollLeftMax?n.style.display="none":n.style.display="flex"}},watch:{fullWidthOnDefault:{handler(){this.fullWidth=this.fullWidthOnDefault},immediate:!0}}},Kf={key:0,class:"button-wrapper"},Zf=["title"],Yf=["title"],Xf={"aria-expanded":"true"},Qf={key:0,"aria-expanded":"true"};function $f(t,n,o,a,i,l){var c,h,d,m;const s=I,r=ke;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-table-wrapper",{collapsed:!i.showTableData,"full-width":i.fullWidth,"has-caption":l.hasCaption,"has-overflow":i.hasOverflow}])},[o.collapsible||o.userCanToggleWidth?(e.openBlock(),e.createElementBlock("div",Kf,[o.userCanToggleWidth?(e.openBlock(),e.createElementBlock("a",{key:0,class:"button",href:"#",onClick:n[0]||(n[0]=e.withModifiers(p=>i.fullWidth=!i.fullWidth,["prevent"])),title:o.iconToggleWidth.tooltip},[e.createVNode(s,{iconClass:o.iconToggleWidth.iconClass,type:o.iconToggleWidth.iconType},null,8,["iconClass","type"])],8,Zf)):e.createCommentVNode("",!0),o.collapsible?(e.openBlock(),e.createElementBlock("a",{key:1,class:"button",href:"#",onClick:n[1]||(n[1]=e.withModifiers(p=>i.showTableData=!i.showTableData,["prevent"])),title:i.showTableData?o.iconCollapse.tooltip:o.iconExpand.tooltip},[e.createVNode(s,{iconClass:i.showTableData?o.iconCollapse.iconClass:o.iconExpand.iconClass,type:i.showTableData?o.iconCollapse.iconType:o.iconExpand.iconType},null,8,["iconClass","type"])],8,Yf)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"inner-wrapper",ref:"innerWrapper",onScroll:n[2]||(n[2]=(...p)=>l.updatePosition&&l.updatePosition(...p))},[o.showSlideButtons?(e.openBlock(),e.createBlock(r,{key:0,onClick:e.withModifiers(l.scrollLeft,["prevent"]),slideButtonType:"prev"},null,8,["onClick"])):e.createCommentVNode("",!0),e.createElementVNode("table",{ref:"table",class:e.normalizeClass({"full-width":i.fullWidth})},[(c=o.tableData.caption)!=null&&c.text||(h=o.caption)!=null&&h.text?(e.openBlock(),e.createElementBlock("caption",{key:0,class:e.normalizeClass({hidden:l.hideCaption})},e.toDisplayString(((d=o.caption)==null?void 0:d.text)||((m=o.tableData.caption)==null?void 0:m.text)),3)):e.createCommentVNode("",!0),e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.thead,(p,f)=>(e.openBlock(),e.createElementBlock("th",{key:f},e.toDisplayString(p),1))),128))])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("tbody",Xf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.tbody,(p,f)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({active:o.tableData.rowIndexHighlighted===f}),key:f},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(u,y)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass({active:o.tableData.columnIndexHighlighted===y}),key:y},e.toDisplayString(u),3))),128))],2))),128))],512),[[e.vShow,i.showTableData]])]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.tableData.tfoot&&o.tableData.tfoot.length&&i.showTableData?(e.openBlock(),e.createElementBlock("tfoot",Qf,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.tfoot,(p,f)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass({active:o.tableData.columnIndexHighlighted===f}),key:f},e.toDisplayString(p),3))),128))])])):e.createCommentVNode("",!0)]),_:1})],2),o.showSlideButtons?(e.openBlock(),e.createBlock(r,{key:1,onClick:e.withModifiers(l.scrollRight,["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)],544)],2)}const vf=B(Jf,[["render",$f]]);Wt({prefix:"cmd",icons:{"3d-cursor":{body:'<path d="M13 4H4v9.01h2V6h7V4z" fill="currentColor"/><path d="M29.49 13.12l-9-5a1 1 0 0 0-1 0l-9 5A1 1 0 0 0 10 14v10a1 1 0 0 0 .52.87l9 5A1 1 0 0 0 20 30a1.05 1.05 0 0 0 .49-.13l9-5A1 1 0 0 0 30 24V14a1 1 0 0 0-.51-.88zM19 27.3l-7-3.89v-7.72l7 3.89zm1-9.45L13.06 14L20 10.14L26.94 14zm8 5.56l-7 3.89v-7.72l7-3.89z" fill="currentColor"/>',hidden:!0},building:{body:'<path fill="currentColor" d="M28 2H16a2.002 2.002 0 0 0-2 2v10H4a2.002 2.002 0 0 0-2 2v14h28V4a2.002 2.002 0 0 0-2-2ZM9 28v-7h4v7Zm19 0H15v-8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v8H4V16h12V4h12Z"/><path fill="currentColor" d="M18 8h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2z"/>'},linkedin:{body:`<path fill="currentColor" d="M12,12h5.535v2.837h0.078C18.384,13.456,20.27,12,23.078,12C28.92,12,30,15.637,30,20.367V30h-5.77v-8.54
2
2
  c0-2.037-0.041-4.657-3-4.657c-3.006,0-3.463,2.219-3.463,4.51V30H12V12z"/>
3
3
  <path fill="currentColor" d="M2,12h6v18H2V12z"/>
4
- <path fill="currentColor" d="M8,7c0,1.657-1.343,3-3,3S2,8.657,2,7s1.343-3,3-3S8,5.343,8,7z"/>`}},width:32,height:32});const nu={name:"CmdTabs",data(){return{showTab:this.activeTab}},emits:["active-tab"],props:{cmdHeadline:{type:Object,required:!1},stretchTabs:{type:Boolean,default:!1},tabs:{type:Array,required:!0},useSlot:{type:Boolean,default:!1},activeTab:{type:Number,default:0}},methods:{setActiveTab(t){this.showTab=t,this.$emit("active-tab",t)}},watch:{activeTab(){this.showTab=this.activeTab}}},lu={class:"cmd-tabs"},iu=["onClick","title"],au={key:1},su={key:1,"aria-live":"assertive"},ru=["innerHTML"];function cu(t,n,o,a,i,l){const s=N,r=O;return e.openBlock(),e.createElementBlock("div",lu,[e.createElementVNode("ul",{class:e.normalizeClass({"stretch-tabs":o.stretchTabs}),role:"tablist"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,(c,h)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({active:i.showTab===h}),key:h,role:"tab"},[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(d=>l.setActiveTab(h),["prevent"]),title:c.name?void 0:c.tooltip},[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.name?(e.openBlock(),e.createElementBlock("span",au,e.toDisplayString(c.name),1)):e.createCommentVNode("",!0)],8,iu)],2))),128))],2),o.useSlot?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.tabs.length,c=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:c,"aria-live":"assertive"},[e.renderSlot(t.$slots,"tab-content-"+(c-1))])),[[e.vShow,i.showTab===c-1]])),128)):(e.openBlock(),e.createElementBlock("div",su,[o.cmdHeadline?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0},o.cmdHeadline,{headlineText:o.tabs[i.showTab].headlineText,headlineLevel:o.tabs[i.showTab].headlineLevel}),null,16,["headlineText","headlineLevel"])):e.createCommentVNode("",!0),e.createElementVNode("div",{innerHTML:o.tabs[i.showTab].htmlContent},null,8,ru)]))])}const du=B(nu,[["render",cu]]),mu={name:"CmdTextImageBlock",mixins:[P],data(){return{editableHtmlContent:null}},props:{orientation:{type:String,default:"vertical",validator(t){return t==="vertical"||t==="horizontal"}},htmlContent:{type:String,required:!0},paragraphTextAlign:{type:String,required:!1,validator(t){return t==="left"||t==="center"||t==="right"}},headlinePosition:{type:String,default:"aboveImage",validator(t){return t==="aboveImage"||t==="belowImage"}},cmdHeadline:{type:Object,required:!1},cmdImage:{type:Object,required:!1},editModeContextData:{type:Object}},computed:{paragraphComponentPath(){return[{componentPath:["props","htmlContent"],$isComponent:!1}]},textAlign(){return this.paragraphTextAlign?"text-align-"+this.paragraphTextAlign:""}},methods:{onAddItem(){this.$refs.editComponentWrapper.editComponent()},addHandlerProvider(){return""},updateHandlerProvider(){const t=this.editableHtmlContent;return this.editableHtmlContent=null,z(this,{update(n){n.htmlContent=t}})}},watch:{htmlContent:{handler(){this.editableHtmlContent=this.htmlContent},immediate:!0}}},hu={class:"flex-container vertical"},fu=["innerHTML"],uu=["innerHTML"],pu=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new paragraph",-1)];function gu(t,n,o,a,i,l){var h,d,m,p;const s=O,r=ae,c=te;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-text-image-block flex-container",o.orientation])},[((h=o.cmdHeadline)!=null&&h.headlineText||t.editModeContext)&&o.headlinePosition==="aboveImage"&&o.orientation==="vertical"?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.cmdImage?(e.openBlock(),e.createBlock(r,{key:1,image:(d=o.cmdImage)==null?void 0:d.image,figcaption:(m=o.cmdImage)==null?void 0:m.figcaption,editModeConfig:{allowAddItem:!1}},null,8,["image","figcaption"])):e.createCommentVNode("",!0),e.createElementVNode("div",hu,[((p=o.cmdHeadline)!=null&&p.headlineText||t.editModeContext)&&(o.headlinePosition==="belowImage"||o.orientation==="horizontal")?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.htmlContent?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:o.htmlContent,class:e.normalizeClass(l.textAlign)},null,10,fu)):e.createCommentVNode("",!0)]),t.editModeContext?(e.openBlock(),e.createBlock(c,{key:2,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentProps:{htmlContent:o.htmlContent,textAlign:l.textAlign},componentPath:l.paragraphComponentPath,allowDeleteComponent:!!o.htmlContent},{default:e.withCtx(f=>[f.editing?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,class:e.normalizeClass(["edit-mode",l.textAlign]),"onUpdate:modelValue":n[0]||(n[0]=u=>i.editableHtmlContent=u),placeholder:"Paragraph"},null,2)),[[e.vModelText,i.editableHtmlContent]]):o.htmlContent?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:o.htmlContent,class:e.normalizeClass(l.textAlign)},null,10,uu)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"button confirm",onClick:n[1]||(n[1]=(...u)=>l.onAddItem&&l.onAddItem(...u))},pu))]),_:1},8,["componentProps","componentPath","allowDeleteComponent"])):e.createCommentVNode("",!0)],2)}const yu=B(mu,[["render",gu]]),ku={name:"ToggleDarkMode",mixins:[P],data(){return{darkMode:!1,editableLabelTextLightMode:null,editableLabelTextDarkMode:null}},props:{styledAsButton:{type:Boolean,default:!1},iconDarkMode:{default(){return{iconClass:"icon-moon",iconType:"auto"}}},iconLightMode:{default(){return{iconClass:"icon-sun",iconType:"auto"}}},showLabel:{type:Boolean,default:!1},useStyledLayout:{type:Boolean,default:!1},labelTextDarkMode:{type:String,default:"Dark-mode enabled"},labelTextLightMode:{type:String,default:"Light-mode enabled"}},created(){const t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",this.onColorSchemeChange),this.onColorSchemeChange(t),this.$nextTick(()=>{const n=window.localStorage.getItem("cmd-color-scheme");n&&(this.darkMode=n==="dark-mode")}),document.documentElement.addEventListener("toggle-color-scheme",this.onToggleColorScheme)},beforeUnmount(){window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.onColorSchemeChange),document.documentElement.removeEventListener("toggle-color-scheme",this.onToggleColorScheme)},methods:{onColorSchemeChange(t){this.darkMode=t.matches,document.documentElement.classList.add(this.darkMode?"dark-mode":"light-mode")},setColorScheme(){window.localStorage.setItem("cmd-color-scheme",this.darkMode?"dark-mode":"light-mode")},onToggleColorScheme(t){this.darkMode=t.detail==="dark-mode"},toggleColorScheme(){this.darkMode=!this.darkMode,this.setColorScheme()},updateHandlerProvider(){const t=this.labelTextLightModeModel,n=this.labelTextDarkModeModel;return z(this,{update(o){o.labelTextLightMode=t,o.labelTextDarkMode=n}})}},computed:{labelTextLightModeModel:{get(){return this.editableLabelTextLightMode==null?this.labelTextLightMode:this.editableLabelTextLightMode},set(t){this.editableLabelTextLightMode=t}},labelTextDarkModeModel:{get(){return this.editableLabelTextDarkMode==null?this.labelTextDarkMode:this.editableLabelTextDarkMode},set(t){this.editableLabelTextDarkMode=t}},labelText(){return this.darkMode?this.labelTextDarkMode:this.labelTextLightMode},iconClass(){return this.darkMode?this.iconDarkMode.iconClass:this.iconLightMode.iconClass},iconType(){return this.darkMode?this.iconDarkMode.iconType:this.iconLightMode.iconType}},watch:{darkMode:{handler(){const t=document.documentElement;this.darkMode?t.classList.replace("light-mode","dark-mode"):t.classList.replace("dark-mode","light-mode"),t.dispatchEvent(new CustomEvent("toggle-color-scheme",{detail:this.darkMode?"dark-mode":"light-mode"}))},immediate:!0}}},Cu={key:0};function bu(t,n,o,a,i,l){const s=N,r=A;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-toggle-dark-mode",{"styled-layout":o.useStyledLayout,"dark-mode":i.darkMode}])},[t.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(r,{element:"input",type:"text",labelText:"Label for Light Mode",placeholder:"Label for Light Mode",modelValue:l.labelTextLightModeModel,"onUpdate:modelValue":n[2]||(n[2]=c=>l.labelTextLightModeModel=c)},null,8,["modelValue"]),e.createVNode(r,{element:"input",type:"text",labelText:"Label for Dark Mode",placeholder:"Label for Dark Mode",modelValue:l.labelTextDarkModeModel,"onUpdate:modelValue":n[3]||(n[3]=c=>l.labelTextDarkModeModel=c)},null,8,["modelValue"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.styledAsButton?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["button",{"dark-mode":i.darkMode}]),onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.toggleColorScheme&&l.toggleColorScheme(...c),["prevent"]))},[o.showLabel?(e.openBlock(),e.createElementBlock("span",Cu,e.toDisplayString(l.labelText),1)):e.createCommentVNode("",!0),e.createVNode(s,{iconClass:l.iconClass,type:l.iconType,tooltip:o.showLabel?"":l.labelText},null,8,["iconClass","type","tooltip"])],2)):(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:"checkbox",labelText:l.labelText,showLabel:o.showLabel,modelValue:i.darkMode,"onUpdate:modelValue":[n[1]||(n[1]=c=>i.darkMode=c),l.setColorScheme],"toggle-switch":!0,title:o.showLabel?"":l.labelText},null,8,["labelText","showLabel","modelValue","title","onUpdate:modelValue"]))],64))],2)}const Bu=B(ku,[["render",bu]]),wu={data(){return{defaultMessageProperties:{"cmduploadform.no_file_to_upload":"No file selected to upload","cmduploadform.no_files_to_upload":"No files selected to upload","cmduploadform.labeltext.select_file":"Select file to upload","cmduploadform.labeltext.select_files":"Select files to upload","cmduploadform.labeltext.remove_file_from_list":"Remove file '{0}' from list","cmduploadform.labeltext.remove_all_files_from_list":"Remove all files from list","cmduploadform.labeltext.file_uploading":"file to upload","cmduploadform.labeltext.files_uploading":"files to upload","cmduploadform.labeltext.comment":"Comment:","cmduploadform.buttontext.upload_file":"Upload file","cmduploadform.buttontext.upload_files":"Upload files","cmduploadform.buttontext.cancel":"Cancel","cmduploadform.placeholder.comment":"Please type in a specific comment","cmduploadform.system_message.found_duplicate_file":"Found duplicate file (not added again)","cmduploadform.system_message.upload_success":"Upload successful","cmduploadform.system_message.upload_failed":"Upload failed","cmduploadform.system_message.fill_required":"Fill all required fields","cmduploadform.system_message.the_following_errors_occurred":"The following errors occurred!","cmduploadform.system_message.an_unknown_error_occurred":"An unknown error occurred!","cmduploadform.system_message.only_one_file_allowed":"Only one file allowed!","cmduploadform.system_message_total_size_of_files_too_large":"Total size of files too large!","cmduploadform.system_message.duplicate_file":'Duplicate file "{0}" found (not added to list again)',"cmduploadform.system_message.not_allowed_file_type":'File "{0}" has not allowed file type ({1})',"cmduploadform.system_message.all_files_are_uploaded_successfully":"All files are uploaded successfully","cmduploadform.system_message.some_files_are_not_uploaded_successfully":"Some files are not uploaded successfully","cmduploadform.system_message.file_size_too_large":'File size of "{0}" too large ({1})',"cmduploadform.headline.summary_of_all_files":"Summary of all files","cmduploadform.headline.list_of_selected_files":"List of selected files","cmduploadform.headline.select_additional_files":"Select additional files","cmduploadform.headline.select_new_file":"Chosen the wrong file? Select a new one","cmduploadform.allowed_file_types":"Allowed file types:","cmduploadform.max_total_upload_size":"Max. total upload size:","cmduploadform.max_file_upload_size":"Max. file upload size:","cmduploadform.or":"or","cmduploadform.drag_and_drop":"drag (and drop)","cmduploadform.additional":"additional","cmduploadform.new":"new","cmduploadform.files_to_this_area":"files to this area","cmduploadform.tooltip.toggle_list_of_allowed_file_types":"Toggle list of allowed file types","cmduploadform.reset_upload":"Reset upload","cmduploadform.tooltip.all_files_will_be_removed":"All files will be remove from upload-list!","cmduploadform.select_image":"Select image","cmduploadform.select_file":"Select file","cmduploadform.drag_and_drop_file_here":"Drag and drop file here","cmduploadform.max_upload_size":"Max. upload size:"}}}};function Ho(t,n){return function(){return t.apply(n,arguments)}}const{toString:_u}=Object.prototype,{getPrototypeOf:Bt}=Object,Re=(t=>n=>{const o=_u.call(n);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),J=t=>(t=t.toLowerCase(),n=>Re(n)===t),je=t=>n=>typeof n===t,{isArray:he}=Array,be=je("undefined");function xu(t){return t!==null&&!be(t)&&t.constructor!==null&&!be(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zo=J("ArrayBuffer");function Eu(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&zo(t.buffer),n}const Su=je("string"),U=je("function"),Ro=je("number"),Ue=t=>t!==null&&typeof t=="object",Vu=t=>t===!0||t===!1,We=t=>{if(Re(t)!=="object")return!1;const n=Bt(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Tu=J("Date"),Nu=J("File"),Iu=J("Blob"),Fu=J("FileList"),Ou=t=>Ue(t)&&U(t.pipe),Mu=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((n=Re(t))==="formdata"||n==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},Du=J("URLSearchParams"),[Lu,Pu,Au,qu]=["ReadableStream","Request","Response","Headers"].map(J),Hu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Be(t,n,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let a,i;if(typeof t!="object"&&(t=[t]),he(t))for(a=0,i=t.length;a<i;a++)n.call(null,t[a],a,t);else{const l=o?Object.getOwnPropertyNames(t):Object.keys(t),s=l.length;let r;for(a=0;a<s;a++)r=l[a],n.call(null,t[r],r,t)}}function jo(t,n){n=n.toLowerCase();const o=Object.keys(t);let a=o.length,i;for(;a-- >0;)if(i=o[a],n===i.toLowerCase())return i;return null}const Uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wo=t=>!be(t)&&t!==Uo;function wt(){const{caseless:t}=Wo(this)&&this||{},n={},o=(a,i)=>{const l=t&&jo(n,i)||i;We(n[l])&&We(a)?n[l]=wt(n[l],a):We(a)?n[l]=wt({},a):he(a)?n[l]=a.slice():n[l]=a};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&Be(arguments[a],o);return n}const zu=(t,n,o,{allOwnKeys:a}={})=>(Be(n,(i,l)=>{o&&U(i)?t[l]=Ho(i,o):t[l]=i},{allOwnKeys:a}),t),Ru=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ju=(t,n,o,a)=>{t.prototype=Object.create(n.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),o&&Object.assign(t.prototype,o)},Uu=(t,n,o,a)=>{let i,l,s;const r={};if(n=n||{},t==null)return n;do{for(i=Object.getOwnPropertyNames(t),l=i.length;l-- >0;)s=i[l],(!a||a(s,t,n))&&!r[s]&&(n[s]=t[s],r[s]=!0);t=o!==!1&&Bt(t)}while(t&&(!o||o(t,n))&&t!==Object.prototype);return n},Wu=(t,n,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=n.length;const a=t.indexOf(n,o);return a!==-1&&a===o},Gu=t=>{if(!t)return null;if(he(t))return t;let n=t.length;if(!Ro(n))return null;const o=new Array(n);for(;n-- >0;)o[n]=t[n];return o},Ju=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&Bt(Uint8Array)),Ku=(t,n)=>{const a=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=a.next())&&!i.done;){const l=i.value;n.call(t,l[0],l[1])}},Zu=(t,n)=>{let o;const a=[];for(;(o=t.exec(n))!==null;)a.push(o);return a},Yu=J("HTMLFormElement"),Xu=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,i){return a.toUpperCase()+i}),Go=(({hasOwnProperty:t})=>(n,o)=>t.call(n,o))(Object.prototype),Qu=J("RegExp"),Jo=(t,n)=>{const o=Object.getOwnPropertyDescriptors(t),a={};Be(o,(i,l)=>{let s;(s=n(i,l,t))!==!1&&(a[l]=s||i)}),Object.defineProperties(t,a)},$u=t=>{Jo(t,(n,o)=>{if(U(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=t[o];if(U(a)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},vu=(t,n)=>{const o={},a=i=>{i.forEach(l=>{o[l]=!0})};return he(t)?a(t):a(String(t).split(n)),o},ep=()=>{},tp=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n,_t="abcdefghijklmnopqrstuvwxyz",Ko="0123456789",Zo={DIGIT:Ko,ALPHA:_t,ALPHA_DIGIT:_t+_t.toUpperCase()+Ko},op=(t=16,n=Zo.ALPHA_DIGIT)=>{let o="";const{length:a}=n;for(;t--;)o+=n[Math.random()*a|0];return o};function np(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const lp=t=>{const n=new Array(10),o=(a,i)=>{if(Ue(a)){if(n.indexOf(a)>=0)return;if(!("toJSON"in a)){n[i]=a;const l=he(a)?[]:{};return Be(a,(s,r)=>{const c=o(s,i+1);!be(c)&&(l[r]=c)}),n[i]=void 0,l}}return a};return o(t,0)},ip=J("AsyncFunction"),g={isArray:he,isArrayBuffer:zo,isBuffer:xu,isFormData:Mu,isArrayBufferView:Eu,isString:Su,isNumber:Ro,isBoolean:Vu,isObject:Ue,isPlainObject:We,isReadableStream:Lu,isRequest:Pu,isResponse:Au,isHeaders:qu,isUndefined:be,isDate:Tu,isFile:Nu,isBlob:Iu,isRegExp:Qu,isFunction:U,isStream:Ou,isURLSearchParams:Du,isTypedArray:Ju,isFileList:Fu,forEach:Be,merge:wt,extend:zu,trim:Hu,stripBOM:Ru,inherits:ju,toFlatObject:Uu,kindOf:Re,kindOfTest:J,endsWith:Wu,toArray:Gu,forEachEntry:Ku,matchAll:Zu,isHTMLForm:Yu,hasOwnProperty:Go,hasOwnProp:Go,reduceDescriptors:Jo,freezeMethods:$u,toObjectSet:vu,toCamelCase:Xu,noop:ep,toFiniteNumber:tp,findKey:jo,global:Uo,isContextDefined:Wo,ALPHABET:Zo,generateString:op,isSpecCompliantForm:np,toJSONObject:lp,isAsyncFn:ip,isThenable:t=>t&&(Ue(t)||U(t))&&U(t.then)&&U(t.catch)};function V(t,n,o,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),o&&(this.config=o),a&&(this.request=a),i&&(this.response=i)}g.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yo=V.prototype,Xo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Xo[t]={value:t}}),Object.defineProperties(V,Xo),Object.defineProperty(Yo,"isAxiosError",{value:!0}),V.from=(t,n,o,a,i,l)=>{const s=Object.create(Yo);return g.toFlatObject(t,s,function(c){return c!==Error.prototype},r=>r!=="isAxiosError"),V.call(s,t.message,n,o,a,i),s.cause=t,s.name=t.name,l&&Object.assign(s,l),s};const ap=null;function xt(t){return g.isPlainObject(t)||g.isArray(t)}function Qo(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function $o(t,n,o){return t?t.concat(n).map(function(i,l){return i=Qo(i),!o&&l?"["+i+"]":i}).join(o?".":""):n}function sp(t){return g.isArray(t)&&!t.some(xt)}const rp=g.toFlatObject(g,{},null,function(n){return/^is[A-Z]/.test(n)});function Ge(t,n,o){if(!g.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,o=g.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,k){return!g.isUndefined(k[y])});const a=o.metaTokens,i=o.visitor||d,l=o.dots,s=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(n);if(!g.isFunction(i))throw new TypeError("visitor must be a function");function h(u){if(u===null)return"";if(g.isDate(u))return u.toISOString();if(!c&&g.isBlob(u))throw new V("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(u)||g.isTypedArray(u)?c&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function d(u,y,k){let C=u;if(u&&!k&&typeof u=="object"){if(g.endsWith(y,"{}"))y=a?y:y.slice(0,-2),u=JSON.stringify(u);else if(g.isArray(u)&&sp(u)||(g.isFileList(u)||g.endsWith(y,"[]"))&&(C=g.toArray(u)))return y=Qo(y),C.forEach(function(w,_){!(g.isUndefined(w)||w===null)&&n.append(s===!0?$o([y],_,l):s===null?y:y+"[]",h(w))}),!1}return xt(u)?!0:(n.append($o(k,y,l),h(u)),!1)}const m=[],p=Object.assign(rp,{defaultVisitor:d,convertValue:h,isVisitable:xt});function f(u,y){if(!g.isUndefined(u)){if(m.indexOf(u)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(u),g.forEach(u,function(C,S){(!(g.isUndefined(C)||C===null)&&i.call(n,C,g.isString(S)?S.trim():S,y,p))===!0&&f(C,y?y.concat(S):[S])}),m.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return f(t),n}function vo(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return n[a]})}function Et(t,n){this._pairs=[],t&&Ge(t,this,n)}const en=Et.prototype;en.append=function(n,o){this._pairs.push([n,o])},en.toString=function(n){const o=n?function(a){return n.call(this,a,vo)}:vo;return this._pairs.map(function(i){return o(i[0])+"="+o(i[1])},"").join("&")};function cp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tn(t,n,o){if(!n)return t;const a=o&&o.encode||cp,i=o&&o.serialize;let l;if(i?l=i(n,o):l=g.isURLSearchParams(n)?n.toString():new Et(n,o).toString(a),l){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class on{constructor(){this.handlers=[]}use(n,o,a){return this.handlers.push({fulfilled:n,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){g.forEach(this.handlers,function(a){a!==null&&n(a)})}}const nn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Et,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},St=typeof window<"u"&&typeof document<"u",mp=(t=>St&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),hp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fp=St&&window.location.href||"http://localhost",K={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:St,hasStandardBrowserEnv:mp,hasStandardBrowserWebWorkerEnv:hp,origin:fp},Symbol.toStringTag,{value:"Module"})),...dp};function up(t,n){return Ge(t,new K.classes.URLSearchParams,Object.assign({visitor:function(o,a,i,l){return K.isNode&&g.isBuffer(o)?(this.append(a,o.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},n))}function pp(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function gp(t){const n={},o=Object.keys(t);let a;const i=o.length;let l;for(a=0;a<i;a++)l=o[a],n[l]=t[l];return n}function ln(t){function n(o,a,i,l){let s=o[l++];if(s==="__proto__")return!0;const r=Number.isFinite(+s),c=l>=o.length;return s=!s&&g.isArray(i)?i.length:s,c?(g.hasOwnProp(i,s)?i[s]=[i[s],a]:i[s]=a,!r):((!i[s]||!g.isObject(i[s]))&&(i[s]=[]),n(o,a,i[s],l)&&g.isArray(i[s])&&(i[s]=gp(i[s])),!r)}if(g.isFormData(t)&&g.isFunction(t.entries)){const o={};return g.forEachEntry(t,(a,i)=>{n(pp(a),i,o,0)}),o}return null}function yp(t,n,o){if(g.isString(t))try{return(n||JSON.parse)(t),g.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(t)}const we={transitional:nn,adapter:["xhr","http","fetch"],transformRequest:[function(n,o){const a=o.getContentType()||"",i=a.indexOf("application/json")>-1,l=g.isObject(n);if(l&&g.isHTMLForm(n)&&(n=new FormData(n)),g.isFormData(n))return i?JSON.stringify(ln(n)):n;if(g.isArrayBuffer(n)||g.isBuffer(n)||g.isStream(n)||g.isFile(n)||g.isBlob(n)||g.isReadableStream(n))return n;if(g.isArrayBufferView(n))return n.buffer;if(g.isURLSearchParams(n))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let r;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return up(n,this.formSerializer).toString();if((r=g.isFileList(n))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ge(r?{"files[]":n}:n,c&&new c,this.formSerializer)}}return l||i?(o.setContentType("application/json",!1),yp(n)):n}],transformResponse:[function(n){const o=this.transitional||we.transitional,a=o&&o.forcedJSONParsing,i=this.responseType==="json";if(g.isResponse(n)||g.isReadableStream(n))return n;if(n&&g.isString(n)&&(a&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(r){if(s)throw r.name==="SyntaxError"?V.from(r,V.ERR_BAD_RESPONSE,this,null,this.response):r}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:K.classes.FormData,Blob:K.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{we.headers[t]={}});const kp=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cp=t=>{const n={};let o,a,i;return t&&t.split(`
5
- `).forEach(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),a=s.substring(i+1).trim(),!(!o||n[o]&&kp[o])&&(o==="set-cookie"?n[o]?n[o].push(a):n[o]=[a]:n[o]=n[o]?n[o]+", "+a:a)}),n},an=Symbol("internals");function _e(t){return t&&String(t).trim().toLowerCase()}function Je(t){return t===!1||t==null?t:g.isArray(t)?t.map(Je):String(t)}function bp(t){const n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(t);)n[a[1]]=a[2];return n}const Bp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Vt(t,n,o,a,i){if(g.isFunction(a))return a.call(this,n,o);if(i&&(n=o),!!g.isString(n)){if(g.isString(a))return n.indexOf(a)!==-1;if(g.isRegExp(a))return a.test(n)}}function wp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,o,a)=>o.toUpperCase()+a)}function _p(t,n){const o=g.toCamelCase(" "+n);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+o,{value:function(i,l,s){return this[a].call(this,n,i,l,s)},configurable:!0})})}class R{constructor(n){n&&this.set(n)}set(n,o,a){const i=this;function l(r,c,h){const d=_e(c);if(!d)throw new Error("header name must be a non-empty string");const m=g.findKey(i,d);(!m||i[m]===void 0||h===!0||h===void 0&&i[m]!==!1)&&(i[m||c]=Je(r))}const s=(r,c)=>g.forEach(r,(h,d)=>l(h,d,c));if(g.isPlainObject(n)||n instanceof this.constructor)s(n,o);else if(g.isString(n)&&(n=n.trim())&&!Bp(n))s(Cp(n),o);else if(g.isHeaders(n))for(const[r,c]of n.entries())l(c,r,a);else n!=null&&l(o,n,a);return this}get(n,o){if(n=_e(n),n){const a=g.findKey(this,n);if(a){const i=this[a];if(!o)return i;if(o===!0)return bp(i);if(g.isFunction(o))return o.call(this,i,a);if(g.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,o){if(n=_e(n),n){const a=g.findKey(this,n);return!!(a&&this[a]!==void 0&&(!o||Vt(this,this[a],a,o)))}return!1}delete(n,o){const a=this;let i=!1;function l(s){if(s=_e(s),s){const r=g.findKey(a,s);r&&(!o||Vt(a,a[r],r,o))&&(delete a[r],i=!0)}}return g.isArray(n)?n.forEach(l):l(n),i}clear(n){const o=Object.keys(this);let a=o.length,i=!1;for(;a--;){const l=o[a];(!n||Vt(this,this[l],l,n,!0))&&(delete this[l],i=!0)}return i}normalize(n){const o=this,a={};return g.forEach(this,(i,l)=>{const s=g.findKey(a,l);if(s){o[s]=Je(i),delete o[l];return}const r=n?wp(l):String(l).trim();r!==l&&delete o[l],o[r]=Je(i),a[r]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const o=Object.create(null);return g.forEach(this,(a,i)=>{a!=null&&a!==!1&&(o[i]=n&&g.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,o])=>n+": "+o).join(`
6
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...o){const a=new this(n);return o.forEach(i=>a.set(i)),a}static accessor(n){const a=(this[an]=this[an]={accessors:{}}).accessors,i=this.prototype;function l(s){const r=_e(s);a[r]||(_p(i,s),a[r]=!0)}return g.isArray(n)?n.forEach(l):l(n),this}}R.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),g.reduceDescriptors(R.prototype,({value:t},n)=>{let o=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(a){this[o]=a}}}),g.freezeMethods(R);function Tt(t,n){const o=this||we,a=n||o,i=R.from(a.headers);let l=a.data;return g.forEach(t,function(r){l=r.call(o,l,i.normalize(),n?n.status:void 0)}),i.normalize(),l}function sn(t){return!!(t&&t.__CANCEL__)}function fe(t,n,o){V.call(this,t??"canceled",V.ERR_CANCELED,n,o),this.name="CanceledError"}g.inherits(fe,V,{__CANCEL__:!0});function rn(t,n,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?t(o):n(new V("Request failed with status code "+o.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function xp(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function Ep(t,n){t=t||10;const o=new Array(t),a=new Array(t);let i=0,l=0,s;return n=n!==void 0?n:1e3,function(c){const h=Date.now(),d=a[l];s||(s=h),o[i]=c,a[i]=h;let m=l,p=0;for(;m!==i;)p+=o[m++],m=m%t;if(i=(i+1)%t,i===l&&(l=(l+1)%t),h-s<n)return;const f=d&&h-d;return f?Math.round(p*1e3/f):void 0}}function Sp(t,n){let o=0;const a=1e3/n;let i=null;return function(){const s=this===!0,r=Date.now();if(s||r-o>a)return i&&(clearTimeout(i),i=null),o=r,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,o=Date.now(),t.apply(null,arguments)),a-(r-o)))}}const Ke=(t,n,o=3)=>{let a=0;const i=Ep(50,250);return Sp(l=>{const s=l.loaded,r=l.lengthComputable?l.total:void 0,c=s-a,h=i(c),d=s<=r;a=s;const m={loaded:s,total:r,progress:r?s/r:void 0,bytes:c,rate:h||void 0,estimated:h&&r&&d?(r-s)/h:void 0,event:l,lengthComputable:r!=null};m[n?"download":"upload"]=!0,t(m)},o)},Vp=K.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function i(l){let s=l;return n&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=i(window.location.href),function(s){const r=g.isString(s)?i(s):s;return r.protocol===a.protocol&&r.host===a.host}}():function(){return function(){return!0}}(),Tp=K.hasStandardBrowserEnv?{write(t,n,o,a,i,l){const s=[t+"="+encodeURIComponent(n)];g.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),g.isString(a)&&s.push("path="+a),g.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Np(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ip(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function cn(t,n){return t&&!Np(n)?Ip(t,n):n}const dn=t=>t instanceof R?{...t}:t;function se(t,n){n=n||{};const o={};function a(h,d,m){return g.isPlainObject(h)&&g.isPlainObject(d)?g.merge.call({caseless:m},h,d):g.isPlainObject(d)?g.merge({},d):g.isArray(d)?d.slice():d}function i(h,d,m){if(g.isUndefined(d)){if(!g.isUndefined(h))return a(void 0,h,m)}else return a(h,d,m)}function l(h,d){if(!g.isUndefined(d))return a(void 0,d)}function s(h,d){if(g.isUndefined(d)){if(!g.isUndefined(h))return a(void 0,h)}else return a(void 0,d)}function r(h,d,m){if(m in n)return a(h,d);if(m in t)return a(void 0,h)}const c={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(h,d)=>i(dn(h),dn(d),!0)};return g.forEach(Object.keys(Object.assign({},t,n)),function(d){const m=c[d]||i,p=m(t[d],n[d],d);g.isUndefined(p)&&m!==r||(o[d]=p)}),o}const mn=t=>{const n=se({},t);let{data:o,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:r}=n;n.headers=s=R.from(s),n.url=tn(cn(n.baseURL,n.url),t.params,t.paramsSerializer),r&&s.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let c;if(g.isFormData(o)){if(K.hasStandardBrowserEnv||K.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[h,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([h||"multipart/form-data",...d].join("; "))}}if(K.hasStandardBrowserEnv&&(a&&g.isFunction(a)&&(a=a(n)),a||a!==!1&&Vp(n.url))){const h=i&&l&&Tp.read(l);h&&s.set(i,h)}return n},Fp=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,a){const i=mn(t);let l=i.data;const s=R.from(i.headers).normalize();let{responseType:r}=i,c;function h(){i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout;function m(){if(!d)return;const f=R.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!r||r==="text"||r==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:t,request:d};rn(function(C){o(C),h()},function(C){a(C),h()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(a(new V("Request aborted",V.ECONNABORTED,i,d)),d=null)},d.onerror=function(){a(new V("Network Error",V.ERR_NETWORK,i,d)),d=null},d.ontimeout=function(){let u=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const y=i.transitional||nn;i.timeoutErrorMessage&&(u=i.timeoutErrorMessage),a(new V(u,y.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,i,d)),d=null},l===void 0&&s.setContentType(null),"setRequestHeader"in d&&g.forEach(s.toJSON(),function(u,y){d.setRequestHeader(y,u)}),g.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),r&&r!=="json"&&(d.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&d.addEventListener("progress",Ke(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ke(i.onUploadProgress)),(i.cancelToken||i.signal)&&(c=f=>{d&&(a(!f||f.type?new fe(null,t,d):f),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const p=xp(i.url);if(p&&K.protocols.indexOf(p)===-1){a(new V("Unsupported protocol "+p+":",V.ERR_BAD_REQUEST,t));return}d.send(l||null)})},Op=(t,n)=>{let o=new AbortController,a;const i=function(c){if(!a){a=!0,s();const h=c instanceof Error?c:this.reason;o.abort(h instanceof V?h:new fe(h instanceof Error?h.message:h))}};let l=n&&setTimeout(()=>{i(new V(`timeout ${n} of ms exceeded`,V.ETIMEDOUT))},n);const s=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));const{signal:r}=o;return r.unsubscribe=s,[r,()=>{l&&clearTimeout(l),l=null}]},Mp=function*(t,n){let o=t.byteLength;if(!n||o<n){yield t;return}let a=0,i;for(;a<o;)i=a+n,yield t.slice(a,i),a=i},Dp=async function*(t,n,o){for await(const a of t)yield*Mp(ArrayBuffer.isView(a)?a:await o(String(a)),n)},hn=(t,n,o,a,i)=>{const l=Dp(t,n,i);let s=0;return new ReadableStream({type:"bytes",async pull(r){const{done:c,value:h}=await l.next();if(c){r.close(),a();return}let d=h.byteLength;o&&o(s+=d),r.enqueue(new Uint8Array(h))},cancel(r){return a(r),l.return()}},{highWaterMark:2})},fn=(t,n)=>{const o=t!=null;return a=>setTimeout(()=>n({lengthComputable:o,total:t,loaded:a}))},Ze=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",un=Ze&&typeof ReadableStream=="function",Nt=Ze&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Lp=un&&(()=>{let t=!1;const n=new Request(K.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n})(),pn=64*1024,It=un&&!!(()=>{try{return g.isReadableStream(new Response("").body)}catch{}})(),Ye={stream:It&&(t=>t.body)};Ze&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Ye[n]&&(Ye[n]=g.isFunction(t[n])?o=>o[n]():(o,a)=>{throw new V(`Response type '${n}' is not supported`,V.ERR_NOT_SUPPORT,a)})})})(new Response);const Pp=async t=>{if(t==null)return 0;if(g.isBlob(t))return t.size;if(g.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(g.isArrayBufferView(t))return t.byteLength;if(g.isURLSearchParams(t)&&(t=t+""),g.isString(t))return(await Nt(t)).byteLength},Ap=async(t,n)=>{const o=g.toFiniteNumber(t.getContentLength());return o??Pp(n)},Ft={http:ap,xhr:Fp,fetch:Ze&&(async t=>{let{url:n,method:o,data:a,signal:i,cancelToken:l,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:h,headers:d,withCredentials:m="same-origin",fetchOptions:p}=mn(t);h=h?(h+"").toLowerCase():"text";let[f,u]=i||l||s?Op([i,l],s):[],y,k;const C=()=>{!y&&setTimeout(()=>{f&&f.unsubscribe()}),y=!0};let S;try{if(c&&Lp&&o!=="get"&&o!=="head"&&(S=await Ap(d,a))!==0){let x=new Request(n,{method:"POST",body:a,duplex:"half"}),T;g.isFormData(a)&&(T=x.headers.get("content-type"))&&d.setContentType(T),x.body&&(a=hn(x.body,pn,fn(S,Ke(c)),null,Nt))}g.isString(m)||(m=m?"cors":"omit"),k=new Request(n,{...p,signal:f,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",withCredentials:m});let w=await fetch(k);const _=It&&(h==="stream"||h==="response");if(It&&(r||_)){const x={};["status","statusText","headers"].forEach(M=>{x[M]=w[M]});const T=g.toFiniteNumber(w.headers.get("content-length"));w=new Response(hn(w.body,pn,r&&fn(T,Ke(r,!0)),_&&C,Nt),x)}h=h||"text";let F=await Ye[g.findKey(Ye,h)||"text"](w,t);return!_&&C(),u&&u(),await new Promise((x,T)=>{rn(x,T,{data:F,headers:R.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:k})})}catch(w){throw C(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,t,k),{cause:w.cause||w}):V.from(w,w&&w.code,t,k)}})};g.forEach(Ft,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const gn=t=>`- ${t}`,qp=t=>g.isFunction(t)||t===null||t===!1,yn={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:n}=t;let o,a;const i={};for(let l=0;l<n;l++){o=t[l];let s;if(a=o,!qp(o)&&(a=Ft[(s=String(o)).toLowerCase()],a===void 0))throw new V(`Unknown adapter '${s}'`);if(a)break;i[s||"#"+l]=a}if(!a){const l=Object.entries(i).map(([r,c])=>`adapter ${r} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?l.length>1?`since :
4
+ <path fill="currentColor" d="M8,7c0,1.657-1.343,3-3,3S2,8.657,2,7s1.343-3,3-3S8,5.343,8,7z"/>`}},width:32,height:32});const eu={name:"CmdTabs",data(){return{showTab:this.activeTab}},emits:["active-tab"],props:{cmdHeadline:{type:Object,required:!1},stretchTabs:{type:Boolean,default:!1},tabs:{type:Array,required:!0},useSlot:{type:Boolean,default:!1},activeTab:{type:Number,default:0}},methods:{setActiveTab(t){this.showTab=t,this.$emit("active-tab",t)}},watch:{activeTab(){this.showTab=this.activeTab}}},tu={class:"cmd-tabs"},ou=["onClick","title"],nu={key:1},lu={key:1,"aria-live":"assertive"},iu=["innerHTML"];function au(t,n,o,a,i,l){const s=I,r=M;return e.openBlock(),e.createElementBlock("div",tu,[e.createElementVNode("ul",{class:e.normalizeClass({"stretch-tabs":o.stretchTabs}),role:"tablist"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,(c,h)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({active:i.showTab===h}),key:h,role:"tab"},[e.createElementVNode("a",{href:"#",onClick:e.withModifiers(d=>l.setActiveTab(h),["prevent"]),title:c.name?void 0:c.tooltip},[c.iconClass?(e.openBlock(),e.createBlock(s,{key:0,iconClass:c.iconClass,type:c.iconType},null,8,["iconClass","type"])):e.createCommentVNode("",!0),c.name?(e.openBlock(),e.createElementBlock("span",nu,e.toDisplayString(c.name),1)):e.createCommentVNode("",!0)],8,ou)],2))),128))],2),o.useSlot?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.tabs.length,c=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:c,"aria-live":"assertive"},[e.renderSlot(t.$slots,"tab-content-"+(c-1))])),[[e.vShow,i.showTab===c-1]])),128)):(e.openBlock(),e.createElementBlock("div",lu,[o.cmdHeadline?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0},o.cmdHeadline,{headlineText:o.tabs[i.showTab].headlineText,headlineLevel:o.tabs[i.showTab].headlineLevel}),null,16,["headlineText","headlineLevel"])):e.createCommentVNode("",!0),e.createElementVNode("div",{innerHTML:o.tabs[i.showTab].htmlContent},null,8,iu)]))])}const su=B(eu,[["render",au]]),ru={name:"CmdTextImageBlock",mixins:[z],data(){return{editableHtmlContent:null}},props:{orientation:{type:String,default:"vertical",validator(t){return t==="vertical"||t==="horizontal"}},htmlContent:{type:String,required:!0},paragraphTextAlign:{type:String,required:!1,validator(t){return t==="left"||t==="center"||t==="right"}},headlinePosition:{type:String,default:"aboveImage",validator(t){return t==="aboveImage"||t==="belowImage"}},cmdHeadline:{type:Object,required:!1},cmdImage:{type:Object,required:!1},editModeContextData:{type:Object}},computed:{paragraphComponentPath(){return[{componentPath:["props","htmlContent"],$isComponent:!1}]},textAlign(){return this.paragraphTextAlign?"text-align-"+this.paragraphTextAlign:""}},methods:{onAddItem(){this.$refs.editComponentWrapper.editComponent()},addHandlerProvider(){return""},updateHandlerProvider(){const t=this.editableHtmlContent;return this.editableHtmlContent=null,q(this,{update(n){n.htmlContent=t}})}},watch:{htmlContent:{handler(){this.editableHtmlContent=this.htmlContent},immediate:!0}}},cu={class:"flex-container vertical"},du=["innerHTML"],mu=["innerHTML"],hu=[e.createElementVNode("span",{class:"icon-plus"},null,-1),e.createElementVNode("span",null,"Add new paragraph",-1)];function fu(t,n,o,a,i,l){var h,d,m,p;const s=M,r=ae,c=te;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-text-image-block flex-container",o.orientation])},[((h=o.cmdHeadline)!=null&&h.headlineText||t.editModeContext)&&o.headlinePosition==="aboveImage"&&o.orientation==="vertical"?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.cmdImage?(e.openBlock(),e.createBlock(r,{key:1,image:(d=o.cmdImage)==null?void 0:d.image,figcaption:(m=o.cmdImage)==null?void 0:m.figcaption,editModeConfig:{allowAddItem:!1}},null,8,["image","figcaption"])):e.createCommentVNode("",!0),e.createElementVNode("div",cu,[((p=o.cmdHeadline)!=null&&p.headlineText||t.editModeContext)&&(o.headlinePosition==="belowImage"||o.orientation==="horizontal")?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadline)),null,16)):e.createCommentVNode("",!0),o.htmlContent?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:o.htmlContent,class:e.normalizeClass(l.textAlign)},null,10,du)):e.createCommentVNode("",!0)]),t.editModeContext?(e.openBlock(),e.createBlock(c,{key:2,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentProps:{htmlContent:o.htmlContent,textAlign:l.textAlign},componentPath:l.paragraphComponentPath,allowDeleteComponent:!!o.htmlContent},{default:e.withCtx(f=>[f.editing?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,class:e.normalizeClass(["edit-mode",l.textAlign]),"onUpdate:modelValue":n[0]||(n[0]=u=>i.editableHtmlContent=u),placeholder:"Paragraph"},null,2)),[[e.vModelText,i.editableHtmlContent]]):o.htmlContent?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:o.htmlContent,class:e.normalizeClass(l.textAlign)},null,10,mu)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"button confirm",onClick:n[1]||(n[1]=(...u)=>l.onAddItem&&l.onAddItem(...u))},hu))]),_:1},8,["componentProps","componentPath","allowDeleteComponent"])):e.createCommentVNode("",!0)],2)}const uu=B(ru,[["render",fu]]),pu={name:"ToggleDarkMode",mixins:[z],data(){return{darkMode:!1,editableLabelTextLightMode:null,editableLabelTextDarkMode:null}},props:{styledAsButton:{type:Boolean,default:!1},iconDarkMode:{default(){return{iconClass:"icon-moon",iconType:"auto"}}},iconLightMode:{default(){return{iconClass:"icon-sun",iconType:"auto"}}},showLabel:{type:Boolean,default:!1},useStyledLayout:{type:Boolean,default:!1},labelTextDarkMode:{type:String,default:"Dark-mode enabled"},labelTextLightMode:{type:String,default:"Light-mode enabled"}},created(){const t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",this.onColorSchemeChange),this.onColorSchemeChange(t),this.$nextTick(()=>{const n=window.localStorage.getItem("cmd-color-scheme");n&&(this.darkMode=n==="dark-mode")}),document.documentElement.addEventListener("toggle-color-scheme",this.onToggleColorScheme)},beforeUnmount(){window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.onColorSchemeChange),document.documentElement.removeEventListener("toggle-color-scheme",this.onToggleColorScheme)},methods:{onColorSchemeChange(t){this.darkMode=t.matches,document.documentElement.classList.add(this.darkMode?"dark-mode":"light-mode")},setColorScheme(){window.localStorage.setItem("cmd-color-scheme",this.darkMode?"dark-mode":"light-mode")},onToggleColorScheme(t){this.darkMode=t.detail==="dark-mode"},toggleColorScheme(){this.darkMode=!this.darkMode,this.setColorScheme()},updateHandlerProvider(){const t=this.labelTextLightModeModel,n=this.labelTextDarkModeModel;return q(this,{update(o){o.labelTextLightMode=t,o.labelTextDarkMode=n}})}},computed:{labelTextLightModeModel:{get(){return this.editableLabelTextLightMode==null?this.labelTextLightMode:this.editableLabelTextLightMode},set(t){this.editableLabelTextLightMode=t}},labelTextDarkModeModel:{get(){return this.editableLabelTextDarkMode==null?this.labelTextDarkMode:this.editableLabelTextDarkMode},set(t){this.editableLabelTextDarkMode=t}},labelText(){return this.darkMode?this.labelTextDarkMode:this.labelTextLightMode},iconClass(){return this.darkMode?this.iconDarkMode.iconClass:this.iconLightMode.iconClass},iconType(){return this.darkMode?this.iconDarkMode.iconType:this.iconLightMode.iconType}},watch:{darkMode:{handler(){const t=document.documentElement;this.darkMode?t.classList.replace("light-mode","dark-mode"):t.classList.replace("dark-mode","light-mode"),t.dispatchEvent(new CustomEvent("toggle-color-scheme",{detail:this.darkMode?"dark-mode":"light-mode"}))},immediate:!0}}},gu={key:0};function yu(t,n,o,a,i,l){const s=I,r=A;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-toggle-dark-mode",{"styled-layout":o.useStyledLayout,"dark-mode":i.darkMode}])},[t.editing?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(r,{element:"input",type:"text",labelText:"Label for Light Mode",placeholder:"Label for Light Mode",modelValue:l.labelTextLightModeModel,"onUpdate:modelValue":n[2]||(n[2]=c=>l.labelTextLightModeModel=c)},null,8,["modelValue"]),e.createVNode(r,{element:"input",type:"text",labelText:"Label for Dark Mode",placeholder:"Label for Dark Mode",modelValue:l.labelTextDarkModeModel,"onUpdate:modelValue":n[3]||(n[3]=c=>l.labelTextDarkModeModel=c)},null,8,["modelValue"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.styledAsButton?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["button",{"dark-mode":i.darkMode}]),onClick:n[0]||(n[0]=e.withModifiers((...c)=>l.toggleColorScheme&&l.toggleColorScheme(...c),["prevent"]))},[o.showLabel?(e.openBlock(),e.createElementBlock("span",gu,e.toDisplayString(l.labelText),1)):e.createCommentVNode("",!0),e.createVNode(s,{iconClass:l.iconClass,type:l.iconType,tooltip:o.showLabel?"":l.labelText},null,8,["iconClass","type","tooltip"])],2)):(e.openBlock(),e.createBlock(r,{key:1,element:"input",type:"checkbox",labelText:l.labelText,showLabel:o.showLabel,modelValue:i.darkMode,"onUpdate:modelValue":[n[1]||(n[1]=c=>i.darkMode=c),l.setColorScheme],"toggle-switch":!0,title:o.showLabel?"":l.labelText},null,8,["labelText","showLabel","modelValue","title","onUpdate:modelValue"]))],64))],2)}const ku=B(pu,[["render",yu]]),Cu={data(){return{defaultMessageProperties:{"cmduploadform.no_file_to_upload":"No file selected to upload","cmduploadform.no_files_to_upload":"No files selected to upload","cmduploadform.labeltext.select_file":"Select file to upload","cmduploadform.labeltext.select_files":"Select files to upload","cmduploadform.labeltext.remove_file_from_list":"Remove file '{0}' from list","cmduploadform.labeltext.remove_all_files_from_list":"Remove all files from list","cmduploadform.labeltext.file_uploading":"file to upload","cmduploadform.labeltext.files_uploading":"files to upload","cmduploadform.labeltext.comment":"Comment:","cmduploadform.buttontext.upload_file":"Upload file","cmduploadform.buttontext.upload_files":"Upload files","cmduploadform.buttontext.cancel":"Cancel","cmduploadform.placeholder.comment":"Please type in a specific comment","cmduploadform.system_message.found_duplicate_file":"Found duplicate file (not added again)","cmduploadform.system_message.upload_success":"Upload successful","cmduploadform.system_message.upload_failed":"Upload failed","cmduploadform.system_message.fill_required":"Fill all required fields","cmduploadform.system_message.the_following_errors_occurred":"The following errors occurred!","cmduploadform.system_message.an_unknown_error_occurred":"An unknown error occurred!","cmduploadform.system_message.only_one_file_allowed":"Only one file allowed!","cmduploadform.system_message_total_size_of_files_too_large":"Total size of files too large!","cmduploadform.system_message.duplicate_file":'Duplicate file "{0}" found (not added to list again)',"cmduploadform.system_message.not_allowed_file_type":'File "{0}" has not allowed file type ({1})',"cmduploadform.system_message.all_files_are_uploaded_successfully":"All files are uploaded successfully","cmduploadform.system_message.some_files_are_not_uploaded_successfully":"Some files are not uploaded successfully","cmduploadform.system_message.file_size_too_large":'File size of "{0}" too large ({1})',"cmduploadform.headline.summary_of_all_files":"Summary of all files","cmduploadform.headline.list_of_selected_files":"List of selected files","cmduploadform.headline.select_additional_files":"Select additional files","cmduploadform.headline.select_new_file":"Chosen the wrong file? Select a new one","cmduploadform.allowed_file_types":"Allowed file types:","cmduploadform.max_total_upload_size":"Max. total upload size:","cmduploadform.max_file_upload_size":"Max. file upload size:","cmduploadform.or":"or","cmduploadform.drag_and_drop":"drag (and drop)","cmduploadform.additional":"additional","cmduploadform.new":"new","cmduploadform.files_to_this_area":"files to this area","cmduploadform.tooltip.toggle_list_of_allowed_file_types":"Toggle list of allowed file types","cmduploadform.reset_upload":"Reset upload","cmduploadform.tooltip.all_files_will_be_removed":"All files will be remove from upload-list!","cmduploadform.select_image":"Select image","cmduploadform.select_file":"Select file","cmduploadform.drag_and_drop_file_here":"Drag and drop file here","cmduploadform.max_upload_size":"Max. upload size:"}}}};function qo(t,n){return function(){return t.apply(n,arguments)}}const{toString:bu}=Object.prototype,{getPrototypeOf:wt}=Object,Re=(t=>n=>{const o=bu.call(n);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),J=t=>(t=t.toLowerCase(),n=>Re(n)===t),je=t=>n=>typeof n===t,{isArray:he}=Array,be=je("undefined");function Bu(t){return t!==null&&!be(t)&&t.constructor!==null&&!be(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zo=J("ArrayBuffer");function wu(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&zo(t.buffer),n}const _u=je("string"),U=je("function"),Ro=je("number"),Ue=t=>t!==null&&typeof t=="object",xu=t=>t===!0||t===!1,We=t=>{if(Re(t)!=="object")return!1;const n=wt(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Su=J("Date"),Eu=J("File"),Vu=J("Blob"),Tu=J("FileList"),Nu=t=>Ue(t)&&U(t.pipe),Iu=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((n=Re(t))==="formdata"||n==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},Fu=J("URLSearchParams"),[Ou,Mu,Du,Lu]=["ReadableStream","Request","Response","Headers"].map(J),Pu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Be(t,n,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let a,i;if(typeof t!="object"&&(t=[t]),he(t))for(a=0,i=t.length;a<i;a++)n.call(null,t[a],a,t);else{const l=o?Object.getOwnPropertyNames(t):Object.keys(t),s=l.length;let r;for(a=0;a<s;a++)r=l[a],n.call(null,t[r],r,t)}}function jo(t,n){n=n.toLowerCase();const o=Object.keys(t);let a=o.length,i;for(;a-- >0;)if(i=o[a],n===i.toLowerCase())return i;return null}const Uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wo=t=>!be(t)&&t!==Uo;function _t(){const{caseless:t}=Wo(this)&&this||{},n={},o=(a,i)=>{const l=t&&jo(n,i)||i;We(n[l])&&We(a)?n[l]=_t(n[l],a):We(a)?n[l]=_t({},a):he(a)?n[l]=a.slice():n[l]=a};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&Be(arguments[a],o);return n}const Au=(t,n,o,{allOwnKeys:a}={})=>(Be(n,(i,l)=>{o&&U(i)?t[l]=qo(i,o):t[l]=i},{allOwnKeys:a}),t),Hu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qu=(t,n,o,a)=>{t.prototype=Object.create(n.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),o&&Object.assign(t.prototype,o)},zu=(t,n,o,a)=>{let i,l,s;const r={};if(n=n||{},t==null)return n;do{for(i=Object.getOwnPropertyNames(t),l=i.length;l-- >0;)s=i[l],(!a||a(s,t,n))&&!r[s]&&(n[s]=t[s],r[s]=!0);t=o!==!1&&wt(t)}while(t&&(!o||o(t,n))&&t!==Object.prototype);return n},Ru=(t,n,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=n.length;const a=t.indexOf(n,o);return a!==-1&&a===o},ju=t=>{if(!t)return null;if(he(t))return t;let n=t.length;if(!Ro(n))return null;const o=new Array(n);for(;n-- >0;)o[n]=t[n];return o},Uu=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&wt(Uint8Array)),Wu=(t,n)=>{const a=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=a.next())&&!i.done;){const l=i.value;n.call(t,l[0],l[1])}},Gu=(t,n)=>{let o;const a=[];for(;(o=t.exec(n))!==null;)a.push(o);return a},Ju=J("HTMLFormElement"),Ku=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,i){return a.toUpperCase()+i}),Go=(({hasOwnProperty:t})=>(n,o)=>t.call(n,o))(Object.prototype),Zu=J("RegExp"),Jo=(t,n)=>{const o=Object.getOwnPropertyDescriptors(t),a={};Be(o,(i,l)=>{let s;(s=n(i,l,t))!==!1&&(a[l]=s||i)}),Object.defineProperties(t,a)},Yu=t=>{Jo(t,(n,o)=>{if(U(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=t[o];if(U(a)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Xu=(t,n)=>{const o={},a=i=>{i.forEach(l=>{o[l]=!0})};return he(t)?a(t):a(String(t).split(n)),o},Qu=()=>{},$u=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n,xt="abcdefghijklmnopqrstuvwxyz",Ko="0123456789",Zo={DIGIT:Ko,ALPHA:xt,ALPHA_DIGIT:xt+xt.toUpperCase()+Ko},vu=(t=16,n=Zo.ALPHA_DIGIT)=>{let o="";const{length:a}=n;for(;t--;)o+=n[Math.random()*a|0];return o};function ep(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const tp=t=>{const n=new Array(10),o=(a,i)=>{if(Ue(a)){if(n.indexOf(a)>=0)return;if(!("toJSON"in a)){n[i]=a;const l=he(a)?[]:{};return Be(a,(s,r)=>{const c=o(s,i+1);!be(c)&&(l[r]=c)}),n[i]=void 0,l}}return a};return o(t,0)},op=J("AsyncFunction"),g={isArray:he,isArrayBuffer:zo,isBuffer:Bu,isFormData:Iu,isArrayBufferView:wu,isString:_u,isNumber:Ro,isBoolean:xu,isObject:Ue,isPlainObject:We,isReadableStream:Ou,isRequest:Mu,isResponse:Du,isHeaders:Lu,isUndefined:be,isDate:Su,isFile:Eu,isBlob:Vu,isRegExp:Zu,isFunction:U,isStream:Nu,isURLSearchParams:Fu,isTypedArray:Uu,isFileList:Tu,forEach:Be,merge:_t,extend:Au,trim:Pu,stripBOM:Hu,inherits:qu,toFlatObject:zu,kindOf:Re,kindOfTest:J,endsWith:Ru,toArray:ju,forEachEntry:Wu,matchAll:Gu,isHTMLForm:Ju,hasOwnProperty:Go,hasOwnProp:Go,reduceDescriptors:Jo,freezeMethods:Yu,toObjectSet:Xu,toCamelCase:Ku,noop:Qu,toFiniteNumber:$u,findKey:jo,global:Uo,isContextDefined:Wo,ALPHABET:Zo,generateString:vu,isSpecCompliantForm:ep,toJSONObject:tp,isAsyncFn:op,isThenable:t=>t&&(Ue(t)||U(t))&&U(t.then)&&U(t.catch)};function T(t,n,o,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),o&&(this.config=o),a&&(this.request=a),i&&(this.response=i)}g.inherits(T,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yo=T.prototype,Xo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Xo[t]={value:t}}),Object.defineProperties(T,Xo),Object.defineProperty(Yo,"isAxiosError",{value:!0}),T.from=(t,n,o,a,i,l)=>{const s=Object.create(Yo);return g.toFlatObject(t,s,function(c){return c!==Error.prototype},r=>r!=="isAxiosError"),T.call(s,t.message,n,o,a,i),s.cause=t,s.name=t.name,l&&Object.assign(s,l),s};const np=null;function St(t){return g.isPlainObject(t)||g.isArray(t)}function Qo(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function $o(t,n,o){return t?t.concat(n).map(function(i,l){return i=Qo(i),!o&&l?"["+i+"]":i}).join(o?".":""):n}function lp(t){return g.isArray(t)&&!t.some(St)}const ip=g.toFlatObject(g,{},null,function(n){return/^is[A-Z]/.test(n)});function Ge(t,n,o){if(!g.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,o=g.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,k){return!g.isUndefined(k[y])});const a=o.metaTokens,i=o.visitor||d,l=o.dots,s=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(n);if(!g.isFunction(i))throw new TypeError("visitor must be a function");function h(u){if(u===null)return"";if(g.isDate(u))return u.toISOString();if(!c&&g.isBlob(u))throw new T("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(u)||g.isTypedArray(u)?c&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function d(u,y,k){let b=u;if(u&&!k&&typeof u=="object"){if(g.endsWith(y,"{}"))y=a?y:y.slice(0,-2),u=JSON.stringify(u);else if(g.isArray(u)&&lp(u)||(g.isFileList(u)||g.endsWith(y,"[]"))&&(b=g.toArray(u)))return y=Qo(y),b.forEach(function(w,_){!(g.isUndefined(w)||w===null)&&n.append(s===!0?$o([y],_,l):s===null?y:y+"[]",h(w))}),!1}return St(u)?!0:(n.append($o(k,y,l),h(u)),!1)}const m=[],p=Object.assign(ip,{defaultVisitor:d,convertValue:h,isVisitable:St});function f(u,y){if(!g.isUndefined(u)){if(m.indexOf(u)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(u),g.forEach(u,function(b,S){(!(g.isUndefined(b)||b===null)&&i.call(n,b,g.isString(S)?S.trim():S,y,p))===!0&&f(b,y?y.concat(S):[S])}),m.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return f(t),n}function vo(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return n[a]})}function Et(t,n){this._pairs=[],t&&Ge(t,this,n)}const en=Et.prototype;en.append=function(n,o){this._pairs.push([n,o])},en.toString=function(n){const o=n?function(a){return n.call(this,a,vo)}:vo;return this._pairs.map(function(i){return o(i[0])+"="+o(i[1])},"").join("&")};function ap(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tn(t,n,o){if(!n)return t;const a=o&&o.encode||ap,i=o&&o.serialize;let l;if(i?l=i(n,o):l=g.isURLSearchParams(n)?n.toString():new Et(n,o).toString(a),l){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class on{constructor(){this.handlers=[]}use(n,o,a){return this.handlers.push({fulfilled:n,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){g.forEach(this.handlers,function(a){a!==null&&n(a)})}}const nn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Et,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Vt=typeof window<"u"&&typeof document<"u",rp=(t=>Vt&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),cp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dp=Vt&&window.location.href||"http://localhost",K={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vt,hasStandardBrowserEnv:rp,hasStandardBrowserWebWorkerEnv:cp,origin:dp},Symbol.toStringTag,{value:"Module"})),...sp};function mp(t,n){return Ge(t,new K.classes.URLSearchParams,Object.assign({visitor:function(o,a,i,l){return K.isNode&&g.isBuffer(o)?(this.append(a,o.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},n))}function hp(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function fp(t){const n={},o=Object.keys(t);let a;const i=o.length;let l;for(a=0;a<i;a++)l=o[a],n[l]=t[l];return n}function ln(t){function n(o,a,i,l){let s=o[l++];if(s==="__proto__")return!0;const r=Number.isFinite(+s),c=l>=o.length;return s=!s&&g.isArray(i)?i.length:s,c?(g.hasOwnProp(i,s)?i[s]=[i[s],a]:i[s]=a,!r):((!i[s]||!g.isObject(i[s]))&&(i[s]=[]),n(o,a,i[s],l)&&g.isArray(i[s])&&(i[s]=fp(i[s])),!r)}if(g.isFormData(t)&&g.isFunction(t.entries)){const o={};return g.forEachEntry(t,(a,i)=>{n(hp(a),i,o,0)}),o}return null}function up(t,n,o){if(g.isString(t))try{return(n||JSON.parse)(t),g.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(t)}const we={transitional:nn,adapter:["xhr","http","fetch"],transformRequest:[function(n,o){const a=o.getContentType()||"",i=a.indexOf("application/json")>-1,l=g.isObject(n);if(l&&g.isHTMLForm(n)&&(n=new FormData(n)),g.isFormData(n))return i?JSON.stringify(ln(n)):n;if(g.isArrayBuffer(n)||g.isBuffer(n)||g.isStream(n)||g.isFile(n)||g.isBlob(n)||g.isReadableStream(n))return n;if(g.isArrayBufferView(n))return n.buffer;if(g.isURLSearchParams(n))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let r;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return mp(n,this.formSerializer).toString();if((r=g.isFileList(n))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ge(r?{"files[]":n}:n,c&&new c,this.formSerializer)}}return l||i?(o.setContentType("application/json",!1),up(n)):n}],transformResponse:[function(n){const o=this.transitional||we.transitional,a=o&&o.forcedJSONParsing,i=this.responseType==="json";if(g.isResponse(n)||g.isReadableStream(n))return n;if(n&&g.isString(n)&&(a&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(r){if(s)throw r.name==="SyntaxError"?T.from(r,T.ERR_BAD_RESPONSE,this,null,this.response):r}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:K.classes.FormData,Blob:K.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{we.headers[t]={}});const pp=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gp=t=>{const n={};let o,a,i;return t&&t.split(`
5
+ `).forEach(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),a=s.substring(i+1).trim(),!(!o||n[o]&&pp[o])&&(o==="set-cookie"?n[o]?n[o].push(a):n[o]=[a]:n[o]=n[o]?n[o]+", "+a:a)}),n},an=Symbol("internals");function _e(t){return t&&String(t).trim().toLowerCase()}function Je(t){return t===!1||t==null?t:g.isArray(t)?t.map(Je):String(t)}function yp(t){const n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(t);)n[a[1]]=a[2];return n}const kp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Tt(t,n,o,a,i){if(g.isFunction(a))return a.call(this,n,o);if(i&&(n=o),!!g.isString(n)){if(g.isString(a))return n.indexOf(a)!==-1;if(g.isRegExp(a))return a.test(n)}}function Cp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,o,a)=>o.toUpperCase()+a)}function bp(t,n){const o=g.toCamelCase(" "+n);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+o,{value:function(i,l,s){return this[a].call(this,n,i,l,s)},configurable:!0})})}class R{constructor(n){n&&this.set(n)}set(n,o,a){const i=this;function l(r,c,h){const d=_e(c);if(!d)throw new Error("header name must be a non-empty string");const m=g.findKey(i,d);(!m||i[m]===void 0||h===!0||h===void 0&&i[m]!==!1)&&(i[m||c]=Je(r))}const s=(r,c)=>g.forEach(r,(h,d)=>l(h,d,c));if(g.isPlainObject(n)||n instanceof this.constructor)s(n,o);else if(g.isString(n)&&(n=n.trim())&&!kp(n))s(gp(n),o);else if(g.isHeaders(n))for(const[r,c]of n.entries())l(c,r,a);else n!=null&&l(o,n,a);return this}get(n,o){if(n=_e(n),n){const a=g.findKey(this,n);if(a){const i=this[a];if(!o)return i;if(o===!0)return yp(i);if(g.isFunction(o))return o.call(this,i,a);if(g.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,o){if(n=_e(n),n){const a=g.findKey(this,n);return!!(a&&this[a]!==void 0&&(!o||Tt(this,this[a],a,o)))}return!1}delete(n,o){const a=this;let i=!1;function l(s){if(s=_e(s),s){const r=g.findKey(a,s);r&&(!o||Tt(a,a[r],r,o))&&(delete a[r],i=!0)}}return g.isArray(n)?n.forEach(l):l(n),i}clear(n){const o=Object.keys(this);let a=o.length,i=!1;for(;a--;){const l=o[a];(!n||Tt(this,this[l],l,n,!0))&&(delete this[l],i=!0)}return i}normalize(n){const o=this,a={};return g.forEach(this,(i,l)=>{const s=g.findKey(a,l);if(s){o[s]=Je(i),delete o[l];return}const r=n?Cp(l):String(l).trim();r!==l&&delete o[l],o[r]=Je(i),a[r]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const o=Object.create(null);return g.forEach(this,(a,i)=>{a!=null&&a!==!1&&(o[i]=n&&g.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,o])=>n+": "+o).join(`
6
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...o){const a=new this(n);return o.forEach(i=>a.set(i)),a}static accessor(n){const a=(this[an]=this[an]={accessors:{}}).accessors,i=this.prototype;function l(s){const r=_e(s);a[r]||(bp(i,s),a[r]=!0)}return g.isArray(n)?n.forEach(l):l(n),this}}R.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),g.reduceDescriptors(R.prototype,({value:t},n)=>{let o=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(a){this[o]=a}}}),g.freezeMethods(R);function Nt(t,n){const o=this||we,a=n||o,i=R.from(a.headers);let l=a.data;return g.forEach(t,function(r){l=r.call(o,l,i.normalize(),n?n.status:void 0)}),i.normalize(),l}function sn(t){return!!(t&&t.__CANCEL__)}function fe(t,n,o){T.call(this,t??"canceled",T.ERR_CANCELED,n,o),this.name="CanceledError"}g.inherits(fe,T,{__CANCEL__:!0});function rn(t,n,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?t(o):n(new T("Request failed with status code "+o.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Bp(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function wp(t,n){t=t||10;const o=new Array(t),a=new Array(t);let i=0,l=0,s;return n=n!==void 0?n:1e3,function(c){const h=Date.now(),d=a[l];s||(s=h),o[i]=c,a[i]=h;let m=l,p=0;for(;m!==i;)p+=o[m++],m=m%t;if(i=(i+1)%t,i===l&&(l=(l+1)%t),h-s<n)return;const f=d&&h-d;return f?Math.round(p*1e3/f):void 0}}function _p(t,n){let o=0;const a=1e3/n;let i=null;return function(){const s=this===!0,r=Date.now();if(s||r-o>a)return i&&(clearTimeout(i),i=null),o=r,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,o=Date.now(),t.apply(null,arguments)),a-(r-o)))}}const Ke=(t,n,o=3)=>{let a=0;const i=wp(50,250);return _p(l=>{const s=l.loaded,r=l.lengthComputable?l.total:void 0,c=s-a,h=i(c),d=s<=r;a=s;const m={loaded:s,total:r,progress:r?s/r:void 0,bytes:c,rate:h||void 0,estimated:h&&r&&d?(r-s)/h:void 0,event:l,lengthComputable:r!=null};m[n?"download":"upload"]=!0,t(m)},o)},xp=K.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function i(l){let s=l;return n&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=i(window.location.href),function(s){const r=g.isString(s)?i(s):s;return r.protocol===a.protocol&&r.host===a.host}}():function(){return function(){return!0}}(),Sp=K.hasStandardBrowserEnv?{write(t,n,o,a,i,l){const s=[t+"="+encodeURIComponent(n)];g.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),g.isString(a)&&s.push("path="+a),g.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ep(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Vp(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function cn(t,n){return t&&!Ep(n)?Vp(t,n):n}const dn=t=>t instanceof R?{...t}:t;function se(t,n){n=n||{};const o={};function a(h,d,m){return g.isPlainObject(h)&&g.isPlainObject(d)?g.merge.call({caseless:m},h,d):g.isPlainObject(d)?g.merge({},d):g.isArray(d)?d.slice():d}function i(h,d,m){if(g.isUndefined(d)){if(!g.isUndefined(h))return a(void 0,h,m)}else return a(h,d,m)}function l(h,d){if(!g.isUndefined(d))return a(void 0,d)}function s(h,d){if(g.isUndefined(d)){if(!g.isUndefined(h))return a(void 0,h)}else return a(void 0,d)}function r(h,d,m){if(m in n)return a(h,d);if(m in t)return a(void 0,h)}const c={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(h,d)=>i(dn(h),dn(d),!0)};return g.forEach(Object.keys(Object.assign({},t,n)),function(d){const m=c[d]||i,p=m(t[d],n[d],d);g.isUndefined(p)&&m!==r||(o[d]=p)}),o}const mn=t=>{const n=se({},t);let{data:o,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:r}=n;n.headers=s=R.from(s),n.url=tn(cn(n.baseURL,n.url),t.params,t.paramsSerializer),r&&s.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let c;if(g.isFormData(o)){if(K.hasStandardBrowserEnv||K.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[h,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([h||"multipart/form-data",...d].join("; "))}}if(K.hasStandardBrowserEnv&&(a&&g.isFunction(a)&&(a=a(n)),a||a!==!1&&xp(n.url))){const h=i&&l&&Sp.read(l);h&&s.set(i,h)}return n},Tp=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,a){const i=mn(t);let l=i.data;const s=R.from(i.headers).normalize();let{responseType:r}=i,c;function h(){i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout;function m(){if(!d)return;const f=R.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!r||r==="text"||r==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:t,request:d};rn(function(b){o(b),h()},function(b){a(b),h()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(a(new T("Request aborted",T.ECONNABORTED,i,d)),d=null)},d.onerror=function(){a(new T("Network Error",T.ERR_NETWORK,i,d)),d=null},d.ontimeout=function(){let u=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const y=i.transitional||nn;i.timeoutErrorMessage&&(u=i.timeoutErrorMessage),a(new T(u,y.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,i,d)),d=null},l===void 0&&s.setContentType(null),"setRequestHeader"in d&&g.forEach(s.toJSON(),function(u,y){d.setRequestHeader(y,u)}),g.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),r&&r!=="json"&&(d.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&d.addEventListener("progress",Ke(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ke(i.onUploadProgress)),(i.cancelToken||i.signal)&&(c=f=>{d&&(a(!f||f.type?new fe(null,t,d):f),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const p=Bp(i.url);if(p&&K.protocols.indexOf(p)===-1){a(new T("Unsupported protocol "+p+":",T.ERR_BAD_REQUEST,t));return}d.send(l||null)})},Np=(t,n)=>{let o=new AbortController,a;const i=function(c){if(!a){a=!0,s();const h=c instanceof Error?c:this.reason;o.abort(h instanceof T?h:new fe(h instanceof Error?h.message:h))}};let l=n&&setTimeout(()=>{i(new T(`timeout ${n} of ms exceeded`,T.ETIMEDOUT))},n);const s=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));const{signal:r}=o;return r.unsubscribe=s,[r,()=>{l&&clearTimeout(l),l=null}]},Ip=function*(t,n){let o=t.byteLength;if(!n||o<n){yield t;return}let a=0,i;for(;a<o;)i=a+n,yield t.slice(a,i),a=i},Fp=async function*(t,n,o){for await(const a of t)yield*Ip(ArrayBuffer.isView(a)?a:await o(String(a)),n)},hn=(t,n,o,a,i)=>{const l=Fp(t,n,i);let s=0;return new ReadableStream({type:"bytes",async pull(r){const{done:c,value:h}=await l.next();if(c){r.close(),a();return}let d=h.byteLength;o&&o(s+=d),r.enqueue(new Uint8Array(h))},cancel(r){return a(r),l.return()}},{highWaterMark:2})},fn=(t,n)=>{const o=t!=null;return a=>setTimeout(()=>n({lengthComputable:o,total:t,loaded:a}))},Ze=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",un=Ze&&typeof ReadableStream=="function",It=Ze&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Op=un&&(()=>{let t=!1;const n=new Request(K.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n})(),pn=64*1024,Ft=un&&!!(()=>{try{return g.isReadableStream(new Response("").body)}catch{}})(),Ye={stream:Ft&&(t=>t.body)};Ze&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Ye[n]&&(Ye[n]=g.isFunction(t[n])?o=>o[n]():(o,a)=>{throw new T(`Response type '${n}' is not supported`,T.ERR_NOT_SUPPORT,a)})})})(new Response);const Mp=async t=>{if(t==null)return 0;if(g.isBlob(t))return t.size;if(g.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(g.isArrayBufferView(t))return t.byteLength;if(g.isURLSearchParams(t)&&(t=t+""),g.isString(t))return(await It(t)).byteLength},Dp=async(t,n)=>{const o=g.toFiniteNumber(t.getContentLength());return o??Mp(n)},Ot={http:np,xhr:Tp,fetch:Ze&&(async t=>{let{url:n,method:o,data:a,signal:i,cancelToken:l,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:h,headers:d,withCredentials:m="same-origin",fetchOptions:p}=mn(t);h=h?(h+"").toLowerCase():"text";let[f,u]=i||l||s?Np([i,l],s):[],y,k;const b=()=>{!y&&setTimeout(()=>{f&&f.unsubscribe()}),y=!0};let S;try{if(c&&Op&&o!=="get"&&o!=="head"&&(S=await Dp(d,a))!==0){let x=new Request(n,{method:"POST",body:a,duplex:"half"}),V;g.isFormData(a)&&(V=x.headers.get("content-type"))&&d.setContentType(V),x.body&&(a=hn(x.body,pn,fn(S,Ke(c)),null,It))}g.isString(m)||(m=m?"cors":"omit"),k=new Request(n,{...p,signal:f,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",withCredentials:m});let w=await fetch(k);const _=Ft&&(h==="stream"||h==="response");if(Ft&&(r||_)){const x={};["status","statusText","headers"].forEach(D=>{x[D]=w[D]});const V=g.toFiniteNumber(w.headers.get("content-length"));w=new Response(hn(w.body,pn,r&&fn(V,Ke(r,!0)),_&&b,It),x)}h=h||"text";let F=await Ye[g.findKey(Ye,h)||"text"](w,t);return!_&&b(),u&&u(),await new Promise((x,V)=>{rn(x,V,{data:F,headers:R.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:k})})}catch(w){throw b(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,t,k),{cause:w.cause||w}):T.from(w,w&&w.code,t,k)}})};g.forEach(Ot,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const gn=t=>`- ${t}`,Lp=t=>g.isFunction(t)||t===null||t===!1,yn={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:n}=t;let o,a;const i={};for(let l=0;l<n;l++){o=t[l];let s;if(a=o,!Lp(o)&&(a=Ot[(s=String(o)).toLowerCase()],a===void 0))throw new T(`Unknown adapter '${s}'`);if(a)break;i[s||"#"+l]=a}if(!a){const l=Object.entries(i).map(([r,c])=>`adapter ${r} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?l.length>1?`since :
7
7
  `+l.map(gn).join(`
8
- `):" "+gn(l[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:Ft};function Ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe(null,t)}function kn(t){return Ot(t),t.headers=R.from(t.headers),t.data=Tt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),yn.getAdapter(t.adapter||we.adapter)(t).then(function(a){return Ot(t),a.data=Tt.call(t,t.transformResponse,a),a.headers=R.from(a.headers),a},function(a){return sn(a)||(Ot(t),a&&a.response&&(a.response.data=Tt.call(t,t.transformResponse,a.response),a.response.headers=R.from(a.response.headers))),Promise.reject(a)})}const Cn="1.7.2",Mt={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Mt[t]=function(a){return typeof a===t||"a"+(n<1?"n ":" ")+t}});const bn={};Mt.transitional=function(n,o,a){function i(l,s){return"[Axios v"+Cn+"] Transitional option '"+l+"'"+s+(a?". "+a:"")}return(l,s,r)=>{if(n===!1)throw new V(i(s," has been removed"+(o?" in "+o:"")),V.ERR_DEPRECATED);return o&&!bn[s]&&(bn[s]=!0,console.warn(i(s," has been deprecated since v"+o+" and will be removed in the near future"))),n?n(l,s,r):!0}};function Hp(t,n,o){if(typeof t!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let i=a.length;for(;i-- >0;){const l=a[i],s=n[l];if(s){const r=t[l],c=r===void 0||s(r,l,t);if(c!==!0)throw new V("option "+l+" must be "+c,V.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new V("Unknown option "+l,V.ERR_BAD_OPTION)}}const Dt={assertOptions:Hp,validators:Mt},oe=Dt.validators;class re{constructor(n){this.defaults=n,this.interceptors={request:new on,response:new on}}async request(n,o){try{return await this._request(n,o)}catch(a){if(a instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{a.stack?l&&!String(a.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(a.stack+=`
9
- `+l):a.stack=l}catch{}}throw a}}_request(n,o){typeof n=="string"?(o=o||{},o.url=n):o=n||{},o=se(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:l}=o;a!==void 0&&Dt.assertOptions(a,{silentJSONParsing:oe.transitional(oe.boolean),forcedJSONParsing:oe.transitional(oe.boolean),clarifyTimeoutError:oe.transitional(oe.boolean)},!1),i!=null&&(g.isFunction(i)?o.paramsSerializer={serialize:i}:Dt.assertOptions(i,{encode:oe.function,serialize:oe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=l&&g.merge(l.common,l[o.method]);l&&g.forEach(["delete","get","head","post","put","patch","common"],u=>{delete l[u]}),o.headers=R.concat(s,l);const r=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(o)===!1||(c=c&&y.synchronous,r.unshift(y.fulfilled,y.rejected))});const h=[];this.interceptors.response.forEach(function(y){h.push(y.fulfilled,y.rejected)});let d,m=0,p;if(!c){const u=[kn.bind(this),void 0];for(u.unshift.apply(u,r),u.push.apply(u,h),p=u.length,d=Promise.resolve(o);m<p;)d=d.then(u[m++],u[m++]);return d}p=r.length;let f=o;for(m=0;m<p;){const u=r[m++],y=r[m++];try{f=u(f)}catch(k){y.call(this,k);break}}try{d=kn.call(this,f)}catch(u){return Promise.reject(u)}for(m=0,p=h.length;m<p;)d=d.then(h[m++],h[m++]);return d}getUri(n){n=se(this.defaults,n);const o=cn(n.baseURL,n.url);return tn(o,n.params,n.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(n){re.prototype[n]=function(o,a){return this.request(se(a||{},{method:n,url:o,data:(a||{}).data}))}}),g.forEach(["post","put","patch"],function(n){function o(a){return function(l,s,r){return this.request(se(r||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}re.prototype[n]=o(),re.prototype[n+"Form"]=o(!0)});class Lt{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const a=this;this.promise.then(i=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](i);a._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(r=>{a.subscribe(r),l=r}).then(i);return s.cancel=function(){a.unsubscribe(l)},s},n(function(l,s,r){a.reason||(a.reason=new fe(l,s,r),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}static source(){let n;return{token:new Lt(function(i){n=i}),cancel:n}}}function zp(t){return function(o){return t.apply(null,o)}}function Rp(t){return g.isObject(t)&&t.isAxiosError===!0}const Pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pt).forEach(([t,n])=>{Pt[n]=t});function Bn(t){const n=new re(t),o=Ho(re.prototype.request,n);return g.extend(o,re.prototype,n,{allOwnKeys:!0}),g.extend(o,n,null,{allOwnKeys:!0}),o.create=function(i){return Bn(se(t,i))},o}const D=Bn(we);D.Axios=re,D.CanceledError=fe,D.CancelToken=Lt,D.isCancel=sn,D.VERSION=Cn,D.toFormData=Ge,D.AxiosError=V,D.Cancel=D.CanceledError,D.all=function(n){return Promise.all(n)},D.spread=zp,D.isAxiosError=Rp,D.mergeConfig=se,D.AxiosHeaders=R,D.formToJSON=t=>ln(g.isHTMLForm(t)?new FormData(t):t),D.getAdapter=yn.getAdapter,D.HttpStatusCode=Pt,D.default=D;const jp={name:"CmdUploadForm",emits:["click","error","upload-complete","upload-file-success"],mixins:[j,wu],data(){return{comment:"",allowDrop:!1,listOfFiles:[],systemMessages:[],defaultSystemMessageStatus:"",showListOfFileExtensions:!1,resetForm:{},uploadInitiated:!1,errors:{}}},created(){this.resetForm.comment=this.presetComment,this.resetForm.allowDrop=this.allowDrop,this.resetForm.listOfFiles=JSON.parse(JSON.stringify(this.listOfFiles)),this.resetForm.systemMessages=this.systemMessages,this.resetForm.systemMessageStatus=this.systemMessageStatus},props:{showTotalUpload:{type:Boolean,default:!0},componentHandlesUpload:{type:Boolean,default:!0},allowedFileExtensions:{type:Array,required:!0},commentRequired:{type:Boolean,default:!0},commentStatusMessage:{type:String,default:""},enableDragAndDrop:{type:Boolean,default:!1},enableComment:{type:Boolean,default:!0},presetComment:{type:String,default:""},maxTotalUploadSize:{type:Number,default:5242880},maxFileUploadSize:{type:Number,default:10485760},allowMultipleFileUploads:{type:Boolean,default:!1},uploadOptions:{type:Object,required:!1},advancedMode:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},iconDelete:{type:Object,default(){return{iconClass:"icon-delete",iconType:"auto"}}},iconFileUpload:{type:Object,default(){return{iconClass:"icon-file-upload",iconType:"auto"}}},iconFile:{type:Object,default(){return{iconClass:"icon-file",iconType:"auto"}}},iconInvisible:{type:Object,default(){return{iconClass:"icon-not-visible",iconType:"auto"}}},iconVisible:{type:Object,default(){return{iconClass:"icon-visible",iconType:"auto"}}},iconImage:{type:Object,default(){return{iconClass:"icon-image",iconType:"auto"}}},iconUpload:{type:Object,default(){return{iconClass:"icon-upload",iconType:"auto"}}},iconDragAndDrop:{type:Object,default(){return{iconClass:"icon-drag-and-drop",iconType:"auto"}}},iconCancel:{type:Object,default(){return{iconClass:"icon-cancel",iconType:"auto"}}},cmdHeadlineFieldset:{type:Object,required:!1},cmdHeadlineNoFilesToUpload:{type:Object,required:!1},cmdHeadlineNoFileToUpload:{type:Object,required:!1},cmdHeadlineSummaryOfAllFiles:{type:Object,required:!1},cmdHeadlineListOfSelectedFiles:{type:Object,required:!1},cmdHeadlineSelectAdditionalFiles:{type:Object,required:!1},cmdHeadlineSelectNewFile:{type:Object,required:!1}},computed:{headlineTextNoFilesToUpload(){return this.allowMultipleFileUploads?this.getMessage("cmduploadform.no_files_to_upload"):this.this.getMessage("cmduploadform.no_file_to_upload")},fileTypeImage(){return this.allowedFileExtensions.some(t=>t.includes("jpg"))},failedUpload(){return this.listOfFiles.some(t=>t.error)},totalBytesUploaded(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return this.formatSize(t[1])+"/"+this.formatSize(t[0])},totalSize(){let t=0;for(let n=0;n<this.listOfFiles.length;n++)t=t+this.listOfFiles[n].file.size;return t},allSystemMessages(){return this.maxTotalUploadSize>0&&this.totalSize>this.maxTotalUploadSize?[this.getMessage("cmduploadform.system_message_total_size_of_files_too_large"),...this.systemMessages]:this.systemMessages},systemMessageStatus(){return this.defaultSystemMessageStatus||(this.allSystemMessages.length?"error":"")},dragAndDropHandler(){return this.enableDragAndDrop?{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}:{}},totalUploadProgress(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return t[1]/t[0]*100}},watch:{presetComment:{handler(t){this.comment=t},immediate:!0}},methods:{getPercentage(t){return t?t.toFixed(2)+"%":"0.00%"},getFileExtension(t){return de(t)},selectFiles(){this.$refs.formElement.getDomElement().querySelector("input[type='file']").click()},dragEnter(t){this.dragOver(t)},dragOver(t){if(t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length>0){t.dataTransfer.dropEffect="none";let n=!0;for(let o=0,a=t.dataTransfer.items.length;o<a;++o)if(t.dataTransfer.items[o].kind!=="file"){n=!1;break}n&&(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.allowDrop=!0)}},dragLeave(){this.allowDrop=!1},drop(t){this.allowDrop=!1,t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(t.preventDefault(),this.checkFiles(t.dataTransfer.files))},cancelUpload(){this.listOfFiles.forEach(t=>{t.abortController&&t.abortController.abort()}),this.errors={},this.listOfFiles=[],this.hideAllSystemMessages(),this.uploadInitiated=!1},cancel(){this.cancelUpload(),this.$emit("click","cancel")},filesSelected(t){this.checkFiles(t.target.files)},checkFiles(t){if(t.length){this.defaultSystemMessageStatus="",this.systemMessages=[],this.errors={};for(let n=0;n<t.length;n++){const o={file:t[n],progress:null,uploadedBytes:0};if(t[n].size>this.maxFileUploadSize){this.errors.fileSize=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.file_size_too_large",t[n].name,t[n].size));continue}if(!this.allowedFileExtensions.includes(de(t[n].name))){this.showListOfFileExtensions=!0,this.errors.fileType=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.not_allowed_file_type",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads&&this.listOfFiles.some(a=>this.compareFiles(a.file,t[n]))){this.systemMessages.push(this.getMessage("cmduploadform.system_message.duplicate_file",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads)this.listOfFiles.push(o);else{t.length>1&&this.systemMessages.push(this.getMessage("cmduploadform.system_message.only_one_file_allowed")),this.listOfFiles=[o];break}}if(!this.advancedMode){if(this.systemMessages.length){this.$emit("error",{messages:this.systemMessages});return}this.listOfFiles.length&&this.uploadFiles()}}},compareFiles(t,n){return t.name===n.name&&t.lastModified===n.lastModified&&t.size===n.size},removeFile(t){this.listOfFiles.splice(t,1),this.listOfFiles.length||(this.uploadInitiated=!1),this.hideAllSystemMessages()},hideAllSystemMessages(){this.listOfFiles.length||(this.systemMessages=[])},formatSize(t){return t<1024?t:t<1048576?t=Math.round(t/1024*100)/100+" KB":t=Math.round(t/1048576*100)/100+" MB"},uploadFiles(){if(this.systemMessages=[],this.errors={},this.defaultSystemMessageStatus="",this.enableComment&&!this.comment&&this.commentRequired&&this.commentStatusMessage)this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.fill_required"));else if(this.uploadInitiated=!0,this.componentHandlesUpload&&this.uploadOptions&&this.uploadOptions.url){const t=new URL(this.uploadOptions.url,location.href),n=new FormData;Object.entries(this.uploadOptions.additionalParams||{}).forEach(([a,i])=>n.append(a,i)),this.enableComment&&n.append("comment",this.comment);const o=[];this.listOfFiles.forEach(a=>{o.push(this.uploadSingleFile(t,a,n))}),Promise.allSettled(o).then(a=>{const i=a.filter(l=>l.status==="rejected");this.uploadInitiated=!1,i.length?(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.some_files_are_not_uploaded_successfully"))):(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.all_files_are_uploaded_successfully"))),this.$emit("upload-complete",{success:!i.length})})}else{let t={};t.listOfFiles=this.listOfFiles,t.type="upload",t.comment=this.comment,this.$emit("click",t,this.showMessage)}},onUploadProgress(t,n){t.lengthComputable?(n.progress=t.loaded/t.total*100,n.uploadedBytes=t.loaded):(n.progress=null,n.uploadedBytes=0),this.$forceUpdate()},uploadSingleFile(t,n,o){return n.abortController=new AbortController,o.set(this.uploadOptions.filesParam?this.uploadOptions.filesParam:"files",n.file),D.post(t,o,{signal:n.abortController.signal,onUploadProgress:a=>this.onUploadProgress(a,n)}).then(a=>(this.$emit("upload-file-success",n),a)).then(a=>{const i=this.listOfFiles.indexOf(n);return i!==-1&&this.listOfFiles.splice(i,1),a}).catch(a=>{throw this.defaultSystemMessageStatus="error",this.systemMessages.push(a),n.error=!0,new Error})},showMessage(t){t===!0?(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_success"))):t===!1&&(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_failed")))},resetFields(){if(typeof this.resetForm=="object"){const t=Object.keys(this.resetForm);for(let n of t)typeof this.resetForm[n]=="object"?this[n]=JSON.parse(JSON.stringify(this.resetForm[n])):this[n]=this.resetForm[n]}}}},Up={key:0},Wp={key:1,class:"flex-container vertical"},Gp={key:0,class:"flex-container vertical list-files-wrapper"},Jp={key:0,class:"list-of-files total-files"},Kp={class:"flex-container no-flex"},Zp=["title"],Yp={key:0,class:"progressbar"},Xp=["value","title"],Qp=e.createElementVNode("hr",null,null,-1),$p={class:"flex-container vertical list-files-wrapper"},vp={class:"list-of-files"},eg=["title","onClick"],tg={key:0,class:"progressbar"},og=["value","title"],ng=["title"],lg=e.createElementVNode("hr",null,null,-1),ig={class:"upload-conditions"},ag={class:"small"},sg=["title"],rg={key:0,class:"list-of-file-extensions"},cg={class:"flex-container vertical no-gap"},dg=["disabled"],mg={key:0},hg={key:1},fg={class:"button-wrapper no-flex"},ug=["disabled"],pg={key:0},gg={key:1},yg={key:0,class:"progressbar"},kg=["value","title"];function Cg(t,n,o,a,i,l){const s=O,r=qo,c=N,h=A;return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.advancedMode?(e.openBlock(),e.createElementBlock("fieldset",{key:0,class:e.normalizeClass(["cmd-upload-form flex-container",{"upload-initiated":i.uploadInitiated}])},[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.cmdHeadlineFieldset?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineFieldset)),null,16)):e.createCommentVNode("",!0),l.systemMessageStatus&&l.allSystemMessages.length?(e.openBlock(),e.createBlock(r,{key:1,iconClose:{show:!1},validationStatus:l.systemMessageStatus,systemMessage:l.allSystemMessages.length===1?l.allSystemMessages[0]:t.getMessage("cmduploadform.system_message.the_following_errors_occurred")},{default:e.withCtx(()=>[l.allSystemMessages.length>1?(e.openBlock(),e.createElementBlock("ul",Up,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.allSystemMessages,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m},e.toDisplayString(d),1))),128))])):e.createCommentVNode("",!0)]),_:1},8,["validationStatus","systemMessage"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({class:["box flex-container vertical",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.listOfFiles.length?(e.openBlock(),e.createElementBlock("div",Wp,[o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("div",Gp,[e.createVNode(s,e.mergeProps(o.cmdHeadlineSummaryOfAllFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.summary_of_all_files")),1)]),_:1},16),o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("ul",Jp,[e.createElementVNode("li",Kp,[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_all_files_from_list"),onClick:n[0]||(n[0]=e.withModifiers((...d)=>l.cancelUpload&&l.cancelUpload(...d),["prevent"]))},[e.createVNode(c,{iconClass:t.deleteIcon.iconClass,type:t.deleteIcon.iconClass},null,8,["iconClass","type"])],8,Zp),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(i.listOfFiles.length)+" ",1),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.files_uploading")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.file_uploading")),1)],64))]),e.createElementVNode("small",{class:e.normalizeClass(["text-align-right",{error:o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize}])}," ("+e.toDisplayString(l.formatSize(l.totalSize))+") ",3),i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",Yp,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,Xp)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),Qp])):e.createCommentVNode("",!0),e.createElementVNode("div",$p,[e.createVNode(s,e.mergeProps(o.cmdHeadlineListOfSelectedFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.list_of_selected_files")),1)]),_:1},16),e.createElementVNode("ul",vp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.listOfFiles,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:"flex-container no-flex"},[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_file_from_list",d.file.name),onClick:e.withModifiers(p=>l.removeFile(m),["prevent"])},[e.createVNode(c,{iconClass:o.iconDelete.iconClass,type:o.iconDelete.iconType},null,8,["iconClass","type"])],8,eg),e.createElementVNode("span",{class:e.normalizeClass(["text-align-right",d.allowedType?"allowed":"not-allowed",{error:d.error}])},[e.createTextVNode(e.toDisplayString(d.file.name)+" ",1),e.createElementVNode("small",null,"("+e.toDisplayString(l.formatSize(d.file.size))+")",1)],2),i.uploadInitiated&&!d.error?(e.openBlock(),e.createElementBlock("span",tg,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(d.progress)),1),e.createElementVNode("progress",{max:"100",value:d.progress,title:l.formatSize(d.uploadedBytes)+"/"+l.formatSize(d.file.size)},null,8,og)])):e.createCommentVNode("",!0)]))),128))]),l.failedUpload?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[1]||(n[1]=e.withModifiers((...d)=>l.cancel&&l.cancel(...d),["prevent"])),title:t.getMessage("cmduploadform.all_files_will_be_removed")},e.toDisplayString(t.getMessage("cmduploadform.reset_upload")),9,ng)):e.createCommentVNode("",!0),lg])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.allowMultipleFileUploads?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineNoFilesToUpload,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.headlineTextNoFilesToUpload),1)]),_:1},16)):e.createCommentVNode("",!0)],64)),e.createElementVNode("div",ig,[o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineSelectAdditionalFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_additional_files")),1)]),_:1},16)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1},o.cmdHeadlineSelectNewFile,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_new_file")),1)]),_:1},16)):e.createCommentVNode("",!0),e.createElementVNode("dl",ag,[o.maxTotalUploadSize>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("dt",{class:e.normalizeClass({error:l.totalSize>o.maxTotalUploadSize})},e.toDisplayString(t.getMessage("cmduploadform.max_total_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:l.totalSize>o.maxTotalUploadSize}])},e.toDisplayString(l.formatSize(o.maxTotalUploadSize)),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileSize})},e.toDisplayString(t.getMessage("cmduploadform.max_file_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:i.errors.fileSize}])},e.toDisplayString(l.formatSize(o.maxFileUploadSize)),3),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types")),3),e.createElementVNode("dd",null,[e.createElementVNode("a",{href:"#",onClick:n[2]||(n[2]=e.withModifiers(d=>i.showListOfFileExtensions=!i.showListOfFileExtensions,["prevent"])),title:t.getMessage("cmduploadform.tooltip.toggle_list_of_allowed_file_types")},[e.createVNode(c,{iconClass:i.showListOfFileExtensions?o.iconInvisible.iconClass:o.iconVisible.iconClass,type:i.showListOfFileExtensions?o.iconInvisible.iconType:o.iconVisible.iconType},null,8,["iconClass","type"])],8,sg),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showListOfFileExtensions?(e.openBlock(),e.createElementBlock("ul",rg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.allowedFileExtensions,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(d),3))),128))])):e.createCommentVNode("",!0)]),_:1})])])]),e.createElementVNode("div",cg,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["button upload primary",{disabled:i.uploadInitiated}]),disabled:i.uploadInitiated,onClick:n[3]||(n[3]=d=>l.selectFiles())},[e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"]),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",mg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_files")),1)):(e.openBlock(),e.createElementBlock("span",hg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_file")),1))],10,dg),o.enableDragAndDrop?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["text-drag-and-drop",{disabled:i.uploadInitiated}])},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.or")),1),e.createElementVNode("strong",null,[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop"))+" ",1),o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.additional")),1)],64)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.new")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.getMessage("cmduploadform.files_to_this_area")),1)])],2)):e.createCommentVNode("",!0)])],16),o.enableComment?(e.openBlock(),e.createBlock(h,{key:2,element:"textarea",labelText:t.getMessage("cmduploadform.labeltext.comment"),modelValue:i.comment,"onUpdate:modelValue":n[4]||(n[4]=d=>i.comment=d),required:o.commentRequired,validationMessage:o.commentStatusMessage,placeholder:t.getMessage("cmduploadform.placeholder.comment"),status:o.commentStatusMessage?"error":""},null,8,["labelText","modelValue","required","validationMessage","placeholder","status"])):e.createCommentVNode("",!0),e.createElementVNode("div",fg,[e.createElementVNode("button",{class:e.normalizeClass(["button primary",{disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated}]),disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated,onClick:n[5]||(n[5]=(...d)=>l.uploadFiles&&l.uploadFiles(...d))},[e.createVNode(c,{iconClass:o.iconUpload.iconClass,type:o.iconUpload.iconType},null,8,["iconClass","type"]),i.listOfFiles.length===1||!o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",pg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_file")),1)):(e.openBlock(),e.createElementBlock("span",gg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_files")),1))],10,ug),e.createElementVNode("button",{class:e.normalizeClass(["button",{disabled:i.listOfFiles.length===0}]),onClick:n[6]||(n[6]=(...d)=>l.cancel&&l.cancel(...d))},[e.createVNode(c,{iconClass:o.iconCancel.iconClass,type:o.iconCancel.iconType},null,8,["iconClass","type"]),e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.buttontext.cancel")),1)],2)])],2)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:1,href:"#",onClick:n[7]||(n[7]=e.withModifiers((...d)=>l.selectFiles&&l.selectFiles(...d),["prevent"])),class:["cmd-upload-form box",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",yg,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,kg)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[o.enableDragAndDrop?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop_file_here")),1),e.createVNode(c,{iconClass:o.iconDragAndDrop.iconClass,type:o.iconDragAndDrop.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.fileTypeImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_image")),1),e.createVNode(c,{iconClass:o.iconImage.iconClass,type:o.iconImage.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_file")),1),e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"])],64))],64)),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.max_upload_size"))+" "+e.toDisplayString(l.formatSize(o.maxFileUploadSize)),1),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types"))+" "+e.toDisplayString(o.allowedFileExtensions),1)])],16)),e.createVNode(h,{element:"input",type:"file",labelText:t.getMessage("cmduploadform.labeltext.select_files"),disabled:i.uploadInitiated,multiple:o.allowMultipleFileUploads,onChange:l.filesSelected,ref:"formElement"},null,8,["labelText","disabled","multiple","onChange"])],64)}const bg=B(jp,[["render",Cg]]),Bg={name:"CmdWidthLimitationWrapper",props:{contentType:{type:String,default:"flex"},innerComponent:{type:String,default:"section",validator(t){return t}},useInnerSection:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},sectionClass:{type:String,required:!1},anchorId:{type:String,required:!1},contentTypeOrientation:{type:String,default:"vertical"},cmdHeadline:{type:Object,required:!1}},computed:{setSectionClass(){return this.sectionClass?this.sectionClass:this.innerComponent==="header"?"grid-container-create-columns":this.innerComponent==="footer"?"flex-container":""},setInnerClass(){if(this.contentType==="grid")return"grid-container-create-columns";if(this.contentType==="flex"){if(this.contentTypeOrientation==="horizontal")return"flex-container";if(this.contentTypeOrientation==="vertical")return"flex-container vertical"}return""},setOuterId(){return this.innerComponent==="header"?"site-header":this.innerComponent==="footer"?"site-footer":""}},methods:{oneSlotItem(){const t=this.$slots.default();return t.length===1&&typeof t[0].type=="symbol"&&Array.isArray(t[0].children)?t[0].children.length===1:t.length===1}}},wg=["id"],_g=["id"];function xg(t,n,o,a,i,l){const s=O;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-width-limitation-wrapper",{sticky:o.sticky}]),ref:"width-limitation-wrapper"},[o.useInnerSection?(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(l.setSectionClass),id:o.anchorId},[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,"pre-headline-text":o.cmdHeadline.preHeadlineText,"headline-text":o.cmdHeadline.headlineText,"headline-level":o.cmdHeadline.headlineLevel},null,8,["pre-headline-text","headline-text","headline-level"])):e.createCommentVNode("",!0),l.oneSlotItem()?e.renderSlot(t.$slots,"default",{key:1}):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.setInnerClass)},[e.renderSlot(t.$slots,"default")],2))],10,wg)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.anchorId?(e.openBlock(),e.createElementBlock("a",{key:0,id:o.anchorId},null,8,_g)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],64))],2)}const Eg=B(Bg,[["render",xg]]),Sg={name:"ContactInformation",props:{cmdBasicForm:{type:Object,default:null},cmdAddressData:{type:Object,default:null},cmdGoogleMaps:{type:Object,default:null}},computed:{contactFormOnly(){return!(this.cmdAddressData||this.cmdGoogleMaps||!this.isSlotEmpty)},isSlotEmpty(){return!this.$scopedSlots["custom-info"]}}},Vg={key:1,class:"flex-container"},Tg={class:"flex-container vertical"};function Ng(t,n,o,a,i,l){const s=yo,r=po,c=Fo;return l.contactFormOnly?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},t.basicForm)),null,16)):(e.openBlock(),e.createElementBlock("div",Vg,[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(t.basicForm)),null,16),e.createElementVNode("div",Tg,[o.cmdAddressData?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:0},o.cmdAddressData)),null,16)):e.createCommentVNode("",!0),o.cmdGoogleMaps?(e.openBlock(),e.createBlock(c,e.normalizeProps(e.mergeProps({key:1},o.cmdGoogleMaps)),null,16)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"additional-info")])]))}const Ig=B(Sg,[["render",Ng]]),Fg={name:"MultipleBoxWrapper",props:{segments:{type:Array,default:null}}},Og={class:"cmd-page-multiple-box-wrapper flex-container vertical"};function Mg(t,n,o,a,i,l){const s=Ct,r=So;return e.openBlock(),e.createElementBlock("div",Og,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(c,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(r,{boxesPerRow:c.boxesPerRow,useRowViewAsDefault:c.useRowViewAsDefault,useGap:c.useGap,cmdHeadline:c.cmdHeadline},{default:e.withCtx(d=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.boxes,(m,p)=>(e.openBlock(),e.createBlock(s,e.mergeProps({"use-slots":["box-body"],key:p},m,{rowView:d.rowView}),{default:e.withCtx(()=>[e.createTextVNode(" box "+e.toDisplayString(m),1)]),_:2},1040,["rowView"]))),128))]),_:2},1032,["boxesPerRow","useRowViewAsDefault","useGap","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-box-wrapper-slot-${index}")],64))),128))])}const Dg=B(Fg,[["render",Mg]]),Lg={name:"MultipleListsOfLinks",props:{segments:{type:Array,default:null}}},Pg={class:"cmd-page-multiple-lists-of-links flex-container vertical"};function Ag(t,n,o,a,i,l){const s=yt;return e.openBlock(),e.createElementBlock("div",Pg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[e.createVNode(s,{links:r.links,orientation:r.orientation,largeIcons:r.largeIcons,cmdHeadline:r.headline},null,8,["links","orientation","largeIcons","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-lists-of-links-slot-${index}")],64))),128))])}const qg=B(Lg,[["render",Ag]]),Hg={mounted(t){if(t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"||t.tagName==="A")t.focus();else{const n=t.querySelector("input, select, textarea");n?n.focus():console.warn("No input-element for focus-directive on element "+t.tagName+" found!")}}},zg={mounted(t,n){if(n.value&&typeof n.value=="string"){let o=/[^\d]/g,a=n.value.replace(/^\s*\+/,"00");t.href="tel:"+a.replace(o,"")}}};function Rg(){const t={};e.onBeforeUpdate(a);function n(i="defaultSequence"){const l=t[i]||0;return t[i]=l+1,t[i]}function o(i="defaultSequence"){return t[i]||0}function a(i="defaultSequence"){t[i]&&(t[i]=0)}return{nextSequenceValue:n,currentSequenceValue:o,resetSequence:a}}b.CmdAddressData=po,b.CmdBackToTopButton=Ha,b.CmdBankAccountData=Ja,b.CmdBasicForm=yo,b.CmdBox=Ct,b.CmdBoxWrapper=So,b.CmdBreadcrumbs=Vo,b.CmdCompanyLogo=To,b.CmdContainer=Tc,b.CmdCookieDisclaimer=Wc,b.CmdCopyrightInformation=Yc,b.CmdFakeSelect=No,b.CmdFancyBox=$s,b.CmdForm=go,b.CmdFormElement=A,b.CmdFormFilters=Io,b.CmdGoogleMaps=Fo,b.CmdHeadline=O,b.CmdIcon=N,b.CmdImage=ae,b.CmdImageGallery=Md,b.CmdImageZoom=jd,b.CmdInputGroup=Do,b.CmdLink=Bo,b.CmdListOfLinks=yt,b.CmdLoginForm=gm,b.CmdMainNavigation=Lo,b.CmdMultistepFormProgressBar=Rm,b.CmdNewsletterSubscription=Jm,b.CmdOpeningHours=Ch,b.CmdPageFooter=Gh,b.CmdPageHeader=Xh,b.CmdPagination=Ih,b.CmdProgressBar=nf,b.CmdSidebar=mf,b.CmdSiteFooter=pf,b.CmdSiteHeader=Cf,b.CmdSiteSearch=Tf,b.CmdSlideButton=ke,b.CmdSlideshow=Pf,b.CmdSocialNetworks=Ao,b.CmdSwitchLanguage=Wf,b.CmdSystemMessage=qo,b.CmdTable=ou,b.CmdTabs=du,b.CmdTextImageBlock=yu,b.CmdThumbnailScroller=Co,b.CmdToggleDarkMode=Bu,b.CmdTooltip=uo,b.CmdUploadForm=bg,b.CmdWidthLimitationWrapper=Eg,b.ContactInformation=Ig,b.DirFocus=Hg,b.DirTelephone=zg,b.EditComponentWrapper=te,b.MultipleBoxWrapper=Dg,b.MultipleListsOfLinks=qg,b.createHtmlId=ft,b.createUuid=ce,b.getFileExtension=de,b.openFancyBox=Ce,b.useSequence=Rg,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
8
+ `):" "+gn(l[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:Ot};function Mt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe(null,t)}function kn(t){return Mt(t),t.headers=R.from(t.headers),t.data=Nt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),yn.getAdapter(t.adapter||we.adapter)(t).then(function(a){return Mt(t),a.data=Nt.call(t,t.transformResponse,a),a.headers=R.from(a.headers),a},function(a){return sn(a)||(Mt(t),a&&a.response&&(a.response.data=Nt.call(t,t.transformResponse,a.response),a.response.headers=R.from(a.response.headers))),Promise.reject(a)})}const Cn="1.7.2",Dt={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Dt[t]=function(a){return typeof a===t||"a"+(n<1?"n ":" ")+t}});const bn={};Dt.transitional=function(n,o,a){function i(l,s){return"[Axios v"+Cn+"] Transitional option '"+l+"'"+s+(a?". "+a:"")}return(l,s,r)=>{if(n===!1)throw new T(i(s," has been removed"+(o?" in "+o:"")),T.ERR_DEPRECATED);return o&&!bn[s]&&(bn[s]=!0,console.warn(i(s," has been deprecated since v"+o+" and will be removed in the near future"))),n?n(l,s,r):!0}};function Pp(t,n,o){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let i=a.length;for(;i-- >0;){const l=a[i],s=n[l];if(s){const r=t[l],c=r===void 0||s(r,l,t);if(c!==!0)throw new T("option "+l+" must be "+c,T.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new T("Unknown option "+l,T.ERR_BAD_OPTION)}}const Lt={assertOptions:Pp,validators:Dt},oe=Lt.validators;class re{constructor(n){this.defaults=n,this.interceptors={request:new on,response:new on}}async request(n,o){try{return await this._request(n,o)}catch(a){if(a instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{a.stack?l&&!String(a.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(a.stack+=`
9
+ `+l):a.stack=l}catch{}}throw a}}_request(n,o){typeof n=="string"?(o=o||{},o.url=n):o=n||{},o=se(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:l}=o;a!==void 0&&Lt.assertOptions(a,{silentJSONParsing:oe.transitional(oe.boolean),forcedJSONParsing:oe.transitional(oe.boolean),clarifyTimeoutError:oe.transitional(oe.boolean)},!1),i!=null&&(g.isFunction(i)?o.paramsSerializer={serialize:i}:Lt.assertOptions(i,{encode:oe.function,serialize:oe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=l&&g.merge(l.common,l[o.method]);l&&g.forEach(["delete","get","head","post","put","patch","common"],u=>{delete l[u]}),o.headers=R.concat(s,l);const r=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(o)===!1||(c=c&&y.synchronous,r.unshift(y.fulfilled,y.rejected))});const h=[];this.interceptors.response.forEach(function(y){h.push(y.fulfilled,y.rejected)});let d,m=0,p;if(!c){const u=[kn.bind(this),void 0];for(u.unshift.apply(u,r),u.push.apply(u,h),p=u.length,d=Promise.resolve(o);m<p;)d=d.then(u[m++],u[m++]);return d}p=r.length;let f=o;for(m=0;m<p;){const u=r[m++],y=r[m++];try{f=u(f)}catch(k){y.call(this,k);break}}try{d=kn.call(this,f)}catch(u){return Promise.reject(u)}for(m=0,p=h.length;m<p;)d=d.then(h[m++],h[m++]);return d}getUri(n){n=se(this.defaults,n);const o=cn(n.baseURL,n.url);return tn(o,n.params,n.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(n){re.prototype[n]=function(o,a){return this.request(se(a||{},{method:n,url:o,data:(a||{}).data}))}}),g.forEach(["post","put","patch"],function(n){function o(a){return function(l,s,r){return this.request(se(r||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}re.prototype[n]=o(),re.prototype[n+"Form"]=o(!0)});class Pt{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const a=this;this.promise.then(i=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](i);a._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(r=>{a.subscribe(r),l=r}).then(i);return s.cancel=function(){a.unsubscribe(l)},s},n(function(l,s,r){a.reason||(a.reason=new fe(l,s,r),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}static source(){let n;return{token:new Pt(function(i){n=i}),cancel:n}}}function Ap(t){return function(o){return t.apply(null,o)}}function Hp(t){return g.isObject(t)&&t.isAxiosError===!0}const At={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(At).forEach(([t,n])=>{At[n]=t});function Bn(t){const n=new re(t),o=qo(re.prototype.request,n);return g.extend(o,re.prototype,n,{allOwnKeys:!0}),g.extend(o,n,null,{allOwnKeys:!0}),o.create=function(i){return Bn(se(t,i))},o}const L=Bn(we);L.Axios=re,L.CanceledError=fe,L.CancelToken=Pt,L.isCancel=sn,L.VERSION=Cn,L.toFormData=Ge,L.AxiosError=T,L.Cancel=L.CanceledError,L.all=function(n){return Promise.all(n)},L.spread=Ap,L.isAxiosError=Hp,L.mergeConfig=se,L.AxiosHeaders=R,L.formToJSON=t=>ln(g.isHTMLForm(t)?new FormData(t):t),L.getAdapter=yn.getAdapter,L.HttpStatusCode=At,L.default=L;const qp={name:"CmdUploadForm",emits:["click","error","upload-complete","upload-file-success"],mixins:[j,Cu],data(){return{comment:"",allowDrop:!1,listOfFiles:[],systemMessages:[],defaultSystemMessageStatus:"",showListOfFileExtensions:!1,resetForm:{},uploadInitiated:!1,errors:{}}},created(){this.resetForm.comment=this.presetComment,this.resetForm.allowDrop=this.allowDrop,this.resetForm.listOfFiles=JSON.parse(JSON.stringify(this.listOfFiles)),this.resetForm.systemMessages=this.systemMessages,this.resetForm.systemMessageStatus=this.systemMessageStatus},props:{showTotalUpload:{type:Boolean,default:!0},componentHandlesUpload:{type:Boolean,default:!0},allowedFileExtensions:{type:Array,required:!0},commentRequired:{type:Boolean,default:!0},commentStatusMessage:{type:String,default:""},enableDragAndDrop:{type:Boolean,default:!1},enableComment:{type:Boolean,default:!0},presetComment:{type:String,default:""},maxTotalUploadSize:{type:Number,default:5242880},maxFileUploadSize:{type:Number,default:10485760},allowMultipleFileUploads:{type:Boolean,default:!1},uploadOptions:{type:Object,required:!1},advancedMode:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},iconDelete:{type:Object,default(){return{iconClass:"icon-delete",iconType:"auto"}}},iconFileUpload:{type:Object,default(){return{iconClass:"icon-file-upload",iconType:"auto"}}},iconFile:{type:Object,default(){return{iconClass:"icon-file",iconType:"auto"}}},iconInvisible:{type:Object,default(){return{iconClass:"icon-not-visible",iconType:"auto"}}},iconVisible:{type:Object,default(){return{iconClass:"icon-visible",iconType:"auto"}}},iconImage:{type:Object,default(){return{iconClass:"icon-image",iconType:"auto"}}},iconUpload:{type:Object,default(){return{iconClass:"icon-upload",iconType:"auto"}}},iconDragAndDrop:{type:Object,default(){return{iconClass:"icon-drag-and-drop",iconType:"auto"}}},iconCancel:{type:Object,default(){return{iconClass:"icon-cancel",iconType:"auto"}}},cmdHeadlineFieldset:{type:Object,required:!1},cmdHeadlineNoFilesToUpload:{type:Object,required:!1},cmdHeadlineNoFileToUpload:{type:Object,required:!1},cmdHeadlineSummaryOfAllFiles:{type:Object,required:!1},cmdHeadlineListOfSelectedFiles:{type:Object,required:!1},cmdHeadlineSelectAdditionalFiles:{type:Object,required:!1},cmdHeadlineSelectNewFile:{type:Object,required:!1}},computed:{headlineTextNoFilesToUpload(){return this.allowMultipleFileUploads?this.getMessage("cmduploadform.no_files_to_upload"):this.this.getMessage("cmduploadform.no_file_to_upload")},fileTypeImage(){return this.allowedFileExtensions.some(t=>t.includes("jpg"))},failedUpload(){return this.listOfFiles.some(t=>t.error)},totalBytesUploaded(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return this.formatSize(t[1])+"/"+this.formatSize(t[0])},totalSize(){let t=0;for(let n=0;n<this.listOfFiles.length;n++)t=t+this.listOfFiles[n].file.size;return t},allSystemMessages(){return this.maxTotalUploadSize>0&&this.totalSize>this.maxTotalUploadSize?[this.getMessage("cmduploadform.system_message_total_size_of_files_too_large"),...this.systemMessages]:this.systemMessages},systemMessageStatus(){return this.defaultSystemMessageStatus||(this.allSystemMessages.length?"error":"")},dragAndDropHandler(){return this.enableDragAndDrop?{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}:{}},totalUploadProgress(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return t[1]/t[0]*100}},watch:{presetComment:{handler(t){this.comment=t},immediate:!0}},methods:{getPercentage(t){return t?t.toFixed(2)+"%":"0.00%"},getFileExtension(t){return de(t)},selectFiles(){this.$refs.formElement.getDomElement().querySelector("input[type='file']").click()},dragEnter(t){this.dragOver(t)},dragOver(t){if(t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length>0){t.dataTransfer.dropEffect="none";let n=!0;for(let o=0,a=t.dataTransfer.items.length;o<a;++o)if(t.dataTransfer.items[o].kind!=="file"){n=!1;break}n&&(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.allowDrop=!0)}},dragLeave(){this.allowDrop=!1},drop(t){this.allowDrop=!1,t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(t.preventDefault(),this.checkFiles(t.dataTransfer.files))},cancelUpload(){this.listOfFiles.forEach(t=>{t.abortController&&t.abortController.abort()}),this.errors={},this.listOfFiles=[],this.hideAllSystemMessages(),this.uploadInitiated=!1},cancel(){this.cancelUpload(),this.$emit("click","cancel")},filesSelected(t){this.checkFiles(t.target.files)},checkFiles(t){if(t.length){this.defaultSystemMessageStatus="",this.systemMessages=[],this.errors={};for(let n=0;n<t.length;n++){const o={file:t[n],progress:null,uploadedBytes:0};if(t[n].size>this.maxFileUploadSize){this.errors.fileSize=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.file_size_too_large",t[n].name,t[n].size));continue}if(!this.allowedFileExtensions.includes(de(t[n].name))){this.showListOfFileExtensions=!0,this.errors.fileType=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.not_allowed_file_type",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads&&this.listOfFiles.some(a=>this.compareFiles(a.file,t[n]))){this.systemMessages.push(this.getMessage("cmduploadform.system_message.duplicate_file",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads)this.listOfFiles.push(o);else{t.length>1&&this.systemMessages.push(this.getMessage("cmduploadform.system_message.only_one_file_allowed")),this.listOfFiles=[o];break}}if(!this.advancedMode){if(this.systemMessages.length){this.$emit("error",{messages:this.systemMessages});return}this.listOfFiles.length&&this.uploadFiles()}}},compareFiles(t,n){return t.name===n.name&&t.lastModified===n.lastModified&&t.size===n.size},removeFile(t){this.listOfFiles.splice(t,1),this.listOfFiles.length||(this.uploadInitiated=!1),this.hideAllSystemMessages()},hideAllSystemMessages(){this.listOfFiles.length||(this.systemMessages=[])},formatSize(t){return t<1024?t:t<1048576?t=Math.round(t/1024*100)/100+" KB":t=Math.round(t/1048576*100)/100+" MB"},uploadFiles(){if(this.systemMessages=[],this.errors={},this.defaultSystemMessageStatus="",this.enableComment&&!this.comment&&this.commentRequired&&this.commentStatusMessage)this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.fill_required"));else if(this.uploadInitiated=!0,this.componentHandlesUpload&&this.uploadOptions&&this.uploadOptions.url){const t=new URL(this.uploadOptions.url,location.href),n=new FormData;Object.entries(this.uploadOptions.additionalParams||{}).forEach(([a,i])=>n.append(a,i)),this.enableComment&&n.append("comment",this.comment);const o=[];this.listOfFiles.forEach(a=>{o.push(this.uploadSingleFile(t,a,n))}),Promise.allSettled(o).then(a=>{const i=a.filter(l=>l.status==="rejected");this.uploadInitiated=!1,i.length?(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.some_files_are_not_uploaded_successfully"))):(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.all_files_are_uploaded_successfully"))),this.$emit("upload-complete",{success:!i.length})})}else{let t={};t.listOfFiles=this.listOfFiles,t.type="upload",t.comment=this.comment,this.$emit("click",t,this.showMessage)}},onUploadProgress(t,n){t.lengthComputable?(n.progress=t.loaded/t.total*100,n.uploadedBytes=t.loaded):(n.progress=null,n.uploadedBytes=0),this.$forceUpdate()},uploadSingleFile(t,n,o){return n.abortController=new AbortController,o.set(this.uploadOptions.filesParam?this.uploadOptions.filesParam:"files",n.file),L.post(t,o,{signal:n.abortController.signal,onUploadProgress:a=>this.onUploadProgress(a,n)}).then(a=>(this.$emit("upload-file-success",n),a)).then(a=>{const i=this.listOfFiles.indexOf(n);return i!==-1&&this.listOfFiles.splice(i,1),a}).catch(a=>{throw this.defaultSystemMessageStatus="error",this.systemMessages.push(a),n.error=!0,new Error})},showMessage(t){t===!0?(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_success"))):t===!1&&(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_failed")))},resetFields(){if(typeof this.resetForm=="object"){const t=Object.keys(this.resetForm);for(let n of t)typeof this.resetForm[n]=="object"?this[n]=JSON.parse(JSON.stringify(this.resetForm[n])):this[n]=this.resetForm[n]}}}},zp={key:0},Rp={key:1,class:"flex-container vertical"},jp={key:0,class:"flex-container vertical list-files-wrapper"},Up={key:0,class:"list-of-files total-files"},Wp={class:"flex-container no-flex"},Gp=["title"],Jp={key:0,class:"progressbar"},Kp=["value","title"],Zp=e.createElementVNode("hr",null,null,-1),Yp={class:"flex-container vertical list-files-wrapper"},Xp={class:"list-of-files"},Qp=["title","onClick"],$p={key:0,class:"progressbar"},vp=["value","title"],eg=["title"],tg=e.createElementVNode("hr",null,null,-1),og={class:"upload-conditions"},ng={class:"small"},lg=["title"],ig={key:0,class:"list-of-file-extensions"},ag={class:"flex-container vertical no-gap"},sg=["disabled"],rg={key:0},cg={key:1},dg={class:"button-wrapper no-flex"},mg=["disabled"],hg={key:0},fg={key:1},ug={key:0,class:"progressbar"},pg=["value","title"];function gg(t,n,o,a,i,l){const s=M,r=Ho,c=I,h=A;return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.advancedMode?(e.openBlock(),e.createElementBlock("fieldset",{key:0,class:e.normalizeClass(["cmd-upload-form flex-container",{"upload-initiated":i.uploadInitiated}])},[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.cmdHeadlineFieldset?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineFieldset)),null,16)):e.createCommentVNode("",!0),l.systemMessageStatus&&l.allSystemMessages.length?(e.openBlock(),e.createBlock(r,{key:1,iconClose:{show:!1},validationStatus:l.systemMessageStatus,systemMessage:l.allSystemMessages.length===1?l.allSystemMessages[0]:t.getMessage("cmduploadform.system_message.the_following_errors_occurred")},{default:e.withCtx(()=>[l.allSystemMessages.length>1?(e.openBlock(),e.createElementBlock("ul",zp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.allSystemMessages,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m},e.toDisplayString(d),1))),128))])):e.createCommentVNode("",!0)]),_:1},8,["validationStatus","systemMessage"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({class:["box flex-container vertical",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.listOfFiles.length?(e.openBlock(),e.createElementBlock("div",Rp,[o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("div",jp,[e.createVNode(s,e.mergeProps(o.cmdHeadlineSummaryOfAllFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.summary_of_all_files")),1)]),_:1},16),o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("ul",Up,[e.createElementVNode("li",Wp,[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_all_files_from_list"),onClick:n[0]||(n[0]=e.withModifiers((...d)=>l.cancelUpload&&l.cancelUpload(...d),["prevent"]))},[e.createVNode(c,{iconClass:t.deleteIcon.iconClass,type:t.deleteIcon.iconClass},null,8,["iconClass","type"])],8,Gp),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(i.listOfFiles.length)+" ",1),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.files_uploading")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.file_uploading")),1)],64))]),e.createElementVNode("small",{class:e.normalizeClass(["text-align-right",{error:o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize}])}," ("+e.toDisplayString(l.formatSize(l.totalSize))+") ",3),i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",Jp,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,Kp)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),Zp])):e.createCommentVNode("",!0),e.createElementVNode("div",Yp,[e.createVNode(s,e.mergeProps(o.cmdHeadlineListOfSelectedFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.list_of_selected_files")),1)]),_:1},16),e.createElementVNode("ul",Xp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.listOfFiles,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:"flex-container no-flex"},[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_file_from_list",d.file.name),onClick:e.withModifiers(p=>l.removeFile(m),["prevent"])},[e.createVNode(c,{iconClass:o.iconDelete.iconClass,type:o.iconDelete.iconType},null,8,["iconClass","type"])],8,Qp),e.createElementVNode("span",{class:e.normalizeClass(["text-align-right",d.allowedType?"allowed":"not-allowed",{error:d.error}])},[e.createTextVNode(e.toDisplayString(d.file.name)+" ",1),e.createElementVNode("small",null,"("+e.toDisplayString(l.formatSize(d.file.size))+")",1)],2),i.uploadInitiated&&!d.error?(e.openBlock(),e.createElementBlock("span",$p,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(d.progress)),1),e.createElementVNode("progress",{max:"100",value:d.progress,title:l.formatSize(d.uploadedBytes)+"/"+l.formatSize(d.file.size)},null,8,vp)])):e.createCommentVNode("",!0)]))),128))]),l.failedUpload?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[1]||(n[1]=e.withModifiers((...d)=>l.cancel&&l.cancel(...d),["prevent"])),title:t.getMessage("cmduploadform.all_files_will_be_removed")},e.toDisplayString(t.getMessage("cmduploadform.reset_upload")),9,eg)):e.createCommentVNode("",!0),tg])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.allowMultipleFileUploads?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineNoFilesToUpload,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.headlineTextNoFilesToUpload),1)]),_:1},16)):e.createCommentVNode("",!0)],64)),e.createElementVNode("div",og,[o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineSelectAdditionalFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_additional_files")),1)]),_:1},16)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1},o.cmdHeadlineSelectNewFile,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_new_file")),1)]),_:1},16)):e.createCommentVNode("",!0),e.createElementVNode("dl",ng,[o.maxTotalUploadSize>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("dt",{class:e.normalizeClass({error:l.totalSize>o.maxTotalUploadSize})},e.toDisplayString(t.getMessage("cmduploadform.max_total_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:l.totalSize>o.maxTotalUploadSize}])},e.toDisplayString(l.formatSize(o.maxTotalUploadSize)),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileSize})},e.toDisplayString(t.getMessage("cmduploadform.max_file_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:i.errors.fileSize}])},e.toDisplayString(l.formatSize(o.maxFileUploadSize)),3),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types")),3),e.createElementVNode("dd",null,[e.createElementVNode("a",{href:"#",onClick:n[2]||(n[2]=e.withModifiers(d=>i.showListOfFileExtensions=!i.showListOfFileExtensions,["prevent"])),title:t.getMessage("cmduploadform.tooltip.toggle_list_of_allowed_file_types")},[e.createVNode(c,{iconClass:i.showListOfFileExtensions?o.iconInvisible.iconClass:o.iconVisible.iconClass,type:i.showListOfFileExtensions?o.iconInvisible.iconType:o.iconVisible.iconType},null,8,["iconClass","type"])],8,lg),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showListOfFileExtensions?(e.openBlock(),e.createElementBlock("ul",ig,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.allowedFileExtensions,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(d),3))),128))])):e.createCommentVNode("",!0)]),_:1})])])]),e.createElementVNode("div",ag,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["button upload primary",{disabled:i.uploadInitiated}]),disabled:i.uploadInitiated,onClick:n[3]||(n[3]=d=>l.selectFiles())},[e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"]),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",rg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_files")),1)):(e.openBlock(),e.createElementBlock("span",cg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_file")),1))],10,sg),o.enableDragAndDrop?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["text-drag-and-drop",{disabled:i.uploadInitiated}])},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.or")),1),e.createElementVNode("strong",null,[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop"))+" ",1),o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.additional")),1)],64)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.new")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.getMessage("cmduploadform.files_to_this_area")),1)])],2)):e.createCommentVNode("",!0)])],16),o.enableComment?(e.openBlock(),e.createBlock(h,{key:2,element:"textarea",labelText:t.getMessage("cmduploadform.labeltext.comment"),modelValue:i.comment,"onUpdate:modelValue":n[4]||(n[4]=d=>i.comment=d),required:o.commentRequired,validationMessage:o.commentStatusMessage,placeholder:t.getMessage("cmduploadform.placeholder.comment"),status:o.commentStatusMessage?"error":""},null,8,["labelText","modelValue","required","validationMessage","placeholder","status"])):e.createCommentVNode("",!0),e.createElementVNode("div",dg,[e.createElementVNode("button",{class:e.normalizeClass(["button primary",{disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated}]),disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated,onClick:n[5]||(n[5]=(...d)=>l.uploadFiles&&l.uploadFiles(...d))},[e.createVNode(c,{iconClass:o.iconUpload.iconClass,type:o.iconUpload.iconType},null,8,["iconClass","type"]),i.listOfFiles.length===1||!o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",hg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_file")),1)):(e.openBlock(),e.createElementBlock("span",fg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_files")),1))],10,mg),e.createElementVNode("button",{class:e.normalizeClass(["button",{disabled:i.listOfFiles.length===0}]),onClick:n[6]||(n[6]=(...d)=>l.cancel&&l.cancel(...d))},[e.createVNode(c,{iconClass:o.iconCancel.iconClass,type:o.iconCancel.iconType},null,8,["iconClass","type"]),e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.buttontext.cancel")),1)],2)])],2)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:1,href:"#",onClick:n[7]||(n[7]=e.withModifiers((...d)=>l.selectFiles&&l.selectFiles(...d),["prevent"])),class:["cmd-upload-form box",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",ug,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,pg)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[o.enableDragAndDrop?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop_file_here")),1),e.createVNode(c,{iconClass:o.iconDragAndDrop.iconClass,type:o.iconDragAndDrop.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.fileTypeImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_image")),1),e.createVNode(c,{iconClass:o.iconImage.iconClass,type:o.iconImage.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_file")),1),e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"])],64))],64)),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.max_upload_size"))+" "+e.toDisplayString(l.formatSize(o.maxFileUploadSize)),1),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types"))+" "+e.toDisplayString(o.allowedFileExtensions),1)])],16)),e.createVNode(h,{element:"input",type:"file",labelText:t.getMessage("cmduploadform.labeltext.select_files"),disabled:i.uploadInitiated,multiple:o.allowMultipleFileUploads,onChange:l.filesSelected,ref:"formElement"},null,8,["labelText","disabled","multiple","onChange"])],64)}const yg=B(qp,[["render",gg]]),kg={name:"CmdWidthLimitationWrapper",props:{containerType:{type:String,default:"flex"},innerComponent:{type:String,default:"section",validator(t){return t}},useInnerSection:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},sectionClass:{type:String,required:!1},anchorId:{type:String,required:!1},contentOrientation:{type:String,default:"vertical",validator(t){return t==="horizontal"||t==="vertical"}},cmdHeadline:{type:Object,required:!1}},computed:{setSectionClass(){return this.sectionClass?this.sectionClass:this.innerComponent==="header"?"grid-container-create-columns":this.innerComponent==="footer"?"flex-container":""},setInnerClass(){if(this.containerType==="grid")return"grid-container-create-columns";if(this.containerType==="flex"){if(this.contentOrientation==="horizontal")return"flex-container";if(this.contentOrientation==="vertical")return"flex-container vertical"}return""},setOuterId(){return this.innerComponent==="header"?"site-header":this.innerComponent==="footer"?"site-footer":""}},methods:{oneSlotItem(){const t=this.$slots.default();return t.length===1&&typeof t[0].type=="symbol"&&Array.isArray(t[0].children)?t[0].children.length===1:t.length===1}}},Cg=["id"],bg=["id"];function Bg(t,n,o,a,i,l){const s=M;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-width-limitation-wrapper",{sticky:o.sticky}]),ref:"width-limitation-wrapper"},[o.useInnerSection?(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(l.setSectionClass),id:o.anchorId},[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,"pre-headline-text":o.cmdHeadline.preHeadlineText,"headline-text":o.cmdHeadline.headlineText,"headline-level":o.cmdHeadline.headlineLevel},null,8,["pre-headline-text","headline-text","headline-level"])):e.createCommentVNode("",!0),l.oneSlotItem()?e.renderSlot(t.$slots,"default",{key:1}):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.setInnerClass)},[e.renderSlot(t.$slots,"default")],2))],10,Cg)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.anchorId?(e.openBlock(),e.createElementBlock("a",{key:0,id:o.anchorId},null,8,bg)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],64))],2)}const wg=B(kg,[["render",Bg]]),_g={name:"ContactInformation",props:{cmdBasicForm:{type:Object,default:null},cmdAddressData:{type:Object,default:null},cmdGoogleMaps:{type:Object,default:null}},computed:{contactFormOnly(){return!(this.cmdAddressData||this.cmdGoogleMaps||!this.isSlotEmpty)},isSlotEmpty(){return!this.$scopedSlots["custom-info"]}}},xg={key:1,class:"flex-container"},Sg={class:"flex-container vertical"};function Eg(t,n,o,a,i,l){const s=ko,r=go,c=Fo;return l.contactFormOnly?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},t.basicForm)),null,16)):(e.openBlock(),e.createElementBlock("div",xg,[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(t.basicForm)),null,16),e.createElementVNode("div",Sg,[o.cmdAddressData?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:0},o.cmdAddressData)),null,16)):e.createCommentVNode("",!0),o.cmdGoogleMaps?(e.openBlock(),e.createBlock(c,e.normalizeProps(e.mergeProps({key:1},o.cmdGoogleMaps)),null,16)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"additional-info")])]))}const Vg=B(_g,[["render",Eg]]),Tg={name:"MultipleBoxWrapper",props:{segments:{type:Array,default:null}}},Ng={class:"cmd-page-multiple-box-wrapper flex-container vertical"};function Ig(t,n,o,a,i,l){const s=bt,r=Eo;return e.openBlock(),e.createElementBlock("div",Ng,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(c,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(r,{boxesPerRow:c.boxesPerRow,useRowViewAsDefault:c.useRowViewAsDefault,useGap:c.useGap,cmdHeadline:c.cmdHeadline},{default:e.withCtx(d=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.boxes,(m,p)=>(e.openBlock(),e.createBlock(s,e.mergeProps({"use-slots":["box-body"],key:p},m,{rowView:d.rowView}),{default:e.withCtx(()=>[e.createTextVNode(" box "+e.toDisplayString(m),1)]),_:2},1040,["rowView"]))),128))]),_:2},1032,["boxesPerRow","useRowViewAsDefault","useGap","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-box-wrapper-slot-${index}")],64))),128))])}const Fg=B(Tg,[["render",Ig]]),Og={name:"MultipleListsOfLinks",props:{segments:{type:Array,default:null}}},Mg={class:"cmd-page-multiple-lists-of-links flex-container vertical"};function Dg(t,n,o,a,i,l){const s=yt;return e.openBlock(),e.createElementBlock("div",Mg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[e.createVNode(s,{links:r.links,orientation:r.orientation,largeIcons:r.largeIcons,cmdHeadline:r.headline},null,8,["links","orientation","largeIcons","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-lists-of-links-slot-${index}")],64))),128))])}const Lg=B(Og,[["render",Dg]]),Pg={mounted(t){if(t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"||t.tagName==="A")t.focus();else{const n=t.querySelector("input, select, textarea");n?n.focus():console.warn("No input-element for focus-directive on element "+t.tagName+" found!")}}},Ag={mounted(t,n){if(n.value&&typeof n.value=="string"){let o=/[^\d]/g,a=n.value.replace(/^\s*\+/,"00");t.href="tel:"+a.replace(o,"")}}};function Hg(){const t={};e.onBeforeUpdate(a);function n(i="defaultSequence"){const l=t[i]||0;return t[i]=l+1,t[i]}function o(i="defaultSequence"){return t[i]||0}function a(i="defaultSequence"){t[i]&&(t[i]=0)}return{nextSequenceValue:n,currentSequenceValue:o,resetSequence:a}}C.CmdAddressData=go,C.CmdBackToTopButton=qa,C.CmdBankAccountData=Ja,C.CmdBasicForm=ko,C.CmdBox=bt,C.CmdBoxWrapper=Eo,C.CmdBreadcrumbs=Vo,C.CmdCompanyLogo=To,C.CmdContainer=Nc,C.CmdCookieDisclaimer=Gc,C.CmdCopyrightInformation=Xc,C.CmdFakeSelect=No,C.CmdFancyBox=$s,C.CmdForm=yo,C.CmdFormElement=A,C.CmdFormFilters=Io,C.CmdGoogleMaps=Fo,C.CmdHeadline=M,C.CmdIcon=I,C.CmdImage=ae,C.CmdImageGallery=Dd,C.CmdImageZoom=Ud,C.CmdInputGroup=Do,C.CmdLink=kt,C.CmdListOfLinks=yt,C.CmdLoginForm=fm,C.CmdMainNavigation=Lo,C.CmdMultistepFormProgressBar=Hm,C.CmdNewsletterSubscription=Um,C.CmdOpeningHours=gh,C.CmdPageFooter=jh,C.CmdPageHeader=Kh,C.CmdPagination=Vh,C.CmdProgressBar=ef,C.CmdSidebar=rf,C.CmdSiteFooter=hf,C.CmdSiteHeader=gf,C.CmdSiteSearch=Sf,C.CmdSlideButton=ke,C.CmdSlideshow=Mf,C.CmdSocialNetworks=Ao,C.CmdSwitchLanguage=Rf,C.CmdSystemMessage=Ho,C.CmdTable=vf,C.CmdTabs=su,C.CmdTextImageBlock=uu,C.CmdThumbnailScroller=bo,C.CmdToggleDarkMode=ku,C.CmdTooltip=po,C.CmdUploadForm=yg,C.CmdWidthLimitationWrapper=wg,C.ContactInformation=Vg,C.DirFocus=Pg,C.DirTelephone=Ag,C.EditComponentWrapper=te,C.MultipleBoxWrapper=Fg,C.MultipleListsOfLinks=Lg,C.createHtmlId=ft,C.createUuid=ce,C.getFileExtension=de,C.openFancyBox=Ce,C.useSequence=Hg,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});